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.