多语言展示
当前在线:1893今日阅读:176今日分享:34

在VirtualBox中安装SolidWorks报错解决方法

直接在虚拟机VirtualBox中安装SolidWorks会提示“此环境不支持”
方法/步骤
1

直接在虚拟机VirtualBox中安装SolidWorks会提示“此环境不支持”,如下图所示

2

用记事本打开“hidevm.bat”(SOLIDWORKS破解文件夹内)进行编辑,去除“if "%1"=="" goto usage”这一行,然后将其中的所有“%VMNAME%”的字符替换为自己要安装Solidworks的虚拟主机系统的名字。如下 图的WinEplanAB代替“%VMNAME%”。

3

在 行set VMNAME=%1与行VBoxManage setextradata "WinEplanAB" "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSVendor" "American Megatrends Inc"之间添加如下代码cd C:\Program Files\Oracle\VirtualBox

4

将编辑好的“hidevm.bat”保存到VirtualBox的安装目录(默认位置是:C:\Program Files\Oracle\VirtualBox),然后以管理员身份运行。若无报错,且提示SUCCESS表示已正确设置,此时可如同在主机内安装一样来安装SOLIDWORKS.

5

附录hidevm.bat文件内容:@echo Offsetlocal EnableDelayedExpansionecho VirtualBox Hider for SolidWorksecho by TeAM SolidSQUAD-SSQset VMNAME=%1cd C:\Program Files\Oracle\VirtualBoxVBoxManage setextradata "WinEplanAB" "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSVendor" "American Megatrends Inc"VBoxManage setextradata "WinEplanAB" "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSVersion" "2.1.0"VBoxManage setextradata "WinEplanAB" "VBoxInternal/Devices/pcbios/0/Config/DmiSystemVendor" "ASUSTek Computer"call:gen_random_string 9VBoxManage setextradata "WinEplanAB" "VBoxInternal/Devices/pcbios/0/Config/DmiSystemSerial" "string:!rand!"call:gen_random_string 20VBoxManage setextradata "WinEplanAB" "VBoxInternal/Devices/ahci/0/Config/Port0/SerialNumber" "string:!rand!"call:gen_random_string 8VBoxManage setextradata "WinEplanAB" "VBoxInternal/Devices/ahci/0/Config/Port0/FirmwareRevision" "string:!rand!"VBoxManage setextradata "WinEplanAB" "VBoxInternal/Devices/ahci/0/Config/Port0/ModelNumber" "SEAGATE ST3750525AS"echo.echo Success!echo.pausegoto:eof:usageecho Usage: %0 VM-Nameecho This script shold be started from HOST machineecho where VM-name is a name of STOPPED VirtualBox virtual machineecho Note: the PATH variable must contain path to VBoxManage.exeecho like set PATH=C:\Program Files\Oracle\VirtualBox;%%PATH%%echo.pausegoto:eof:gen_random_stringset lineup=ABCDEFset RandomLength=%1set count=0set rand=:loopset /a count+=1set /a _RND=%Random%*15/32768set rand=!rand!!lineup:~%_RND%,1!if !count! lss %RandomLength% goto loop:eof

推荐信息