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? <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? -- Vasiliy Tolstov, e-mail: v.tolstov@selfip.ru
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 :|
чт, 18 июл. 2019 г. в 12:04, Daniel P. Berrangé <berrange@redhat.com>:> > 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 >Thanks, but virtio-serial as i know not supported in Freebsd, also Serial supported in all OS and without virtio drivers installed/loaded. -- Vasiliy Tolstov, e-mail: v.tolstov@selfip.ru