欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  科技

设置VMware启动进入BIOS以及对UEFI的支持

程序员文章站 2024-01-02 18:36:52
这篇文章主要介绍了设置VMware启动进入BIOS以及对UEFI的支持的方法,通过修改配置文件即可实现,需要的朋友可以参考下... 15-10-20...
vmware虚拟机进入bios方法
在vmware里面如何进入bios是个头疼的问题,因为启动界面一闪而过(下面两个图如果不设置bios.bootdelay,基本上很难抓到),即使你狂按f2或esc键(esc: 调整启动顺序;f2: 进入bios setup) ,绝大部分都无法进入bios。因为vmware启动界面显示时间太短、系统无法识别按键而直接开启了系统。
设置VMware启动进入BIOS以及对UEFI的支持
设置VMware启动进入BIOS以及对UEFI的支持
研究了一下,发现vmware的配置文件.vmx可以控制这个过程, 网上提示有两种参数可以设置来解决这个问题:

1. 加入一行:
复制代码
代码如下:
bios.forcesetuponce = "true" ;
开机就自动进入bios!

不过vmware启动后,会将该参数由true变为false,如果您还要继续使用bios,就再手动改成true即可;

2. 延长启动画面时间:
复制代码
代码如下:
bios.bootdelay = "10000";
10000为10秒。

特意在vmware上测试了一下,如下所示,找到服务器gettestlx的vmware的配置文件,具体内容如下所示,在配置文件末尾配置上面两个参数都能顺利进入bios。
设置VMware启动进入BIOS以及对UEFI的支持
所以一般的配置文件范例大约是:

复制代码
代码如下:

.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"
ethernet0.networkname = "ip27"
ethernet0.addresstype = "vpx"
ethernet0.generatedaddress = "00:50:56:b3:c0:f7"
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 = ""
scsi0:0.redo = ""
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"
tools.remindinstall = "true"

让vmware虚拟机支持uefi bios
第一步、新建虚拟机,在虚拟机工作目录下找到.vmx格式文件,使用记事本程序,打开该文件,在文件中添加:firmware = "efi"
设置VMware启动进入BIOS以及对UEFI的支持
第二步、开启虚拟机电源后,按下esc键,稍等一会儿,会进入uefi设置界面,包括三个选项:
设置VMware启动进入BIOS以及对UEFI的支持
(1)、continue:继续,系统会自动选择uefi设备,如果没有的话,会出现提示错误界面
(2)、boot manager:启动管理,用于指定uefi启动设备
设置VMware启动进入BIOS以及对UEFI的支持
(3)、boot maintenance manager:开机维护管理员,用于管理启动设备、启动文件、屏幕大小等
设置VMware启动进入BIOS以及对UEFI的支持
相关标签: VMware BIOS UEFI

上一篇:

下一篇: