Bug 548116 - cannot create a headless KVM virtual machine
Summary: cannot create a headless KVM virtual machine
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: libvirt
Version: 12
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Daniel Veillard
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 548127
TreeView+ depends on / blocked
 
Reported: 2009-12-16 17:03 UTC by Jeff Bastian
Modified: 2010-05-12 15:10 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
: 548127 (view as bug list)
Environment:
Last Closed: 2010-05-12 15:10:51 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jeff Bastian 2009-12-16 17:03:36 UTC
Description of problem:
virt-install cannot create a headless machine, i.e., no virtual VGA card.

The --nographics option does not start the graphical console, but it still creates a virtual Cirrus VGA card for the guest.

The --video option does not let you specify 'none' as an option.  It gives a Python traceback and
   ERROR    internal error unknown video model 'none'

You can create a headless machine with qemu-kvm directly by specifying '-nographic -vga none'.

Please let 'virt-install --nographics --video=none ...' create a headless virtual machine with no VGA card.


Version-Release number of selected component (if applicable):
python-virtinst-0.500.0-5.fc12

How reproducible:
every time

Steps to Reproduce:
1. virt-install --nographics --video=none ...
  
Actual results:
ERROR    internal error unknown video model 'none'

Expected results:
create a virtual machine with no VGA card like 'qemu-kvm -nographic -vga none'

Additional info:

Comment 1 Jeff Bastian 2009-12-16 17:12:02 UTC
For reference, here's my full qemu-kvm command I used when testing:

qemu-kvm \
   -name rhel54-headless \
   -m 512 \
   -hda /var/lib/libvirt/images/rhel54-headless.img \
   -net nic,model=virtio \
   -net user \
   -nographic \
   -vga none \
   -serial stdio \
   -kernel /..../RHEL-5-Server/U4/x86_64/os/images/pxeboot/vmlinuz \
   -initrd /..../RHEL-5-Server/U4/x86_64/os/images/pxeboot/initrd.img \
   -append "console=ttyS0 serial vnc"

Comment 2 Daniel Berrangé 2009-12-16 17:17:12 UTC
The --nographics option to virt-install should already be turning off the VGA card. That it doesn't is a bug in libvirt, we were unable to solve in the past since '-vga' did not exist in QEMU. We can solve it now, with -vga none.
There's no need for any other args in virt-install itself.

Comment 3 Cole Robinson 2010-05-12 15:10:51 UTC
The qemu -device work facilitating this in libvirt was extensive and could not be backported to F12, so this will only work in F13 and later. Closing as RAWHIDE.


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