Re: adding devices and chardev in .xml configuration file ...

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

 



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

Attachment: signature.asc
Description: PGP signature

_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users

[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux