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 hypervisor를 가지고 있어야 하며, 64비트 PAE 게스트를 실행하려면 64비트 PAE hypervisor를 가지고 있어야 합니다. 완전 가상화 게스트에는 64비트 hypervisor에서 64비트 게스트를 실행해야 합니다. RHEL 5 i686에서 32비트 PAE hypervisor는 단지 32비트 PAE 반 가상화와 32비트 완전 가상화 게스트 OS만을 지원하며, 64비트 hypervisor는 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
이 오류 메세지는 가상 장치 관리자 프로그램이 시작하지 못하고 실패하였을 때 볼 수 있으며, 주로 /etc/hosts 구성 파일에 localhost 항목이 없을 때 발생합니다. 파일을 확인하여 localhost 항목이 활성화되어 있는지 확인하시기 바랍니다. 아래 예제는 부정확한 localhost 항목을 보여줍니다:
# Do not remove the following line, or various programs
# that require network functionality will fail.
localhost.localdomain localhost
아래 예제는 정확한 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 항목을 수정하여 편집해야 합니다. 디폴트 브리지로 xenbr0를 사용하고 있다고 가정하면, 구성 파일의 vif 항목은 다음과 비슷할 것입니다:
# vif = ['mac=00:16:3e:49:1d:11, bridge=xenbr0',]
다음과 같은 python depreciation 오류를 볼 수 있습니다:
[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은 유효하지 않은(또는 부정확한) 구성파일에서 이 오류 메시지를 생성합니다. 이 문제를 해결하려면 부정확한 구성 파일을 수정하거나 새로운 구성 파일을 생성해야 합니다.