networking trouble with debian

madness

New Member
Jun 1, 2024
2
0
1
I bought a new server and have never used proxmox, but I wanted to and I got as far as uploading an .ISO of debian 12 network install, but it cannot connect to the internet via automatic.

I can download an .ISO but the VM inside proxmox can't connect to the internet, this seems like something that should be happening automatically.

I do know how to use linux, but don't know hardly anything about networking :

OH this happens to all of the .ISO's that I put into proxmox.
 
The usual basic approach is this: you have a physical NIC connected to a bridge. You assign this bridge to the VM during "Create VM". The connected network should have an active DHCP server and an "exit" = your router.

Please see "3.4.4. Default Configuration using a Bridge" in https://pve.proxmox.com/pve-docs/pve-admin-guide.html#sysadmin_network_configuration

For better help you need to supply us with some more detailed information. Your post simply says "it does not work" - how could we know the actual setup of your system? Please start by giving us some information, like the copy-n-pasted output of some commands:

System information:
  • pveversion -v
Basic network information:
  • ip address show # currently active IP addresses on one NODE
  • ip route show # currently active routing table on one NODE
  • cat /etc/network/interfaces # and/or ifquery -a for comparison from one NODE
Problematic VM:
  • export VMID=<your vm id>; qm config --current true ${VMID}

Of course you may adjust all the above commands to better fit the actual situation - they are just a first shot.

Oh, and please put each command in a separate [CODE]...[/CODE]-block for better readability.
 
Hey thanks alot for helping me. I'm waiting for proxmox to load, I had ubuntu on it because I had given up on proxmox. I decided that I desperately needed proxmox, for various reasons, so i'm installing it now and in a moment I will supply you with the information you need to perhaps help me.

And now it's loaded. i'll take a screenshot...
It's weird because i'm connected, the server is connected, everything except the VM is connected to the internet. Now for the commands you wanted me to run, do I run them in the Proxmox console or in ubuntu?

here's pveversion - v:
Code:
proxmox-ve: 8.2.0 (running kernel: 6.8.4-3-pve)
pve-manager: 8.2.2 (running version: 8.2.2/9355359cd7afbae4)
proxmox-kernel-helper: 8.1.0
proxmox-kernel-6.8: 6.8.4-3
proxmox-kernel-6.8.4-3-pve-signed: 6.8.4-3
ceph-fuse: 16.2.11+ds-2
corosync: 3.1.7-pve3
criu: 3.17.1-2
glusterfs-client: 10.3-5
ifupdown: 0.8.41
intel-microcode: 3.20231114.1~deb12u1
ksm-control-daemon: 1.5-1
libjs-extjs: 7.0.0-4
libknet1: 1.28-pve1
libproxmox-acme-perl: 1.5.1
libproxmox-backup-qemu0: 1.4.1
libproxmox-rs-perl: 0.3.3
libpve-access-control: 8.1.4
libpve-apiclient-perl: 3.3.2
libpve-cluster-api-perl: 8.0.6
libpve-cluster-perl: 8.0.6
libpve-common-perl: 8.2.1
libpve-guest-common-perl: 5.1.2
libpve-http-server-perl: 5.1.0
libpve-network-perl: 0.9.8
libpve-rs-perl: 0.8.8
libpve-storage-perl: 8.2.1
libspice-server1: 0.15.1-1
lvm2: 2.03.16-2
lxc-pve: 6.0.0-1
lxcfs: 6.0.0-pve2
novnc-pve: 1.4.0-3
proxmox-backup-client: 3.2.2-1
proxmox-backup-file-restore: 3.2.2-1
proxmox-kernel-helper: 8.1.0
proxmox-mail-forward: 0.2.3
proxmox-mini-journalreader: 1.4.0
proxmox-offline-mirror-helper: 0.6.6
proxmox-widget-toolkit: 4.2.3
pve-cluster: 8.0.6
pve-container: 5.1.10
pve-docs: 8.2.2
pve-edk2-firmware: not correctly installed
pve-esxi-import-tools: 0.7.0
pve-firewall: 5.0.7
pve-firmware: 3.11-1
pve-ha-manager: 4.0.4
pve-i18n: 3.2.2
pve-qemu-kvm: 8.1.5-6
pve-xtermjs: 5.3.0-3
qemu-server: 8.2.1
smartmontools: 7.3-pve1
spiceterm: 3.3.0
swtpm: 0.8.0+pve1
vncterm: 1.8.0
zfsutils-linux: 2.2.3-pve2
Code:
root@m4421:~# ip address show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq master vmbr0 state UP group default qlen 1000
    link/ether 0c:c4:7a:99:0e:04 brd ff:ff:ff:ff:ff:ff
    altname eno1
    altname enp5s0
3: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1000
    link/ether 0c:c4:7a:99:0e:05 brd ff:ff:ff:ff:ff:ff
    altname eno2
    altname enp6s0
4: vmbr0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
    link/ether 0c:c4:7a:99:0e:04 brd ff:ff:ff:ff:ff:ff
    inet 173.212.205.221/24 brd 173.212.205.255 scope global vmbr0
       valid_lft forever preferred_lft forever
7: tap100i0: <BROADCAST,MULTICAST,PROMISC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master vmbr0 state UNKNOWN group default qlen 1000
    link/ether 2e:55:25:9b:a1:a0 brd ff:ff:ff:ff:ff:ff
Code:
root@m4421:~# ip route show
default via 173.212.205.1 dev vmbr0 onlink
173.212.205.0/24 via 173.212.205.1 dev vmbr0
Code:
root@m4421:~# cat /etc/network/interfaces
# network interface settings; autogenerated
# Please do NOT modify this file directly, unless you know what
# you're doing.
#
# If you want to manage parts of the network configuration manually,
# please utilize the 'source' or 'source-directory' directives to do
# so.
# PVE will preserve these directives, but will NOT read its network
# configuration from sourced files, so do not attempt to move any of
# the PVE managed interfaces into external files!

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet manual

iface eth1 inet manual

auto vmbr0
iface vmbr0 inet static
        address 173.212.205.221/24
        gateway 173.212.205.1
        bridge-ports eth0
        bridge-stp off
        bridge-fd 0

        up ip route replace 173.212.205.0/24 via 173.212.205.1 dev vmbr0
**couldn't get ifquery --all or ifquery -a to work...
Code:
root@m4421:~# export VMID=100;  qm config --current true 100
agent: 1
bios: ovmf
boot: order=ide0;ide2;net0
cores: 20
cpu: Broadwell
efidisk0: local:100/vm-100-disk-0.qcow2,efitype=4m,pre-enrolled-keys=1,size=528K
ide0: local:100/vm-100-disk-1.qcow2,backup=0,size=512G
ide2: local:iso/ubuntu-mate-22.04.4-desktop-amd64.iso,media=cdrom,size=3646222K
machine: q35
memory: 256000
meta: creation-qemu=8.1.5,ctime=1717358417
name: Bizzy-VM-1
net0: virtio=BC:24:11:FC:39:11,bridge=vmbr0
numa: 0
onboot: 1
ostype: other
scsihw: virtio-scsi-pci
smbios1: uuid=7520455a-c530-4ff1-b304-a205e27678d3
sockets: 2
vmgenid: 5fa6cc38-1541-44d2-a445-5db96d0fe46e

1717359004990.jpeg
 
Well..., basically everything looks fine to me. Except:

The output of ip route show looks different than on my own systems. Just to show the difference:
Code:
~# ip route show
default via 10.3.12.254 dev vmbr3 proto kernel onlink
10.3.0.0/16 dev vmbr3 proto kernel scope link src 10.3.16.1

And I have no idea what this means:
up ip route replace 173.212.205.0/24 via 173.212.205.1 dev vmbr0
Does this come from instructions of the hoster? (In my world this looks wrong.)

Do you "own" the whole /24-network? Which addresses are you allowed to use? That's not clear yet. Depending on these fact you may need to setup NAT like in https://pve.proxmox.com/wiki/Network_Configuration#sysadmin_network_masquerading

Depending on the hoster there may be specific rules to follow - as a hard requirement. I can not tell...



Back to post number one while assuming "a normal" network:
I can download an .ISO but the VM inside proxmox can't connect to the internet,
Okay, so Internet on the host does work. This uses vmbr0; all VMs connected to that bridge should have the very same connectivity.

You need to configure the network inside the VM in a similar way. This means to assign an IP address of that network and set the same gateway. It seems to be an Ubuntu. With Network Manager? Check that configuration.

The screenshot tells us that DNS does not work. "ping 9.9.9.9" (without name resolution) does work? Only if yes: "ping google.com" fails probably. Which Nameserver is set? (cat /etc/ressolv.conf and resolvectl)

If ping 9.9.9.9 fails you need to check the basic settings of that VM. Which IP address is actually assigned? (ip a) Which routes are set (ip r) Can you ping the host from inside the VM?

Good luck :)
 

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!