[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] VmError: Disk image does not exist


  • To: "Kumar, Venkat" <Venkat.Kumar@xxxxxxx>
  • From: "amol verule" <amol.vocab@xxxxxxxxx>
  • Date: Thu, 19 Jun 2008 19:13:54 +0530
  • Cc: "xen-users@xxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Thu, 19 Jun 2008 06:44:28 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=AmsD/4Y6SfAL0sXZVJNqD9msYOQZms8iTQ8fP8TzkyI8nWpCLXQnN6aA0Ng3xoxV86 +gCK0dJdGmbzFIAgFpBhWweku/RTEOWH+CbnPRARA2YjFgyS19X65ueLC9oVeiUXwgCU od5H+Dq4chaH0AFC6ZdxqTfy58j7afUcz/YPo=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

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@xxxxxxx> 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@xxxxxxxxxxxxxxxxxxx [mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of amol verule
Sent: Thursday, June 19, 2008 12:46 PM
To: xen-users@xxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.