cloudstack-users-cn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Du Jun <>
Subject Fwd: Fail to attach volume to VM
Date Mon, 25 Nov 2013 08:28:02 GMT
Hi all,
I find I am unable to attach volume to VM while VM is running.The error
message is show below:

Failed to attach volume: volume-1 to VM: standard-ubuntu;
org.libvirt.LibvirtException: internal error unable to execute QEMU command
'device_add': Duplicate ID 'virtio-disk1' for device

The VM xml result returned by libvirt is show below:
root@openstack-server-1:/usr/bin# virsh dumpxml i-2-3-VM
<domain type='kvm' id='11'>
  <description>Ubuntu 12.04 (64-bit)</description>
    <type arch='x86_64' machine='pc-1.0'>hvm</type>
    <boot dev='cdrom'/>
    <boot dev='hd'/>
  <clock offset='utc'/>
    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2' cache='none'/>
      <target dev='vda' bus='virtio'/>
      <alias name='virtio-disk0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04'
    <disk type='file' device='cdrom'>
      <driver name='qemu' type='raw' cache='none'/>
      <target dev='hdc' bus='ide'/>
      <alias name='ide0-1-0'/>
      <address type='drive' controller='0' bus='1' unit='0'/>
    <controller type='ide' index='0'>
      <alias name='ide0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01'
    <interface type='bridge'>
      <mac address='06:23:76:00:00:0d'/>
      <source bridge='cloudbr0'/>
      <target dev='vnet9'/>
      <model type='virtio'/>
        <inbound average='25600' peak='25600'/>
        <outbound average='25600' peak='25600'/>
      <alias name='net0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03'
    <serial type='pty'>
      <source path='/dev/pts/6'/>
      <target port='0'/>
      <alias name='serial0'/>
    <console type='pty' tty='/dev/pts/6'>
      <source path='/dev/pts/6'/>
      <target type='serial' port='0'/>
      <alias name='serial0'/>
    <input type='tablet' bus='usb'>
      <alias name='input0'/>
    <input type='mouse' bus='ps2'/>
    <graphics type='vnc' port='5903' autoport='yes'/>
      <model type='cirrus' vram='9216' heads='1'/>
      <alias name='video0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02'
    <memballoon model='virtio'>
      <alias name='balloon0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05'

I can only find virtio-disk0,there is no device called "virtio-disk1".So,why
cloudstack libvirt tell me
"Duplicate ID 'virtio-disk1' for device"?Is there anyone could answer this
question?Thank you in advance.

Best regards,

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message