On Thu, Jul 17, 2008 at 9:12 AM, Martin Casado <[EMAIL PROTECTED]> wrote:
> 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
>
Easy enough. I get the warning:
[EMAIL PROTECTED]:~/vm$ sudo /etc/init.d/nfs-kernel-server restart
Stopping NFS kernel daemon: mountd nfsd.
Unexporting directories for NFS kernel daemon....
Exporting directories for NFS kernel daemon...exportfs: /etc/exports [1]:
Neither 'subtree_check' or 'no_subtree_check' specified for export
"localhost:/home/brandonh/vm/nfs".
Assuming default behaviour ('no_subtree_check').
NOTE: this default has changed since nfs-utils version 1.0.x
Not sure if this matters.
>
> In the VM all you have to do is install the nfs common package.
>
> apt-get install nfs-common
When I try this in the openflow1 VM monitor window, I get errors, I'm
guessing because the VM doesn't seem to be able to connect out.
Do you want to continue [Y/n]? Y
Err http://ftp.us.debian.org unstable/main libgnutls26 2.2.5-1
404 Not Found [IP: 64.50.238.52 80]
Err http://ftp.us.debian.org unstable/main libkrb53 1.6.dfsg.4~beta1-2
404 Not Found [IP: 64.50.238.52 80]
Err http://ftp.us.debian.org unstable/main libldap-2.4-2 2.4.9-1
404 Not Found [IP: 64.50.238.52 80]
Err http://ftp.us.debian.org unstable/main nfs-common 1:1.1.2-4
404 Not Found [IP: 64.50.238.52 80]
Failed to fetch
http://ftp.us.debian.org/debian/pool/main/g/gnutls26/libgnutls26_2.2.5-1_i386.deb
404 Not Found [IP: 64.50.238.52 80]
Failed to fetch
http://ftp.us.debian.org/debian/pool/main/k/krb5/libkrb53_1.6.dfsg.4~beta1-2_i386.deb
404 Not Found [IP: 64.50.238.52 80]
Failed to fetch
http://ftp.us.debian.org/debian/pool/main/o/openldap2.3/libldap-2.4-2_2.4.9-1_i386.deb
404 Not Found [IP: 64.50.238.52 80]
Failed to fetch
http://ftp.us.debian.org/debian/pool/main/n/nfs-utils/nfs-common_1.1.2-4_i386.deb
404 Not Found [IP: 64.50.238.52 80]
E: Unable to fetch some archives, maybe run apt-get update or try with
--fix-missing?
What is the easiest way to install this onto hda.dsk {I'm using the one
provided by KK}?
>
> 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.
>
By default, the .config for qemu hosted at Nicira has CONFIG_NFS_FS not set.
Thanks,
brandon
_______________________________________________
nox-dev mailing list
[email protected]
http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org