Guest-to-guest

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.

Figure 1. Guest-to-guest communication using virtio-net vdevs as peer nodes in each guest.

To configure virtio-net vdevs in two guests to establish communication between the guests, specify the generic name option (see Common vdev options in the Configuration 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).

If 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/qnx66-x86-guest/moe

where /dev/qvm/qnx66-x86-guest/moe points to Guest 1, and, for Guest 1:

system qnx66-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/qnx66-x86-guest/moe
/dev/qvm/qnx7-x86-guest/curly