Use KVM + Qemu to build a virtual machine in Ubuntu

Source: Internet
Author: User

Use KVM + Qemu to build a virtual machine in Ubuntu

Use KVM + Qemu to build a virtual machine in Ubuntu

1. Check whether the cpu is supported and output vmx. In the virtual machine, remember to check the IntelVT technology to the options

Grep vmx/proc/cpuinfo

2. Install kvm and qemu

Apt-get install kvm qemu libvirt-bin restart inst virt-manager virt-viewer

3. Check whether kvm is successfully installed.

Virsh-c qemu: // system list

4. Run the qemu-img command to create a virtual disk.

Qemu-img create-f qcow2 ubuntu. img 10G

5. Install the system

-Qemu-system-x86_64-hda/opt/kvm/ubuntu1204.img

-Cdrom/opt/kvm/ubuntu-12.04-server-amd64.iso-boot d-m 1024

6. Start the virtual machine. In fact, you can download ubuntu to img, so you don't have to reinstall the device. Ubuntu has made a lot of efforts in cloud computing.

Qemu-system-x86_64 ubuntu. img-m 1024

-------------------------------------- Split line --------------------------------------

How to add a hard disk for a Linux Virtual Machine in KVM

Getting started with Linux: KVM for Virtual Machine experience

RHEL6 KVM virtualization creates a bridge NIC-Bridge

RedHat Linux KVM Virtual Machine bridging

Installation/bridging settings of KVM in CentOS 5.6/virtual machine creation and operation

The/bin/qemu-KVM problem cannot be found when the kvm virtual machine is installed with libvirt In Ubuntu.

Install and configure the KVM Virtual Machine in RedHat6.5

-------------------------------------- Split line --------------------------------------

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.