<div dir="ltr">Hi<div><br></div><div>There is a qemu bug that prevents attaching/detaching (reattach) a disk, maybe you are being hit by this. You may want to try to specified another target (not to reuse the target used by the first attach operation).</div>
<div><br></div><div>About the power off attach operations, we are working on it:</div><div><br></div><div><a href="http://dev.opennebula.org/issues/2065" target="_blank">http://dev.opennebula.org/issues/2065</a><br></div>
<div><br></div><div>
<br></div><div>Cheers</div><div><br></div><div>Ruben</div><div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jan 2, 2014 at 12:57 PM, Ricardo Duarte <span dir="ltr"><<a href="mailto:rjtd21@hotmail.com" target="_blank">rjtd21@hotmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div dir="ltr">Hi there,<br><br>I'm trying to get Attach and Detach operations to work for disks.<br>I can make it work for the first attach and detach, but if I try to reattach a new disk I get the following errors:<br>
<br> Thu Jan 2 11:52:04 2014 [VMM][D]: Message received: LOG E 260 attach_disk: Command "virsh --connect qemu:///system attach-device one-260 /var/lib/one/datastores/0/260/disk.2.attach" failed: error: Failed to attach device from /var/lib/one/datastores/0/260/disk.2.attach<br>
Thu Jan 2 11:52:04 2014 [VMM][D]: Message received: LOG I 260 error: internal error unable to execute QEMU command '__com.redhat_drive_add': Duplicate ID 'drive-virtio-disk1' for drive<br> Thu Jan 2 11:52:04 2014 [VMM][D]: Message received: LOG E 260 Could not attach /var/lib/one/datastores/0/260/disk.2 (vdb) to one-260<br>
Thu Jan 2 11:52:04 2014 [VMM][D]: Message received: LOG I 260 ExitCode: 1<br><br>Another problem is that I'm not able to attach or detach disks from powered off machines.<br><br>Any clue on how to fix the problem, and how to allow users to attach and detach disks when machines are powered off?<br>
<br>Thanks,<br>Ricardo<br> </div></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org" target="_blank">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<br clear="all"><div><br></div>-- <br></a><div dir="ltr"><a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank"><div>
<div>-- <br></div></div>Ruben S. Montero, PhD<br>Project co-Lead and Chief Architect</a><div><a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">OpenNebula - Flexible Enterprise Cloud Made Simple<br>
</a><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:rsmontero@opennebula.org" target="_blank">rsmontero@opennebula.org</a> | @OpenNebula</div></div>
</blockquote></div></div></div>