Using KVM to install virtual machines in 〖linux〗ubuntu

Source: Internet
Author: User

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.

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.