UbuntuServer12.10 KVM installation and creation of virtual machines

Source: Internet
Author: User
Virtualization Technology is rampant. KVM is a Linux kernel-level virtual technology. this article summarizes how to build a virtual machine on UbuntuServer12.10. the process is complex, but strictly following the instructions in this article, you can certainly create your own virtual machine. for the installation process of the HOST machine (UbuntuServer12.10), refer to my previous article. 1. After the strongtuserver12.10amd64host HOST is installed, run the following command on the HOST to upgrade it.

Virtualization Technology is rampant. KVM is a Linux kernel-level virtual technology. this article summarizes how to build a virtual machine on Ubuntu Server12.10. the process is complex, but strictly following the instructions in this article, you can certainly create your own virtual machine. for how to install the HOST machine (Ubuntu Server 12.10), see my previous article.

1. After the Ubuntu Server 12.10 amd64 HOST is installed, run the following command on the HOST to upgrade the system:
# Echo 'acquire: http: Proxy "http: // 10.112.18.178: 3142"; '>/etc/apt/conf

Where:

Http: // 10.112.18.178: 3142 is the IP address and port of your cache server. If you do not have this cache server, ignore the previous sentence.

For more information about cache server, see: http://www.linuxidc.com/Linux/2012-10/72215.htm

# Apt-get update

# Apt-get upgrade

# Apt-get install python-vm-builder

My friend liked emacs very much, so he strongly suggested that I add the following sentence:


# Apt-get install emacs

2. Fix python bugs
# Wget-O./vmpatch. py. diff https://launchpadlibrarian.net/120169451/usr_share_pyshared_VMBuilder_plugins_ubuntu_dapper.py.diff

# Cp/usr/share/pyshared/VMBuilder/plugins/ubuntu/dapper. py dapper. py. bk

# Patch/usr/share/pyshared/VMBuilder/plugins/ubuntu/dapper. py./vmpatch. py. diff

3. Configure the HOST machine Network
Change your network configuration file as follows:

/Etc/network/interfaces

Note that you should change the following IP address to the one suitable for your network:

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

/Etc/network/interfaces

  1. # This file describes the network interfaces available on your system
  2. # And how to activate them. For more information, see interfaces (5 ).
  3. # The loopback network interface
  4. Auto lo
  5. Iface lo inet loopback
  6. # The primary network interface
  7. Auto eth0
  8. Iface eth0 inet manual
  9. Auto br0
  10. Iface br0 inet static
  11. Address 10.112.18.161
  12. Network 10.112.18.0
  13. Netmask 255.255.255.0
  14. Broadcast 10.112.18.255
  15. Gateway 10.112.18.254
  16. Dns-nameservers 8.8.8.8 8.8.4.4
  17. Bridge_ports eth0
  18. Bridge_fd 9
  19. Bridge_hello 2
  20. Bridge_maxage 12

Restart the network service:

# Service networking restart

Or

#/Etc/init. d/networking restart

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.