Hi,

 

I’m trying to add a channel on a Openstack instance via this command :

 

# virsh attach-device instance-00000005 test.xml

 

   that returns this error

 

 

error: Failed to attach device from test.xml

error: internal error: no virtio-serial controllers are available

#

 

  # cat test.xml :

 

<channel type='unix'>

      <source mode='bind' path='//var/lib/libvirt/qemu/instance-00000005.agent'/>

      <target type='virtio' name='instance-00000005.agent'/>

</channel>

 

 

#virsh dumpxml instance-00000005

 

<domain type='kvm' id='8'>

  <name>instance-00000005</name>

  <uuid>f85ea8a4-0159-417c-bef5-5b4e908ea2a0</uuid>

  <metadata>

    <nova:instance xmlns:nova="http://openstack.org/xmlns/libvirt/nova/1.0">

      <nova:package version="12.0.1-1.el7"/>

      <nova:name>Fedora-Cloud-23-2015-1</nova:name>

      <nova:creationTime>2016-06-06 08:22:34</nova:creationTime>

      <nova:flavor name="m1.small">

        <nova:memory>2048</nova:memory>

        <nova:disk>20</nova:disk>

        <nova:swap>0</nova:swap>

        <nova:ephemeral>0</nova:ephemeral>

        <nova:vcpus>1</nova:vcpus>

      </nova:flavor>

      <nova:owner>

        <nova:user uuid="da49c3189eaf40b28893b422b60cc73e">demo</nova:user>

        <nova:project uuid="ef3ecf8618e24130b2cd8adab8e17310">demo</nova:project>

      </nova:owner>

      <nova:root type="image" uuid="a22e881e-dd17-4795-a118-67f9ec90a768"/>

    </nova:instance>

  </metadata>

  <memory unit='KiB'>2097152</memory>

  <currentMemory unit='KiB'>2097152</currentMemory>

  <vcpu placement='static'>1</vcpu>

  <cputune>

    <shares>1024</shares>

  </cputune>

  <resource>

    <partition>/machine</partition>

  </resource>

  <sysinfo type='smbios'>

    <system>

      <entry name='manufacturer'>Fedora Project</entry>

      <entry name='product'>OpenStack Nova</entry>

      <entry name='version'>12.0.1-1.el7</entry>

      <entry name='serial'>8cd9a34f-a760-4c53-9420-a3a22a484bb2</entry>

      <entry name='uuid'>f85ea8a4-0159-417c-bef5-5b4e908ea2a0</entry>

      <entry name='family'>Virtual Machine</entry>

    </system>

  </sysinfo>

  <os>

    <type arch='x86_64' machine='pc-i440fx-rhel7.0.0'>hvm</type>

    <boot dev='hd'/>

    <smbios mode='sysinfo'/>

  </os>

  <features>

    <acpi/>

    <apic/>

  </features>

  <cpu mode='host-model'>

    <model fallback='allow'/>

    <topology sockets='1' cores='1' threads='1'/>

  </cpu>

  <clock offset='utc'>

    <timer name='pit' tickpolicy='delay'/>

    <timer name='rtc' tickpolicy='catchup'/>

    <timer name='hpet' present='no'/>

  </clock>

  <on_poweroff>destroy</on_poweroff>

  <on_reboot>restart</on_reboot>

  <on_crash>destroy</on_crash>

  <devices>

    <emulator>/usr/libexec/qemu-kvm</emulator>

    <disk type='file' device='disk'>

      <driver name='qemu' type='qcow2' cache='none'/>

      <source file='/var/lib/nova/instances/f85ea8a4-0159-417c-bef5-5b4e908ea2a0/disk'/>

      <backingStore type='file' index='1'>

        <format type='raw'/>

        <source file='/var/lib/nova/instances/_base/5773dfb9c65f9640334bf9b3101ac8a2f485ee83'/>

        <backingStore/>

      </backingStore>

      <target dev='vda' bus='virtio'/>

      <alias name='virtio-disk0'/>

      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>

    </disk>

    <controller type='usb' index='0'>

      <alias name='usb'/>

      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>

    </controller>

    <controller type='pci' index='0' model='pci-root'>

      <alias name='pci.0'/>

    </controller>

    <interface type='bridge'>

      <mac address='fa:16:3e:ad:2d:51'/>

      <source bridge='qbr9ece405a-26'/>

      <target dev='tap9ece405a-26'/>

      <model type='virtio'/>

      <alias name='net0'/>

      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>

    </interface>

    <serial type='file'>

      <source path='/var/lib/nova/instances/f85ea8a4-0159-417c-bef5-5b4e908ea2a0/console.log'/>

      <target port='0'/>

      <alias name='serial0'/>

    </serial>

    <serial type='pty'>

      <source path='/dev/pts/4'/>

      <target port='1'/>

      <alias name='serial1'/>

    </serial>

    <console type='file'>

      <source path='/var/lib/nova/instances/f85ea8a4-0159-417c-bef5-5b4e908ea2a0/console.log'/>

      <target type='serial' port='0'/>

      <alias name='serial0'/>

    </console>

    <input type='tablet' bus='usb'>

      <alias name='input0'/>

    </input>

    <input type='mouse' bus='ps2'/>

    <input type='keyboard' bus='ps2'/>

    <graphics type='vnc' port='5901' autoport='yes' listen='0.0.0.0' keymap='en-us'>

      <listen type='address' address='0.0.0.0'/>

    </graphics>

    <video>

      <model type='cirrus' vram='16384' heads='1'/>

      <alias name='video0'/>

      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>

    </video>

    <memballoon model='virtio'>

      <stats period='10'/>

      <alias name='balloon0'/>

      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>

    </memballoon>

  </devices>

  <seclabel type='dynamic' model='selinux' relabel='yes'>

    <label>system_u:system_r:svirt_t:s0:c699,c952</label>

    <imagelabel>system_u:object_r:svirt_image_t:s0:c699,c952</imagelabel>

  </seclabel>

</domain>

 

 

How may I add this controller ( before adding the channel device) ?

 

Thanks for help.

 

Regards,

 

Jean-Pierre RIBEAUVILLE

 

+33 1 4717 2049

 

axway_logo_tagline_87px