Thanks for this. Very usefull!With linux, everything is possible :-D
There is no automatic solution for this, but it should go as follows:
Depending on the linux distribution, there could be other steps, filesystems, commands, tools necessary.
- boot live linux inside KVM
- create partition layout, filesystem(s)
- rsync stuff
- chroot into new environment
- install kernel
- install and configure boot loader
- Adapt fstab
- reboot and hope everything works
- boot live linux inside KVM
- create partition layout, filesystem(s)
- Adapt fstab
Did you succeed?
Btw. why are these steps necessary or can you expand on the idea please?
can you share more details please, what exactly are we looking for here?
I'd have assumed that I install a new KVM with the exact same OS version running in the LXC and adapt it to use the same partitioning and the same sources then backup the LXC, shut it down and restore it into the KVM. Finish by making sure the hostnames and IP settings are identical.
Btw. any suggestion for backing up and restoring the full system? I'm currently looking at Veeam free Linux Agent but it has some problems with LXC. As far as I remember with LXC it can only do folder/partition backups not full system backups but I might be wrong.
veeam agent for linux can do a full machine backup which can be restored onto completely different hardware. Hence my question if it could be used to transform LXC into KVM.Btw. any suggestion for backing up and restoring the full system? I'm currently looking at Veeam free Linux Agent but it has some problems with LXC. As far as I remember with LXC it can only do folder/partition backups not full system backups but I might be wrong.
I'd never use a crippled third party program if Proxmox VE has a very nice backup mechanism. Why would you want to do that?
- not quite clear: at this point wanting to migrate from LXC to a KVM I assume I created a brand new KVM which obviously has an intact and working fstab hence my question. Basically, I was unsure why one would boot the brand new KVM from a live linux CD? I'm sure I am simply missing something here.Therefore you need to create an fstab in your system to be able to mount e.g. your swap, your filesystems (besides root) and sometime also the pseudo filesystems (tmpfs, devfs, etc.).
- not quite clear: at this point wanting to migrate from LXC to a KVM I assume I created a brand new KVM which obviously has an intact and working fstab hence my question. Basically, I was unsure why one would boot the brand new KVM from a live linux CD? I'm sure I am simply missing something here.
We use essential cookies to make this site work, and optional cookies to enhance your experience.