Create a Fresh Container On Top of Existing One

mattlach

Member
Mar 23, 2016
154
12
18
Boston, MA
Hey all,

Quick question.

I have an existing very complicated container, with lots of interfaces and mounts. It's running on Ubuntu 14.04 LTS which is about to go EOL.

I have tried ZFS snapshotting the existing containers rpool/subvol-110-disk-1 location and doing an in place upgrade but it fails spectacularly.

Next, I want to attempt a clean install instead, but I'd like to do it over the top of the existing container. This way I won't have any interface conflicts by doing the clean install in a different container, and if I take a snapshot of the existing subvol, I can always roll back to the existing 14.04 install if I need to.

I don't see any option like this in the Web GUI, bu is there a way I can do this manually maybe?

1.) snapshot the subvol
2.) rm -fr ./subvol-110-disk-1/*
3.) manually extract fresh container tarball in the same subvol folder?

Would this do the trick?

Much obliged,
Matt
 

oguz

Proxmox Staff Member
Staff member
Nov 19, 2018
857
87
28
I have an existing very complicated container, with lots of interfaces and mounts.
What do you want to keep from the old container? There might be simpler ways of doing this (like mounting container and getting the configuration files that you need and putting them on the fresh one).
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE 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 your own in 60 seconds.

Buy now!