RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1091871 - it's confusing and fail to use "-serial none" to disable all serial ports
Summary: it's confusing and fail to use "-serial none" to disable all serial ports
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: qemu-kvm
Version: 7.0
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: rc
: ---
Assignee: Gerd Hoffmann
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks: 1129925
TreeView+ depends on / blocked
 
Reported: 2014-04-28 09:06 UTC by Sibiao Luo
Modified: 2014-08-14 02:09 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1129925 (view as bug list)
Environment:
Last Closed: 2014-07-02 13:32:06 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Sibiao Luo 2014-04-28 09:06:03 UTC
Description of problem:
fail to use "-serial none" to disable all serial ports, it's confusing for users for the qemu-kvm doc explain, doc should be improved if the "-serial none" is not the global option thing. 
Please help move it to the correct component if you decide it, thanks.

Version-Release number of selected component (if applicable):
host info:
# uname -r && rpm -q qemu-kvm-rhev
3.10.0-121.el7.x86_64
qemu-kvm-rhev-1.5.3-60.el7ev.x86_64
guest info:
rhel7: kernel-3.10.0-121.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1.check the qmeu-kvm doc for '-serial none' explains.
...
       -serial dev
           Redirect the virtual serial port to host character device dev. The default device is "vc" in graphical mode
           and "stdio" in non graphical mode.

           This option can be used several times to simulate up to 4 serial ports.

           Use "-serial none" to disable all serial ports.
...
2.boot up a KVM guest with "-serial none -serial unix:/tmp/qemu-serial0,server,nowait".
3.transfer some characters via serial port.
(host) # nc -U /tmp/qemu-serial${PORT_NUMBER}
(guest)# cat /dev/urandom > /dev/ttyS${PORT_NUMBER}

Actual results:
it can transfer characters via serial port0, fail to use "-serial none" to disable all serial ports.
guest ]# echo LuoSibiao > /dev/ttyS1
 host ]# nc -U /tmp/qemu-serial0
LuoSibiao

Expected results:
it's confusing for users for the qemu-kvm doc explain, doc should be improved if the "-serial none" is not the global option thing. 

Additional info:

Comment 1 Amit Shah 2014-06-16 09:57:14 UTC
Just a case of documenting what -serial none really does: doesn't spawn the default serial ports.  Maybe WONTFIX because it's a small issue, and won't be seen by customers.

Comment 2 Gerd Hoffmann 2014-07-02 13:32:06 UTC
(In reply to Amit Shah from comment #1)
> Just a case of documenting what -serial none really does: doesn't spawn the
> default serial ports.  Maybe WONTFIX because it's a small issue, and won't
> be seen by customers.

Agree.


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