User`s guide

Managing Parallels Server Bare Metal Network 154
Connecting Virtual Machines to Virtual Networks
In Parallels Server Bare Metal, you can connect your virtual machines to Virtual Networks of
the following types:
Bridged networks. This type of Virtual Networks allows the virtual machine to use one of
the physical server's network adapters, which makes it appear as a separate computer on the
network the corresponding adapter belongs to.
Shared networks. This type of Virtual Networks allows the virtual machine to use the
current network connections of your Parallels server.
Host-only networks. This type of Virtual Networks allows the virtual machine to access only
the Parallels server and the virtual machines joined to this network.
To connect your virtual machines to any of these networks, use the pctl set command. For
example, the following session shows you how to connect the net0 adapter of the MyVM virtual
machine to the Bridged Virtual Network (this is one of the default Virtual Networks created
on the Parallels server during the Parallels Server Bare Metal installation).
Before connecting the MyVM virtual machine to the Bridged Virtual Network, you may wish
to check the network adapter associated with this Virtual Network. You can do it, for example,
using the following command:
# prlsrvctl net list
Network ID Type Bound To
Shared shared vnic0
Host-Only host-only vnic1
Bridged bridged eth0
vznetwork1 host-only vnic2
From the command output, you can see that the Bridged Virtual Network is attached to the
eth0 physical adapter on the Parallels server. It means that, after connecting the MyVM virtual
machine to the Bridged Virtual Network, the virtual machine will be able to access all the
computers on the network where the eth0 adapter is connected.
Now you can run the following command to join the net0 adapter of the MyVM virtual machine
to the Bridged Virtual Network:
# pctl set MyVM --device-set net0 --network Bridged
Creating net0 (+) network=Bridged mac=001C422D7493
The VM has been successfully configured.