Create a Fresh Container On Top of Existing One

mattlach

Renowned Member
Mar 23, 2016
181
21
83
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
 
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).