Stuck after enabling network card passthrough
dma_mapper_iommu loaded successfully
Unable to enter the management interface
Unable to ping the ESXi management port
Brief description
Mount the ESXI system disk using Ubuntu desktop using a USB flash drive. Change the passthru option in the esx.conf file.
Write Ubuntu desktop to USB flash drive
Tools
Rufus
https://rufus.ie/
Ubuntu 18.04 Desktop
https://releases.ubuntu.com/18.04/
After using Rufus to write ubuntu to the USB flash drive, set the server boot option from the USB flash drive. Try ubuntu
Operation steps
Open Terminal Enter in Terminal
lspci #查找pci设备 网卡的是Ethernet controller View the hard drive and mount partitions
sudo parted -l #查看硬盘
sudo mount /dev/sda5 /mnt #挂载Unzip the file and edit esx.conf
ls /mnt/ #查看mnt 目录
cp /mnt/state.tgz ~/ #cp到~
cd ~ #进入到~
tar xvf state.tgz
tar xvf local.tgz #解压
cd etc/vmware/ #进入到VMWARE目录
nano esx.conf #编辑esx.conf 文件Change passthru to vmkernel Find /device/<PCI_ID>/owner = “passthru” #PCI_ID is the 0000:06:00.0 and 0000:00:06.0 found above using lspci Use vmkernel instead of passthru ctrl+x to exit, press Y to confirm and press Enter.
Package the changed files
cd ~
tar czf local.tgz etc/
tar czf state.tgz local.tgz
sudo cp state.tgz /mnt/
reboot Unplug the USB flash drive to return to normal
Reference Reading|Quote
http://www.cxyzjd.com/article/ID_Rin/105341206