On Thu, Jul 18, 2019 at 10:39:09AM +0300, Vasiliy Tolstov wrote:
Hi!
If i want to use bridged network or openvswitch, does guestfwd only
works with slirp network? Or how it work in case of using
bridge/openvswitch?
It is only supported with type=user (aka slirp) networking.
<devices>
<channel type='unix'>
<source mode='bind' path='/tmp/guestfwd'/>
<target type='guestfwd' address='10.0.2.1'
port='4600'/>
</channel>
</devices>
If this cant't work with provided network types, how can i create
inside guest serial console on 10 tty that binded to listening unix
domain socket on host system?
For general purpose data channels we'd recommend using virtio-console
https://libvirt.org/formatdomain.html#elementCharChannel
eg this example shows how QEMU guest agent is configured. Just change
the target name to something for your app
<channel type='unix'>
<source mode='bind'
path='/var/lib/libvirt/qemu/f16x86_64.agent'/>
<target type='virtio' name='org.qemu.guest_agent.0'
state='connected'/>
</channel>
Regards,
Daniel
--
|:
https://berrange.com -o-
https://www.flickr.com/photos/dberrange :|
|:
https://libvirt.org -o-
https://fstop138.berrange.com :|
|:
https://entangle-photo.org -o-
https://www.instagram.com/dberrange :|