The following describes a configuration for virtio-net vdevs two guests used to establish communication between these guests.
The figure below illustrates a peer-to-peer connection using a virtio-net vdev in each guest. The virtio-net configuration described below would establish this sort of connection.
To configure virtio-net vdevs in two guests to establish communication between the guests, specify the build_host.xml name option (see Common vdev options in the Virtual Device Reference chapter) to have a peer vdev appear under /dev/qvm/system_name/vdev_name, where 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/qnx7-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 specified for the virtio-net vdev's name option. Thus, in the qvm configuration files for two QNX guests you might have, for Guest 0:
system qnx7-x86-guest vdev virtio-net mac 56:4d:51:ae:23:0e name curly peer /dev/qvm/qos21-x86-guest/moe
where /dev/qvm/qos21-x86-guest/moe points to Guest 1, and, for Guest 1:
system qos21-x86-guest vdev virtio-net mac 56:4d:51:87:3d:ac name moe peer /dev/qvm/qnx7-x86-guest/curly
where /dev/qvm/qnx-x86-guest/curly points to Guest 0.
With these configurations, on the host the peer vdevs would appear as follows:
/dev/qvm/qos21-x86-guest/moe /dev/qvm/qnx7-x86-guest/curly