Article ID: 8120, created on Feb 26, 2010, last review on May 8, 2014

  • Applies to:
  • Virtuozzo hypervisor 4.0 for Mac Bare Metal

Resolution

Yes, Parallels Server for Mac Bare Metal (PSfM BM) allows changing VM's network settings from host. For Windows or Linux VMs you can use "pctl set VM" command (Parallels Tools are required to be installed inside VMs.) For Mac OS VMs use "pctl exec VM" functionality to change guest network settings.

Example for Windows/Linux:

Run the command below to get list of existing network interfaces:
# pctl list --info 'WindowsServerVM' | grep net
Boot order: hdd0 cdrom0 net0
  net0 (+) network=Bridged mac=001C421C917F
  net1 (+) network=Bridged mac=001C42E98E8A

Run the following command to change network settings:
# pctl set 'WindowsServerVM' --ifname net0 --ipadd 10.0.0.2/255.0.0.0 --nameserver 10.0.0.1 --gw 10.0.0.1 --searchdomain domain.tld

Example for Mac:

To list TCP/IP information for a configuration:
# pctl exec 'VM Name' sudo networksetup -getinfo "configuration"

Real life example:
#  pctl exec 'SnowLeopardVM' sudo networksetup -getinfo "Ethernet"

To set manual TCP/IP information for a configuration:
# pctl exec 'VM Name' sudo networksetup -setmanual "configuration" ipaddress subnetmask router

Real life example:
#  pctl exec 'SnowLeopardVM' sudo networksetup -setmanual "Ethernet" 10.0.0.2  255.0.0.0 10.0.0.1

To list DNS servers for a configuration:
# pctl exec 'VM Name' sudo networksetup -getdnsservers "configuration"

To change DNS servers for a configuration:
# pctl exec 'VM Name' sudo networksetup -setdnsservers "configuration" dns1

0fe456bdc1f41aefe37dd2554a60437e a26b38f94253cdfbf1028d72cf3a498b 2897d76d56d2010f4e3a28f864d69223

Email subscription for changes to this article
Save as PDF