Ubuntu Settings for Network on Virtual Box

1 view
Skip to first unread message

Arche Type

unread,
Oct 15, 2009, 12:14:58 AM10/15/09
to kcj...@googlegroups.com
One of the member of the group ask about UBUNTU Guest Network using Virtual Box.

I did the following settings on my Ubuntu Virtual Box - 64 Bit and 32 Bit

Adapter 1: PCnet-FAST III (NAT)
Adapter 2: PCnet-FAST III (Host-only adapter, 'VirtualBox Host-Only Ethernet Adapter')

After setting it up, I edit the /etc/network/interfaces and replace the content with:

auto lo
iface lo inet loopback


and after changing it type the command:

sudo /etc/init.d/networking restart

then restart your ubuntu guest.

If you want to Ping from XP Host using the Computer Name of your Ubuntu Guest, you need to add a hosts alias:

Edit the file C:\WINDOWS\system32\drivers\etc\hosts and add a line of code and save it

guest_ipaddress guest_hostname
ex:
192.168.1.101 ubuntuguest

Thanks,


David Mitchell

unread,
Oct 15, 2009, 10:38:04 AM10/15/09
to kcj...@googlegroups.com
Thanks!

I didn't have Adapter 2 set up. That fixed it!

--David Mitchell
http://www.withaguide.com

Archetype

unread,
Oct 15, 2009, 11:26:11 AM10/15/09
to KCJava
You can also run VMWare inside a VirtualBox or VMWare inside a VMWare.
But I am not sure if you can run Virtual Box inside VMWare, maybe it
should work also.

But because of VM is a memory killer, its advisable to use a Host
Machine with 64 bit OS and have more than 4GB of physical memory.


On Oct 15, 10:38 am, David Mitchell <david.mitch...@gmail.com> wrote:
> Thanks!
>
> I didn't have Adapter 2 set up. That fixed it!
>
> --David Mitchellhttp://www.withaguide.com
>
> On Wed, Oct 14, 2009 at 11:14 PM, Arche Type <archet...@gmail.com> wrote:
> > One of the member of the group ask about UBUNTU Guest Network using Virtual
> > Box.
>
> > I did the following settings on my Ubuntu Virtual Box - 64 Bit and 32 Bit
>
> > Adapter 1: *PCnet-FAST III (NAT)*
> > Adapter 2: *PCnet-FAST III (Host-only adapter, 'VirtualBox Host-Only
> > Ethernet Adapter')*
>
> > After setting it up, I edit the */etc/network/interfaces *and replace the
> > content with:
>
> > *auto lo
> > iface lo inet loopback*
>
> > and after changing it type the command:
>
> > *sudo /etc/init.d/networking restart*
>
> > then restart your ubuntu guest.
>
> > If you want to Ping from XP Host using the Computer Name of your Ubuntu
> > Guest, you need to add a hosts alias:
>
> > Edit the file *C:\WINDOWS\system32\drivers\etc\hosts* and add a line of
> > code and save it
>
> > *guest_ipaddress guest_hostname*
> > ex:
> > *192.168.1.101 ubuntuguest*
>
> > Thanks,
>
>

michael

unread,
Oct 17, 2009, 4:49:15 PM10/17/09
to KCJava

I'd second running 64-bit OS's (vs. PAE) in favor of taking advantage
of more memory... But I did notice a common 'gotcha' if trying to run
your "guest" as a 64-bit OS (regardless if your "host" is 32 or 64-
bit): you will have to check your (host) BIOS settings to make sure
your Virtualization / Virtual Machine Monitor (VMM) settings are
enabled to allow the "guest" to run 64-bit. In my case, this was under
Dell:

* http://www.petri.co.il/virtual_run_a_64_bit_guest_operating_system_in_vmware.htm
* http://communities.vmware.com/message/1101482

In my case, on two different Dell's, there were either 1 or 3 settings
to "enable" (turn ON) in BIOS (all just related to "virtualization" --
quite straight-forward). I was running 64-bit Ubuntu on the host,
built & installed OpenSolaris x64 gueset, and was surprised that the
"guest" (OpenSolaris) couldn't run 64-bit apps (and "uname" reported
it was not 64-bit). Having already spendt a few hours tweaking the
desktop & installing all sorts of software, I was a bit disappointed
(I already had a 32-bit OpenSolaris VM). HOWEVER: after setting my
BIOS settings on the "host", the guest automatically was 64-bit, too.
No need to re-install... :-)

-m


ps: It's been a couple years since I've tried, but I recall getting an
error when running a VM inside of a VM under VMware (only tried out of
curiosity). But this was under 1.0.something (VMware server).
Regardless, that scenario is probably not going to be terribly
likely / useful? (academic interest)?
Reply all
Reply to author
Forward
0 new messages