今天终于解决Domain 'vm125' does not exist这个问题了。
使用xm create -c /etc/xen/vm125/vm125.cfg提示Domain 'vm125' does not exist。
去查看xen日志(/var/log/xen/xend.log),得到如下内容。
[2011-12-09 00:43:27 xend.XendDomainInfo 3019] DEBUG (XendDomainInfo:261) XendDomainInfo.create(['vm', ['name', 'vm125'], ['memory', 256], ['vcpus', 2], ['cpu_weight', 256], ['bootloader', '/usr/bin/pygrub'], ['image', ['linux', ['ramdisk', '/var/lib/xen/boot_ramdisk.1IAsn3'], ['kernel', '/var/lib/xen/boot_kernel.QPyouW'], ['args', 'console=xvc0 root=/dev/sda1 ro']]], ['device', ['vbd', ['uname', 'phy:/dev/lvmRaid/vm125_img'], ['dev', 'sda1'], ['mode', 'w']]], ['device', ['vbd', ['uname', 'phy:/dev/lvmRaid/vm125_swap'], ['dev', 'sda2'], ['mode', 'w']]], ['device', ['vif', ['ip', '173.252.200.233'], ['mac', '00:16:3e:80:51:d4'], ['vifname', 'vifvm125.0'], ['rate', '384KB/s']]]])
[2011-12-09 00:43:27 xend.XendDomainInfo 3019] DEBUG (XendDomainInfo:383) parseConfig: config is ['vm', ['name', 'vm125'], ['memory', 256], ['vcpus', 2], ['cpu_weight', 256], ['bootloader', '/usr/bin/pygrub'], ['image', ['linux', ['ramdisk', '/var/lib/xen/boot_ramdisk.1IAsn3'], ['kernel', '/var/lib/xen/boot_kernel.QPyouW'], ['args', 'console=xvc0 root=/dev/sda1 ro']]], ['device', ['vbd', ['uname', 'phy:/dev/lvmRaid/vm125_img'], ['dev', 'sda1'], ['mode', 'w']]], ['device', ['vbd', ['uname', 'phy:/dev/lvmRaid/vm125_swap'], ['dev', 'sda2'], ['mode', 'w']]], ['device', ['vif', ['ip', '173.252.200.233'], ['mac', '00:16:3e:80:51:d4'], ['vifname', 'vifvm125.0'], ['rate', '384KB/s']]]]
[2011-12-09 00:43:27 xend.XendDomainInfo 3019] DEBUG (XendDomainInfo:507) parseConfig: result is {'features': None, 'hpet': None, 'image': ['linux', ['ramdisk', '/var/lib/xen/boot_ramdisk.1IAsn3'], ['kernel', '/var/lib/xen/boot_kernel.QPyouW'], ['args', 'console=xvc0 root=/dev/sda1 ro']], 'cpus': None, 'vcpu_avail': None, 'backend': [], 'uuid': None, 'on_reboot': None, 'cpu_weight': 256.0, 'memory': 256, 'cpu_cap': None, 'localtime': None, 'timer_mode': None, 'start_time': None, 'on_poweroff': None, 'on_crash': None, 'device': [('vbd', ['vbd', ['uname', 'phy:/dev/lvmRaid/vm125_img'], ['dev', 'sda1'], ['mode', 'w']]), ('vbd', ['vbd', ['uname', 'phy:/dev/lvmRaid/vm125_swap'], ['dev', 'sda2'], ['mode', 'w']]), ('vif', ['vif', ['ip', '173.252.200.233'], ['mac', '00:16:3e:80:51:d4'], ['vifname', 'vifvm125.0'], ['rate', '384KB/s']])], 'bootloader': '/usr/bin/pygrub', 'maxmem': None, 'shadow_memory': None, 'name': 'vm125', 'bootloader_args': None, 'vcpus': 2, 'cpu': None}
[2011-12-09 00:43:27 xend.XendDomainInfo 3019] DEBUG (XendDomainInfo:1976) XendDomainInfo.construct: None
[2011-12-09 00:43:27 xend 3019] DEBUG (balloon:146) Balloon: 2876092 KiB free; need 4096; done.
[2011-12-09 00:43:27 xend.XendDomainInfo 3019] DEBUG (XendDomainInfo:2151) XendDomainInfo.initDomain: 21 256.0
[2011-12-09 00:43:27 xend.XendDomainInfo 3019] DEBUG (XendDomainInfo:2192) _initDomain:shadow_memory=0x0, maxmem=0x100, memory=0x100.
[2011-12-09 00:43:27 xend 3019] DEBUG (balloon:146) Balloon: 2876084 KiB free; need 262144; done.
[2011-12-09 00:43:27 xend 3019] INFO (image:139) buildDomain os=linux dom=21 vcpus=2
[2011-12-09 00:43:27 xend 3019] DEBUG (image:208) domid = 21
[2011-12-09 00:43:27 xend 3019] DEBUG (image:209) memsize = 256
[2011-12-09 00:43:27 xend 3019] DEBUG (image:210) image = /var/lib/xen/boot_kernel.QPyouW
[2011-12-09 00:43:27 xend 3019] DEBUG (image:211) store_evtchn = 1
[2011-12-09 00:43:27 xend 3019] DEBUG (image:212) console_evtchn = 2
[2011-12-09 00:43:27 xend 3019] DEBUG (image:213) cmdline = console=xvc0 root=/dev/sda1 ro
[2011-12-09 00:43:27 xend 3019] DEBUG (image:214) ramdisk = /var/lib/xen/boot_ramdisk.1IAsn3
[2011-12-09 00:43:27 xend 3019] DEBUG (image:215) vcpus = 2
[2011-12-09 00:43:27 xend 3019] DEBUG (image:216) features =
[2011-12-09 00:43:44 xend.XendDomainInfo 3019] ERROR (XendDomainInfo:273) Domain construction failed
Traceback (most recent call last):
File "/usr/lib64/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 266, in create
vm.initDomain()
File "/usr/lib64/python2.4/site-packages/xen/xend/XendDomainInfo.py", line 2237, in initDomain
raise VmError(str(exn))
VmError: (1, 'Internal error', 'xc_dom_do_gunzip: inflate failed (rc=-5)\n')
[2011-12-09 00:43:45 xend.XendDomainInfo 3019] DEBUG (XendDomainInfo:2387) XendDomainInfo.destroy: domid=21
[2011-12-09 00:43:45 xend.XendDomainInfo 3019] DEBUG (XendDomainInfo:2312) UUID Created: False
[2011-12-09 00:43:45 xend.XendDomainInfo 3019] DEBUG (XendDomainInfo:2313) Devices to release: [], domid = 21
[2011-12-09 00:43:45 xend.XendDomainInfo 3019] DEBUG (XendDomainInfo:2317) Releasing PVFB front-end devices (uuid not created)...
[2011-12-09 00:43:45 xend.XendDomainInfo 3019] DEBUG (XendDomainInfo:2325) Releasing PVFB backend devices ...
有错误:VmError: (1, 'Internal error', 'xc_dom_do_gunzip: inflate failed (rc=-5)\n')
经过多方查找答案及检查,原来是母鸡硬盘满了。释放一些空间再进行启动就ok了。
(责任编辑:IT) |