the amount ..... Write to which is where, a lot of understanding!!!!
1. Yesterday the server unexpectedly power off, the results of one of the KVM virtual machine is not up, error
"Error restoring domain:operation failed:failed to read QEMU header"
At first, a new virtual machine, and then put the hard disk on, start, normal start, but the original configuration is not, this means that the virtual disk is not a problem, or think about the perfect recovery, to Google search, found that the original main machine in the process of the current KVM state, and the next start to recover, The virtual state file is saved in/var/lib/libvirt/qemu/save, it should be accidental power loss caused the virtual state file is missing, unable to read and resume normally, the workaround is to delete the virtual state file.
Command:
rm-rf/var/lib/libvirt/qemu/save/(virtual machine name). Save
Then reboot, normal, problem solved.
2.error:usbdevicelistadd:425:internal Error Device 001:003 is already on use
Solution: After removing the USB two hardware, reboot
3. On the Mac SSH remote operation redhat6.2 above the Virt-manager management virtual machine! The result is the following error!
fsxchen:~ apple$ ssh-x [email protected] Virt-manager
Traceback (most recent):
File "/usr/share/virt-manager/virt-manager.py", line 383, in <module>
Main ()
File "/usr/share/virt-manager/virt-manager.py", line 248, in main
cli.setup_i18n (Gettext_app, Gettext_dir)
File "/usr/share/virt-manager/virtmanager/cli.py", line +, in setup_i18n
Locale.setlocale (locale. Lc_all, ")
File "/usr/lib64/python2.6/locale.py", line 513, in setlocale
Return _setlocale (category, Locale)
Locale. error:unsupported locale Setting
Workaround:
Export Lc_all=en_us. UTF-8
Reason: KVM can only use English mode
4. Migrating window 2008 Machine times error
[Email protected] qemu]# Virsh start window-bak-2008
error:failed to start domain window-bak-2008
Error:internal error Process exited while reading console log output:supported machines is:
PC RHEL 6.4.0 pc (alias of rhel6.4.0)
rhel6.4.0 RHEL 6.4.0 PC (default)
rhel6.3.0 RHEL 6.3.0 PC
rhel6.2.0 RHEL 6.2.0 PC
rhel6.1.0 RHEL 6.1.0 PC
rhel6.0.0 RHEL 6.0.0 PC
rhel5.5.0 RHEL 5.5.0 PC
rhel5.4.4 RHEL 5.4.4 PC
rhel5.4.0 RHEL 5.4.0 PC
Solution:
Modify the Red section
<domain type= ' KVM ' >
<name>window-2008_bak</name>
<uuid>9078089c-d7d0-e213-c3a9-d29a8afcb7e1</uuid>
<memory unit= ' KiB ' >4194304</memory>
<currentmemory unit= ' KiB ' >4194304</currentMemory>
<vcpu placement= ' static ' >2</vcpu>
<os>
<type arch= ' x86_64 ' machine= ' rhel6.4.0 ' >hvm</type> #对应 (default)
This article is from the "Rise" blog, please be sure to keep this source http://binbinwudi8688.blog.51cto.com/3023365/1584082
KVM Failure (10)-Various minor surprises