[one-users] error when attach disk

Tino Vazquez tinova79 at gmail.com
Wed Oct 23 06:47:59 PDT 2013


Hi,

This is a known issue with that libvirt version. In order to
circumvent this behaviour, you need to:

* Use a VM with the OS disk set to IDE (DEV_PREFIX="hd" needs to be
present in the image template)
* Use SCSI image to attach (DEV_PREFIX="sd" needs to be present in the
CDROM image template)
* Use a VM with a virtio SCSI controller stated in the RAW section:

RAW=[
DATA="<devices><controller type='scsi' index='0'
model='virtio-scsi'></controller></devices>",
TYPE="kvm" ]

Regards,

-Tino
--
Constantino Vázquez Blanco, PhD, MSc
Senior Infrastructure Architect at C12G Labs
www.OpenNebula.org | @tinova79  | es.linkedin.com/in/tinova


On Wed, Oct 23, 2013 at 1:22 PM, song <song.gao at venusource.com> wrote:
> Hello guys:
>
> I am trying to attach disk to a running vm on a CentOS 6.4 node.The
> guest OS is redhat 5.7.Libvirt version is 0.9.4,and qemu version is
> 0.12.1.Attach operation is failed and the log as follows:
>
> Wed Oct 23 17:22:05 2013 [VMM][E]: attach_disk: Command "virsh --connect
> qemu:///system attach-device one-81 /cluster1-1/103/81/disk.2.attach"
> failed: error: Failed to attach device from /cluster1-1/103/81/disk.2.attach
> Wed Oct 23 17:22:05 2013 [VMM][I]: error: operation failed: drive
> hotplug is not supported
> Wed Oct 23 17:22:05 2013 [VMM][E]: Could not attach
> /cluster1-1/103/81/disk.2 (vdb) to one-81
>
> The attach xml as follows:
>
> <disk type='file' device='disk'>
> <driver name='qemu' type='qcow2' cache='default'/>
> <source file='/cluster1-1/103/81/disk.2'/>
> <target dev='hdd'/>
> </disk>
>
> Any help is appreciated!
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org



More information about the Users mailing list