diff --git a/solidworks-vmfix.sh b/solidworks-vmfix.sh new file mode 100755 index 0000000..eb3c939 --- /dev/null +++ b/solidworks-vmfix.sh @@ -0,0 +1,19 @@ +#!/usr/bin/bash +# Adapted from https://outerrim.dev/posts/solidworks-vm/ +# Execute as "solidworks-vmfix.sh [vmname]" +VMNAME=$1 +rand9="abcdefghi" #any 9 character string +rand20="abdcefghijklmnopqrst" #any 20 character string +rand8="abcdefgh" #any 8 character string +echo "Setting up BIOS settings that Solidworks is checking for on VM $VMNAME" + +VBoxManage setextradata $VMNAME "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSVendor" "American Megatrends Inc" +VBoxManage setextradata $VMNAME "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSVersion" "2.1.0" +VBoxManage setextradata $VMNAME "VBoxInternal/Devices/pcbios/0/Config/DmiSystemVendor" "ASUSTek Computer" + +VBoxManage setextradata $VMNAME "VBoxInternal/Devices/pcbios/0/Config/DmiSystemSerial" $rand9 + +VBoxManage setextradata $VMNAME "VBoxInternal/Devices/ahci/0/Config/Port0/SerialNumber" $rand20 + +VBoxManage setextradata $VMNAME "VBoxInternal/Devices/ahci/0/Config/Port0/FirmwareRevision" $rand8 +VBoxManage setextradata $VMNAME "VBoxInternal/Devices/ahci/0/Config/Port0/ModelNumber" "SEAGATE ST3750525AS"