[SOLVED] [VM] Cloud-init connection loss on Debian

Drthrax74

Well-Known Member
Apr 22, 2019
35
5
48
34
Hello,
After installing Cloud Init on Debian 10, I no longer have internet.

I did the configuration correctly in 192.168.1.40/24 (Class C)

I then tried to delete Cloud-Init on the VM side and the system side but could not reestablish the connection.

I notice the interface is named eth0 while it was named ens18, I am assuming that a process on startup is triggered

agent: 1
boot:
cipassword: $5$eA6pEzNY$JYnCT.Hima6epxb5LMEd8Kp8sAp7meAYSu6sZoImrS2
ciuser: marc
cores: 1
ipconfig0: ip=dhcp
memory: 390
name: SLDEBIAN01.LAN
nameserver: 192.168.1.1
net0: virtio=82:C4:58:1B:8D:99,bridge=vmbr0
numa: 0
ostype: l26
scsi0: NAS:200/vm-200-disk-0.qcow2,size=5G
scsihw: virtio-scsi-pci
searchdomain: LAN
smbios1: uuid=406dd39f-e89d-4558-9c6b-2a5f22cdf754
sockets: 1
sshkeys: ********************************
tablet: 0
vmgenid: ca6b056f-9199-4dc7-bf92-262145fc7d4b

/etc/udev/rules.d/70-persistent-net.rules
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="36:37:39:56:08:bd", NAME="eth0"
1630723508049.png


1630723673416.png


1630723818856.png


1630723897192.png
 
Last edited:
Hello,

I did like this:
marc@SLDEBIAN01:$ sudo rm /etc/udev/rules.d/70-persistent-net.rules ;
marc@SLDEBIAN01:$ sudo update-grub ;
marc@SLDEBIAN01:$ sudo reboot ;

Check:
marc@SLDEBIAN01:$ ip add| grep MULTICAST ;
2: ens18: <DIFFUSION, MULTIDIFFUSION, UP, LOWER_UP> mtu 1500 qdisc pfifo_fast état groupe UP par défaut qlen 1000

marc@SLDEBIAN01:$ cat /etc/network/interfaces

auto lo
iface lo inet loopback

auto ens18
allow-hotplug ens18
iface ens18 inet dhcp


marc@SLDEBIAN01:$ sudo ifconfig

ens18: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.40 netmask 255.255.255.0 broadcast 192.168.1.255
ether 82:c4:58:1b:8d:99 txqueuelen 1000 (Ethernet)
RX packets 66018 bytes 13720060 (13.0 MiB)
RX errors 0 dropped 5 overruns 0 frame 0
TX packets 20837 bytes 2040707 (1.9 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0


1630765818856.png
 
Last edited:

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!