[libvirt-users] virtio-serial port that listens tcp socket on host
Michal Privoznik
mprivozn at redhat.com
Fri Sep 5 06:45:55 UTC 2014
On 26.08.2014 18:42, Vasiliy Tolstov wrote:
>
> 2014-08-26 19:11 GMT+04:00 Andrey Korolyov <andrey at xdel.ru
> <mailto:andrey at xdel.ru>>:
>
> not, right now it is not possible. Why don`t you want to just assign
> unique paths for socket name, derived, say, from VM` UUID?
>
>
> In case of unix domain sockets paths not problem, but i want to connect
> to each qemu-ga address from central point. I don't want to use socat ,
> as i see qemu have ability to specify host and port and in this case
> qemu listens tcp port on this address. But in libvirt schema i can't
> provide host and port.
From http://libvirt.org/formatdomain.html#elementsCharTCP
<devices>
<serial type="tcp">
<source mode="connect" host="0.0.0.0" service="2445"/>
<protocol type="raw"/>
<target port="1"/>
</serial>
</devices>
(side note, I wonder why the heck we try to connect to 0.0.0.0:2445 in
the example)
I'd say substitute 0.0.0.0 with the IP address of your mgmt host. And
use unique port number per domain, otherwise you'd have to pass XML with
changed/unique port upon migration.
Michal
More information about the libvirt-users
mailing list