NFS server on Ubuntu Linux guest

Discussions related to using VirtualBox on Windows hosts.
Post Reply
youjh
Posts: 1
Joined: 30. Apr 2009, 13:55
Primary OS: MS Windows XP
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu 8.04

NFS server on Ubuntu Linux guest

Post by youjh »

Hi all,

I am developing a Linux OS for an embedded chip, and am using a guest Ubuntu 8.04 as well as my host XP for my developing environment. I would like to be able to create an NFS server on my Ubuntu host, and connect to it from an outside Linux machine. (My device only supports NFS protocol, and I can't put a linux filesystem to boot from on my Windows drive)

I am using a NAT connection and set up port forwarding, but it doesnt seem to be working.
I'm using port 2049 for NFS and 52964 for mountd.

I get the following error from the client when trying to connect:

Looking up port of RPC 100003/2 on 137.167.205.122
Root-NFS: Unable to get nfsd port number from server, using default
Looking up port of RPC 100005/1 on 137.167.205.122
Root-NFS: Unable to get mountd port number from server, using default
Root-NFS: Server returned error -5 while mounting /home/joe/arm_root
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Cannot open root device "nfs" or unknown-block(2,0)
Please append a correct "root=" boot option; here are the available partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)

I assume this is failing because it can't talk to the portmapper utility on port 111.

Has anyone had any experience in setting up an NFS server on a Linux guest which outside machines could connect to?
Are there other ports that NFS need to have open? Can I force port 111 to forward? (I'm not worried about security, its physically isolated from the web) Is there a better connection option than NAT for this?

Thanks a bunch,
Joe
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: NFS server on Ubuntu Linux guest

Post by vbox4me2 »

You need to use Bridge networking for this, see the Manual.
twist
Posts: 1
Joined: 28. Aug 2009, 16:03
Primary OS: MS Windows XP
VBox Version: OSE other
Guest OSses: Ubuntu

Re: NFS server on Ubuntu Linux guest

Post by twist »

Hi Joe,

I an getting the same error you mentioned and I have my Virtual Box set up in bridge mode. What did you end up doing to fix your problem?

Thanks,
Matt
Post Reply