Posted on 11-24-2015 05:50 PM
Thanks to @Peterson at Parallels, we have an "After" script we can push with VMs that set them to Bridge mode.
This prevents computers from showing up twice in JSS due to Shared (NAT) mode, where UDID of host is reported to the JSS by the VM (duplicate computer records hell).
Maybe we'll get a KB from Parallels for the holidays? :)
HTH,
Don
#!/bin/sh
VM_01_PATH="/Users/Shared/Parallels/MyVirtualMachine01.pvm"
VM_02_PATH="/Users/Shared/Parallels/MyVirtualMachine02.pvm"
VM_03_PATH="/Users/Shared/Parallels/MyVirtualMachine03.pvm"
VM_01_NAME="MyVirtualMachine01.pvm"
VM_02_NAME="MyVirtualMachine02.pvm"
VM_03_NAME="MyVirtualMachine03.pvm"
# Set MyVirtualMachine01.pvm to Bridged
if [ -e "$VM_01_PATH" ]; then
/bin/echo "$VM_01_NAME, setting to bridged networking..."
/usr/local/bin/prlctl set "$VM_01_NAME" --device-set net0 --type bridged
else
/bin/echo "$VM_01_NAME does not exist..."
fi
# Set MyVirtualMachine02.pvm to Bridged
if [ -e "$VM_02_PATH" ]; then
/bin/echo "$VM_02_NAME exists, setting to bridged networking..."
/usr/local/bin/prlctl set "$VM_02_NAME" --device-set net0 --type bridged
else
/bin/echo "$VM_02_NAME does not exist..."
fi
# Set MyVirtualMachine03.pvm to Bridged
if [ -e "$VM_03_PATH" ]; then
/bin/echo "$VM_03_NAME exists, setting to bridged networking..."
/usr/local/bin/prlctl set "$VM_03_NAME" --device-set net0 --type bridged
else
/bin/echo "$VM_03_NAME does not exist..."
fi
exit 0