Bug 918451

Summary: virt-manager doesn't set up TCP net console mode properly
Product: Red Hat Enterprise Linux 6 Reporter: Ľuboš Kardoš <lkardos>
Component: virt-managerAssignee: Giuseppe Scrivano <gscrivan>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.4CC: codong, gscrivan, jorton, lcui, mzhan, rbalakri, tzheng
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: virt-manager-0.9.0-20.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-14 06:25:45 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 841211    

Description Ľuboš Kardoš 2013-03-06 09:26:02 UTC
Description of problem:
I created virtual machine in virt manager and I added hardware of type serial. I set up device type: "TCP net console (tcp)" and I selected mode: "Client mode (connect)" but in /etc/libvirt/qemu/machine.xml I see:    

<console type='tcp'>
   <source mode='bind' host='127.0.0.1' service='4555'/>


Version-Release number of selected component (if applicable):
virt-manager-0.9.0-18.el6.x86_64 (RHEL-6.4)

How reproducible:
always

Steps to Reproduce:
1. Create virtual machine in virt manager before finish click on "Customize configuration before install".
2. Click on "add hardware".
3. Select "serial".
4. Select device type: "TCP net console (tcp)"
5. Select mode: "Client mode. (connect)"
6. Click "Finish"
7. Click "Begin Installation"
  
Actual results:
Incorrect configuration in /etc/libvirt/qemu/machine.xml:

<console type='tcp'>
   <source mode='bind' host='127.0.0.1' service='4555'/>

Expected results:

<console type='tcp'>
   <source mode='connect' host='127.0.0.1' service='4555'/>


Additional info:

Comment 1 CongDong 2013-04-02 09:15:45 UTC
Can reproduce

[root@localhost ~]# rpm -qa virt-manager libvirt qemu-kvm
virt-manager-0.9.0-18.el6.x86_64
libvirt-0.10.2-18.el6.x86_64
qemu-kvm-0.12.1.2-2.355.el6.x86_64
[root@localhost ~]# uname -a
Linux localhost.localdomain 2.6.32-358.el6.x86_64 #1 SMP Tue Jan 29 11:47:41 EST 2013 x86_64 x86_64 x86_64 GNU/Linux

Comment 4 tingting zheng 2014-05-06 10:47:50 UTC
I can reproduce this bug with:
virt-manager-0.9.0-19.el6.x86_64
When follow the below steps to add serial with tcp mode connect,the xml of guest shows as:
    <serial type='tcp'>
      <source mode='bind' host='127.0.0.1' service='4555'/>
      <protocol type='raw'/>
      <target port='1'/>
      <alias name='serial1'/>
    </serial>

Tested with:
virt-manager-0.9.0-20.el6.x86_64

Steps:
1.Launch virt-manager.
2.Open a guest console,click on "add hardware"->"Serial"->"TCP net console (tcp)"
3.Select mode: "Client mode. (connect)"
4.Click "Finish"
5.Check the xml of guest,it shows as:
    <serial type='tcp'>
      <source mode='connect' host='127.0.0.1' service='4555'/>
      <protocol type='raw'/>
      <target port='1'/>
    </serial>

Refer to the above steps,move the bug to VERIFIED.

Comment 5 errata-xmlrpc 2014-10-14 06:25:45 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2014-1447.html