Run the following command to check the configuration and install the relevant software: # egrep '^ flags. * (vmx | svm) '/proc/cpuinfo indicates that the CPU supports the VT function. 2. Enable VirtualTechnolege (VT, virtualization technology) of the CPU in the BIOS of the motherboard) 3. Install kvm # yuminstallkvmvirt-* lib1_4. Check whether the kvm module is installed :#
RHEL6.4 Server is the HOST of the VM. Run the following command to check the configuration and install the relevant software:
# Egrep '^ flags. * (vmx | svm)'/proc/cpuinfo
Displays that the CPU supports the VT function.
2. enable Virtual lege (VT, virtualization technology) of the CPU in the BIOS of the motherboard)
3. Install kvm
# Yum install kvm virt-* libvirt
4. Check whether the kvm module is installed:
# Lsmod | grep kvm
The display is similar to the following:
Kvm_intel 53484 9
Kvm 316506 1 kvm_intel
5. Start the service
# Service libmongod start
Qemu on Ubuntu 14.04 is newer than RHEL6.4. As a result, the VM (RHEL6.4) created in Ubuntu14.04 cannot be copied to RHEL6.4HOST. To solve this problem, follow these steps:
1) convert the vm in qcow2 format to raw format on Ubuntu 14.04.
2) define raw vm on RHEL6.4.
Since RHEL6.4 supports raw VMS, you can directly create a raw vm on Ubuntu and copy it to RHEL6.4. However, VMS in raw format occupy too much space and it takes a lot of time to copy them.
Command for viewing the virtual machine image format:
$ Qume-img info vm. img
Image: vm. img
File format: raw
Virtual size: 80 GB
Disk size: 80 GB # This is very small at the time of creation. Sparse files.
Therefore, the following method can be used:
1) Use virt-manager to install kvm vm. img on Ubuntu14.04. The default format is raw. It can be 80 GB.
2) copy the vm. img and vm. xml to RHEL6.4. Note that the directory location must be (links can be used ):
/Etc/libvirt/qemu/vm. xml
/Var/lib/libvirt/images/vm. img
For more details, refer to the highlights on the next page.: Http://www.linuxidc.com/Linux/2014-09/107389p2.htm