1

I have a Redhat Linux OS installed in one of my lab machines. Now, I am installing the virtualbox in the machine. I would be provided with the image of an operating system (Ubuntu), which I will be using as the guest OS. Now, I would like to configure the network so that the host OS and guest OS are able to interact among themselves. Also, I would like to configure the network so that the guest OS can access the internet too. I read through some documents in the virtualbox documentation and am confused on the MAC address concept. My question is,

  • To accomplish what I have mentioned, do the MAC address of the host OS and guest OS need be the same?
  • The Host OS is already in a network. So to make the guest OS available in the network, should I modify the hosts.allow, hosts.deny configuration file so that I can make the guest OS and host OS interact among themselves? In other words, if I choose DHCP in my guest OS would I be having problems in configuring the network for interaction between the guest OS and host OS?

1 Answer 1

0

The VirtualBox VM will have a different MAC address than the host OS.

VirtualBox offers three different ways to connect a VM to a network, if I recall correctly. You can choose between an isolated network for VMs only, sharing the host's network connection and configuring a direct network connection between the VM and the same network the host is connected too.

4
  • I have a set of IP addresses available in my network. If I assign one of the available IP address to the guest OS and choose "Host Only", would I have configured the network correctly?
    – Ramesh
    Commented Sep 9, 2013 at 15:22
  • @Ramesh No, the option you would use for that case would be "Bridged".
    – user201262
    Commented Sep 9, 2013 at 16:57
  • Thanks Moses. I went through the article in this link. It explained the things clearly. blogs.oracle.com/fatbloke/entry/networking_in_virtualbox1
    – Ramesh
    Commented Sep 9, 2013 at 18:59
  • @Ramesh: link dead Commented Dec 19, 2017 at 19:35

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .