Red Hat Training
A Red Hat training course is available for Red Hat Enterprise Linux
18.24. 解釋錯誤訊息
您收到下列錯誤:
failed domain creation due to memory shortage, unable to balloon domain0
網域可能會因為 RAM 不足而失敗。如果空間 domain0 無法增加足夠的空間來新建立客座端。您可以檢查
xend.log
來找出這個錯誤:
[2006-12-21] 20:33:31 xend 3198] DEBUG (balloon:133) Balloon: 558432 Kib free; 0 to scrub; need 1048576; retries: 20 [2006-12-21] 20:33:31 xend. XendDomainInfo 3198] ERROR (XendDomainInfo: 202 Domain construction failed
You can check the amount of memory in use by domain0 by using the
xm list Domain0
command. If domain0 is not ballooned down, you can use the command "xm mem-set Domain-0 NewMemSize"
to check memory.
您收到下列錯誤:
wrong kernel image: non-PAE kernel on a PAE
This message indicates that you are trying to run an unsupported guest kernel image on your Hypervisor. This happens when you try to boot a non-PAE paravirtual guest kernel on a RHEL 5.1 hypervisor. Red Hat Virtualization only supports guest kernels with PAE and 64bit architectures.
輸入這個指令:
[root@smith]# xm create -c va base Using config file "va-base" Error: (22, 'invalid argument') [2006-12-14 14:55:46 xend.XendDomainInfo 3874] ERRORs (XendDomainInfo:202) Domain construction failed Traceback (most recent call last) File "/usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 195 in create vm.initDomain() File " /usr/lib/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 1363 in initDomain raise VmError(str(exn)) VmError: (22, 'Invalid argument') [2006-12-14 14:55:46 xend.XendDomainInfo 3874] DEBUG (XenDomainInfo: 1449] XendDlomainInfo.destroy: domin=1 [2006-12-14 14:55:46 xend.XendDomainInfo 3874] DEBUG (XenDomainInfo: 1457] XendDlomainInfo.destroy:Domain(1)
如果您需要執行 32 位元或是非 PAE 核心,您必須執行以完整虛擬化虛擬主機來執行客座端。至於半虛擬化客座端,如果您需要執行 32 位元 PAE 客座端,則您必須擁有 32 位元 PAE 管理程序;如果您需要執行 64 位元 PAE 客座端,則您必須擁有 64 位元管理程序。對於完整虛擬化客座端您必須在 64 位元管理程序上執行 64 位元客座端。RHEL 5 i686 的 32 位元 PAE 管理程序僅支援 32 位元 PAE 半虛擬化與 32 位元完整虛擬化客座端作業系統。64 位元管理程序僅支援 64 位元半虛擬化客座端。
This happens when you move the full virtualized HVM guest onto a RHEL 5.1 system. Your guest may fail to boot and you will see an error in the console screen. Check the PAE entry in your configuration file and ensure that pae=1.You should use a 32bit distibution.
您收到下列錯誤:
Unable to open a connection to the Xen hypervisor or daemon
這會在 virt-管理應用程式啟動失敗時發生。在
/etc/hosts
設定檔案中沒有本地主機項目時,這個錯誤便會發生。如果本地主機項目為啟動,請檢查該檔案。下列為一個不正確的本地主機項目之例子:
# Do not remove the following line, or various programs # that require network functionality will fail. localhost.localdomain localhost
下列為正確本地主機項目之例子:
# Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 localhost.localdomain localhost localhost.localdomain. localhost
您會收到下列錯誤訊息(於
xen-xend.log file
中):
Bridge xenbr1 does not exist!
This happens when the guest's bridge is incorrectly configured and this forces the Xen hotplug scipts to timeout. If you move configuration files between hosts, you must ensure that you update the guest configuration files to reflect network topology and configuration modifications. When you attempt to start a guest that has an incorrect or non-existent Xen bridge configuration, you will receive the following errors:
[root@trumble virt]# xm create r5b2-mySQL01 Using config file " r5b2-mySQL01" Going to boot Red Hat Enterprise Linux Server (2.6.18.-1.2747 .el5xen) kernel: /vmlinuz-2.6.18-12747.el5xen initrd: /initrd-2.6.18-1.2747.el5xen.img Error: Device 0 (vif) could not be connected. Hotplug scripts not working.
此外,
xend.log
會顯示下列錯誤訊息:
[2006-11-14 15:07:08 xend 3875] DEBUG (DevController:143) Waiting for devices vif [2006-11-14 15:07:08 xend 3875] DEBUG (DevController:149) Waiting for 0 [2006-11-14 15:07:08 xend 3875] DEBUG (DevController:464) hotplugStatusCallback /local/domain/0/backend/vif/2/0/hotplug-status [2006-11-14 15:08:09 xend.XendDomainInfo 3875] DEBUG (XendDomainInfo:1449) XendDomainInfo.destroy: domid=2 [2006-11-14 15:08:09 xend.XendDomainInfo 3875] DEBUG (XendDomainInfo:1457) XendDomainInfo.destroyDomain(2) [2006-11-14 15:07:08 xend 3875] DEBUG (DevController:464) hotplugStatusCallback /local/domain/0/backend/vif/2/0/hotplug-status
欲解決這個問題,您必須編輯您的客座端設定檔,並修改
vif
項目。當您找到設定檔的 vif
項目,請將 xenbr0
視為預設橋接,確保正確項目類似於下列:
# vif = ['mac=00:16:3e:49:1d:11, bridge=xenbr0',]
您收到這些 python 錯誤:
[root@python xen]# xm shutdown win2k3xen12 [root@python xen]# xm create win2k3xen12 Using config file "win2k3xen12". /usr/lib64/python2.4/site-packages/xenxm/opts.py:520: Deprecation Warning: Non ASCII character '\xc0' in file win2k3xen12 on line 1, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details execfile (defconfig, globs, locs,) Error: invalid syntax 9win2k3xen12, line1)
Python 在設定檔為無效(或不正確)時會產生這些訊息。欲解決這個問題,您必須修正不正確的設定檔,或者您可以建立一個新的設定檔。