[Gllug] Virsh Console with KVM

Stephen Nelson-Smith sanelson at gmail.com
Fri Jul 23 07:25:54 UTC 2010


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?
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'
# lvscan
  ACTIVE            '/dev/vm-images/cen-ops-mgmt1-disk' [20.00 GiB] inherit
  ACTIVE            '/dev/vm-images/goldfinger-disk' [12.00 GiB] inherit
  ACTIVE            '/dev/vm-images/conversion' [19.53 GiB] inherit
  ACTIVE            '/dev/vm-images/jaws-disk' [10.00 GiB] inherit
  ACTIVE            '/dev/vm-images/klebb-disk' [9.77 GiB] inherit
  ACTIVE            '/dev/vm-images/sns-disk' [3.91 GiB] inherit
  ACTIVE            '/dev/vm-images/thumper-disk' [10.00 GiB] inherit
  ACTIVE            '/dev/vm-images/doc-stg-mailjail-disk' [8.00 GiB] inherit
  ACTIVE            '/dev/vm-images/kristatos-root' [5.00 GiB] inherit
  ACTIVE            '/dev/vm-images/nicknack-root' [4.00 GiB] inherit

I saw this last night too, but this morning I ran the same command
(for kristatos-root) and it worked fine.

S.
-- 
Stephen Nelson-Smith
Technical Director
Atalanta Systems Ltd
www.atalanta-systems.com
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list