VirtualBox in LAN

If you would like to make a Linux virtual machine (created using say Sun's VirtualBox)  connect to your LAN to which the host machine is a part of, you could follow these steps:

(0) Create the virtual machine and install the guest OS (I installed Ubuntu).

(1) Install bridge-utils and uml-utilities on the guest OS:

         sudo apt-get install bridge-utils uml-utilities

(2) Edit /etc/network/if-pre-up.d/uml-utilities to change:

     chown root:uml-net /dev/net/tun

      to      chown root:vboxusers /dev/net/tun

(3) Change the VirtualMachine settings from NAT (the default) to Host Interface in the Network settings tab of the GUI.

(4) Restart the networking service

     sudo /etc/init.d/networking restart

After this, the virtual  machine can be accessed from any other machine on the LAN using ssh or vnc if these services are available on the guest OS. For more advanced configuration including TUN/TAP settings, this link might be useful.



Comments:

Thanks, just the sort of precise, to the point information I was looking for.

Posted by JaapO. on January 17, 2010 at 10:29 PM SCT #

Hi Nithya,

I have installed VBOX 3.2 version today and installed Ubuntu 10.04 guest on a Windows 7 host.

But I'm unable to get my Ubuntu an IP address of the local LAN, though in NAT mode everything works fine.

I dont see the 'Host Interface' in the Network settings of VBOX.

Any Idea how to do this? Appreciate your help.

Posted by Raju on June 02, 2010 at 11:22 AM SCT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

nitkal

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today
Bookmarks