Differences between Ubuntu and server for KVM Installation

Source: Internet
Author: User
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:

  1. Auto br0
  2. Iface br0 inet static
  3. Address 10.112.18.161
  4. Network 10.112.18.0
  5. Netmask 255.255.255.0
  6. Broadcast 10.112.18.255
  7. Gateway 10.112.18.254
  8. Dns-nameservers 8.8.8.8 8.8.4.4
  9. Bridge_ports eth0
  10. Bridge_fd 9
  11. Bridge_hello 2
  12. Bridge_maxage 12
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.