[libvirt-users] adding devices and chardev in .xml configuration file ...

Martin Kletzander mkletzan at redhat.com
Thu Jul 9 12:43:15 UTC 2015


On Thu, Jul 09, 2015 at 12:27:20PM +0000, Jean-Pierre Ribeauville wrote:
>Hi,
>
>As I want to start qemu by adding following parameters :
>
>
>-device virtio-serial
>-chardev socket,path=/tmp/foo,server,nowait,id=test
>-device virtserialport,chardev=test,name=port.0
>
>Is it possible to add them in the .xml configuration file of the guest , so they will be automatically added when the guest is started ?
>

If you don't actually care that much about the id and name, then yes:

  <channel type='unix'>
    <source type='bind' path='/tmp/foo'/>
    <target type='virtio' port='0'/>
  </channel>

If you do, then it's possible too, but unsupported.

>If yes , any doc describing the syntax ?
>

https://libvirt.org/formatdomain.html#elementsConsole

Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20150709/89546217/attachment.sig>


More information about the libvirt-users mailing list