I have my rootfs snapshot in
/mnt/mydisk/my_test_snapshot. It is completely writable copy of my current system.
I want to boot a virtual machine (possibly an LXC container or maybe something else) that will use
/mnt/mydisk/my_test_snapshot as its root (
At the end, I need to boot a virtual machine that:
- uses a regular folder as its root filesystem.
- can mount some permitted folders in its virtual environment
- will use bridged networking (with zero configuration on the host's
- hopefully will have a X window to use GUI applications within
Is there any LXC recipe (or something else) for that purpose?
It might be re-inventing Docker or something, I don't know, but I need the following good bits:
As using BTRFS for the root partition, we can take a snapshot of current system with no cost and boot a virtual machine and play around (by installing new software, deleting something etc...)
If we liked what we did in the virtual machine, we can boot our real operating system from that snapshot (modified by VM)
We can clone any VM with no cost (time, cpu or disk space)
We can use this virtual machine as a time machine, for example, that will serve a database server from a backup. Good part is we can bring all services online in 1 minute and at once. Good for disaster recovery.
We can use it for specific applications (that we use for business) that will has to run any time we need, no matter what kind of upgrade or operating system change we did. This will completely create a sandbox for each application, without the cost of disk space and will bring BTRFS benefits (like snapshotting etc.)