Change IP address of a Virtual Machine running linux ubuntu on windows 8?

I currently have created two virtual machines in VirtualBox both running linux Ubuntu 14.04, and now want to have them have different IP addresses. (By default, they have the same IP address.) However, when I go to the Network settings of a virtual machine, and try to use the “Bridged Adapter” instead of the “NAT” network, the Bridged Adapter simply offers “Not Selected”, and no other network choice.

Thus, does anyone know how I can change the IP address of one of my virtual machines in another manner?

Asked By: jj172


I have used Virtual box also for testing. From windows 95 to 7 and Linux ;).

I have used the NAT mode and then assign an static ip and always this has been working in any OS. This will work inside the same ip range from the LAN.

Also please refer to this part of the documentation I guess this is a better way and the one required for yourself

Answered By: mario ruiz

Virtualbox is acting as a DHCP server for these virtual machines. You can either define static IP addresses for these machines, or simply set the IP address manually on each machine. If you don’t know how to set a static IP address on your Linux system you need to learn how to do this, so I would suggest you go with the second option.

There are detailed instructions on the Ubuntu site for setting a static IP address. It is not difficult, but you need to know a few things before you do it and the instructions are much more detailed than what I could write here. The instructions for configuring your network settings start on page 33 of official Ubuntu Server Guide.

Answered By: brwtx

Instead of setting a static IP like others suggested, I simply enabled “Bridged Adapter Mode” under “Network Connections”, and then this made it such that each new virtual machine I made automatically had a new IP address.

If you click “Bridged Adapter Mode” and it doesn’t have any choices (i.e.the only option is “Not Selected”), then you can simply go to “Network Connections” on your host machine, right-click on the network, click “properties”, then “Install”, then “Service”, then “Add”, then Install “VirtualBox Bridged Networking Driver”. After doing so (and restarting my computer), it started giving me different IP addresses for each new virtual machine.

Answered By: jj172
Categories: Answers Tags: ,
Answers are sorted by their score. The answer accepted by the question owner as the best is marked with
at the top-right corner.