KVM 上的 ESXi - 找不到网络驱动程序

KVM 上的 ESXi - 找不到网络驱动程序

我正在尝试使用 virt-install 在 KVM 上成功安装 .iso - 但是从 2 个磁盘映像(一个是 Debain,另一个是 ESXi)我无法获得网络连接。

以下是一些输出,试图确定虚拟机为什么看不到网卡:

[root@server2 ~]# lspci -v | grep -A1 -i ethernet
03:00.0 Ethernet controller: Broadcom Inc. and subsidiaries NetXtreme BCM5719 Gigabit Ethernet PCIe (rev 01)
    DeviceName: NIC Port 1
    Subsystem: Hewlett-Packard Company Ethernet 1Gb 4-port 331FLR Adapter
    Flags: bus master, fast devsel, latency 0, IRQ 51, NUMA node 0
--
03:00.1 Ethernet controller: Broadcom Inc. and subsidiaries NetXtreme BCM5719 Gigabit Ethernet PCIe (rev 01)
    DeviceName: NIC Port 2
    Subsystem: Hewlett-Packard Company Ethernet 1Gb 4-port 331FLR Adapter
    Flags: bus master, fast devsel, latency 0, IRQ 52, NUMA node 0
--
03:00.2 Ethernet controller: Broadcom Inc. and subsidiaries NetXtreme BCM5719 Gigabit Ethernet PCIe (rev 01)
    DeviceName: NIC Port 3
    Subsystem: Hewlett-Packard Company Ethernet 1Gb 4-port 331FLR Adapter
    Flags: bus master, fast devsel, latency 0, IRQ 51, NUMA node 0
--
03:00.3 Ethernet controller: Broadcom Inc. and subsidiaries NetXtreme BCM5719 Gigabit Ethernet PCIe (rev 01)
    DeviceName: NIC Port 4
    Subsystem: Hewlett-Packard Company Ethernet 1Gb 4-port 331FLR Adapter
    Flags: bus master, fast devsel, latency 0, IRQ 52, NUMA node 0

我很困惑 - 我做错了什么吗?我尝试了以下操作:

[root@server2 ~]# dnf install libvirt-daemon-driver-network
Last metadata expiration check: 3:37:43 ago on Tue 26 Oct 2021 13:32:29 BST.
Package libvirt-daemon-driver-network-6.0.0-35.1.module_el8.4.0+2523+3300d70f.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!

仅供参考,我正在使用 AlmaLinux 版本 8.4 (Electric Cheetah) - 完全更新dnf

亲切的问候

答案1

为此,设置了一座桥梁,还安装了一些新软件包。我做了以下事情:

首先,通过 def:

dnf install qemu-kvm qemu-img libvirt virt-install libvirt-client

echo "BRIDGE=br0" >> /etc/sysconfig/network-scripts/ifcfg-eno1

然后打开桥接文件:

vi /etc/sysconfig/network-scripts/ifcfg-br0

进入:

DEVICE=br0
TYPE=Bridge
IPADDR=192.168.1.100
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
DNS=192.168.1.1
ONBOOT=yes
BOOTPROTO=static
DELAY=0

相关内容