LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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-11-2010, 12:19 PM   #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,533
Blog Entries: 28

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
VirtualBox: how to NFS mount in Knoppix guest from Slackware host?


Hello :-)

I'm setting up Slackware64 13.1 as a guest on a Slackware64 13.1 host running VirtualBox 3.2.8 PUEL and want to begin by replicating the host's / to the guest.

The idea was to NFS export / from the host, boot Knoppix 6.2, NFS mount in the guest and copy the files but I haven't been able to NFS mount under Knoppix.

At first I tried with NAT networking but NFS is mentioned in the VirtualBox User Guide in the NAT limitations section so I switched to bridged networking. After mounting / did not work, I switched to mounting /home/c/d which is "known good" -- regularly used for syncing with my netbook

On the guest, running Knoppix, networking seems OK. It uses DHCP. I can browse and traceroute LQ by name. ifconfig shows 192.168.168.201 and a 255.255.255.0 netmask. The host has a static IP configuration, 192.168.168.7/24 (confirmed). mount -t nfs 192.168.168.7:/home/c/d /mnt eventually gives "mount system call failed". The -o nfsvers=3 option gets "rpc.statd not running" with a recommendation to start it or use -o nolock. The -o nolock option gets a timeout. /etc/init.d/nfs-common start gets "statd failed!" (huh?).

On the host, NFS-serving works:
Code:
root@CW8:~# exportfs
/home/c/d         192.168.168.0/24
Any ideas?

Best

Charles
 
Old 11-13-2010, 05:10 PM   #2
aluser
Member
 
Registered: Mar 2004
Location: Massachusetts
Distribution: Debian
Posts: 557

Rep: Reputation: 42
Have you checked that the guest can connect to the host with a simpler protocol, like telnet or ssh?

Are you just planning to do a one-time copy, or do you mean to do something more complicated? If you're only doing a simple copy, you could work around this by doing something with fewer moving parts, e.g. a tar+ssh trick. That would be something like
Code:
(untested)
<host>$ tar czf - / | ssh <guest-ip> 'tar -C / -xzf -'
 
1 members found this post helpful.
Old 11-14-2010, 12:06 AM   #3
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,533
Blog Entries: 28

Original Poster
Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
Thanks aluser

Just tried telnet and ssh; they both worked. Retried mount -t nfs 192.168.168.7:/home/c/d /mnt; still failed.

Thanks for the workaround suggestion. I already worked around it by loop mounting the file systems within the .vdi file on the host, getting the offsets using Saulo's script. The technique requires a fixed (not expanding) .vdi file and a file system. It was more convenient than the original idea of using NFS because files could be edited on the host which is easier than in a VM without Guest Additions.
 
  


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
slackware 13 guest additions for virtualbox on xp host - process questions kih Slackware 3 11-22-2012 06:53 AM
VirtualBox Slackware guest on Win7 host -- folder sharing R_Shackleford Slackware 3 07-15-2010 11:29 AM
Virtualbox CentOS Guest can not connect to Internet from XP Host sokha Linux - Virtualization and Cloud 2 03-30-2010 11:28 PM
How secure is windows XP running as a virtualBox guest on a Slackware 12.2 host garyg007 Slackware 6 03-30-2009 11:15 AM
Ubuntu Host Virtualbox guest Networking weirdness ddales Linux - Networking 0 01-20-2008 02:24 PM


All times are GMT -5. The time now is 06:47 AM.

Main Menu
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