用命令启动VM虚拟机不显示界面报错的解决方法

本文介绍了一种解决VMware使用nogui参数时出现未知错误的方法。通过修改注册表项并删除特定子键来修复问题,使nogui选项生效。此方法已在VMWARE6.0中验证可行。

当使用nogui参数,出现“unknown error"错误,并不起作用。从网上找来了处理的方法,经过在VMWARE6.0测试成功。


1. EXPORT from the registry the keys at and under "HKEY_LOCAL_MACHINESOFTWAREVMware, Inc.VMware Workstation"

2. in the exported copy, delete all the stuff under the sub-key "Dormant", "License.ws.5.0" and "License.ws.6.0.200610"

3. There won't be much left, but in what is left, change the word "VMware Workstation" to "vmrun"

4. Merge this back into the registry. This is not easy because for some reason I can't add stuff under the key "HKEY_LOCAL_MACHINESOFTWAREVMware, Inc.vmrun", so I renamed that to something handy "vmrun-old", then the merge worked fine.

Now I have 2 copies in the registry of my licensing information (bad) but at least the vmrun seems to have worked with the nogui option.

For information, the registry info that I merged in looks like this (note I have obscured the company name, user name, my license number, and a few other things, so this shows the principle rather than MY details!)

(NOTE - this crazy posting system has converted the standard registry syntax into some insane http: hyperlinked mess. I've spent the last 20 minutes trying to get it to display properly and given up in disgust.)

Windows Registry Editor Version 5.00

http://HKEY_LOCAL_MACHINESOFTWAREVMware, Inc.vmrun
"ProductCode"="{A3FF5CB2-FB35-4658-8751-9EDE1D65B3AA}"
"ProductVersion"="6.0.2.59824"
"InstallPath"="C:
Program FilesVMware
VMware Workstation"

http://HKEY_LOCAL_MACHINESOFTWAREVMware, Inc.vmrunDormant

http://HKEY_LOCAL_MACHINESOFTWAREVMware, Inc.vmrunLicense.ws.6.0.200610
"StartFields"="Cpt, ProductID, LicenseVersion, LicenseType, Epoch"
"Cpt"="COPYRIGHT (c) VMware, Inc. 1999-2007"
"ProductID"="VMware Workstation for Win32"
"LicenseVersion"="6.0"
"LicenseType"="User"
"Epoch"="2006-10-1"
"Hash"="has is obscured"
"Serial"="this has been obscured"
"Name"="my-name"
"CompanyName"="my-companyl"
"LastModified"="2008-02-08 @ 00:33:22 UTC"

http://HKEY_LOCAL_MACHINESOFTWAREVMware, Inc.vmrunvolatile
"UUIDHost"="i have obscure the UUID host as well"

Looking at the log files, it does appear that this HACK is imperfect because there are differences between the NOGUI options and the normal way of running it up. These are that some of the preferences are not being applied (eg total memory for all VM's running on the host), so whilst it works it might not deliver exactly what is expected.

[@more@]

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/21100044/viewspace-1019594/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/21100044/viewspace-1019594/

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符  | 博主筛选后可见
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值