<div dir="ltr">Hello,<div><br></div><div>I'm digging this thread up because I just found out the reason why this could be happening. Apparently RHEL/CentOS doesn't have support for scsi drivers in its kvm version. I suggest you use this device prefix: "vd" (virtio) and try again.</div>

<div><br></div><div>cheers,<br>Jaime</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Nov 27, 2012 at 6:55 PM, jd daniel ch <span dir="ltr"><<a href="mailto:junix88@gmail.com" target="_blank">junix88@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello Javier,<br><br>I followed your recommendation BUT still I got the same error. Is there any way to address the issue? I haven't upgraded to 3.8.1 still using 3.6 yet.<br>

<br>Regards,<br><br>Junix<div class="HOEnZb"><div class="h5"><br><br><div class="gmail_quote">
On Mon, Nov 26, 2012 at 4:54 AM, Javier Fontan <span dir="ltr"><<a href="mailto:jfontan@opennebula.org" target="_blank">jfontan@opennebula.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


I can not reproduce this problem in 3.8.1. Try to add DRIVER="raw" to<br>
the image before attaching it.<br>
<br>
2012/11/24 jd daniel ch <<a href="mailto:junix88@gmail.com" target="_blank">junix88@gmail.com</a>>:<br>
<div><div>> Hello there,<br>
><br>
> Scenario: OpenNebula 3.6+CentOS 6.3x86_64bit<br>
><br>
> Issues: When I attached Disk (Type: Existing Image; Device prefix: sd) on my<br>
> VM. Image created dev prefix is "sd", target is "sdb".<br>
><br>
> Error log below when I attached the disk -<br>
><br>
> Fri Nov 23 16:54:50 2012 [VMM][I]: Successfully execute transfer manager<br>
> driver operation: tm_attach.<br>
> Fri Nov 23 16:54:51 2012 [VMM][I]: Command execution fail:<br>
> /var/tmp/one/vmm/kvm/attach_disk one-305<br>
> /var/lib/one//datastores/0/305/disk.2 sdb 1<br>
> PFZNTV9EUklWRVJfQUNUSU9OX0RBVEE+PEhPU1Q+c3dhbi5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0PC9IT1NUTkFNRT48SElEPjI5PC9ISUQ+PFNUSU1FPjEzNTIzOTI3Nzk8L1NUSU1FPjxFVElNRT4wPC9FVElNRT48Vk1NTUFEPnZtbV9rdm08L1ZNTU1BRD48Vk5NTUFEPmR1bW15PC9WTk1NQUQ+PFRNTUFEPnNoYXJlZDwvVE1NQUQ+PERTX0lEPjA8L0RTX0lEPjxQU1RJTUU+MTM1MjM5Mjc3OTwvUFNUSU1FPjxQRVRJTUU+MTM1MjM5Mjc4MzwvUEVUSU1FPjxSU1RJTUU+MTM1MjM5Mjc4MzwvUlNUSU1FPjxSRVRJTUU+MDwvUkVUSU1FPjxFU1RJTUU+MDwvRVNUSU1FPjxFRVRJTUU+MDwvRUVUSU1FPjxSRUFTT04+MDwvUkVBU09OPjwvSElTVE9SWT48L0hJU1RPUllfUkVDT1JEUz48L1ZNPjwvVk1NX0RSSVZFUl9BQ1RJT05fREFUQT4=<br>



> 305 <a href="http://swan.gtkcentral.net" target="_blank">swan.gtkcentral.net</a><br>
> Fri Nov 23 16:54:51 2012 [VMM][E]: attach_disk: Command "virsh --connect<br>
> qemu:///system attach-device one-305<br>
> /var/lib/one//datastores/0/305/disk.2.attach" failed: error: Failed to<br>
> attach device from /var/lib/one//datastores/0/305/disk.2.attach<br>
> Fri Nov 23 16:54:51 2012 [VMM][I]: error: internal error unable to execute<br>
> QEMU command 'device_add': Parameter 'driver' expects a driver name<br>
> Fri Nov 23 16:54:51 2012 [VMM][E]: Could not attach<br>
> /var/lib/one//datastores/0/305/disk.2 (sdb) to one-305<br>
> Fri Nov 23 16:54:51 2012 [VMM][I]: ExitCode: 1<br>
> Fri Nov 23 16:54:51 2012 [VMM][I]: Failed to execute virtualization driver<br>
> operation: attach_disk.<br>
> Fri Nov 23 16:54:51 2012 [VMM][E]: Error attaching new VM Disk: Could not<br>
> attach /var/lib/one//datastores/0/305/disk.2 (sdb) to one-305<br>
> Fri Nov 23 16:55:13 2012 [VMM][I]: ExitCode: 0<br>
><br>
><br>
> *** fdisk from my KVM<br>
> [root@schoolproject-cloud ~]# fdisk -l<br>
><br>
> Disk /dev/sda: 53.7 GB, 53687091200 bytes<br>
> 255 heads, 63 sectors/track, 6527 cylinders<br>
> Units = cylinders of 16065 * 512 = 8225280 bytes<br>
> Sector size (logical/physical): 512 bytes / 512 bytes<br>
> I/O size (minimum/optimal): 512 bytes / 512 bytes<br>
> Disk identifier: 0x000c1405<br>
><br>
>    Device Boot      Start         End      Blocks   Id  System<br>
> /dev/sda1   *           1          64      512000   83  Linux<br>
> Partition 1 does not end on cylinder boundary.<br>
> /dev/sda2              64        6528    51915776   8e  Linux LVM<br>
><br>
> Disk /dev/mapper/VolGroup-lv_root: 52.1 GB, 52084867072 bytes<br>
> 255 heads, 63 sectors/track, 6332 cylinders<br>
> Units = cylinders of 16065 * 512 = 8225280 bytes<br>
> Sector size (logical/physical): 512 bytes / 512 bytes<br>
> I/O size (minimum/optimal): 512 bytes / 512 bytes<br>
> Disk identifier: 0x00000000<br>
><br>
><br>
> Disk /dev/mapper/VolGroup-lv_swap: 1073 MB, 1073741824 bytes<br>
> 255 heads, 63 sectors/track, 130 cylinders<br>
> Units = cylinders of 16065 * 512 = 8225280 bytes<br>
> Sector size (logical/physical): 512 bytes / 512 bytes<br>
> I/O size (minimum/optimal): 512 bytes / 512 bytes<br>
> Disk identifier: 0x00000000<br>
><br>
> Any help is very much appreciated.<br>
><br>
> Thank you.<br>
><br>
> Junix<br>
><br>
</div></div>> _______________________________________________<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</a><br>
><br>
<span><font color="#888888"><br>
<br>
<br>
--<br>
Javier Fontán Muiños<br>
Project Engineer<br>
OpenNebula - The Open Source Toolkit for Data Center Virtualization<br>
<a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:jfontan@opennebula.org" target="_blank">jfontan@opennebula.org</a> | @OpenNebula<br>
</font></span></blockquote></div><br>
</div></div><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>
<br></blockquote></div><br></div><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>