Description of problem ----------------------- Automated guest install of Fedora20 image with virt-install hangs on serial console once initrd.img is pulled in. Version ------- $ uname -r; rpm -q libvirt-daemon-kvm qemu-system-x86 virt-install 3.11.10-301.fc20.x86_64 libvirt-daemon-kvm-1.2.1-2.fc21.x86_64 qemu-system-x86-1.7.0-4.fc21.x86_64 virt-install-0.10.0-5.git1ffcc0cc.fc21.noarch How reproducible: Consistently. Steps to Reproduce ------------------ Fetch the below script, give it executable permissions, run it: $ wget http://kashyapc.fedorapeople.org/virt/create-guest-qcow2-btrfs.bash $ chmod +x create-guest-qcow2-btrfs.bash $ ./create-guest-qcow2-btrfs.bash fed-btrfs2 f20 Actual results -------------- Install just hangs on the serial console once initrd.img is pulled in: ===== $ ./create-guest-qcow2-btrfs.bash fed-btrfs2 f20 x86_64 Creating domain fed-btrfs2... Disk image will be created at: /var/lib/libvirt/images/fed-btrfs2.qcow2 Creating qcow2 disk image... Formatting '/var/lib/libvirt/images/fed-btrfs2.qcow2', fmt=qcow2 size=10737418240 encryption=off cluster_size=65536 preallocation='metadata' lazy_refcounts=off 1.7M -rw-r--r--. 1 root root 11G Jan 29 13:09 /var/lib/libvirt/images/fed-btrfs2.qcow2 Starting install... Retrieving file .treeinfo... | 2.2 kB 00:00:00 !!! Retrieving file vmlinuz... | 9.8 MB 00:00:18 !!! Retrieving file initrd.img... | 66 MB 00:01:45 !!! Creating domain... | 0 B 00:00:00 Connected to domain fed-btrfs2 Escape character is ^] ===== Expected results: Automated install should proceed successfully.
For virt-install with latest fedora, we started defaulting to using virtio console by default, rather than a standard serial device. This has the benefit of making 'sudo virsh console $vmname' automatically provide a login prompt without extra user config (well, once a systemd bug is fixed). But it breaks this previously working command line Adding --console pty should get you the old behavior. Please reopen if that's not the case
(In reply to Cole Robinson from comment #1) > For virt-install with latest fedora, we started defaulting to using virtio > console by default, rather than a standard serial device. This has the > benefit of making 'sudo virsh console $vmname' automatically provide a login > prompt without extra user config (well, once a systemd bug is fixed). But it > breaks this previously working command line > > Adding --console pty should get you the old behavior. Thanks. Just tried -- that fixes it. > Please reopen if > that's not the case
Reopening. virt-install should check the passed --extra-args and loudly warn if they won't work, and suggest the workaround.
Upstream now
(In reply to Cole Robinson from comment #4) > Upstream now Thanks for fixing. Yeah, I just couldn't articulate that virt-install should complain when --extra-args fail, thanks. Can I request to add upstream commit-id just for reference? It just makes easier when we revisit bugs later. If you think it's really needless, disregard me, I'm not rigid on this.
commit 95575aa5c7c4e192d3dfed88830db540d31aaf04 Author: Cole Robinson <crobinso> Date: Sun Feb 2 15:17:44 2014 -0500 virt-install: Add lots of warnings if --nographics won't work
In rawhide now