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

Re: [libvirt] Serial console on a qemu image through virt-manager



On Mon, May 19, 2008 at 02:22:56PM +0200, ClaesBas wrote:
> How should the xml-file look?
> 
> In http://libvirt.org/formatdomain.html#elementsConsole it says
> something like:
> 
>     <console type='pty'>
>           <source path='/dev/pts/4'/>
>         <target port='0'/>
>     </console>

This is the new format. For compatability with original Xen format
it will also add 'tty=/dev/pts/4' to the top level <console> tag.

> 
> But in Xen example (http://libvirt.org/drvxen.html) it looks like:
> 
> <devices>
>     <console tty='/dev/pts/5'/>
> </devices>

This is the output format, the input format to turn on serial console
is simply. The 'tty' attribute gets filled in later.

   <console/>

> I have latest versions from source on both libvirt (Mercurial) and
> virt-manager (CVS).

virt-manager doesn't currently support serial console. I removed that
code during recent re-factoring and have yet to re-implement it


> Output from /var/log/libvirt/qemu/obsd64.log:
> /usr/bin/kvm -M pc -m 512 -smp 1 -name obsd64 -nographic -monitor pty
> -no-acpi -boot c -drive
> file=/home/cs/kvm/OpenBSD/obsd64.hda,if=ide,index=0,boot=on -net
> nic,macaddr=00:16:3e:17:9d:f7,vlan=0 -net user,vlan=0 -serial pty
> -parallel none -usb
> char device redirected to /dev/pts/1
> char device redirected to /dev/pts/2

That shows the serial console is defined - see the '-serial pty' arg,
so the libvirt part is working as expected.

> Is this working/tested?

The libvirt bit is working as you can see the -serial arg. The virt-manager
support is currently not present & will be addd before the next release of
virt-manager.

Dan.
-- 
|: Red Hat, Engineering, Boston   -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 :|


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