[et-mgmt-tools] -parallel supported?
Daniel P. Berrange
berrange at redhat.com
Tue Sep 23 08:24:47 UTC 2008
On Mon, Sep 22, 2008 at 05:57:15PM -0400, Bob Tennent wrote:
> >|> qemu-kvm has a -parallel option for attaching a parallel port to a
> >|> guest. Does virt-manager support this? I'm running version
> >|> 0.5.3-2.fc8.
> >|
> >|virt-manager currently does not have support for adding
> >|parallel devices to guests, though this is supported at
> >|the libvirt level. So, using virsh, you can add a parallel
> >|device to an existing VM. Check out
> >|http://libvirt.org/formatdomain.html#elementsConsole for
> >|xml examples.
>
> Thanks. I added
>
> <parallel type='pty'>
> <source path='/dev/lp0' />
> <target port='0'/>
> </parallel>
>
> to the <devices> section of the relevant file in /etc/libvirt/qemu. The
> parallel "hardware" shows up in virt-manager, but with - as the source
> path; running the domain yields
> libvirtError: internal error Timed out while reading console startup
> output
>
> Same result if I use <source path='/dev/pts/2' />. If I remove the
> parallel "hardware" in the virt-manager, the guest starts up OK.
Your XML syntax is wrong. You specified a 'pty' but then gave it a
real path which doesn't make sense. You want type='dev' instead,
and the <target> element is redundant - that's an output only
element at this time. So, eg
<parallel type='dev'>
<source path='/dev/lp0' />
</parallel>
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 et-mgmt-tools
mailing list