Bug 1059220 - Automated Fedora20 guest install with virt-install hangs on serial console once initrd.img is pulled
Summary: Automated Fedora20 guest install with virt-install hangs on serial console on...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: virt-manager
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Cole Robinson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-29 12:59 UTC by Kashyap Chamarthy
Modified: 2014-02-15 00:35 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-02-15 00:35:58 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Kashyap Chamarthy 2014-01-29 12:59:15 UTC
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.

Comment 1 Cole Robinson 2014-01-30 22:46:40 UTC
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

Comment 2 Kashyap Chamarthy 2014-01-31 15:38:18 UTC
(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

Comment 3 Cole Robinson 2014-02-02 16:14:06 UTC
Reopening. virt-install should check the passed --extra-args and loudly warn if they won't work, and suggest the workaround.

Comment 4 Cole Robinson 2014-02-02 20:34:19 UTC
Upstream now

Comment 5 Kashyap Chamarthy 2014-02-03 14:57:23 UTC
(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.

Comment 6 Cole Robinson 2014-02-03 15:14:12 UTC
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

Comment 7 Cole Robinson 2014-02-15 00:35:58 UTC
In rawhide now


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