To set a DNS search domain for the virtual machine MyVM
and the container MyCT
, run these commands:
# prlctl set MyVM --device-set net0 --searchdomain 192.168.10.10 # prlctl set MyCT --searchdomain 192.168.10.10
Note
Notes:
- You can configure the network settings only of virtual machines that have OpenVZ guest tools installed.
- Network adapters operating in the routed mode must have at least one static IP address assigned.
-
To assign network masks to containers operating in the
venet0
networking mode, you must set theUSE_VENET_MASK
parameter in the/etc/vz/vz.conf
configuration file toyes
. - Containers can have only one network adapter operating in the host-routed mode. This adapter is automatically created when you create a virtual machine.