Because Ubuntu12.10 is just released, try it now. The installation of KVM is a bit different this time. The virtualserver is selected when the external tuserver is installed. This will cause ubuntu-virt-server and kvm-ipxe to be installed on the system. Therefore, after entering the system, you only need to install: apt-getinstallpython-vm-builder and then do not need to log out and log on again.
Because Ubuntu 12.10 is just released, try it now. The installation of KVM is a bit different this time. When installing Ubuntu Server, select virtual server.
This will cause ubuntu-virt-server and kvm-ipxe to be installed on the system.
Therefore, after entering the system, you only need to install:
Apt-get install python-vm-builder
You do not need to log out and log on again. This is very helpful for automated deployment. Therefore, we recommend that you select virtual server when installing Ubuntu.
Bridge-utils has been installed. No installation is required.
By the way, use the new command to restart the network:
Service networking restart
Note: currently, the host machine cannot connect to the Internet.
The dhclient br0 command does not work either, and the error: RTNETLINK answers: File exists
Check the route table:
Ip route list
Default via 10.112.18.1 dev br0
10.112.18.0/24 dev br0 proto kernel scope link src 10.112.18.161
192.168.122.0/24 dev virbr0 proto kernel scope link src 192.168.122.1
The difference between 12.04 and 254 is that the default rule already exists, but the IP address of the gateway is incorrect. It should be. Therefore, use the following statement to delete the rule and add the correct rule:
Route del default
Route add default gw 10.112.18.254 br0
Good. Internet connection is now available.
Continue to think about the reason why the gateway is set to 10.112.18.1 because the NIC settings copied from the Internet are not modified.
Sure enough, modify the configuration of the br in the/etc/network/interfaces file:
- Auto br0
- Iface br0 inet static
- Address 10.112.18.161
- Network 10.112.18.0
- Netmask 255.255.255.0
- Broadcast 10.112.18.255
- Gateway 10.112.18.254
- Dns-nameservers 8.8.8.8 8.8.4.4
- Bridge_ports eth0
- Bridge_fd 9
- Bridge_hello 2
- Bridge_maxage 12