Hello,
I am creating a VM using vdsm standalone script and facing issues when i add cdrom and make it boot from cdrom.

....

vdsOK(
    s.create(dict(vmId=vmId,
drives=[dict(poolID=spUUID, domainID=sdUUID, imageID=imgUUID, volumeID=volUUID)],
                  memSize=256,
                  display="vnc",
                  vmName="vm-backed-by-gluster",
                  cdrom="/home/deepakcs/Fedora-16-x86_64-Live-Desktop.iso",
                  boot="d",
                  custom={"dpktry":1},
                 )
            )

When i added cdrom= and boot= lines and ran, i see the below in vdsm.log....

Traceback (most recent call last):
  File "/usr/share/vdsm/vm.py", line 570, in _startUnderlyingVm
    self._run()
  File "/usr/share/vdsm/libvirtvm.py", line 1364, in _run
    self._connection.createXML(domxml, flags),
File "/usr/lib64/python2.7/site-packages/vdsm/libvirtconnection.py", line 82, in wrapper
    ret = f(*args, **kwargs)
File "/usr/lib64/python2.7/site-packages/libvirt.py", line 2420, in createXML if ret is None:raise libvirtError('virDomainCreateXML() failed', conn=self) libvirtError: internal error unsupported configuration: Readonly leases are not supported Thread-49::DEBUG::2012-07-05 17:35:59,780::vm::920::vm.Vm::(setDownStatus) vmId=`8b400342-2cda-478d-93f6-a36bac8538c8`::Changed state to Down: internal error unsupported configuration: Readonly leases are not supported


It looks like its trying to use the cdrom disk device as a disk lease, hence complaining?
But the libvirt xml has <disk> tags which looks liek this...

<disk device="disk" snapshot="no" type="file">
<source file="/rhev/data-center/98fc6cd9-d857-4735-bc7a-59a289bc0f55/01400276-e3c8-44d9-8353-924ab2183af2/images/95c9f6a4-def1-4300-baf6-db884dc8ccca/9d62e802-859e-4381-8029-7be5a6b1de26"/>
<target bus="ide" dev="hda"/>
<serial>95c9f6a4-def1-4300-baf6-db884dc8ccca</serial>
<driver cache="none" error_policy="stop" io="threads" name="qemu" type="raw"/>
</disk>
<disk device="cdrom" snapshot="no" type="file">
<source file="/home/deepakcs/Fedora-16-x86_64-Live-Desktop.iso" startupPolicy="optional"/>
<target bus="ide" dev="hdc"/>
<serial/>
</disk>

Any idea why it throws "Readonly leases are not supported" ?

thanx,
deepak

_______________________________________________
vdsm-devel mailing list
vdsm-devel@lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/vdsm-devel

Reply via email to