[Gllug] Virsh Console with KVM

Daniel P. Berrange dan at berrange.com
Fri Jul 23 08:38:31 UTC 2010


On Fri, Jul 23, 2010 at 08:25:54AM +0100, Stephen Nelson-Smith wrote:
> Morning,
> >> If I reboot the guest, I don't see anything until the login screen -
> >> so I don't see any boot messages,
> >
> > It sounds rather like your kernel isn't getting the console=ttyS0 line
> > from grub, or do you have 'quiet' set which hides them all.
> 
> Yep.
> 
> >> It seems to be that if I am on the console, and then someone else
> >> tries to join the console, we both get stuck.  Is there a way around
> >> this?
> >
> > Not directly, the console on the host side is a psuedo tty (/dev/pts/NN)
> > Only one process can interact with the TTY at a time. virsh should really
> > be locking it after we open it..
> 
> OK.
> 
> Two more related questions, while I have your attention!
> 
> 1) What's the best way to get a console-based installer, rather than
> using virt-viewer?

Don't use the --vnc option. Add --nographics --extra-args "console=ttyS0"

> 2) Any idea why this is happening:
> 
> # client=nicknack
> # lvcreate -L 5G -n ${client}-root /dev/vm-images
> # virt-install -n $client -r 512 --network=bridge:br0 --pxe
> --accelerate --vnc --os-type=linux --disk=/dev/vm-images/nicknack-root
> ERROR    Error with storage parameters: Size must be specified for non
> existent volume path '/dev/vm-images/nicknack-root'

You created a new LVM volume yourself, but libvirt doesn't know
about it. You'll need to run a 'virsh pool-refresh POOLNAME'.

Or just let libvirt create it

   --disk $POOLNAME/nicknack-root,size=5G

Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list