- Lab
-
Libraries: If you want this lab, consider one of these libraries.
- Cloud

Installing LXC/LXD
This lab will allow you to practice installing LXC/LXD in a cloud server environment. You will pull down the latest Alpine image and create a container from it to test your configuration. **Note: Use Alpine edge for the lab.**

Lab Info
Table of Contents
-
Challenge
Install the LXD Package
-
Verify which Linux distribution your server is running.
cat /etc/issue
-
Install
lxd
andlxd-client
.sudo snap install lxd
-
-
Challenge
Initialize LXD
-
Initialize LXD.
sudo lxd init --auto
-
-
Challenge
Create Your First Container
-
Create a container using Alpine
edge
namedmy-alpine
.sudo lxc launch images:alpine/edge my-alpine
-
-
Challenge
List the Containers
-
List your containers.
sudo lxc list
-
-
Challenge
Connect to a Container
-
Execute an ash shell in your
my-alpine
container.sudo lxc exec my-alpine -- /bin/ash
-
Create a file named
hello.txt
.echo hello world > hello.txt
-
About the author
Real skill practice before real-world application
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Learn by doing
Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.
Follow your guide
All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.
Turn time into mastery
On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.