If you’ve wanted to try out a bootable CD or USB flash drive in a virtual machine environment, you’ve probably noticed that VMWare’s offerings make it difficult to change the boot device. We’ll show you how to change these options.
如果您想在虚拟机环境中试用可引导CD或USB闪存驱动器,您可能已经注意到VMWare的产品使更换引导设备变得很困难。 我们将向您展示如何更改这些选项。
You can do this either for one boot, or permanently for a particular virtual machine.
您可以一次启动,也可以永久地为特定虚拟机执行此操作。
Even experienced users of VMWare Player or Workstation may not recognize the screen above – it’s the virtual machine’s BIOS, which in most cases flashes by in the blink of an eye.
即使是经验丰富的VMWare Player或Workstation用户,也可能无法识别上面的屏幕-它是虚拟机的BIOS,在大多数情况下,它们眨眼之间就会闪烁。
If you want to boot up the virtual machine with a CD or USB key instead of the hard drive, then you’ll need more than an eye’s-blink to press Escape and bring up the Boot Menu. Fortunately, there is a way to introduce a boot delay that isn’t exposed in VMWare’s graphical interface – you have to edit the virtual machine’s settings file (a .vmx file) manually.
如果您想使用CD或USB**而不是硬盘驱动器来启动虚拟机,那么您不仅需要眨眼就能按下Escape并弹出启动菜单。 幸运的是,有一种方法可以引入VMWare图形界面中未显示的启动延迟–您必须手动编辑虚拟机的设置文件(.vmx文件)。
Editing the Virtual Machine’s .vmx
编辑虚拟机的.vmx
Find the .vmx file that contains the settings for your virtual machine. You chose a location for this when you created the virtual machine – in Windows, the default location is a folder called My Virtual Machines in your My Documents folder.
找到包含您的虚拟机设置的.vmx文件。 您在创建虚拟机时为此选择了一个位置-在Windows中,默认位置是“我的文档”文件夹中一个名为“ 我的虚拟机 ”的文件夹。
In VMWare Workstation, the location of the .vmx file is listed on the virtual machine’s tab.
在VMWare Workstation中,.vmx文件的位置在虚拟机的选项卡上列出。
If in doubt, search your hard drive for .vmx files. If you don’t want to use Windows default search, an awesome utility that locates files instantly is Everything.
如有疑问,请在硬盘上搜索.vmx文件。 如果您不想使用Windows默认搜索, 那么可以立即查找文件的实用工具为Everything 。
Open the .vmx file with any text editor.
使用任何文本编辑器打开.vmx文件。
Somewhere in this file, enter in the following line… save the file, then close out of the text editor:
在此文件中的某处,输入以下行…保存文件,然后关闭文本编辑器:
bios.bootdelay = 20000
bios.bootdelay = 20000
This will introduce a 20 second delay when the virtual machine loads up, giving you plenty of time to press the Escape button and access the boot menu. The number in this line is just a value in milliseconds, so for a five second boot delay, enter 5000, and so on.
当虚拟机加载时,这将导致20秒的延迟,从而使您有足够的时间按Escape按钮并访问引导菜单。 该行中的数字只是一个毫秒值,因此对于五秒钟的启动延迟,请输入5000,依此类推。
Change Boot Options Temporarily
临时更改启动选项
Now, when you boot up your virtual machine, you’ll have plenty of time to enter one of the keystrokes listed at the bottom of the BIOS screen on boot-up.
现在,当您启动虚拟机时,您将有足够的时间来输入启动时BIOS屏幕底部列出的击键之一。
Press Escape to bring up the Boot Menu. This allows you to select a different device to boot from – like a CD drive.
按Escape弹出启动菜单。 这样,您就可以选择其他设备来启动,例如CD驱动器。
Your selection will be forgotten the next time you boot up this virtual machine.
下次启动该虚拟机时,您的选择将被忘记。
Change Boot Options Permanently
永久更改启动选项
When the BIOS screen comes up, press F2 to enter the BIOS Setup menu.
当出现BIOS屏幕时,按F2键进入BIOS设置菜单。
Switch to the Boot tab, and change the ordering of the items by pressing the “+” key to move items up on the list, and the “-” key to move items down the list. We’ve switched the order so that the CD-ROM Drive boots first.
切换到“引导”选项卡,并通过按“ +”键在列表上向上移动项目,并按“-”键在列表上向下移动项目来更改项目的顺序。 我们已更改了顺序,以便首先引导CD-ROM驱动器。
Once you make this change permanent, you may want to re-edit the .vmx file to remove the boot delay.
一旦使此更改永久生效,您可能需要重新编辑.vmx文件以消除启动延迟。
Boot from a USB Flash Drive
从USB闪存驱动器引导
One thing that is noticeably missing from the list of boot options is a USB device. VMWare’s BIOS just does not allow this, but we can get around that limitation using the PLoP Boot Manager that we’ve previously written about. And as a bonus, since everything is virtual anyway, there’s no need to actually burn PLoP to a CD.
引导选项列表中明显缺少的一件事是USB设备。 VMWare的BIOS只是不允许这样做,但是我们可以使用我们先前编写的PLoP Boot Manager来克服该限制。 另外,由于所有内容都是虚拟的,因此无需将PLoP实际刻录到CD。
Open the settings for the virtual machine you want to boot with a USB drive. Click on Add… at the bottom of the settings screen, and select CD/DVD Drive. Click Next.
打开要使用USB驱动器启动的虚拟机的设置。 单击设置屏幕底部的添加...,然后选择CD / DVD驱动器。 点击下一步。
Click the Use ISO Image radio button, and click Next.
单击使用ISO映像单选按钮,然后单击下一步。
Browse to find plpbt.iso or plpbtnoemul.iso from the PLoP zip file. Ensure that Connect at power on is checked, and then click Finish.
浏览并从PLoP zip文件中找到plpbt.iso或plpbtnoemul.iso。 确保选中“开机时连接”,然后单击“完成”。
Click OK on the main Virtual Machine Settings page.
在“虚拟机设置”主页面上单击“确定”。
Now, if you use the steps above to boot using that CD/DVD drive, PLoP will load, allowing you to boot from a USB drive!
现在,如果您按照上述步骤使用该CD / DVD驱动器进行引导,则会加载PLoP,从而允许您从USB驱动器进行引导!
Conclusion
结论
We’re big fans of VMWare Player and Workstation, as they let us try out a ton of geeky things without worrying about harming our systems. By introducing a boot delay, we can add bootable CDs and USB drives to the list of geeky things we can try out.
我们是VMWare Player和Workstation的忠实拥护者,因为他们让我们尝试了很多令人讨厌的事情,而不必担心损害我们的系统。 通过引入启动延迟,我们可以将可启动CD和USB驱动器添加到我们可以尝试的怪胎列表中。
翻译自: https://www.howtogeek.com/howto/16876/how-to-increase-the-vmware-boot-screen-delay/