Hi Bojan,<div><br></div><div>You're not the only one having trouble hotplugging a cdrom to a running vm. Apparently it's a libvirt bug:</div><div><a href="https://www.redhat.com/archives/libvirt-users/2010-April/msg00066.html">https://www.redhat.com/archives/libvirt-users/2010-April/msg00066.html</a></div>
<div><br></div><div>I suggest you try changing the device to datablock (oneimage chtype <img_id> datablock).</div><div><br></div><div>cheers,<br>Jaime<br><br><div class="gmail_quote">On Mon, Aug 27, 2012 at 6:49 PM, Bojan Mrkobrad <span dir="ltr"><<a href="mailto:macak.fritz@gmail.com" target="_blank">macak.fritz@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
There is the new hotplugging feature in Sunstone in ONE 3.6.<br>
<br>
I tried to attach an ISO image with type CD-ROM. In this case, i had a<br>
following error:<br>
<br>
Sat Aug 25 21:52:18 2012 [VMM][I]: Successfully execute transfer<br>
manager driver operation: tm_attach.<br>
Sat Aug 25 21:52:19 2012 [VMM][I]: Command execution fail:<br>
/var/tmp/one/vmm/kvm/attach_disk one-144<br>
/var/lib/one//datastores/0/144/disk.2 vdb 1 PFZNTV9EUklWRVJfQ.....<br>
Sat Aug 25 21:52:19 2012 [VMM][E]: attach_disk: Command "virsh<br>
--connect qemu:///system attach-device one-144<br>
/var/lib/one//datastores/0/144/disk.2.attach" failed: error: Failed to<br>
attach device from /var/lib/one//datastores/0/144/disk.2.attach<br>
Sat Aug 25 21:52:19 2012 [VMM][I]: error: internal error No device<br>
with bus 'virtio' and target 'vdb'<br>
Sat Aug 25 21:52:19 2012 [VMM][E]: Could not attach<br>
/var/lib/one//datastores/0/144/disk.2 (vdb) to one-144<br>
<br>
<br>
If in a VM device vdb already exist (in this case vdb is a Context<br>
ISO), I have the followin message in log:<br>
<br>
Sat Aug 25 22:08:23 2012 [VMM][I]: clone: Cloning<br>
../../101/5fe82c44085f4d2f36cb2fff7dfe531f in<br>
polux:/var/lib/one//datastores/0/114/disk.2<br>
Sat Aug 25 22:08:23 2012 [VMM][I]: ExitCode: 0<br>
Sat Aug 25 22:08:23 2012 [VMM][I]: Successfully execute transfer<br>
manager driver operation: tm_attach.<br>
Sat Aug 25 22:08:23 2012 [VMM][I]: Command execution fail:<br>
/var/tmp/one/vmm/kvm/attach_disk one-114<br>
/var/lib/one//datastores/0/114/disk.2 vdb 1 PFZNTV9EUklWRVJfQUNUS....<br>
Sat Aug 25 22:08:23 2012 [VMM][E]: attach_disk: Command "virsh<br>
--connect qemu:///system attach-device one-114<br>
/var/lib/one//datastores/0/114/disk.2.attach" failed: error: Failed to<br>
attach device from /var/lib/one//datastores/0/114/disk.2.attach<br>
Sat Aug 25 22:08:23 2012 [VMM][I]: error: internal error unable to<br>
execute QEMU command 'change': Device 'drive-virtio-disk1' is not<br>
removable<br>
Sat Aug 25 22:08:23 2012 [VMM][E]: Could not attach<br>
/var/lib/one//datastores/0/114/disk.2 (vdb) to one-114<br>
Sat Aug 25 22:08:23 2012 [VMM][I]: ExitCode: 1<br>
Sat Aug 25 22:08:23 2012 [VMM][I]: Failed to execute virtualization<br>
driver operation: attach_disk.<br>
Sat Aug 25 22:08:23 2012 [VMM][E]: Error attaching new VM Disk: Could<br>
not attach /var/lib/one//datastores/0/114/disk.2 (vdb) to one-114<br>
Sat Aug 25 22:16:27 2012 [VMM][I]: ExitCode: 0<br>
<br>
<br>
My question is: is there a way to hotplug a CD-ROM image type on a running VM?<br>
<br>
I also notice that ONE Doesn't recognize attached Context ISO. For<br>
example, if I define virtio bus in a Context section context ISO will<br>
be attached as 'vdb'. Then if I try to attach a device with 'vd'<br>
prefix it would be forced as 'vdb' again (with an error in log). Maybe<br>
would be a good idea for new releases to consider adding context disk<br>
in the device list (with possibility to detach it).<br>
<br>
Many thanks,<br>
Bojan<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Jaime Melis<br>Project Engineer<br>OpenNebula - The Open Source Toolkit for Cloud Computing<br><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:jmelis@opennebula.org" target="_blank">jmelis@opennebula.org</a><br>
</div>