设置VMware启动进⼊BIOS以及对UEFI的⽀持
Vmware虚拟机进⼊BIOS⽅法
在VMware⾥⾯如何进⼊BIOS是个头疼的问题,因为启动界⾯⼀闪⽽过(下⾯两个图如果不设置bios.bootDelay,基本上很难抓到),即使你狂按F2或ESC键(ESC: 调整启动顺序;F2: 进⼊BIOS Setup) ,绝⼤部分都⽆法进⼊BIOS。因为VMware启动界⾯显⽰时间太短、系统⽆法识别按键⽽直接开启了系统。
研究了⼀下,发现VMware的配置⽂件.vmx可以控制这个过程, ⽹上提⽰有两种参数可以设置来解决这个问题:
1. 加⼊⼀⾏:
复制代码
代码如下:
bios.forceSetupOnce = "TRUE" ;
开机就⾃动进⼊BIOS!
不过VMware启动后,会将该参数由TRUE变为FALSE,如果您还要继续使⽤BIOS,就再⼿动改成TRUE即可;
2. 延长启动画⾯时间:
复制代码
代码如下:
bios.bootDelay = "10000";
10000为10秒。
特意在Vmware上测试了⼀下,如下所⽰,到服务器GETTESTLX的Vmware的配置⽂件,具体内容如下所⽰,在配置⽂件末尾配置上⾯两个参数都能顺利进⼊BIOS。
所以⼀般的配置⽂件范例⼤约是:
复制代码
代码如下:
.encoding = "UTF-8"
config.version = "8"
virtualHW.version = "8"
nvram = "GETTESTLX.nvram"
pciBridge0.present = "TRUE"
svga.present = "TRUE"
pciBridge4.present = "TRUE"
pciBridge4.virtualDev = "pcieRootPort"
pciBridge4.functions = "8"
pciBridge5.present = "TRUE"
pciBridge5.virtualDev = "pcieRootPort"
pciBridge5.functions = "8"
pciBridge6.present = "TRUE"
pciBridge6.virtualDev = "pcieRootPort"
pciBridge6.functions = "8"
pciBridge7.present = "TRUE"
pciBridge7.virtualDev = "pcieRootPort"
pciBridge7.functions = "8"
vmci0.present = "TRUE"
hpet0.present = "TRUE"
displayName = "GETTESTLX"
extendedConfigFile = "GETTESTLX.vmxf"
virtualHW.productCompatibility = "hosted"
memSize = "1024"
scsi0.virtualDev = "lsilogic"
scsi0.present = "TRUE"
ide1:0.deviceType = "cdrom-image"
ide1:0.fileName = "/vmfs/volumes/4f38d1b9-9720c09c-38a5-782bcb6ee1e6/ISO/OracleLinux-R5-U7-Server-x86_64-dvd.iso" ide1:0.present = "TRUE"
floppy0.startConnected = "FALSE"
floppy0.clientDevice = "TRUE"
floppy0.fileName = "vmware-null-remote-floppy"
ethernet0.virtualDev = "e1000"
ethernet0workName = "IP27"
ethernet0.addressType = "vpx"
ethernet0.present = "TRUE"
scsi0:0.deviceType = "scsi-hardDisk"
scsi0:0.fileName = "GETTESTLX.vmdk"
scsi0:0.present = "TRUE"
guestOS = "rhel5-64"
toolScripts.afterPowerOn = "TRUE"
toolScripts.afterResume = "TRUE"
toolScripts.beforeSuspend = "TRUE"
toolScripts.beforePowerOff = "TRUE"
uuid.bios = "42 33 d1 9c 71 9c 24 d8-82 e0 84 22 ae f7 e5 9a"
vc.uuid = "50 33 09 82 fa 29 14 fc-e0 4c 34 78 f6 56 a7 a2"
sched.scsi0:0.throughputCap = "off"
sched.swap.derivedName = "/vmfs/volumes/54e2da83-530edd90-a073-842b2b58e01d/GETTESTLX/GETTESTLX-
a452f717.vswp"
uuid.location = "56 4d f0 82 ff e1 99 25-75 92 bc 2c 02 0a 59 af"
replay.supported = "FALSE"
replay.filename = ""
do = ""
pciBridge0.pciSlotNumber = "17"
pciBridge4.pciSlotNumber = "21"
pciBridge5.pciSlotNumber = "22"
pciBridge6.pciSlotNumber = "23"
pciBridge7.pciSlotNumber = "24"
scsi0.pciSlotNumber = "16"
ethernet0.pciSlotNumber = "32"
vmci0.pciSlotNumber = "33"
vmci0.id = "-1359485542"
hostCPUID.0 = "0000000b756e65476c65746e49656e69"
hostCPUID.1 = "000206c220200800029ee3ffbfebfbff"
hostCPUID.80000001 = "0000000000000000000000012c100800"
guestCPUID.0 = "0000000b756e65476c65746e49656e69"
guestCPUID.1 = "000206c200010800829822030fabfbff"
guestCPUID.80000001 = "00000000000000000000000128100800"
userCPUID.0 = "0000000b756e65476c65746e49656e69"
userCPUID.1 = "000206c220200800029822030fabfbff"
userCPUID.80000001 = "00000000000000000000000128100800"
evcCompatibilityMode = "FALSE"
vmotion.checkpointFBSize = "4194304"
cleanShutdown = "TRUE"
softPowerOff = "FALSE"
sched.scsi0:0.shares = "normal"
ide1:0.allowGuestConnectionControl = "TRUE"
让VMware虚拟机⽀持UEFI BIOS
第⼀步、新建虚拟机,在虚拟机⼯作⽬录下到.vmx格式⽂件,使⽤记事本程序,打开该⽂件,在⽂件中添加:firmware = "efi"
第⼆步、开启虚拟机电源后,按下ESC键,稍等⼀会⼉,会进⼊UEFI设置界⾯,包括三个选项:
bios setup
(1)、Continue:继续,系统会⾃动选择UEFI设备,如果没有的话,会出现提⽰错误界⾯
(2)、Boot Manager:启动管理,⽤于指定UEFI启动设备
(3)、Boot Maintenance Manager:开机维护管理员,⽤于管理启动设备、启动⽂件、屏幕⼤⼩等

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。