[libvirt] Cannot use console with 0.7.5, error: internal error no assigned pty for device serial0

Daniel P. Berrange berrange at redhat.com
Fri Jan 15 14:29:09 UTC 2010


On Fri, Jan 15, 2010 at 03:13:25PM +0100, Marc Haber wrote:
> Hi,
> 
> On Fri, Jan 15, 2010 at 11:43:26AM +0000, Matthew Booth wrote:
> > Could you please post the full domain XML, and the QEMU command line it
> > generated? You can get the latter from
> > /var/log/libvirt/qemu/<domain>.log. Can you also post the versions of
> > qemu and libvirt?
> 
> $ cat /etc/libvirt/qemu/grml-test.xml
> <domain type='kvm'>
>   <name>grml-test</name>
>   <uuid>ce24153b-b997-0f04-6fd1-ac06cfb780a7</uuid>
>   <memory>262144</memory>
>   <currentMemory>262144</currentMemory>
>   <vcpu>1</vcpu>
>   <os>
>     <type arch='x86_64' machine='pc'>hvm</type>
>     <boot dev='hd'/>
>   </os>
>   <features>
>     <acpi/>
>   </features>
>   <clock offset='utc'/>
>   <on_poweroff>destroy</on_poweroff>
>   <on_reboot>destroy</on_reboot>
>   <on_crash>destroy</on_crash>
>   <devices>
>     <emulator>/usr/bin/kvm</emulator>
>     <disk type='file' device='disk'>
>       <source file='/dev/mapper/usb160g-grml--test'/>
>       <target dev='vda' bus='virtio'/>
>     </disk>
>     <interface type='bridge'>
>       <mac address='52:54:00:39:d8:4b'/>
>       <source bridge='br0'/>
>       <model type='virtio'/>
>     </interface>
>     <serial type='pty'>
>       <target port='0'/>
>     </serial>
>     <console type='pty'>
>       <target port='0'/>
>     </console>
>     <input type='mouse' bus='ps2'/>
>     <graphics type='vnc' port='-1' autoport='yes' listen='127.0.0.1' keymap='de'/>
>     <video>
>       <model type='cirrus' vram='9216' heads='1'/>
>     </video>
>   </devices>
> </domain>
> $ sudo tail /var/log/libvirt/qemu/grml-test.log
> LC_ALL=C PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin HOME=/ QEMU_AUDIO_DRV=none /usr/bin/kvm -S -M pc -m 256 -smp 1 -name grml-test -monitor unix:/var/lib/libvirt/qemu/grml-test.monitor,server,nowait -no-reboot -boot c -drive file=/dev/mapper/usb160g-grml--test,if=virtio,index=0,boot=on -net nic,macaddr=52:54:00:39:d8:4b,vlan=0,model=virtio -net tap,fd=39,vlan=0 -serial pty -parallel none -usb -vnc 127.0.0.1:0 -k de

If I were a betting man, I'd bet on this changeset which was missed
from the 0.7.5 release

http://libvirt.org/git/?p=libvirt.git;a=commit;h=c0a9b6a5338e54b64a4a28415ffbdb6bcc2b38c5

Regards,
Daniel
-- 
|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|




More information about the libvir-list mailing list