[SOLVED] Can't connect to Proxmox VE or PVE to internet

elloco999

New Member
Aug 25, 2023
8
2
3
Hi all,

I've just installed Proxmox VE 8.0-2 on an old laptop (Dell XPS 15 9560) but I can't connect to it from my PC. PVE doesn't seem to be able to connect to the internet either (apt update results in sever failed to fetch errors claiming the domains can't be resolved. I tried pinging the router from PVE and it fails as well.

As the laptop doesn't have an internal NIC, I'm using an external one connected to the USB-C port.
I've setup the DHCP server of my router to reserve the 198.168.178.78 IP address for this NIC and entered this IP during the installation.

I'm not very familiar with Linux based OS's so I don't know how to proceed. From what I found on the internet I should look at /etc/network/interfaces but that seems correct to me:

Code:
auto lo
iface lo inet loopback

iface enxd481d37ab05c inet manual

auto vmbr0
iface vmbr0 inet static
    address 192.168.178.78/24
    gateway 192.168.178.1
    bridge-ports enxd481d37ab05c
    bridge-stp off
    bridge-fd 0

iface wlp2s0 inet manual

Note the wlp2s0 is probably the wifi NIC build into the laptop that I haven't configured.

When I run ifreload -a I get this error: error: vmbr0: bridge port enxd481d37ab05c does not exist. I guess that has something to do with it...

IMG20230826152428.jpg

Can someone please point me in the right direction? If any additional information is needed or any steps need to be executed please tell me the commands to use. Like I said, I'm not very familiar with Linux :-(

Thanks,
elloco
 
Looks like network device enxd481d37ab05c is not there or has no driver support. And WiFi is not supported by Proxmox (but search the forum if you want to set it up manually).
 
Ok, so the first error you mentioned is that domains can't be resolved, what dns server is set (check cat /etc/resolv.conf) what does it say?
If it says 127.x or sth change it to 9.9.9.9 or some other known dns server.

Second, the network card you mentioned doesnt show up under ip a, the first one is the local loopback (ignore that), the second one seems to be the wifi and the third one is you virtual switch / bridge where your vms will connect to.

Just for testing purposes you can try to connect over wifi or try a different usb to ethernet adapter,
because from what i can see the one you are using is ether not working, unsupported or has no drivers installed
So ether get the drivers for your nic installed (via usb stick or sth) or get a different one that has built in driver support.

One that i used in the past, that should run out of the box is this ugreen one https://www.amazon.com/UGREEN-Network-Ethernet-Supports-Nintendo/dp/B00MYTSN18/ and it is like 10$
 
  • Like
Reactions: elloco999
Thanks for your replies!

It seems the NIC I was using indeed doesn't work out of the box. I was using a Dell DA200. According to this site it can work but I have to enable a kernel option and an usbquirck. (Enable kernel option USB_RTL8152 in the kernel. Needs to activate usbcore.quirks=0bda:8153:k.) No idea how to do that...

I tried a different USB NIC (TP Link UE300). That seems to be detected without issue:
IMG20230826222451.jpg

But how do I set this up without having to reinstall PVE again?

My DNS is probably also not correct, but that doesn't matter much until I get the network running. I set the DNS to my router (this was pretty common when I first setup a home network 25 years ago, but as all of the computers on my network are set to the ISP's DNS servers I'm guessing this doesn't work nowadays).
How can I change this? Just edit the /etc/resolv.conf?
 
I replaced the device name of the previous USB NIC with that of the new USB NIC and after a ifreload -a I could ping my router.
I then replaced the nameserver in /etc/resolv.conf with the DNS of my ISP and after that I could also ping www.google.com.
And now I'm also able to connect to my PVE from my PC :)

Everything seems to be working correctly now. Thank you very much!

Tomorrow I'll finish updating and see if I can get my first VM created and running.
 

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!