Bug 1599981 - Unify whether virtio console can accept 'virtio-serial' address
Summary: Unify whether virtio console can accept 'virtio-serial' address
Keywords:
Status: CLOSED DUPLICATE of bug 1447505
Alias: None
Product: Red Hat Enterprise Linux Advanced Virtualization
Classification: Red Hat
Component: libvirt
Version: 8.0
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: 8.0
Assignee: Virtualization Maintenance
QA Contact: jiyan
URL:
Whiteboard:
Depends On: 1447505
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-07-11 06:12 UTC by jiyan
Modified: 2020-02-18 14:24 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-02-18 14:24:27 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description jiyan 2018-07-11 06:12:34 UTC
Description of problem:
Unify whether virtio console can accept 'virtio-serial' address

Version-Release number of selected component (if applicable):
libvirt-4.3.0-1.el8+732+cd548b25.x86_64
kernel-4.17.0-6.el8+7.x86_64
qemu-kvm-2.12.0-13.el8+812+c321fc4d.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Edit VM with the following consiguration and then start VM
# virsh edit vm1
    <console type='pty' tty='/dev/pts/5'>
      <source path='/dev/pts/5'/>
      <target type='virtio' port='0'/>
      <alias name='console0'/>
    </console>
    <console type='pty'>
      <source path='/dev/pts/8'/>
      <target type='virtio' port='1'/>
      <alias name='console1'/>
      <address type='virtio-serial' controller='0' bus='0' port='3'/>
    </console>

# virsh start vm1
Domain vm1 started

# virsh dumpxml vm1 |grep "<console" -A30
    <console type='pty' tty='/dev/pts/5'>
      <source path='/dev/pts/5'/>
      <target type='virtio' port='0'/>
      <alias name='console0'/>
    </console>
    <console type='pty'>
      <source path='/dev/pts/8'/>
      <target type='virtio' port='1'/>
      <alias name='console1'/>
      <address type='virtio-serial' controller='0' bus='0' port='3'/>
    </console>

Actual results:
As step-1 shows

Expected results:
If console can not accept virtio-serial address, then VM should start failed.
IF console can accept, then the other console device should generate address, too.

Additional info:

Comment 1 Jaroslav Suchanek 2020-02-18 14:24:27 UTC

*** This bug has been marked as a duplicate of bug 1447505 ***


Note You need to log in before you can comment on or make changes to this bug.