Red Hat Bugzilla – Bug 894451
boot hangs without console connected
Last modified: 2013-02-27 09:34:36 EST
Description of problem:
When running virt-install using a serial console it will not start to boot unless the console has been connected. And, if you wait around 15 seconds before connecting the console you need to hit a key before the kernel will start to boot.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
Test script attached
virt-install -n console-test -r 1024 --noreboot --noautoconsole --graphics none \
--disk path=$ISO,device=cdrom \
--extra-args "stage2=live:CDLABEL=Fedora\x2018\x20x86_64 console=tty0 console=ttyS0,115200n8" \
Created attachment 677055 [details]
test script to reproduce problem
Thanks for the report Brian, I can reproduce.
Amit, this is what the flow control patches are supposed to fix, right? Patches my need tweaking for 1.2 (or I screwed up the backport).
Can you fetch the qemu command line generated by the virt-install command? I'm not sure where to look, Cole, you can help perhaps.
I think this is fixed upstream by b37a2e4576530597dda880387e3f4da52c42b5b5
(In reply to comment #3)
> Can you fetch the qemu command line generated by the virt-install command?
> I'm not sure where to look, Cole, you can help perhaps.
For reference, libvirt sticks qemu command line (and not much else) in /var/log/libvirt/qemu/<name>.log
Though I can reproduce with a hacked ISO I have that adds console=ttyS0:
qemu-kvm -cdrom boot_with_serial.iso -serial pty
(In reply to comment #4)
> I think this is fixed upstream by b37a2e4576530597dda880387e3f4da52c42b5b5
Yep, that fixes things for me. Thanks Amit!
bcl, I'll push a build early next week.
qemu-1.2.2-6.fc18 has been submitted as an update for Fedora 18.
qemu-1.2.2-6.fc18 has been pushed to the Fedora 18 stable repository. If problems still persist, please make note of it in this bug report.