virsh destroys serial console config on hardy?



Howdy!

      I am setting up server guests on hardy using KVM/libvirt
and every thing works fine, except when I try to configure
serial consoles on virtual machines


according to

 http://libvirt.org/formatdomain.html#elementsCharPTY

A Pseudo TTY is allocated using /dev/ptmx. A suitable client such as 'virsh console' can connect to interact with the serial port locally.

<serial type="pty">
<source path="/dev/pts/3"/>
<target port="1"/>
</serial>
<console type="pty">
 <source path="/dev/pts/3"/>
<target port="1"/>
</console>

when I add the above to the <devices> section
of a valid working xml file and do

virsh define virt1.xml

It returns an aknowledgment that the domain
has been defined but the above additions have been
removed as shown by 'virsh dumpxml virt1' and
a listing of the file. There are no errors listed.

virsh console virt1

returns

No console available for domain


What is the correct way to setup serial
consoles for kmv/virsh on hardy? Or is this not
supported yet or a bug?

thanx -steve


Below is the original virt1.xml config

<domain type='kvm'>
<name>virt1</name>
<memory>2048000</memory>
<currentMemory>2048000</currentMemory>
<vcpu>4</vcpu>
<os>
<type>hvm</type>
<boot dev='hd'/>
</os>
<clock offset='utc'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>destroy</on_crash>
<devices>
<emulator>/usr/bin/kvm</emulator>
<disk type='block' device='disk'>
<source dev='/dev/vm/base_virt1'/>
<target dev='hda' bus='scsi'/>
</disk>
<disk type='block' device='disk'>
<source dev='/dev/vm/data0_virt1'/>
<target dev='hdb' bus='scsi'/>
</disk>
<serial type='pty'>
<source path='/dev/pts/3'/>
<target port='1'/>
</serial>
<console type='pty'>
<source path='/dev/pts/3'/>
<target port='1'/>
</console>
</devices>
</domain>

ps - I also tried the above with /dev/ptmx, still
fails

--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users