Re: NFS mounted disk images

Gilad Ben-Yossef
2007-08-30T13:34:08Z

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)

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