VM not connected to internet

Juliet

Member
Oct 24, 2023
55
0
6
Hi,
I using OVH where I installed a proxmox node:
here's the /etc/network/interfaces:

1699623232246.png
I have already found the vmbr0 but I added the vmbr1 for VMs that I will create in the future.

I have created a templete using cloud-init, the I created a VM :
1699622862373.png
the problem is, that the VM is not connected to internet , here's the result when I type ip a on the VM:
1699622969964.png

when I try to install something I got this :
1699623134913.png

Could you help please to resolve this issue .

thanks
 
Last edited:
Hi,

have you run apt update in the VM yet? What does that put out?
Since you use a apt-based system, please also share the contents of tail -n+0 /etc/apt/sources.list /etc/apt/sources.list.d/* from inside the VM, to be safe.
 
  • Like
Reactions: Juliet
Hi,

have you run apt update in the VM yet? What does that put out?
Since you use a apt-based system, please also share the contents of tail -n+0 /etc/apt/sources.list /etc/apt/sources.list.d/* from inside the VM, to be safe.
when I run itwith sudo :
1699624071147.png


1699624377761.png
 
Last edited:
That's what I though - you don't have DNS resolving set up correctly.

Please post the output of cat /etc/resolv.conf and resolvectl.
 
  • Like
Reactions: Juliet
Please also post the output of resolvectl.

The above just confirms that systemd-resolvd is used (which I thought anyway), but resolvectl shows what DNS servers are actually configured (or not).
 
Please also post the output of resolvectl.

The above just confirms that systemd-resolvd is used (which I thought anyway), but resolvectl shows what DNS servers are actually configured (or not).
1699628688947.png
what do you think please?
 

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!