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