Removing ifupdown during Proxmox Backup Server Install Bricks AWS EC2 VM

jsalas424

Active Member
Jul 5, 2020
143
3
38
35
The goal is to spin up a EC2 instance that runs PBS for off-site backups.

I followed the instructions here

I spun up a fresh Debian 11 (HVM) instance and attempted to install PBS with 'apt-get install proxmox-backup-server'. When the installer removes ifupdown, we lose network connectivity to the VM (unsurprising) and then not even the AWS console can connect to the VM rendering it useless.

Code:
dpkg: ifupdown: dependency problems, but removing anyway as you requested:                                                                   
 cloud-init depends on ifupdown.

(Reading database ... 29591 files and directories currently installed.)
Removing ifupdown (0.8.36) ...
client_loop: send disconnect: Broken pipe

Any advise on how to do this would be greatly appreciated!
 
Last edited:
I also followed this reddit post, but it didn't work for me. I found that if I used apt-mark to prevent ifupdown from being removed AND ifupdown2 from being installed, then I didn't lose connectivity after the install or reboot.

I ran the following 2 commands before installing PBS...

apt-mark hold ifupdown
apt-mark hold ifupdown2
 
  • Like
Reactions: MasterCATZ
I also followed this reddit post, but it didn't work for me. I found that if I used apt-mark to prevent ifupdown from being removed AND ifupdown2 from being installed, then I didn't lose connectivity after the install or reboot.

I ran the following 2 commands before installing PBS...

apt-mark hold ifupdown
apt-mark hold ifupdown2
You are a lifesaver. I have exactly the same issues.
 
ah so that's what I did last time

Code:
apt-mark hold ifupdown
apt-mark hold ifupdown2

looks like I also used

Code:
&& systemctl enable networking

when I did install ifupdown2 after removing cloud-init and then remotely force restarted



Code:
nano /etc/network/interfaces
auto lo
iface lo inet loopback

iface enp2s0 inet auto

auto vmbr0
iface vmbr0 inet static
        address 192.168.2.11/24
        gateway 192.168.2.1
        bridge-ports enp2s0
        bridge-stp off
        bridge-fd 0


nano /etc/network/interfaces.d/enp0s3
auto lo
iface lo inet loopback

auto enp0s3
iface enp0s3
inet static
address 10.0.0.197/24
gateway 10.0.0.1

nano /etc/hosts
10.0.0.197 ifupdowntest ifupdowntest
127.0.0.1 localhost

apt install gnupg2
apt install ifupdown2 && systemctl enable networking && systemctl restart networking
apt install curl
curl https://raw.githubusercontent.com/pimox/pimox7/master/KEY.gpg | apt-key add -
curl https://raw.githubusercontent.com/pimox/pimox7/master/pimox.sh | sh
 
Last edited: