LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices



Reply
 
Search this Thread
Old 11-15-2010, 07:54 AM   #1
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Servers: Debian Squeeze and Wheezy. Desktop: Slackware64 14.0. Netbook: Slackware 13.37
Posts: 8,563
Blog Entries: 29

Rep: Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179Reputation: 1179
VirtualBox: Slackware64 host and guest; NFS mount from host fails


Hello

This is similar to my LQ thread VirtualBox: how to NFS mount in Knoppix guest from Slackware host? but now the guest is Slackware64 13.1 like the host and it's not a one-off requirement that I can work around.

The host is an NFS server exporting /home/c/d to the 192.168.168.0/24 LAN:
Code:
root@CW8:~# exportfs
/home/c/d         192.168.168.0/24
This NFS export is routinely mounted by my netbook using mount -t nfs -o bg,rw,soft 192.168.168.0:/home/c/d /mnt/CW8d

So it should (TM) be straightforward to mount it from the guest which is currently configuring its eth0 using DHCP from the LAN router's DHCP service (the same as the netbook), can ping the host, do name resolution and has no firewall:
Code:
root@vCW8:~# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 08:00:27:30:1f:8a  
          inet addr:192.168.168.201  Bcast:192.168.168.255  Mask:255.255.255.0
          inet6 addr: fe80::a00:27ff:fe30:1f8a/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3147 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2548 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:3036808 (2.8 MiB)  TX bytes:248836 (243.0 KiB)
          Interrupt:19 Base address:0xd020
root@vCW8:~# ping -c1 192.168.168.7
PING 192.168.168.7 (192.168.168.7) 56(84) bytes of data.
64 bytes from 192.168.168.7: icmp_req=1 ttl=64 time=0.311 ms
[snip]
root@vCW8:~# dig linuxquestions.org
[snip]
;; ANSWER SECTION:
linuxquestions.org.    1440    IN    A    75.126.162.205
[snip]
root@vCW8:~# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destinatio
The host also has no firewall (same iptables -L output)

Running Wireshark on both host and guest shows NFS packets going from guest and being received on the host but nothing going the other way.

Running rpc.nfsd with -d and -s options and re-trying the mount from the guest produces nothing in the /var/log/* files and /var/log/nfsd/ is empty. Mounting from the netbook results in a line in /var/log/messages: mountd[24273]: authenticated mount request from 192.168.168.200:967 for /home/c/d (/home/c/d).

On the basis of this evidence it seems the packets from the guest, intended to initiate the NFS mount, reach the host's NIC but do not reach the host's NFS daemons. I do not know where VirtualBox networking fits within the architecture -- whether Wireshark's showing the packets arriving at the host means they have already traversed VirtualBox networking or not.

How to analyse this problem further?

VirtualBox on the host is PUEL 3.2.8 r64453. There is an unresolved issue on the guest in which boot initialisation of VirtualBox Guest Additions results in
Starting the VirtualBox Guest Additions ...fail!
(modprobe vboxsf failed)

which is a low priority issue because I wasn't planning on using VirtualBox Shared Folders (but might need to as a workaround for the NFS problem!).

Best

Charles
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
VirtualBox: how to NFS mount in Knoppix guest from Slackware host? catkin Linux - Virtualization and Cloud 2 11-14-2010 01:06 AM
Virtualbox CentOS Guest can not connect to Internet from XP Host sokha Linux - Virtualization and Cloud 2 03-31-2010 12:28 AM
Sun VirtualBox: Guest is Unable to Connect to Host By Hostname Cottonwoody Linux - Virtualization and Cloud 5 11-13-2009 12:31 PM
VirtualBox Raw Access, Windows Host, Linux Guest Guitarist88 Linux - Newbie 2 11-14-2008 05:41 PM
Ubuntu Host Virtualbox guest Networking weirdness ddales Linux - Networking 0 01-20-2008 03:24 PM


All times are GMT -5. The time now is 06:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration