hi to all,
i am
running debian lenny..i have installed xen in my system to craete image i am
getting error as follow
#xm create win02.cfg
Using config file "/etc/xen/win02.cfg".
Error: Disk image does not exist: /home/xen/domains/win01/disk.img
log file output xend.log is
[2008-06-19 12:41:49 xend.XendDomainInfo 3049] DEBUG (XendDomainInfo:190)
XendDomainInfo.create(['vm', ['name', 'win02'], ['memory', '256'], ['vcpus',
1], ['image', ['hvm', ['kernel', '/usr/lib/xen-3.0.3-1/boot/hvmloader'],
['vcpus', 1], ['boot', 'd'], ['vncunused', 1], ['display', ':0.0'],
['xauthority', '/root/.Xauthority'], ['device_model',
'/usr/lib/xen-3.0.3-1/bin/qemu-dm']]], ['device', ['vbd', ['uname',
'file:/home/xen/domains/win01/disk.img'], ['dev', 'ioemu:hda'], ['mode',
'w']]], ['device', ['vbd', ['uname', 'file:/root/WINDOWS_2003_STANDARD.ISO'],
['dev', 'ioemu:hdb:cdrom'], ['mode', 'r']]], ['device', ['vif', ['bridge',
'xenbr0'], ['type', 'ioemu']]]])
[2008-06-19 12:41:49 xend.XendDomainInfo 3049] DEBUG (XendDomainInfo:296)
parseConfig: config is ['vm', ['name', 'win02'], ['memory', '256'], ['vcpus',
1], ['image', ['hvm', ['kernel', '/usr/lib/xen-3.0.3-1/boot/hvmloader'],
['vcpus', 1], ['boot', 'd'], ['vncunused', 1], ['display', ':0.0'], ['xauthority',
'/root/.Xauthority'], ['device_model', '/usr/lib/xen-3.0.3-1/bin/qemu-dm']]],
['device', ['vbd', ['uname', 'file:/home/xen/domains/win01/disk.img'], ['dev',
'ioemu:hda'], ['mode', 'w']]], ['device', ['vbd', ['uname',
'file:/root/WINDOWS_2003_STANDARD.ISO'], ['dev', 'ioemu:hdb:cdrom'], ['mode',
'r']]], ['device', ['vif', ['bridge', 'xenbr0'], ['type', 'ioemu']]]]
[2008-06-19 12:41:49 xend.XendDomainInfo 3049] DEBUG (XendDomainInfo:395)
parseConfig: result is {'shadow_memory': None, 'uuid': None, 'on_crash': None,
'on_reboot': None, 'localtime': None, 'image': ['hvm', ['kernel',
'/usr/lib/xen-3.0.3-1/boot/hvmloader'], ['vcpus', 1], ['boot', 'd'],
['vncunused', 1], ['display', ':0.0'], ['xauthority', '/root/.Xauthority'],
['device_model', '/usr/lib/xen-3.0.3-1/bin/qemu-dm']], 'on_poweroff': None,
'bootloader_args': None, 'cpus': None, 'name': 'win02', 'backend': [], 'vcpus':
1, 'cpu_weight': None, 'features': None, 'vcpu_avail': None, 'memory': 256,
'device': [('vbd', ['vbd', ['uname', 'file:/home/xen/domains/win01/disk.img'],
['dev', 'ioemu:hda'], ['mode', 'w']]), ('vbd', ['vbd', ['uname',
'file:/root/WINDOWS_2003_STANDARD.ISO'], ['dev', 'ioemu:hdb:cdrom'], ['mode',
'r']]), ('vif', ['vif', ['bridge', 'xenbr0'], ['type', 'ioemu']])],
'bootloader': None, 'cpu': None, 'maxmem': None}
[2008-06-19 12:41:49 xend.XendDomainInfo 3049] DEBUG (XendDomainInfo:1253)
XendDomainInfo.construct: None
[2008-06-19 12:41:49 xend.XendDomainInfo 3049] DEBUG (XendDomainInfo:1285)
XendDomainInfo.initDomain: 2 1.0
[2008-06-19 12:41:49 xend 3049] DEBUG (image:320) args: boot, val: d
[2008-06-19 12:41:49 xend 3049] DEBUG (image:320) args: fda, val: None
[2008-06-19 12:41:49 xend 3049] DEBUG (image:320) args: fdb, val: None
[2008-06-19 12:41:49 xend 3049] DEBUG (image:320) args: soundhw, val: None
[2008-06-19 12:41:49 xend 3049] DEBUG (image:320) args: localtime, val: None
[2008-06-19 12:41:49 xend 3049] DEBUG (image:320) args: serial, val: None
[2008-06-19 12:41:49 xend 3049] DEBUG (image:320) args: std-vga, val: None
[2008-06-19 12:41:49 xend 3049] DEBUG (image:320) args: isa, val: None
[2008-06-19 12:41:49 xend 3049] DEBUG (image:320) args: vcpus, val: 1
[2008-06-19 12:41:49 xend 3049] DEBUG (image:320) args: acpi, val: None
[2008-06-19 12:41:49 xend 3049] DEBUG (image:320) args: usb, val: None
[2008-06-19 12:41:49 xend 3049] DEBUG (image:320) args: usbdevice, val: None
[2008-06-19 12:41:49 xend.XendDomainInfo 3049] ERROR (XendDomainInfo:202)
Domain construction failed
Traceback (most recent call last):
File "/usr/lib/xen-3.0.3-1/lib/python/xen/xend/XendDomainInfo.py",
line 195, in create
vm.initDomain()
File
"/usr/lib/xen-3.0.3-1/lib/python/xen/xend/XendDomainInfo.py", line
1298, in initDomain
self.info['device'])
File "/usr/lib/xen-3.0.3-1/lib/python/xen/xend/image.py", line
45, in create
return findImageHandlerClass(imageConfig)(vm, imageConfig,
deviceConfig)
File "/usr/lib/xen-3.0.3-1/lib/python/xen/xend/image.py", line
75, in __init__
self.configure(imageConfig, deviceConfig)
File "/usr/lib/xen-3.0.3-1/lib/python/xen/xend/image.py", line
250, in configure
self.dmargs = self.parseDeviceModelArgs(imageConfig,
deviceConfig)
File "/usr/lib/xen-3.0.3-1/lib/python/xen/xend/image.py", line
332, in parseDeviceModelArgs
raise VmError('Disk image does not exist: %s' %
VmError: Disk image does not exist: /home/xen/domains/win01/disk.img
[2008-06-19 12:41:49 xend.XendDomainInfo 3049] DEBUG (XendDomainInfo:1449)
XendDomainInfo.destroy: domid=2
[2008-06-19 12:41:49 xend.XendDomainInfo 3049] DEBUG (XendDomainInfo:1457)
XendDomainInfo.destroyDomain(2)
...
please help to solve this problem..
i have tried by disabling selinux i.e. using selinux=0 then also same
error is getting.
kernel = '/usr/lib/xen-3.0.3-1/boot/hvmloader'
builder = 'hvm'
memory = '256'
device_model='/usr/lib/xen-3.0.3-1/bin/qemu-dm'
# Disks
disk = [ 'file:/home/xen/domains/win01/disk.img,ioemu:hda,w',
'file:/root/WINDOWS_2003_STANDARD.ISO,ioemu:hdb:cdrom,r' ]
# Hostname
name = 'win02'
# Networking
vif = ['type=ioemu, bridge=xenbr0']
# Behaviour
boot='d'
vnc=0
vncviewer=0
sdl=0
win02.cfg is ..