1. Introduction
Environment: Ubuntu version is 12.04, virtual machine is Oracle Vm VirtualBox
2. Description
Requirements: now has an Ubuntu system installed, the network configuration is the default choice bridge, can surf the internet, the physical machine can connect the virtual machine operating system;
Now you need to install one more, but do not want to bother to install again, so copy one copy, select the full copy, but the virtual opportunity to the network configuration is also completely copied over, and do not assign one.
Action: Modify the configuration file of the second Ubuntu operating system to complete the network interoperability
(1) Modify the IP information,/etc/network/interfaces, in the original two lines below add the following content, note that the IP network segment and you are consistent, but the last one is not the same, according to the actual situation, the following:
192.168. 1.105 255.255. 255.0 192.168. 1.0 192.168. 1.255 192.168. 1.1
(2) Modify the system operating level,/etc/default/grub, as follows:
grub_cmdline_linux_default="text"
Note: The RunLevel command can view the current operating level of the system
(3) Modify the DNS, or not be able to surf the internet,/etc/resolvconf/resolv.conf.d/base, as follows:
8.8. 8.8
Restart, test physical machine access to the virtual machine system, virtual machine system access to each other, virtual machine access to the Internet, test normal.
Virtual Machine Linux----centos set fixed IP