Here are instructions for setting up NFS in the VM test environment using Debian. They are a little dated so let us know if you have problems. Also, please verify if they work and I'll put online in the next (much needed) document push.
.m ----------------------------------------------------------------------------------------------------------------------------- Setting up NFS in VM Environment Mounting your development directory using NFS allows you to update the test binary without rebooting the virtual machine. To do so, you'll need to set up your local host as an NFS server: apt-get install nfs-common apt-get install nfs-kernel-server Modify /etc/exports to allow your VM to mount your development directory. Note that, when using qemu with the user-space networking package, the IP address will be the same as your localhost. # /etc/exports: the access control list for filesystems which may be exported # to NFS clients. See exports(5). /home/casado/projects/vigil/ 192.168.1.18(insecure,no_root_squash,rw) Reboot the nfs server sudo /etc/init.d/nfs-kernel-server restart In the VM all you have to do is install the nfs common package. apt-get install nfs-common Make sure that NFS support is compiled into the kernel and that you have a valid IP address. If you do not have an IP address, you should add /sbin/dhclient to /etc/rc.local. With that, you should be able to mount the exported directory mount -t nfs -o nolock 192.168.1.18:/home/casado/projects/vigil/ /mnt/ Note that I was unable to mount the directory with locking. I think there is a work around but have not really looked into it. The following thread may provide some answers: (http://readlist.com/lists/uclinux.org/uclinux-dev/1/6501.html) .martin > (1) If I'd like to use tcpdump/wireshark to view packets coming to my > nox host when running the vm scripts. Is there a way to see packets > flowing by vde? I don't see an interface corresponding to 10.0.2.2 > <http://10.0.2.2> in ifconfig on the nox host. > > (2) Would it be possible to get pointers for running NFS to share > files with the vm script? Alternately, is there some way to re-mount > the cd to pass changes and new files from the host to an openflow vm? > > Thanks, > Brandon > ------------------------------------------------------------------------ > > _______________________________________________ > nox-dev mailing list > [email protected] > http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org > _______________________________________________ nox-dev mailing list [email protected] http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org
