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 --------------------------------------