Bug 756944

Summary: can't boot guest with "-readconfig" option using config file
Product: Red Hat Enterprise Linux 6 Reporter: daiwei <wdai>
Component: qemu-kvmAssignee: Virtualization Maintenance <virt-maint>
Status: CLOSED NOTABUG QA Contact: Virtualization Bugs <virt-bugs>
Severity: low Docs Contact:
Priority: low    
Version: 6.2CC: acathrow, bsarathy, juzhang, michen, mkenneth, shuang, tburke, virt-maint
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-08 11:17:26 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description daiwei 2011-11-25 09:10:20 UTC
Description of problem:

create a configure file with "-writeconfig" option in qemu-kvm command line,then boot guest use the same configure file and with "-readconfig" option,guest boot failed.


Version-Release number of selected component (if applicable):

2.6.32-220.el6.x86_64
qemu-kvm-0.12.1.2-2.209.el6.x86_64

How reproducible:
3/3

Steps to Reproduce:
1.boot a guest with "-writeconfig" option and with "-monitor stdio" in qemu-kvm command line

e.g.
# /usr/libexec/qemu-kvm ... -monitor stdio -writeconfig /home/test.cfg

2.boot a guest with "-readconfig" option and use test.cfg

e.g.
# /usr/libexec/qemu-kvm ... -readconfig /home/test.cfg
3.
  
Actual results:
boot guest failed and prompt:

qemu-kvm: Duplicate ID 'monitor' for chardev
parse error: vc:80Cx24C



Expected results:

guest start without any error.

Additional info:

without "-monitor stdio" in qemu-kvm command line no this error.

Comment 1 Suqin Huang 2011-11-25 10:03:00 UTC
try to add -nodefconfig

Comment 2 Dor Laor 2011-12-08 11:17:26 UTC
(In reply to comment #1)
> try to add -nodefconfig

Please retest w/ it

Comment 3 daiwei 2011-12-08 14:20:49 UTC
I'm sorry for updating late.

when boot guest,add -nodeconfig -nodefaults to qemu-kvm command line no this problem.