This process requires Superuser privilages.
we need systmd-nspawn application for doing this whole process. so we need to install it first. This pacakge is name as systemd-container
in most of the linux distributions and system-nspwan
in some distributions
sudo apt install -y systemd-container
sudo apt install -y systemd-nspawn
Extract your in a directory of your choice. For now lets think i extracted my fs in directory called my_linux
- Before booting we need to install systemd and init inside fs To do that use:
sudo system-nspawn -D my_linux
# then install systemd and init
apt install -y systemd init;exit
To Boot linux use -b
in above command
sudo systemd-nspawn -Db my_linux
😁