KVM Virtual machines under Linux

Source: Internet
Author: User

The use of KVM under Linux

  1. CPU Open VT

  2. Installing the KVM Suite

  3. Add BR0 Bridging Network port

  4. Create a virtual machine disk, or create the disk when you install the virtual machine.

  5. Installing virtual machines

  6. Using virtual machines

  7. Start a new virtual machine by using the installed virtual machine disk as the original image

    1. To turn off installed virtual machines

    2. Copy the installed virtual machine disks

    3. Re-define the XML file for a virtual machine with the following details:


    4. <domain type= ' KVM ' >    <name>vm01</name>     <memory>4096000</memory>    <currentMemory>4096000</currentMemory>     <vcpu>2</vcpu>   <os>       <type arch= ' x86_64 '  machine= ' pc ' >hvm</type>       <boot dev= ' HD '/>    </os>   <features>      <acpi/>     <apic/>     < pae/>   </features>   <clock offset= ' localtime '/>    <on_poweroff>destroy</on_poweroff>   <on_reboot>restart</on_ reboot>   <on_crash>destroy</on_crash>   <devices>      <emulAtor>/usr/libexec/qemu-kvm</emulator>     <disk type= ' file '   Device= ' disk ' >      <driver name= ' qemu '  type= ' Qcow2 '/>        <source file= '/storage/instance/vm01/centos6.6.qcow2 '/>        <target dev= ' HDA '  bus= ' IDE '/>      </disk>     <disk type= ' file '  device= ' disk ' >       <driver name= ' qemu '  type= ' Qcow2 '/>        <source file= '/storage/instance/vm01/disk.qcow2 '/>        <target dev= ' HDB '  bus= ' IDE '/>     </disk>      <disk type= ' file '  device= ' cdrom ' >       < Source file= '/iso/centos-6.6-x86_64-bin-dvd1.iso '/>       <target dev= ' hdc '  bus= ' IDE '/>       </disk>     <interface  type= ' bridge ' >      <source bridge= ' br0 '/>      </interface>    <input type= ' mouse '  bus= ' PS2 '/>      <graphics type= ' VNC '  port= '-1 '  autoport= ' yes '  listen =   ' 0.0.0.0 '  keymap= ' en-US '/>   </devices> </domain>
    5. To start the virtual machine you just created

    6. Done

KVM Virtual machines under Linux

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.