Sunday, July 27, 2008

Internetworking a Vista Host with a Linux Guest in a Virtualbox

By default, in virtualbox, the guest virtual machine could connect to the host. You need to configure virtualbox and windows in order for the host to connect to the guest.

in Virtualbox:
1. Go to the network settings of the linux virtual machine,
2. there should be an existing adapter - adapter 0: NAT; create another one,
3. add a new Host Interface by clicking the 'plus' icon near the list,
4. In the 'Attached to' setting, select 'Host Interface,'
5. select the created interface in the 'Interface Name' setting.
Don't start the virtual machine yet.

in Windows:
1. Go to the Network Connections in the Control Panel,
2. the created host interface (in step 3 above) should appear here, check its settings,
3. assign it these values:
IP = 10.0.0.1
Mask = 255.255.255.0
Gateway = 10.0.0.1

in Virtualbox:
1. Turn on the linux virtual machine,
2. use the created host interface as the network adapter,
3. check the network settings, and assign it to have a static IP with these values:
IP = 10.0.0.2
Mask = 255.255.255.0
Gateway = 10.0.0.1

Sources:
http://bits2share.netsons.org/2008/05/31/virtualbox-connect-to-guest-system-from-host-system/
http://www.virtualbox.org/wiki/User_HOWTOS

0 Comments:

Post a Comment

<< Home