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
- # This file describes the network interfaces available on your system
- # And how to activate them. For more information, see interfaces (5 ).
- # The loopback network interface
- Auto lo
- Iface lo inet loopback
- # The primary network interface
- Auto eth0
- Iface eth0 inet manual
- 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
Restart the network service:
# Service networking restart
Or
#/Etc/init. d/networking restart