Project

General

Profile

VirtualBox questions

Added by Rich Bagdazian over 13 years ago

I’m trying to get file sharing set up with my virtual box Ubuntu so I can pass files into the system from the Windows world. The following question may be related...

My Ubuntu is apparently getting an address from a DHCP server, but it doesn’t look right and is in a different sub net than the address assigned to both my windows machine and the mityomap board which are on the proper subnet. From Ubuntu, I can get out to the internet and browse websites, etc, but my windows can’t ping the ip address that ubuntu is showing in ifconfig dump.

Have you come across this before?


Replies (2)

RE: VirtualBox questions - Added by Michael Williamson over 13 years ago

Hi Rich,

I'm going to link you to the relavent section on Oracle's VirtualBox website. Essentially, virtual box defaults to setting up a "virtual network" for your guest OS (Unbuntu in this case) served by a NAT (network address translation) server. So the IP address you get is likely going to be a non-standard IP on a funky subnet (I think Virtualbox uses a random network). However, it has a gateway that routes through your PC, and your PC will honor (via NAT, just like a router you might use at home) any outbound requests. So surfing the web, or ftp'ing, etc. will work.

To allow inbound connections, you can do a couple of things. The first option is to do port forwarding, which is described in the Virtualbox manual. You'd need to map all the connections for the services you want to provide (ssh, tftp, nfs, etc.). This method is useful if you're IT guys don't allow you to drop a new machine on your intranet. Most times, you can switch to the next option, which is what I do.

A simpler option is to shutdown your VM and in the virtual box network settings for the Ubuntu VM change the option from NAT to "bridged networking". This will essentially create a "virtual adaptor" that is on the same subnet as your PC, and if you have a DHCP server (with available IP addresses to lease) you should get a unique IP address for your guest OS. Then you're guest Ubuntu VM will be visible to any other machine on the network (including your MityDSP-L138) and you can set up whatever services you need.

All of this should be covered in the documentation for the Virtualbox program.

Hope this helps.

-Mike

RE: VirtualBox questions - Added by Rich Bagdazian over 13 years ago

Thanks Mike,
That did the trick. Should have remembered from similar issue with vmware.
-Rich

    (1-2/2)
    Go to top
    Add picture from clipboard (Maximum size: 1 GB)