Guest-to-guest
This section describes a configuration for virtio-net vdevs used to establish communication between guests.
The figure below illustrates the peer-to-peer connection with a virtio-net vdev in each guest that would result from the configuration described below.
To establish communication between two guests via virtio-net vdevs, the
guests must specify the name option (see Common vdev options
in the Virtual Device Reference
chapter) to create a peer
virtio-net vdev path that appears as
/dev/qvm/system_name/vdev_name.
Here, system_name is the value you gave to the
system option and vdev_name is the name of
the peer vdev (e.g.,
/dev/qvm/qnx80-x86_64-guest/virtio-net_0).
When you use the virtio-net vdev's peer option, the full
name of the end of the peer link is formed from the value of
system_name concatenated with the value of the
virtio-net vdev's name option. Thus, in the
qvm configuration files for two QNX guests, you might have,
for Guest 0:
system qnx80-x86_64-guest
vdev virtio-net
mac 56:4d:51:ae:23:0e
name curly
peer /dev/qvm/qnx80-x86_64-guest/moe
where
/dev/qvm/qnx80-x86_64-guest/moe
points to Guest 1, and, for
Guest 1: system qnx80-x86_64-guest
vdev virtio-net
mac 56:4d:51:87:3d:ac
name moe
peer /dev/qvm/qnx80-x86_64-guest/curly
where
/dev/qvm/qnx80-x86_64-guest/curly
points to Guest 0.With these configurations, the peer virtio-net vdevs appear as follows on
the host:
/dev/qvm/qnx80-x86_64-guest/moe
/dev/qvm/qnx80-x86_64-guest/curly
Page updated: