Skip to contentSkip to conversation

NFS mounted disk images

DISCUSSION Magicboiz 3 participants 5 messages Aug 30, 2007 – Sep 3, 2007 3 messages not in the archive KVM

lore
Share & tools
lore

Magicboiz

author
#0 lore raw

Hello list,

when I try to run a virtual machins with disk images stored into NFS mounted directories, the virtual machine cannot use the IDE disk as expected. This happens with linux(debian/centos) and other OS, like OpenBSD, OpenSolaris(nexenta), etc. For example, during installation of guest oses, they cannot partition the disk.

This is how I run KVM:

sudo /usr/local/bin/qemu-system-x86_64 -m 256 -boot d -cdrom /mnt/debian-40r1-i386-netinst.iso -hda /mnt/disco.img -net nic -net tap,ifname=tap0,script=qemu-ifup

And this is my NFS mounted partition:

10.172.224.3:/export on /mnt type nfs
(rw,tcp,rsize=8192,wsize=8192,addr=10.172.224.3)

kernel: 2.6.22 /Ubuntu Gutsy 2.6.22-10-generic
KVM 36

Do you know what's happening?? Pherhaps i'm doing something wrong....??

Regards.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/

#1 lore raw
Quoted 15 lines · Magicboiz

Hello list,

when I try to run a virtual machins with disk images stored into NFS mounted directories, the virtual machine cannot use the IDE disk as expected. This happens with linux(debian/centos) and other OS, like OpenBSD, OpenSolaris(nexenta), etc. For example, during installation of guest oses, they cannot partition the disk.

This is how I run KVM:

sudo /usr/local/bin/qemu-system-x86_64 -m 256 -boot d

(quoted diff) +0 -2
-cdrom /mnt/debian-40r1-i386-netinst.iso -hda /mnt/disco.img -net nic
-net tap,ifname=tap0,script=qemu-ifup 
Quoted 4 lines

And this is my NFS mounted partition:

10.172.224.3:/export on /mnt type nfs
(rw,tcp,rsize=8192,wsize=8192,addr=10.172.224.3)

Just guessing here, but you probably need to add "no_root_squash" to the options above.

Please note that no_root_squash can be considered a security risk under most circumstances.

Gilad

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/

A message that is not in the archive (sent off-list or not yet received): [email protected]

author
#3 lore raw

no_root_squash is enabled in the nfs server.
:((

thx

Quoted 25 lines · Gilad Ben-Yossef
Quoted 15 lines · Magicboiz

Hello list,

when I try to run a virtual machins with disk images stored into NFS mounted directories, the virtual machine cannot use the IDE disk as expected. This happens with linux(debian/centos) and other OS, like OpenBSD, OpenSolaris(nexenta), etc. For example, during installation of guest oses, they cannot partition the disk.

This is how I run KVM:

sudo /usr/local/bin/qemu-system-x86_64 -m 256 -boot d

(quoted diff) +0 -2
-cdrom /mnt/debian-40r1-i386-netinst.iso -hda /mnt/disco.img -net nic
-net tap,ifname=tap0,script=qemu-ifup
Quoted 4 lines

And this is my NFS mounted partition:

10.172.224.3:/export on /mnt type nfs
(rw,tcp,rsize=8192,wsize=8192,addr=10.172.224.3)

Just guessing here, but you probably need to add "no_root_squash" to the options above.

Quoted 6 lines

Please note that no_root_squash can be considered a security risk under most circumstances.

Gilad

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/

_______________________________________________
kvm-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel

A message that is not in the archive (sent off-list or not yet received): 7da0699c0708300715l18c90efeq6b03cc2276f47dd0-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

#5 lore raw
Quoted 1 line · Magic Boiz

no_root_squash is enabled in the nfs server.

do you actually have write access?

Quoted 59 lines

:((

thx

On 8/30/07, *Gilad Ben-Yossef* <[email protected] <mailto:[email protected]>> wrote:

Magicboiz wrote:
> Hello list,
>
> when I try to run a virtual machins with disk images stored into NFS
> mounted directories, the virtual machine cannot use the IDE disk as > expected. This happens with linux(debian/centos) and other OS, like > OpenBSD, OpenSolaris(nexenta), etc. For example, during installation of
> guest oses, they cannot partition the disk.
>
> This is how I run KVM:
>
> sudo /usr/local/bin/qemu-system-x86_64 -m 256 -boot d
> -cdrom /mnt/debian-40r1-i386-netinst.iso -hda /mnt/disco.img -net nic
> -net tap,ifname=tap0,script=qemu-ifup
>
>
> And this is my NFS mounted partition:
>
> 10.172.224.3:/export on /mnt type nfs
> (rw,tcp,rsize=8192,wsize=8192,addr= 10.172.224.3
<http://10.172.224.3>)

Just guessing here, but you probably need to add "no_root_squash" to the
options above.

Please note that no_root_squash can be considered a security risk under
most circumstances.

Gilad

------------------------------------------------------------------------

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
------------------------------------------------------------------------

_______________________________________________
kvm-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel

Signature · 8 lines
Any sufficiently difficult bug is indistinguishable from a feature.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/

A message that is not in the archive (sent off-list or not yet received): 46D9769A.3070704-atKUWr5tajBWk0Htik3J/[email protected]

author
#7 lore raw

yes, I do.......

in fact, a windows xp sp2 guest, can boot, install and run perfectly.

Quoted 66 lines · Avi Kivity
Quoted 1 line · Magic Boiz

no_root_squash is enabled in the nfs server.

do you actually have write access?

Quoted 59 lines

:((

thx

On 8/30/07, *Gilad Ben-Yossef* <[email protected] <mailto:[email protected]>> wrote:

Magicboiz wrote:
> Hello list,
>
> when I try to run a virtual machins with disk images stored into NFS
> mounted directories, the virtual machine cannot use the IDE disk as > expected. This happens with linux(debian/centos) and other OS, like > OpenBSD, OpenSolaris(nexenta), etc. For example, during installation of
> guest oses, they cannot partition the disk.
>
> This is how I run KVM:
>
> sudo /usr/local/bin/qemu-system-x86_64 -m 256 -boot d
> -cdrom /mnt/debian-40r1-i386-netinst.iso -hda /mnt/disco.img -net nic
> -net tap,ifname=tap0,script=qemu-ifup
>
>
> And this is my NFS mounted partition:
>
> 10.172.224.3:/export on /mnt type nfs
> (rw,tcp,rsize=8192,wsize=8192,addr= 10.172.224.3
<http://10.172.224.3>)

Just guessing here, but you probably need to add "no_root_squash" to the
options above.

Please note that no_root_squash can be considered a security risk under
most circumstances.

Gilad

------------------------------------------------------------------------

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
------------------------------------------------------------------------

_______________________________________________
kvm-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/