VirtualBox Post Install

The purpose of this guide is to install virtualbox guest system correctly.

VirtualBox Search Engine

Install and Upgrade for Windows Host and Ubuntu Guest

Download the following files:

VirtualBox 4.2 for Windows hosts

VirtualBox_Extension_Pack-4.2

Download Ubuntu Desktop Edition

Xming

Xming-mesa

Xming-fonts

Install all files downloaded.

Configure VirtualBox network with NAT with advanced port setting for ssh:

Rule1 - TCP - 127.0.0.1 - 22 - <blank> - 22

In this case, default gateway for guest ( ubuntu ) system is 10.0.2.2, so we verify if the port 6000 is running xming from the guest to the host:

asdf@ubuntu:~$ route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.0.2.0        *               255.255.255.0   U     1      0        0 eth2
link-local      *               255.255.0.0     U     1000   0        0 eth2
default         example.com     0.0.0.0         UG    0      0        0 eth2
asdf@ubuntu:~$ route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
10.0.2.0        0.0.0.0         255.255.255.0   U     1      0        0 eth2
169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 eth2
0.0.0.0         10.0.2.2        0.0.0.0         UG    0      0        0 eth2
asdf@ubuntu:~$ telnet 10.0.2.2 6000
Trying 10.0.2.2...
Connected to 10.0.2.2.
Escape character is '^]'.   

Now to run the console, esport display and run it in background:

export DISPLAY=10.0.2.2:0.0 
gnome-console &

For definitive setting:

cd
echo "export DISPLAY=10.0.2.2:0.0" >>.bashrc

Configure ssh port

VBoxManage.exe getextradata "ubuntu 10.10" enumerate

VBoxManage.exe setextradata "ubuntu 10.10" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh2/Protocol" TCP
VBoxManage.exe setextradata "ubuntu 10.10" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh2/GuestPort" 22 		
VBoxManage.exe setextradata "ubuntu 10.10" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh2/HostPort"  22 

VBoxManage.exe setextradata "ubuntu 10.10" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh2/Protocol"
VBoxManage.exe setextradata "ubuntu 10.10" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh2/GuestPort"
VBoxManage.exe setextradata "ubuntu 10.10" "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh2/HostPort"
virtualbox/virtualbox_post_install.txt · Last modified: 2013/05/31 11:28 by rkpisanu
www.chimeric.de Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0





Mail