Migrate the RHEL6.4 virtual machine created on Ubuntu14.04 to the RHEL6.4 host

Source: Internet
Author: User
Tags svm egrep
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

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.