1. Install the SOFTWARE:
sudo Install libvirt0 libvirt-bin libvirt-dev virt-manager Qemu-system
2. Configure the Network bridge:
# Interfaces (5)fileUsed by Ifup (8) and Ifdown (8) Auto loiface lo inet loopback# configuration and bridge combination, Startauto eth0iface eth0 inet manualauto br0iface br0 inet Static Address 192.168.1.110Network192.168.1.0netmask255.255.255.0Broadcast192.168.1.255Gateway192.168.1.1bridge_ports eth0 bridge_fd9BRIDGE_STP on #bridge_hello2#bridge_maxage A# Configuration and bridge combination, end
3. Open Virt-manager: If you do not see localhost (some Linux installations have localhost, skip)
FILE--Add connection--QEMU/KVM--Connect to remote host--SSH-- User name: Blank (do not fill in) --localhost--Auto Connect--Connect
Note: If Virt-manager cannot be opened, use the command:python2.7 "/usr/share/virt-manager/virt-manager" to open
4. Create a virtual machine: graphical operation, very easy, if you encounter similar problems:
could not open disk image /sonik_data/software_archive/centos-5.5Permission denied
The source of this problem is the issue of permissions, and the directory (and the parent directory of the recursive) with a readable executable can be chmod o+rw/path/to/imgdir
5. When the virtual machine is running, Ubuntu may appear, always show "connect to the virtual machine system to the graphics console " or other Linux display as " connect the client to the graphics console ", at this point, just make sure the virtual machine is running, Click on the " pause " button and the graphical interface is displayed.