Give Practice Its Own Machine
Before changing Release Board, we need somewhere that can be stopped or rebuilt without touching a work server. By the end of this lesson, you will have a named local Linux machine, an ordinary user and an empty practice directory. You will also know how to leave it and return to the same place.
Your host is the computer you normally use. A virtual machine, or VM,
runs another operating system using a share of that computer's processor,
memory and storage. That operating system is the guest. We will use
Multipass, a local VM manager, to create a guest called vecta-devops.
This is not an AWS instance and needs no cloud account.

Follow the arrow from the host terminal into the guest, then down to the practice directory. The boxes describe ownership and command context, not an application request path.
The VM gives practice a separate operating system and disk. It is not permission to run untrusted software: it can still contact the network. Sharing a host folder with it would also let guest commands affect those shared files. This exercise uses no shared folders, public ports or production credentials.
Before the First Command
The primary setup here is an Ubuntu Linux host on an Intel/AMD 64-bit computer, with an Ubuntu 24.04 LTS x86_64 guest and Bash. Bash is the program that interprets the commands you type. A terminal is the window through which you interact with that program. We introduce each command as we use it; you do not need previous terminal experience.
Use a personal machine, or one whose owner permits installing a VM manager and running local VMs. The starting allocation below is four virtual CPUs, 8 GB of memory and a 30 GB guest disk. Reserve enough host resources for that allocation and your other applications; plan for a host with 16 GB memory and at least 40 GB free storage. These are course planning allocations, not universal minimums or a guarantee for every later workload. Processor virtualization must be enabled. If the computer cannot supply the allocation, stop here rather than moving the exercise to a work server.
On Ubuntu, Settings > System > About shows the processor and memory, and the Disks application shows the host's disks and available storage. Internet access is needed to download the manager and Ubuntu image. Downloads and local power/storage use are real costs even though no cloud resource is created.
Windows, macOS, ARM and WSL are not interchangeable with this route. Canonical provides other Multipass installers, but this lesson's installation command is for Ubuntu Linux. Arrange the stated environment before the practical part; reading the lesson does not require it. Do not reinstall your main operating system or disable organization security controls to follow the exercise.
Open Terminal from Ubuntu's application menu. This first window is on the
host. A line ending in $ or # is usually a prompt; do not copy the prompt or
the illustrative output shown in this lesson. Type one command line, press
Enter, and inspect its result before continuing. Options beginning with -
or -- change how a command behaves.
Create the Named Guest
Host terminal, any directory, your normal host user. If Multipass is already installed, skip the installation line. Otherwise run:
sudo snap install multipass
snap installs packaged software. sudo requests administrator permission for
this installation; it can ask for your host password without showing characters
as you type. This changes the host by installing Multipass and its background
service. Do not add sudo to the later practice commands. If permission is
denied, ask the machine owner rather than weakening permissions.
Check the tool and existing machines, one line at a time:
multipass version
multipass list
Record the reported client/service versions in your own notes. If vecta-devops
already exists, do not delete or replace it. If it is your earlier course VM,
use the resume procedure. If its owner or purpose is
unclear, stop and resolve that collision first.
Only when that name is unused, create the guest:
multipass launch 24.04 --name vecta-devops --cpus 4 --memory 8G --disk 30G
The release number selects the guest operating system rather than accepting a
changing default. The name is our label, not an address or password. The other
options set the guest's CPU, memory and disk allocation. Download and first boot
can take time. If launch fails, inspect multipass list before trying again:
a failed wait can leave an instance behind.
Inspect it from the host:
multipass info vecta-devops
Look for Name: vecta-devops, State: Running, an Ubuntu 24.04 release, four
CPUs and Mounts: --. These are fields to inspect, not a literal transcript.
Memory and disk totals can be a little below their allocations after system
overhead. If host folders are mounted, stop and establish why before proceeding.
An IP address here identifies a network interface; it is not a request to open
that address publicly.
Now enter the guest:
multipass shell vecta-devops
This changes where subsequent commands execute. It does not change your host
Terminal into a different application. A typical illustrative prompt is
ubuntu@vecta-devops:~$: user, machine and current directory. ~ means the
user's home directory. Prompts can be customized, so verify rather than trusting
their appearance.
Confirm Where You Are
Guest terminal, Bash, initially in the guest user's home. These checks only read information. Run each line separately:
hostname
id -un
id -u
cat /etc/os-release
uname -m
printf '%s\n' "$BASH_VERSION" "$HOME"
hostname prints the machine name. id -un prints the effective user name;
id -u prints its numeric identity. Identity 0 is the all-powerful root
user. cat reads the named file; here it shows the guest's OS identity.
uname -m reports the machine architecture.
The last line prints two values already set by Bash and the login environment:
the running Bash version and your home path. %s means print a value as text;
\n adds a new line. $HOME refers to a value, not a folder literally named
$HOME. Double quotes keep its expanded value together as one argument.
For the new guest, expect vecta-devops, user ubuntu, a nonzero user ID,
ID=ubuntu and VERSION_ID="24.04", x86_64, a nonempty Bash version and
/home/ubuntu. Patch versions and numeric user IDs need not match someone
else's screenshot. If these checks show the host, root, another release or a
different machine, stop before creating anything. Use exit to leave that
guest session and deliberately enter the intended named VM from the host.
Inspect guest resources too:
free -h
df -h "$HOME"
free reports memory; -h uses readable units. In its Mem: row, distinguish
total from available: memory already used by the operating system is not
available for your programs. df reports the filesystem that holds your home;
its Avail column is remaining disk space. GiB/MiB are binary-sized units, so
their numbers need not equal an allocation expressed in GB. Near-zero available
memory or space means resolve capacity before continuing, not delete unknown
files. These checks describe the guest, not spare capacity on the host.
Make One Owned Directory
A directory is a folder. An absolute path begins at /, the root of
this guest's filesystem. The practice root is /home/ubuntu/vecta-devops.
Calling it a practice root does not mean using the root account.
Guest terminal, verified ordinary user. On the first run only:
mkdir "$HOME/vecta-devops"
mkdir creates a directory. It normally prints nothing on success. We deliberately
do not use an option that silently accepts an existing directory: an unexpected
File exists is a reason to inspect, not overwrite. If you are resuming your own
exercise, inspect it with ls -ld "$HOME/vecta-devops" first. -l shows details
and -d describes the directory itself. Check its owner is your guest user and
that the first character is d, not l for a link to another location.
If it is not your known practice directory, stop; do not fix it with sudo or
broad permission changes.
After successful creation, or after verifying your own existing directory, enter it and inspect the real path and owner:
cd "$HOME/vecta-devops"
pwd -P
ls -ld .
cd changes the current directory of this shell. If it fails, do not run the
next step. pwd -P prints the physical path, resolving directory links; it
should be /home/ubuntu/vecta-devops. The dot means the current directory.
ls -ld . should show a directory owned by ubuntu. A different physical path
or owner means investigate the location before writing there.
Inside that confirmed directory, create a temporary empty child:
mkdir readiness-check
ls -ld readiness-check
This is a relative path: because it does not begin with /, its location depends
on the shell's current directory. If creation succeeded, remove just that empty
child and confirm it is gone:
rmdir readiness-check
ls -ld readiness-check
The final command should report that it cannot find the directory. That error
is expected here, after removal; it would not be expected immediately after
creation. rmdir refuses to remove a nonempty directory. If it refuses, inspect
the contents rather than replacing it with a force-delete command. Keep the
empty vecta-devops parent for the next lesson.
Stop for Today and Resume
Write down the guest name, user, OS, architecture, Bash version and physical practice path in your own notebook. Keep paths and command output private if they contain personal information. No passwords or tokens belong in this record.
To pause, leave the guest shell:
exit
You are back on the host. Leaving the shell does not shut down the VM. Stop only this named instance and inspect its state:
multipass stop vecta-devops
multipass info vecta-devops
Expect Stopped. Guest processes no longer run; its disk and files remain and
still consume host storage. Some running-state details may be absent from the
stopped report. Do not use --all or force-stop other people's machines.
To return later, use these on the host:
multipass start vecta-devops
multipass shell vecta-devops
Then repeat the guest identity checks, enter "$HOME/vecta-devops" using cd
and confirm it with pwd -P. Do not rerun launch or assume a new terminal
remembers the last terminal's directory.
For an abandoned fresh exercise only, you may remove the whole guest rather
than keep it stopped. First inspect it with multipass info vecta-devops and
confirm it is your course VM and contains nothing you need. Once later lessons
add files, preserve those files elsewhere before considering this operation.
The following host command permanently erases this guest and its stored work;
it is not part of the normal next-lesson path:
multipass delete --purge vecta-devops
multipass list
The name should disappear from the list. This does not uninstall Multipass or remove all cached downloads. Never use an unqualified global purge as a reset.
When the Result Differs
| What you see | Safe next check |
|---|---|
multipass: command not found on the host | Check installation with the machine owner; reopen the host terminal after installing. Do not install it inside the guest to hide this error. |
| A virtualization, access or launch error | Keep the exact error and check Canonical's launch guidance; do not disable security, alter a work VM or guess repeated launches. |
| The name already exists | Inspect its state and ownership. Resume your own course VM; never replace an unknown one. |
root or user ID 0 | Stop guest changes; return to the host and open the named guest normally. |
Permission denied creating the practice directory | Recheck the machine, ordinary user and home path. Elevated permissions are not the fix for writing in the wrong home. |
File exists or a linked practice directory | Inspect owner and physical location. Reuse only your known directory; do not remove an unknown object. |
| The probe cannot be removed because it contains files | Inspect those files. The empty-directory cleanup intentionally refuses broader deletion. |
Try It without Following the Commands
Stop and resume your guest, return to the practice directory, then explain:
- Which evidence shows you are inside the guest as an ordinary user? Why is a familiar-looking prompt alone insufficient?
- A second terminal reports
/home/ubunturather than your practice directory. Has the directory disappeared? What is the next safe action? - You created the probe successfully but the last
lsnow says it does not exist. When is that the correct result? - Which operation preserves work: leaving the shell, stopping the VM or purging it? Which actually stops the guest's processes?
Answer and Reasoning
- Compare the machine name, nonzero effective identity, OS and home against the named guest you opened. A prompt is configurable text, not independent proof.
- Each shell has its own current directory. Inspect your known practice path,
use
cdto enter it and verify withpwd -P; do not create a second copy or conclude that files were lost just because the terminal opened in your home. - After a successful
rmdir readiness-check, absence is the cleanup result. Immediately aftermkdir, absence would instead mean the creation failed or you inspected another location. The order of observations matters. - Leaving the shell preserves files but leaves the VM running. Stopping it stops guest processes while keeping its disk. Purging removes the guest and its stored work; it is not a pause or backup.
Next, Find, inspect and change files will use the same empty practice root. There is no application, container engine or cluster to install in this lesson.