Learn how to Run multiple Distros Using Linux Containers with the help of some easy commands and basic knowledge of your Linux that will help you to easily play different distros on your device, So follow the below steps to proceed.
[dropcap]V[/dropcap]irtualization technology has made it easy for the users to work on two different software platforms on their single device and also without the need to install up more than one Operating System. Linux Containers (LXC) are also a lightweight virtualization technology that lets up the users to run multiple Linux Distros on the single hosted Linux platform. This means that you might be loving any other Linux Distro and want to check it up without installing it on your device, then all that you can do it through using up the Linux Containers. Now the thing that you might be willing to know is how can you actually run up the multiple Linux Distros using up the Linux Containers, and the question is also very accurate to the supposition. To let you help in that we have written up the whole detailed method in this article through which you could use up the Linux Containers and hence run up the multiple Distros on your any Linux OS. Just go and read out the article to know about the method!
Also Read: Top 15 Best Hacking Tools For Linux
How to Run Multiple Distros Using Linux Containers
The method is quite simple and easy and you just need to follow the simple guide to turning your android into the wireless flash drive for your mac. So follow the below guide to proceed.
Steps To Run multiple Distros Using Linux Containers:
#1 Install and Configure the Linux Containers
This method can be used for Linux Mint 18 64-bit or the Ubuntu 16.04 or above.
1. First of install up to the Linux Containers on your Linux device using up the command “sudo apt install lxc lxc-te” through the terminal. This will automatically install up to the Linux Containers on your Linux system, you just need to check that there is the Live internet connection always there.
2. Now you will need to configure up your profile for the Linux Containers and for that you need to run up the below commands in the terminal:
mkdir -p ~/.config/lxc
echo “lxc.id_map = u 0 1000
echo “lxc.id_map = g 0 1000
echo “lxc.network.type = ve
echo “lxc.network.link = lx
echo “SUSER veth lxcbr0 2”
3. To set up the user permissions you again have to execute the below commands:
sudo usermod –add-subuids
sudo usermod –add-subgids
sudo cgm create all user
sudo cgm chown all user $(i
cgm movepid all user $$
#2 Set up the Container
After the above step when you have installed up the LXc container then you have to follow up some steps to set up the container and the steps are given below:
1. We will be setting up the Ubuntu Container named <code>ubu1</code> and for that, you have to execute the command “lxc-create –template downl”
2. After that, you will see the list of all supported Distro images in your terminal app. Just enter up the specifics or the details of the Distro that you wish to install. This could also be done through the command “lxc-create -t download -n u“.
3. This will then download the image file for that Linux Distro you have selected and then install it on your host system. This might take up some time because the distro file isn’t too small, you need to download it up before.
4. After the installation process completes you will then be ready to play up that distro inside the containers on your Linux OS.
#3 Using up the Multiple Distros with LXC containers:
1. Start up the container using up the command “lxc-start -n ubul -d” where the <code>-n</code> specifies the name of the container which you wish to start up and the <code>-d</code> type makes it run on your device.
2. You can easily verify the container being started or not by the command “lxc-ls -f” in the terminal app.
# To stop up your container you can execute the command “lxc-stop -n ubu1” while if you wish to auto start your containers at the boot then you could execute the command “lxc.start.auto = 1″, “lxc.start.delay = 5” run these command simultaneously without the break and you are done.
So this was the method through which you could easily run any of your selected Linux Distro on your single Hosted Linux OS device. You have now got up that you would not require going through so many complex settings and options so as to made up the distro run virtually on your Linux OS. Just apply up to the method and therefore run up the multiple Linux Distros even on your single OS hosted Linux device!