Unable to connect to the network, the graphics card has been passthroughed, and PVE is not working properly.

az8641683

New Member
Jun 25, 2024
1
0
1
My power supply malfunctioned, and after replacing it, I found that the PVE host machine couldn't connect to the network. I used a Linux live USB and found that the /etc/network/interfaces file was missing. I restored this file, but it still couldn't connect to the local network. I didn't see the connection of this machine in my router.

I want to display the command line on the screen to troubleshoot, but my graphics card is configured with passthrough, so it can't display anything after entering the system.

I would like to know how I should resolve the current issues.
 
I would like to know how I should resolve the current issues.
I'd probably try booting with init=/bin/bash on the kernel command line (ie do it from the grub menu if possible), which will interrupt the loading process for the whole system and dump you into a terminal prompt instead. eg it tells the system to run bash instead of loading the standard init system. Oh, you'll have to tell grub to mount the filesystem read-write too, rather than read only.

For systems that boot with grub, it's a useful fallback approach for situations where the boot is playing up.

If that works, then I'd probably try and figure out what the names of the network devices are supposed to be, then add them to the /etc/network/interfaces file.

The lshw -c network command might give you the required info, but lshw isn't installed by default on Proxmox. :(

If you can somehow install the package for lshw (and probably the usb.ids package it depends on as well), then it'll give you the network device names you need. Here's an example from my desktop system:

Bash:
# lshw -c network

  *-network                 
       description: Ethernet interface
       product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:06:00.0
       logical name: enp6s0
       version: 15
       serial: a8:a1:59:61:97:52
       size: 1Gbit/s
       capacity: 1Gbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=6.5.13-5-pve duplex=full firmware=rtl8168h-2_0.0.2 02/26/15 latency=0 link=yes multicast=yes port=twisted pair speed=1Gbit/s
       resources: irq:34 ioport:d000(size=256) memory:fc404000-fc404fff memory:fc400000-fc403fff

The "logical name" line has the name of the ethernet device in this system, and is what's used in the system's /etc/network/interfaces file.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!