Ubuntu 20.04 VM network configuration

kaafp

New Member
Sep 10, 2023
2
0
1
Hello!

For testing purposes, I have installed PVE (version 8) on the existing Ubuntu 20.04 , like KVM VM, and it works fine.

In PVE I run VM with Ubuntu 20.04.
Ping from PVE to VM and from VM to PVE working, but ping to other local network host(including gateway) and internet not.
proxmox: /etc/network/interfaces
iface lo inet loopback

iface enp1s0 inet manual

auto vmbr0
iface vmbr0 inet static
address 192.168.0.115/24
gateway 192.168.0.1
bridge-ports enp1s0
bridge-stp off
bridge-fd 0
ubuntu VM /etc/network/interfaces not exist,

ubuntu VM /etc/netplan/01-network-manager-all.yaml
network:
version: 2
renderer: NetworkManager

I edit ubuntu VM: /etc/netplan/01-network-manager-all.yaml:
network:
version: 2
renderer: NetworkManager
ethernets:
ens18:
dhcp4: no
addresses:
- 192.168.0.131/24
gateway4: 192.168.0.1
nameservers:
addresses: [192.168.0.1]
But it does not make any change.
Please help me!
Thanks.
 
Did you use netplan apply? but I wouldnt even recommend using PVE on top of Ubuntu even for testing ...
 
I don not know your exact setup but some ISPs do not allow multiple IPs from 1 device. You could try to masquerade
 

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!