View Full Version : [SOLVED] Connecting a linux virtual machine to a linux host via NFS

July 7th, 2011, 11:04 AM
I am currently running ubuntu on a qemu-kvm virtual machine, and the host is fedora.
I would like to mount a folder of the host machine on my VM, but never succeeded.
The result of the command is :

root@armnlib-kvm:~# mount -v /nfs
mount: no type was given - I'll assume nfs because of the colon
mount.nfs: timeout set for Thu Jul 7 06:02:43 2011
mount.nfs: text-based options: 'addr='
mount.nfs: mount(2): Permission denied
mount.nfs: access denied by server while mounting

And the showmount -e on the host gives :

Export list for cudak:

Does someone have an idea to solve my pb ?
Thanks !

July 7th, 2011, 11:47 AM
Maybe this will help:

July 8th, 2011, 09:47 AM
Ok, thanks, but the pb was due to redirection port, since VM and host have the same ip-address.
Launching the VM with qemu-kvm, you have to use the option -redir and redirect both ports 2049 and 111