From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gilad Ben-Yossef Subject: Re: NFS mounted disk images Date: Thu, 30 Aug 2007 16:34:08 +0300 Message-ID: <46D6C750.5000605@codefidence.com> References: <1188478289.18290.6.camel@linux> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org To: Magicboiz Return-path: In-Reply-To: <1188478289.18290.6.camel@linux> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org 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 ------------------------------------------------------------------------- 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/