Migrate Architecture (Cross-grade) of LXC i386 to amd64

Jospeh Huber

Renowned Member
Apr 18, 2016
99
7
73
46
Hi,

we have some lxc containers which are running in i386 mode. The should be be migrated to amd64.
The containers use a debian stretch os inside.

I manually edited the /etc/pve/lxc.conf of a container and changed the architecture.
#arch: i386
arch: amd64

The containers then boots the 64bit kernel that's fine as a first step. The 64 Bit kernel is also able to execute 32bit.

I found this
https://wiki.debian.org/CrossGrading
As a First step I have to add "apt-get install multiarch-support"
But this ends in a desaster, broken system.

Does anybody know a solution to migrate between the architecture without reinstalling it?