From dd0e12059f4bae82ca8504e54fcb61bab63f4121 Mon Sep 17 00:00:00 2001 From: Joseph Timothy Foley Date: Thu, 27 Aug 2026 11:12:27 +0000 Subject: [PATCH] Cleared pcbios data and it booted --- solidworks-vmfix.sh | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/solidworks-vmfix.sh b/solidworks-vmfix.sh index eb3c939..140deb7 100755 --- a/solidworks-vmfix.sh +++ b/solidworks-vmfix.sh @@ -5,15 +5,24 @@ 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" +boottype="efi" #efi or pcibios +echo "Setting up $boottype settings that Solidworks is checking for on VM $VMNAME" +echo "You can check settings by typing: vboxmanage getextradata $VMNAME enumerate" -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/$boottype/0/Config/DmiBIOSVendor" "American Megatrends Inc" +VBoxManage setextradata $VMNAME "VBoxInternal/Devices/$boottype/0/Config/DmiBIOSVersion" "2.1.0" +VBoxManage setextradata $VMNAME "VBoxInternal/Devices/$boottype/0/Config/DmiSystemVendor" "ASUSTek Computer" +VBoxManage setextradata $VMNAME "VBoxInternal/Devices/$boottype/0/Config/DmiSystemSerial" $rand9 -VBoxManage setextradata $VMNAME "VBoxInternal/Devices/pcbios/0/Config/DmiSystemSerial" $rand9 +## if you have to clear them out, leave the value empty +#vboxmanage setextradata $VMNAME "VBoxInternal/Devices/$boottype/0/Config/DmiBIOSVendor" +#VBoxManage setextradata $VMNAME "VBoxInternal/Devices/$boottype/0/Config/DmiBIOSVersion" +#VBoxManage setextradata $VMNAME "VBoxInternal/Devices/$boottype/0/Config/DmiSystemVendor" +#VBoxManage setextradata $VMNAME "VBoxInternal/Devices/$boottype/0/Config/DmiSystemSerial" -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" + +# 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"