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 ..
_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users
Try to run these commands on your Kernel image and see.
# semanage fcontext -a -t xen_image_t KERNEL_IMAGE_PATH
# chcon -t xen_image_t KERNEL_IMAGE_PATH
Venkat
===============================Venkata Kumar Duvvuru,
LSI Engenio,
Adv. Development,
Bangalore.
Mob: +91-9880318542
Off : +91-80-41978700 ( Extn : 3544 )
===============================________________________________
From: xen-users-bounces@lists.xensource.com
[mailto:xen-users-bounces@lists.xensource.com] On Behalf Of amol verule
Sent: Thursday, June 19, 2008 12:46 PM
To: xen-users@lists.xensource.com
Subject: [Xen-users] VmError: Disk image does not exist
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<http://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 ..
_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users
thanks venkat,
i have tried these command but i am getting error
as..
root@boss[~]#semanage fcontext -a -t xen_image_t /home/xen/domains
libsepol.context_from_record: type xen_image_t is not defined
libsepol.context_from_record: could not create context structure
libsemanage.validate_handler: invalid context system_u:object_r:xen_image_t
specified for /home/xen/domains [all files]
libsemanage.dbase_llist_iterate: could not iterate over records
/usr/sbin/semanage: Could not add file context for /home/xen/domains
also can you tell me KERNEL_IMAGE_PATH means which path..path to where .img
we are going to craete or path of vmlinuz-xen??
On Thu, Jun 19, 2008 at 2:24 PM, Kumar, Venkat <Venkat.Kumar@lsi.com>
wrote:
> Try to run these commands on your Kernel image and see.
>
>
>
> # semanage fcontext –a –t xen_image_t KERNEL_IMAGE_PATH
>
> # chcon –t xen_image_t KERNEL_IMAGE_PATH
>
>
>
> Venkat
>
>
>
>
>
> *================================*
>
> *Venkata Kumar Duvvuru,*
>
> *LSI Engenio,*
>
> *Adv. Development,*
>
> *Bangalore**.*
>
> *Mob: +91-9880318542*
>
> *Off : +91-80-41978700 ( Extn : 3544 )*
>
> *================================*
> ------------------------------
>
> *From:* xen-users-bounces@lists.xensource.com [mailto:
> xen-users-bounces@lists.xensource.com] *On Behalf Of *amol verule
> *Sent:* Thursday, June 19, 2008 12:46 PM
> *To:* xen-users@lists.xensource.com
> *Subject:* [Xen-users] VmError: Disk image does not exist
>
>
>
> 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 ..
>
>
_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users
You need to execute this command on the image which you would have created
For example from your configuration file looks like
/home/xen/domains/win01/disk.img is the image file you are using to install OS.
So execute the commands on this image file. If still it is throwing error. Copy
your image file to /var/lib/xen/images and then execute the commands.
Venkat
===============================Venkata Kumar Duvvuru,
LSI Engenio,
Adv. Development,
Bangalore.
Mob: +91-9880318542
Off : +91-80-41978700 ( Extn : 3544 )
===============================________________________________
From: amol verule [mailto:amol.vocab@gmail.com]
Sent: Thursday, June 19, 2008 7:14 PM
To: Kumar, Venkat
Cc: xen-users@lists.xensource.com
Subject: Re: [Xen-users] VmError: Disk image does not exist
thanks venkat,
i have tried these command but i am getting error as..
root@boss[~]#semanage fcontext -a -t xen_image_t /home/xen/domains
libsepol.context_from_record: type xen_image_t is not defined
libsepol.context_from_record: could not create context structure
libsemanage.validate_handler: invalid context system_u:object_r:xen_image_t
specified for /home/xen/domains [all files]
libsemanage.dbase_llist_iterate: could not iterate over records
/usr/sbin/semanage: Could not add file context for /home/xen/domains
also can you tell me KERNEL_IMAGE_PATH means which path..path to where .img we
are going to craete or path of vmlinuz-xen??
On Thu, Jun 19, 2008 at 2:24 PM, Kumar, Venkat
<Venkat.Kumar@lsi.com<mailto:Venkat.Kumar@lsi.com>> wrote:
Try to run these commands on your Kernel image and see.
# semanage fcontext -a -t xen_image_t KERNEL_IMAGE_PATH
# chcon -t xen_image_t KERNEL_IMAGE_PATH
Venkat
===============================
Venkata Kumar Duvvuru,
LSI Engenio,
Adv. Development,
Bangalore.
Mob: +91-9880318542
Off : +91-80-41978700 ( Extn : 3544 )
===============================
________________________________
From:
xen-users-bounces@lists.xensource.com<mailto:xen-users-bounces@lists.xensource.com>
[mailto:xen-users-bounces@lists.xensource.com<mailto:xen-users-bounces@lists.xensource.com>]
On Behalf Of amol verule
Sent: Thursday, June 19, 2008 12:46 PM
To: xen-users@lists.xensource.com<mailto:xen-users@lists.xensource.com>
Subject: [Xen-users] VmError: Disk image does not exist
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<http://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 ..
_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users