Hinzufügen einer seriellen Portkonsole in Gast-XML in KVM oder RHEV

Hinzufügen einer seriellen Portkonsole in Gast-XML in KVM oder RHEV

So fügen Sie im folgenden Code eine serielle Konsole hinzu. Beim Versuch, eine hinzuzufügen, erhalte ich die Fehlermeldung „Nur die erste Konsole kann ein serieller Port sein“.

</controller>
    <controller type='usb' index='0' model='piix3-uhci'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
    </controller>
    <controller type='pci' index='0' model='pci-root'/>
    <interface type='bridge'>
      <mac address='00:1a:4a:16:01:0f'/>
      <source bridge='XMI'/>
      <model type='virtio'/>
      <driver name='vhost' queues='5'/>
      <filterref filter='vdsm-no-mac-spoofing'/>
      <link state='up'/>
      <alias name='ua-07767369-9064-45ad-b79c-ec83f89c9141'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    </interface>
    <interface type='bridge'>
      <mac address='00:1a:4a:16:01:10'/>
      <source bridge='IMI'/>
      <model type='virtio'/>
      <driver name='vhost' queues='5'/>
      <filterref filter='vdsm-no-mac-spoofing'/>
      <link state='up'/>
      <alias name='ua-b66ab5d7-d9e8-4d3c-81dc-c004b9be7b34'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
    </interface>
    <channel type='unix'>
      <source mode='bind' path='/var/lib/libvirt/qemu/channels/125f6f93-d3d9-42b5-968d-a0f8b9346320.ovirt-guest-agent.0'/>
      <target type='virtio' name='ovirt-guest-agent.0'/>
      <address type='virtio-serial' controller='0' bus='0' port='1'/>
    </channel>
    <channel type='unix'>
      <source mode='bind' path='/var/lib/libvirt/qemu/channels/125f6f93-d3d9-42b5-968d-a0f8b9346320.org.qemu.guest_agent.0'/>
      <target type='virtio' name='org.qemu.guest_agent.0'/>
      <address type='virtio-serial' controller='0' bus='0' port='2'/>
    </channel>
    <channel type='spicevmc'>
      <target type='virtio' name='com.redhat.spice.0'/>
      <address type='virtio-serial' controller='0' bus='0' port='3'/>
    </channel>

Ich habe versucht, der obigen XML-Gastdatei Folgendes hinzuzufügen:

<console type='pty'>
<target type='serial' port='0'/>
<alias name='serial0' />
</console>

verwandte Informationen