无忧启动论坛

标题: esxi安装光盘启动求助 [打印本页]

作者: kevinhwa    时间: 2017-5-3 18:34
标题: esxi安装光盘启动求助
本帖最后由 kevinhwa 于 2017-5-3 18:39 编辑

准备在grub2中集成esxi的光盘安装,使用lookback不知道挂载后如何启动,就解压后添加论坛其他大神的iso文件中,但启动时报以下错误,搜索未果,希望大神们帮忙解答解答。


其中/efi/boot/boot.cfg内容如下,增加了prefix,但还是报错

bootstate=0
title=Loading ESXi installer
timeout=5
prefix=/boot/esx
kernel=tboot.b00
kernelopt=runweasel
modules=b.b00 --- jumpstrt.gz --- useropts.gz --- features.gz --- k.b00 --- chardevs.b00 --- a.b00 --- user.b00 --- uc_intel.b00 --- uc_amd.b00 --- sb.v00 --- s.v00 --- ata_liba.v00 --- ata_pata.v00 --- ata_pata.v01 --- ata_pata.v02 --- ata_pata.v03 --- ata_pata.v04 --- ata_pata.v05 --- ata_pata.v06 --- ata_pata.v07 --- block_cc.v00 --- char_ran.v00 --- ehci_ehc.v00 --- elxnet.v00 --- hid_hid.v00 --- i40en.v00 --- igbn.v00 --- ima_qla4.v00 --- ipmi_ipm.v00 --- ipmi_ipm.v01 --- ipmi_ipm.v02 --- ixgben.v00 --- lpfc.v00 --- lsi_mr3.v00 --- lsi_msgp.v00 --- lsi_msgp.v01 --- misc_cni.v00 --- misc_dri.v00 --- mtip32xx.v00 --- ne1000.v00 --- nenic.v00 --- net_bnx2.v00 --- net_bnx2.v01 --- net_cdc_.v00 --- net_cnic.v00 --- net_e100.v00 --- net_e100.v01 --- net_enic.v00 --- net_fcoe.v00 --- net_forc.v00 --- net_igb.v00 --- net_ixgb.v00 --- net_libf.v00 --- net_mlx4.v00 --- net_mlx4.v01 --- net_nx_n.v00 --- net_tg3.v00 --- net_usbn.v00 --- net_vmxn.v00 --- nhpsa.v00 --- nmlx4_co.v00 --- nmlx4_en.v00 --- nmlx4_rd.v00 --- nmlx5_co.v00 --- ntg3.v00 --- nvme.v00 --- nvmxnet3.v00 --- ohci_usb.v00 --- pvscsi.v00 --- qedentv.v00 --- qfle3.v00 --- qflge.v00 --- qlnative.v00 --- sata_ahc.v00 --- sata_ata.v00 --- sata_sat.v00 --- sata_sat.v01 --- sata_sat.v02 --- sata_sat.v03 --- sata_sat.v04 --- scsi_aac.v00 --- scsi_adp.v00 --- scsi_aic.v00 --- scsi_bnx.v00 --- scsi_bnx.v01 --- scsi_fni.v00 --- scsi_hps.v00 --- scsi_ips.v00 --- scsi_isc.v00 --- scsi_lib.v00 --- scsi_meg.v00 --- scsi_meg.v01 --- scsi_meg.v02 --- scsi_mpt.v00 --- scsi_mpt.v01 --- scsi_mpt.v02 --- scsi_qla.v00 --- shim_isc.v00 --- shim_isc.v01 --- shim_lib.v00 --- shim_lib.v01 --- shim_lib.v02 --- shim_lib.v03 --- shim_lib.v04 --- shim_lib.v05 --- shim_vmk.v00 --- shim_vmk.v01 --- shim_vmk.v02 --- uhci_usb.v00 --- usb_stor.v00 --- usbcore_.v00 --- vmkata.v00 --- vmkplexe.v00 --- vmkusb.v00 --- vmw_ahci.v00 --- xhci_xhc.v00 --- emulex_e.v00 --- weaselin.t00 --- esx_dvfi.v00 --- esx_ui.v00 --- lsu_hp_h.v00 --- lsu_lsi_.v00 --- lsu_lsi_.v01 --- lsu_lsi_.v02 --- lsu_lsi_.v03 --- native_m.v00 --- rste.v00 --- vmware_e.v00 --- vsan.v00 --- vsanheal.v00 --- vsanmgmt.v00 --- tools.t00 --- xorg.v00 --- imgdb.tgz --- imgpayld.tgz
build=
updated=0

grub.cfg内容如下:
set pager=1
insmod all_video
insmod video_bochs
insmod video_cirrus
insmod efi_gop
insmod efi_uga
insmod font
insmod gfxterm
insmod gfxmenu
insmod gettext
insmod jpeg
insmod png
insmod ext2
insmod gzio
insmod part_gpt
insmod exfat
insmod fat
insmod xfs
insmod search_fs_uuid
insmod chain

#加载unicode字体显示中文
loadfont /boot/grub/fonts/unicode.pf2.gz
set locale_dir=/boot/grub/locale
export locale_dir
set lang=zh_CN
export lang

#设置分辨率
set gfxmode=auto
export gfxmode
terminal_output gfxterm

#倒计时
set timeout=20
set default="2"

menuentry "esxi 6.5d"{
    search --file /efi/boot/esxi64.efi
    chainloader /efi/boot/esxi64.efi
}

error.png (2.5 KB, 下载次数: 82)

error.png

作者: kevinhwa    时间: 2017-5-3 18:35
本帖最后由 kevinhwa 于 2017-5-3 18:37 编辑

报错图

error.png (2.5 KB, 下载次数: 72)

error.png

作者: kevinhwa    时间: 2017-5-3 18:35
不知道怎么加图,填写地址貌似无法显示
作者: kevinhwa    时间: 2017-5-3 18:36

error.png (2.5 KB, 下载次数: 74)

error.png

作者: wintoflash    时间: 2017-5-4 11:22
本帖最后由 wintoflash 于 2017-5-5 14:21 编辑
kevinhwa 发表于 2017-5-3 18:36


直接启动esxi的loader目前是不行的。
试试这样:
  1. multiboot /boot/esx/tboot.b00 runweasel
  2. module /boot/esx/b.b00 /boot/esx/jumpstrt.gz /boot/esx/useropts.gz /boot/esx/features.gz /boot/esx/k.b00 /boot/esx/chardevs.b00 /boot/esx/a.b00 /boot/esx/user.b00 /boot/esx/uc_intel.b00 /boot/esx/uc_amd.b00 /boot/esx/sb.v00 /boot/esx/s.v00 /boot/esx/ata_liba.v00 /boot/esx/ata_pata.v00 /boot/esx/ata_pata.v01 /boot/esx/ata_pata.v02 /boot/esx/ata_pata.v03 /boot/esx/ata_pata.v04 /boot/esx/ata_pata.v05 /boot/esx/ata_pata.v06 /boot/esx/ata_pata.v07 /boot/esx/block_cc.v00 /boot/esx/char_ran.v00 /boot/esx/ehci_ehc.v00 /boot/esx/elxnet.v00 /boot/esx/hid_hid.v00 /boot/esx/i40en.v00 /boot/esx/igbn.v00 /boot/esx/ima_qla4.v00 /boot/esx/ipmi_ipm.v00 /boot/esx/ipmi_ipm.v01 /boot/esx/ipmi_ipm.v02 /boot/esx/ixgben.v00 /boot/esx/lpfc.v00 /boot/esx/lsi_mr3.v00 /boot/esx/lsi_msgp.v00 /boot/esx/lsi_msgp.v01 /boot/esx/misc_cni.v00 /boot/esx/misc_dri.v00 /boot/esx/mtip32xx.v00 /boot/esx/ne1000.v00 /boot/esx/nenic.v00 /boot/esx/net_bnx2.v00 /boot/esx/net_bnx2.v01 /boot/esx/net_cdc_.v00 /boot/esx/net_cnic.v00 /boot/esx/net_e100.v00 /boot/esx/net_e100.v01 /boot/esx/net_enic.v00 /boot/esx/net_fcoe.v00 /boot/esx/net_forc.v00 /boot/esx/net_igb.v00 /boot/esx/net_ixgb.v00 /boot/esx/net_libf.v00 /boot/esx/net_mlx4.v00 /boot/esx/net_mlx4.v01 /boot/esx/net_nx_n.v00 /boot/esx/net_tg3.v00 /boot/esx/net_usbn.v00 /boot/esx/net_vmxn.v00 /boot/esx/nhpsa.v00 /boot/esx/nmlx4_co.v00 /boot/esx/nmlx4_en.v00 /boot/esx/nmlx4_rd.v00 /boot/esx/nmlx5_co.v00 /boot/esx/ntg3.v00 /boot/esx/nvme.v00 /boot/esx/nvmxnet3.v00 /boot/esx/ohci_usb.v00 /boot/esx/pvscsi.v00 /boot/esx/qedentv.v00 /boot/esx/qfle3.v00 /boot/esx/qflge.v00 /boot/esx/qlnative.v00 /boot/esx/sata_ahc.v00 /boot/esx/sata_ata.v00 /boot/esx/sata_sat.v00 /boot/esx/sata_sat.v01 /boot/esx/sata_sat.v02 /boot/esx/sata_sat.v03 /boot/esx/sata_sat.v04 /boot/esx/scsi_aac.v00 /boot/esx/scsi_adp.v00 /boot/esx/scsi_aic.v00 /boot/esx/scsi_bnx.v00 /boot/esx/scsi_bnx.v01 /boot/esx/scsi_fni.v00 /boot/esx/scsi_hps.v00 /boot/esx/scsi_ips.v00 /boot/esx/scsi_isc.v00 /boot/esx/scsi_lib.v00 /boot/esx/scsi_meg.v00 /boot/esx/scsi_meg.v01 /boot/esx/scsi_meg.v02 /boot/esx/scsi_mpt.v00 /boot/esx/scsi_mpt.v01 /boot/esx/scsi_mpt.v02 /boot/esx/scsi_qla.v00 /boot/esx/shim_isc.v00 /boot/esx/shim_isc.v01 /boot/esx/shim_lib.v00 /boot/esx/shim_lib.v01 /boot/esx/shim_lib.v02 /boot/esx/shim_lib.v03 /boot/esx/shim_lib.v04 /boot/esx/shim_lib.v05 /boot/esx/shim_vmk.v00 /boot/esx/shim_vmk.v01 /boot/esx/shim_vmk.v02 /boot/esx/uhci_usb.v00 /boot/esx/usb_stor.v00 /boot/esx/usbcore_.v00 /boot/esx/vmkata.v00 /boot/esx/vmkplexe.v00 /boot/esx/vmkusb.v00 /boot/esx/vmw_ahci.v00 /boot/esx/xhci_xhc.v00 /boot/esx/emulex_e.v00 /boot/esx/weaselin.t00 /boot/esx/esx_dvfi.v00 /boot/esx/esx_ui.v00 /boot/esx/lsu_hp_h.v00 /boot/esx/lsu_lsi_.v00 /boot/esx/lsu_lsi_.v01 /boot/esx/lsu_lsi_.v02 /boot/esx/lsu_lsi_.v03 /boot/esx/native_m.v00 /boot/esx/rste.v00 /boot/esx/vmware_e.v00 /boot/esx/vsan.v00 /boot/esx/vsanheal.v00 /boot/esx/vsanmgmt.v00 /boot/esx/tools.t00 /boot/esx/xorg.v00 /boot/esx/imgdb.tgz /boot/esx/imgpayld.tgz
复制代码

作者: kevinhwa    时间: 2017-5-4 11:57
本帖最后由 kevinhwa 于 2017-5-4 12:02 编辑
wintoflash 发表于 2017-5-4 11:22
直接启动esxi的loader目前是不行的。
试试这样:


谢谢大神回复,是用以上内容替换/efi/boot/boot.cfg文件中的内容吗? 还是加入到grub2的grub.cfg启动菜单中?
作者: kevinhwa    时间: 2017-5-4 12:09
wintoflash 发表于 2017-5-4 11:22
直接启动esxi的loader目前是不行的。
试试这样:

我加入了grub2文件,在vm虚机中测试还是无法启动
menuentry "esx"{
search.file /boot/esx/tboot.b00 --set=root
multiboot /boot/esx/tboot.b00 runweasel
module /boot/esx/b.b00 /boot/esx/jumpstrt.gz /boot/esx/useropts.gz /boot/esx/features.gz /boot/esx/k.b00 /boot/esx/chardevs.b00 /boot/esx/a.b00 /boot/esx/user.b00 /boot/esx/uc_intel.b00 /boot/esx/uc_amd.b00 /boot/esx/sb.v00 /boot/esx/s.v00 /boot/esx/ata_liba.v00 /boot/esx/ata_pata.v00 /boot/esx/ata_pata.v01 /boot/esx/ata_pata.v02 /boot/esx/ata_pata.v03 /boot/esx/ata_pata.v04 /boot/esx/ata_pata.v05 /boot/esx/ata_pata.v06 /boot/esx/ata_pata.v07 /boot/esx/block_cc.v00 /boot/esx/char_ran.v00 /boot/esx/ehci_ehc.v00 /boot/esx/elxnet.v00 /boot/esx/hid_hid.v00 /boot/esx/i40en.v00 /boot/esx/igbn.v00 /boot/esx/ima_qla4.v00 /boot/esx/ipmi_ipm.v00 /boot/esx/ipmi_ipm.v01 /boot/esx/ipmi_ipm.v02 /boot/esx/ixgben.v00 /boot/esx/lpfc.v00 /boot/esx/lsi_mr3.v00 /boot/esx/lsi_msgp.v00 /boot/esx/lsi_msgp.v01 /boot/esx/misc_cni.v00 /boot/esx/misc_dri.v00 /boot/esx/mtip32xx.v00 /boot/esx/ne1000.v00 /boot/esx/nenic.v00 /boot/esx/net_bnx2.v00 /boot/esx/net_bnx2.v01 /boot/esx/net_cdc_.v00 /boot/esx/net_cnic.v00 /boot/esx/net_e100.v00 /boot/esx/net_e100.v01 /boot/esx/net_enic.v00 /boot/esx/net_fcoe.v00 /boot/esx/net_forc.v00 /boot/esx/net_igb.v00 /boot/esx/net_ixgb.v00 /boot/esx/net_libf.v00 /boot/esx/net_mlx4.v00 /boot/esx/net_mlx4.v01 /boot/esx/net_nx_n.v00 /boot/esx/net_tg3.v00 /boot/esx/net_usbn.v00 /boot/esx/net_vmxn.v00 /boot/esx/nhpsa.v00 /boot/esx/nmlx4_co.v00 /boot/esx/nmlx4_en.v00 /boot/esx/nmlx4_rd.v00 /boot/esx/nmlx5_co.v00 /boot/esx/ntg3.v00 /boot/esx/nvme.v00 /boot/esx/nvmxnet3.v00 /boot/esx/ohci_usb.v00 /boot/esx/pvscsi.v00 /boot/esx/qedentv.v00 /boot/esx/qfle3.v00 /boot/esx/qflge.v00 /boot/esx/qlnative.v00 /boot/esx/sata_ahc.v00 /boot/esx/sata_ata.v00 /boot/esx/sata_sat.v00 /boot/esx/sata_sat.v01 /boot/esx/sata_sat.v02 /boot/esx/sata_sat.v03 /boot/esx/sata_sat.v04 /boot/esx/scsi_aac.v00 /boot/esx/scsi_adp.v00 /boot/esx/scsi_aic.v00 /boot/esx/scsi_bnx.v00 /boot/esx/scsi_bnx.v01 /boot/esx/scsi_fni.v00 /boot/esx/scsi_hps.v00 /boot/esx/scsi_ips.v00 /boot/esx/scsi_isc.v00 /boot/esx/scsi_lib.v00 /boot/esx/scsi_meg.v00 /boot/esx/scsi_meg.v01 /boot/esx/scsi_meg.v02 /boot/esx/scsi_mpt.v00 /boot/esx/scsi_mpt.v01 /boot/esx/scsi_mpt.v02 /boot/esx/scsi_qla.v00 /boot/esx/shim_isc.v00 /boot/esx/shim_isc.v01 /boot/esx/shim_lib.v00 /boot/esx/shim_lib.v01 /boot/esx/shim_lib.v02 /boot/esx/shim_lib.v03 /boot/esx/shim_lib.v04 /boot/esx/shim_lib.v05 /boot/esx/shim_vmk.v00 /boot/esx/shim_vmk.v01 /boot/esx/shim_vmk.v02 /boot/esx/uhci_usb.v00 /boot/esx/usb_stor.v00 /boot/esx/usbcore_.v00 /boot/esx/vmkata.v00 /boot/esx/vmkplexe.v00 /boot/esx/vmkusb.v00 /boot/esx/vmw_ahci.v00 /boot/esx/xhci_xhc.v00 /boot/esx/emulex_e.v00 /boot/esx/weaselin.t00 /boot/esx/esx_dvfi.v00 /boot/esx/esx_ui.v00 /boot/esx/lsu_hp_h.v00 /boot/esx/lsu_lsi_.v00 /boot/esx/lsu_lsi_.v01 /boot/esx/lsu_lsi_.v02 /boot/esx/lsu_lsi_.v03 /boot/esx/native_m.v00 /boot/esx/rste.v00 /boot/esx/vmware_e.v00 /boot/esx/vsan.v00 /boot/esx/vsanheal.v00 /boot/esx/vsanmgmt.v00 /boot/esx/tools.t00 /boot/esx/xorg.v00 /boot/esx/imgdb.tgz /boot/esx/imgpayld.tgz
}

作者: wintoflash    时间: 2017-5-4 12:16
kevinhwa 发表于 2017-5-4 12:09
我加入了grub2文件,在vm虚机中测试还是无法启动
menuentry "esx"{
search.file /boot/esx/tboot.b00 - ...

报什么错误?
------------------
建议不要再浪费时间折腾了,没有意义。
作者: kevinhwa    时间: 2017-5-4 13:15
wintoflash 发表于 2017-5-4 12:16
报什么错误?
------------------
建议不要再浪费时间折腾了,没有意义。

本想集成在U盘中安装esxi方便点,看来只能放弃了,谢谢解答
作者: 2010512    时间: 2017-11-1 18:14
本帖最后由 2010512 于 2017-11-1 18:15 编辑
kevinhwa 发表于 2017-5-4 13:15
本想集成在U盘中安装esxi方便点,看来只能放弃了,谢谢解答


我也会经常碰到要部署esxi的情况。本来品牌服务器都可以通过网络管理口挂载本地iso镜像到服务器引导安装,但我还是和你一样折腾过。下面是我测试的结果。
只考虑uefi环境:
如果是新U盘,只接把esxi镜像文件解压到U盘根目录下就可以了。
如果有数据的移动硬盘或是U盘,想引导多个esxi镜像,结果下:
esxi 6.5及以上版本是可以直接通过grub2的chainloader 加载esxi的bootx64.efi文件。esxi6.5的boot.cfg文件要稍微处理一下:主要是添加prefix参数和相关文件的路径,估计你也知道。
esxi 6.x及以下版本,不可以通过grub2直接chainloader,需要进入efi shell环境,再运行esxi的bootx64.efi文件才可以。具体我也没找到原因,因为官方就没有类例案例。完全是凭感觉测试成功的。

6.5测试成功的例子:
1、将esxi 6.5 iso镜像文件解压到u盘根目录的esxi6.5文件夹下。
2、将esxi 6.5 iso镜像文件中的efi/boot文件夹内容复制到u盘根目录下的efi/boot/esxi6.5下。
3、修改efi/boot/esxi6.5/boot.cfg文件内容,如下:
  1. bootstate=0
  2. title=Loading ESXi installer
  3. timeout=5
  4. prefix=esxi6.5
  5. kernel=tboot.b00
  6. kernelopt=runweasel
  7. modules=b.b00 --- jumpstrt.gz --- useropts.gz --- features.gz --- k.b00 --- chardevs.b00 --- a.b00 --- user.b00 --- uc_intel.b00 --- uc_amd.b00 --- sb.v00 --- s.v00 --- ata_liba.v00 --- ata_pata.v00 --- ata_pata.v01 --- ata_pata.v02 --- ata_pata.v03 --- ata_pata.v04 --- ata_pata.v05 --- ata_pata.v06 --- ata_pata.v07 --- block_cc.v00 --- char_ran.v00 --- ehci_ehc.v00 --- elxnet.v00 --- hid_hid.v00 --- i40en.v00 --- igbn.v00 --- ima_qla4.v00 --- ipmi_ipm.v00 --- ipmi_ipm.v01 --- ipmi_ipm.v02 --- ixgben.v00 --- lpfc.v00 --- lsi_mr3.v00 --- lsi_msgp.v00 --- lsi_msgp.v01 --- misc_cni.v00 --- misc_dri.v00 --- mtip32xx.v00 --- ne1000.v00 --- nenic.v00 --- net_bnx2.v00 --- net_bnx2.v01 --- net_cdc_.v00 --- net_cnic.v00 --- net_e100.v00 --- net_e100.v01 --- net_enic.v00 --- net_fcoe.v00 --- net_forc.v00 --- net_igb.v00 --- net_ixgb.v00 --- net_libf.v00 --- net_mlx4.v00 --- net_mlx4.v01 --- net_nx_n.v00 --- net_tg3.v00 --- net_usbn.v00 --- net_vmxn.v00 --- nhpsa.v00 --- nmlx4_co.v00 --- nmlx4_en.v00 --- nmlx4_rd.v00 --- nmlx5_co.v00 --- ntg3.v00 --- nvme.v00 --- nvmxnet3.v00 --- ohci_usb.v00 --- pvscsi.v00 --- qedentv.v00 --- qfle3.v00 --- qflge.v00 --- qlnative.v00 --- sata_ahc.v00 --- sata_ata.v00 --- sata_sat.v00 --- sata_sat.v01 --- sata_sat.v02 --- sata_sat.v03 --- sata_sat.v04 --- scsi_aac.v00 --- scsi_adp.v00 --- scsi_aic.v00 --- scsi_bnx.v00 --- scsi_bnx.v01 --- scsi_fni.v00 --- scsi_hps.v00 --- scsi_ips.v00 --- scsi_isc.v00 --- scsi_lib.v00 --- scsi_meg.v00 --- scsi_meg.v01 --- scsi_meg.v02 --- scsi_mpt.v00 --- scsi_mpt.v01 --- scsi_mpt.v02 --- scsi_qla.v00 --- shim_isc.v00 --- shim_isc.v01 --- shim_lib.v00 --- shim_lib.v01 --- shim_lib.v02 --- shim_lib.v03 --- shim_lib.v04 --- shim_lib.v05 --- shim_vmk.v00 --- shim_vmk.v01 --- shim_vmk.v02 --- uhci_usb.v00 --- usb_stor.v00 --- usbcore_.v00 --- vmkata.v00 --- vmkplexe.v00 --- vmkusb.v00 --- vmw_ahci.v00 --- xhci_xhc.v00 --- emulex_e.v00 --- weaselin.t00 --- esx_dvfi.v00 --- esx_ui.v00 --- lsu_hp_h.v00 --- lsu_lsi_.v00 --- lsu_lsi_.v01 --- lsu_lsi_.v02 --- lsu_lsi_.v03 --- native_m.v00 --- rste.v00 --- vmware_e.v00 --- vsan.v00 --- vsanheal.v00 --- vsanmgmt.v00 --- tools.t00 --- xorg.v00 --- imgdb.tgz --- imgpayld.tgz
  8. build=
  9. updated=0
复制代码

4、grub2引导菜单添加esxi6.5选项。
  1. menuentry "Install ESXi 6.5" {
  2.     chainloader /efi/boot/esxi6.5/bootx64.efi
  3. }
复制代码


=========

不经常上论坛,回复不及时,还望见谅!我思路应该表达清楚了,其他的版本自行添加即可!
作者: 江南一根葱    时间: 2017-11-1 21:51
我也想要是能直启esxi然后直通虚拟机就爽了。。。。
作者: hhs05082236    时间: 2017-11-18 12:27
esxi镜像无需解压,直接用loopback加载就行
作者: kevinhwa    时间: 2018-5-9 12:07
2010512 发表于 2017-11-1 18:14
我也会经常碰到要部署esxi的情况。本来品牌服务器都可以通过网络管理口挂载本地iso镜像到服务器引导安 ...

感谢,我本来是要把esx集成到光盘模式中,感谢你的方法,谢谢
作者: devilma    时间: 2018-8-14 21:39
试试10楼的方法!!




欢迎光临 无忧启动论坛 (http://bbs.wuyou.net/) Powered by Discuz! X3.3