nba现役教练排名:VMware workstation 虚拟主机系统随宿主系统Login一起启动

来源:百度文库 编辑:偶看新闻 时间:2024/04/29 12:21:00

VMware workstation 虚拟主机系统随宿主系统Login一起启动

第一步

首先 打开虚拟机的主窗口 》编辑》参数
确保勾上以下两个选项
1、在关闭后在后台运行电源已打开的虚拟机
2、虚拟机电源打开时显示托盘图标
选上后确定 关闭虚拟机

第二步

此时例如你的虚拟机的虚拟磁盘相应文件保存在

E:\Windows XP Professional\ 目录下
其配置文件名为 Windows XP Professional.vmx
打开记事本并写入相应命令 命令内容如下

start /min vmware.exe -x "E:\Windows XP Professional\Windows XP Professional.vmx"
ping -n 10 127.0.0.1>nul 2>nul
taskkill /im vmware.exe /f
exit

编写完以后保存到虚拟机目录下 例如 C:\Program Files\VMware\VMware Workstation
文件名为 自动运行虚拟机.bat (文件名可以任意 只要后缀名没错就行)

最后将此文件 发送到 桌面快捷方式
再将这个快捷方式 剪切到 开始菜单里面的 启动目录中 即可
或者打开组策略的用户选项中的开机或关机执行脚本也可以。

另外提示:
如果有特定的移动存储设备需要在虚拟机中自动连接的话,则可以修改vm虚拟系统主机的配置文件。如果官方说明。

To automatically connect a particular USB device:

  1. Identify and obtain the USB device's vendor ID and product ID as reported by the host operating system.
  2. Edit the virtual machine's configuration file (.vmx) to contain an autoConnect entry for the USB device.


Caution: Be aware that you may "break" the USB functionality for your virtual machine if you configure conflicting autoconnect settings.

Identifying and Obtaining the USB Device's Vendor ID and Product ID

On a Linux host, after you connect the USB device, you can find the vendor and product ID in the /proc/bus/usb/devices file. For example:
more /proc/bus/usb/devices
T: Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#= 3 Spd=1.5 MxCh= 0
D: Ver= 2.00 Cls=ff(vend.) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1
P: Vendor=0529 ProdID=0001 Rev= 2.15
S: Manufacturer=AKS
S: Product=HASP HL 2.15

Here, 529 is the vendor ID and 1 is the product ID for the HASP HL device.

On a Windows host, you may find the vendor and product IDs in the registry.

Caution: This procedure involves accessing the registry. Incorrect changes to the registry can leave your system unstable or unable to run. Always back up the registry before you edit it, and exercise caution in making changes to the registry. VMware takes no responsibility for problems that may arise.

  1. Open the registry. (Choose Start > Run >regedit.)
  2. Search for your USB device's name or brand in the following registry path:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\

    For example, the following output was a result of searching for a Cruzer Mini USB key:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\USB\Vid_0781&Pid_7101\00526174
    HardwareID: USB\Vid_0781&Pid_7101&Rev_0102
                USB\Vid_0781&Pid_7101
    LocationInformation: Cruzer Mini
    Mfg: Compatible USB storage device

    Here, the vendor ID is 781 and the product ID is 7101.


Editing the Virtual Machine's Configuration File

The configuration (.vmx) file is normally located in the same directory in which the virtual machine was created. Make sure the virtual machine is powered off before you edit this file.

To autoconnect the HASP HL device from the previous example, add the following line in the .vmx file of the virtual machine:
usb.autoConnect.device0 = "0x529:0x1"

Or, for the Cruzer Mini device, add:
usb.autoConnect.device0 = "0x781:0x7101"

Note: Prepend 0x to each value — it must be in hex format.

You can specify multiple devices for autoconnect, provided that there are not more than two USB devices available to the host at the same time. Multiple entries for autoConnect are shown in the following example. An ellipsis ( ? ) indicates the omission of an actual vendor or product ID. You need to include a specific value, as shown for device0 and device1.
usb.autoConnect.device0 = "0x529:0x1"
usb.autoConnect.device1 = "0x781:0x7101"
usb.autoConnect.device2 = ....
usb.autoConnect.device3 = ....

For more information about using USB devices in Workstation 5, see "Using USB Devices in a Virtual Machine" in the VMware Workstation 5 User's Manual.

detail URL :  http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1648