LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-12-2011, 11:13 AM   #1
ivandrago
LQ Newbie
 
Registered: Sep 2011
Posts: 13

Rep: Reputation: Disabled
KVM and shared storage issues.


I have recently installed and configured KVM with NFS shared storage. If I use local storage I can configure a a VM with no problem. When I use my NFS shared storage I get the following error.

qemu: could not open disk image /var/lib/libvirt/images/nfs/test.img: Permission Denied

I know that it is a permissions issue because if I chmod 777 test.img I can create the machine. I see that when virt-manager installs a virtual machine on the local storge the owner is qemu but when it creates it on the nfs share the owner is root. I assume I need to create the qemu user on my NFS box?

Any help would be appreciated, im still a half noob.
 
Old 09-12-2011, 10:21 PM   #2
ramram29
Member
 
Registered: Jul 2003
Location: Miami, Florida, USA
Distribution: Debian
Posts: 848
Blog Entries: 1

Rep: Reputation: 47
NFS is typically used for simple file shares. NFS can be very slow and is not recommended for high I/O processing. Also the UID needs to be the same on both systems or you'll get problems with permissions. I would recommend iSCSI instead.
 
Old 09-13-2011, 09:04 AM   #3
ivandrago
LQ Newbie
 
Registered: Sep 2011
Posts: 13

Original Poster
Rep: Reputation: Disabled
I have implemented iSCSI but I was looking for shared storage and this solution only appears to offer a physical iSCSI disk? Do you know of any shared storage tutorials? My goal is to provide live/automated migration.
 
Old 10-01-2011, 01:33 AM   #4
jmorri
LQ Newbie
 
Registered: Apr 2009
Distribution: Centos
Posts: 2

Rep: Reputation: 0
I have a simular setup and It seems to work fine. On your NFS server share have you set the no_root_squash option? Otherwise the server will use the default anonamous user.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Clustering with shared storage? gatlantis Linux - Software 1 07-17-2011 04:21 AM
Hypervisor (VMware and KVM) Shared Storage timd Linux - Virtualization and Cloud 2 03-14-2011 08:59 AM
fdisk for Shared Storage? your_shadow03 Linux - Newbie 2 08-20-2008 04:09 AM
shared Storage for cluster hardeep_ubhi Linux - Enterprise 2 03-04-2007 11:54 PM
Shared Storage/SAN with linux fatemehtaj Linux - Enterprise 0 08-02-2006 06:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration