[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt-users] KVM Virtualisation, Console output no longer working


I used to use KVM for virtualisation and have now moved back to it, but I
have a problem.

When i used to install the guest machine with virt-install i used to use
the -x "extra args" part to set the console for the install and guest, but
it no longer works.

Here is the command i use:

virt-install -n server01 -r 512 --os-variant=virtio26 -c /isos/c5u5.iso
--nographics --noautoconsole -f /storage/vm/server01 -s 5 bus=virtio -w
bridge:br0 -x "console=ttyS0 ks=http://www.domain.com/c5u5.cfg";
As you can see im setting the console to ttyS0, but then when i go to
connect to the console with:

virsh console server01
it either wont connect or comes up with: error: Failed to get local hostname

Here is a dump of the xml, but no mention of ttyS0 either.

<domain type='qemu' id='5'>
    <type arch='x86_64' machine='rhel5.4.0'>hvm</type>
    <boot dev='cdrom'/>
  <clock offset='utc'/>
    <disk type='file' device='disk'>
      <driver name='qemu' cache='none'/>
      <source file='/storage/vm/server01'/>
      <target dev='hda' bus='ide'/>
    <disk type='file' device='cdrom'>
      <source file='/isos/c5u5.iso'/>
      <target dev='hdc' bus='ide'/>
    <interface type='bridge'>
      <mac address='54:52:00:61:ea:78'/>
      <source bridge='br0'/>
      <target dev='vnet0'/>
    <serial type='pty'>
      <source path='/dev/pts/2'/>
      <target port='0'/>
    <console type='pty' tty='/dev/pts/2'>
      <source path='/dev/pts/2'/>
      <target port='0'/>
Can anyone shed any light on this as im totally stuck.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]