About Me

Tuesday, January 24, 2012

How To Install Ubuntu on VBOX and How To Connect it From Host to Guest

In this note, i will try to install Ubuntu on VM VirtualBox in Backtrack.
First, Open the Virtual Box Machine. In this note, i use Oracle VM VirtualBox Machine.
Then, we choose on Toolsbar : New. Then We Click Next Button.
Then type the Name of the virtual device which we made. In my device, i typed Ubuntu. After that we click Next again.
Then we made size of the RAM Memory which we will use. I use 512MB.
Then we click Next again.


In this session we click next again and then next again until you see a menu to specify how much memory you want to use in your Windows virtual box like a picture in below.







In my virtual box, i use 6 GB Memory. Then click next again and then click Create and Create again.
Then we click start on Ubuntu and then click next.
Choose a location of Ubuntu which you want to install.

Then click start and finally you will see to the installation Ubuntu. Last you just install the Ubuntu like you install Ubuntu usually.


This picture is a picture to create a swap partition.



This picture is a picture to create a system root partition.

This picture is show you the part where you must type your username and your password in Ubuntu.





Now, we Connect a host to guest where Backtrack will be a host and Ubuntu will be a guest.
In Virtual Box, we click menu File and then choose Preferences.
And Then choose Network on the Menu.Click Host-Only network and then click Ok.



Next, Start Ubuntu on VM Virtal Box, and choose and click on Menu Devices -> Network Adapters
Choose Menu networks again then in Menu Toolsbar1 on column Attached To, choose Host-Only Adapters and in column Name, choose vboxnet0 then Click OK.


Now, we check the IP on Ubuntu VW VirtualBox(Guest) and IP on Backtrack(Host).
IP address on my Ubuntu is 192.168.56.102 and IP address on my Backtrack is 192.168.56.1.
Now i try to Connect from Backtrack(Host) to Windows(Guest).
and the result is...

root@bt:~# ping 192.168.56.102
PING 192.168.56.102 (192.168.56.102) 56(84) bytes of data.
64 bytes from 192.168.56.102: icmp_seq=1 ttl=64 time=0.559 ms
64 bytes from 192.168.56.102: icmp_seq=2 ttl=64 time=0.545 ms
64 bytes from 192.168.56.102: icmp_seq=3 ttl=64 time=0.439 ms
^C
--- 192.168.56.102 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1998ms
rtt min/avg/max/mdev = 0.439/0.514/0.559/0.056 ms

Now i try to Connect from Ubuntu(Guest) to Backtrack(Host).
and the result is...





No comments:

Post a Comment