Migrating xen Virtual Machine images from RHEL (32-bit) to centos (64-bit)

Source: Internet
Author: User

Environment]

Dell r905 server (4-core CPU, 32 GB memory, 1.8 TB hard disk)

The original operating system is RHEL 5.2 i386. The virtual machine uses xen, and several virtual machines are enabled on it.

[Problem]

Because the 32-bit operating system does not recognize large memory (only recognizes 14 GB), reinstall the operating system to centos 5.6 x86_64.

The Virtual Machine image and configuration file are backed up to the NFS server before being reinstalled, and copied back after being reinstalled.

However, when the VM is started, it is found that it cannot be started normally, the VM status is always running, VNC cannot be connected, ssh cannot be connected, and the VM cannot be pinged, virtual machines can only be shut down with shutdown-> force off.
When you use virt-manager to connect to a virtual machine using VNC, the following message is displayed:

Console is not yet active for guest

[Solution]

View the xen configuration file

[Root @ 211-98-26-3 cacti_collector] # Cat cacti_collector
Name = "cacti_collector"
UUID = "3d7239be-c5b3-ef78-db6b-9381b26860bd"
Maxmem = 2048
Memory = 2048
Vcpus = 2
Builder = "hvm"
Kernel = "/usr/lib/xen/boot/hvmloader"
Boot = "C"
PAE = 1
ACPI = 1
APIC = 1
Localtime = 0
On_poweroff = "Destroy"
On_reboot = "restart"
On_crash = "restart"
Device_model = "/usr/Lib/Xen/bin/qemu-DM"# This sentence should be changed to =>Device_model = "/usr/Lib64/Xen/bin/qemu-DM"
SDL = 0
VNC = 1
Vncunused = 1
Vnclisten = "127.0.0.1"
Keymap = "En-us"
Disk = ["file:/bak/cacti_collector/hda. IMG, hda, W ",", HDC: CDROM, R "," file:/bak/cacti_collector/HDB. IMG, HDB, W "," file:/bak/cacti_collector/HDD. IMG, HDD, W "]
VIF = ["Mac = 00: 16: 3E: 6f: A4: 8e, bridge = xenbr0, script = VIF-bridge"]
Parallel = "NONE"
Serial = "Pty"

After modification, save the configuration file and restart the VM.

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.