A Virtual Machine: Another Computer in a Window
Build your first laboratory on your own desk. Mira has practised on her main OS and now needs a separate learning computer for Linux without replacing that familiar system. A virtual machine, or VM, represents a computer in software, with allocated processor resources, memory, disk and an OS. The main computer is the host; the system inside the VM is the guest. A virtualization program manages the guest.
Our case uses an ordinary Ubuntu Desktop and three lines of fictional text. Do not import malware, deliberately vulnerable servers or work data. A VM helps separate practice, but shared folders, clipboard integration, networking and virtualization defects can connect it to the host. Check resources and settings before launching the practice system.
The guest file stays inside its virtual disk. NAT/Shared permits connections; the adapter is disabled for the local case.
1. Prepare the host and choose one tool
RAM is memory used by running programs. A disk retains files after shutdown. An ISO is an OS installation-media image, not an installed operating system. Architecture describes the processor family: x86-64/AMD64 suits many Intel/AMD computers; ARM64/aarch64 suits Apple Silicon. AMD64 does not mean the processor must be manufactured by AMD.
Inspect your system through Windows Settings → System → About, macOS About This Mac or GNOME About. Find memory and processor information. Storage settings or disk properties show available disk space. The current Ubuntu Desktop download page lists 6 GB memory and 25 GB storage. For this exercise, choose a host with approximately 16 GB RAM and at least 60 GB free storage, leaving capacity for the host, ISO and practice copies. This is a cautious teaching guideline, not a universal virtualization minimum. On a smaller computer, write the laboratory passport on paper and postpone installation. Do not call an uninstalled VM ready.
| Host | Practice route | Official access |
|---|---|---|
| Intel/AMD x86-64 Windows or Linux | VirtualBox, Ubuntu Desktop AMD64 | VirtualBox Downloads, Oracle installation |
| Apple Silicon Mac | UTM, Ubuntu Desktop ARM64 | UTM macOS, Ubuntu Desktop |
| Intel Mac | UTM, Ubuntu Desktop AMD64 | The same official links; match the ISO architecture |
On Windows, run the official VirtualBox installer and follow its wizard while checking the publisher. Network-driver installation can briefly interrupt connectivity. On Linux, use the official package and instructions for your distribution. A kernel-module or Secure Boot problem means stopping to consult the official procedure rather than disabling protection. This lesson needs no Extension Pack. On Mac, download the free stable UTM DMG through the official link, open it and drag the application into Applications. The paid App Store edition is unnecessary. Avoid beta builds for the exercise.
Download a Desktop, not Server, ISO from Ubuntu’s official page. Select Intel/AMD 64-bit or ARM 64-bit as appropriate. Wait for completion and keep it in Lab/originals. A partial file cannot reliably boot the installer. Filename and size checks help identify obvious mistakes but are not cryptographic authenticity verification. Specialist OS foundations will cover checksums and signatures.
2. Two mini-actions in the virtualization program
VirtualBox creates a guest computer using your ISO. After launching, locate Home, the Machines list, New and Settings. Mini-action 1: Home → New; find Name, VM Folder and ISO Image, then cancel. Mini-action 2: Help → About VirtualBox; record its installed version in Lab/results/vm-passport.txt. Oracle’s current guide describes these fields. Basic mode presents successive steps; Expert mode shows some fields together.
UTM creates a guest on your Mac. Find the VM list at the left, plus button above, and information, Run and Edit for a selected VM. Mini-action 1: plus → Virtualize → Linux; find the image field through Browse, then cancel. Mini-action 2: UTM menu → About UTM; record the version. The official Ubuntu guide illustrates the basic screens, but its older ARM route begins with Server and desktop-installation commands. Here we use the current Desktop ARM64 ISO from Ubuntu’s website instead. Those old commands are unnecessary.
Readiness gate: identify host architecture, RAM and free storage; select one virtualization program; launch it successfully; finish downloading the matching ISO; distinguish the ISO from a future virtual disk. Resolve unknown items before continuing. Do not create both machines from the table.
3. Create the guest and inspect its connections
For VirtualBox: New → Name Academy-Ubuntu; VM Folder → your Lab/vms; ISO Image → the downloaded Desktop ISO. Check Linux, Ubuntu and 64-bit. Deselect Install OS Using Unattended Installation so that you can follow the graphical installer yourself. Set 6144 MB memory, two virtual processors if the host permits, and a new dynamically allocated 40 GB disk. Guest memory is unavailable to the host while running, so avoid allocating everything. Check the summary before Finish.
For UTM: plus → Virtualize → Linux. For this route, use QEMU virtualization without selecting Apple Virtualization if that checkbox is offered. Browse to Boot ISO Image; assign 6 GB memory and two cores when the host permits, with a 40 GB disk. Leave Shared Directory empty, name the VM Academy-Ubuntu and Save. Screen order varies by version; follow field meanings rather than a fixed step number.
Before starting, inspect the stopped VM’s settings. VirtualBox Settings → General → Advanced: Shared Clipboard and Drag’n’Drop Disabled; Shared Folders empty; Network → Adapter 1 → NAT, with no port forwarding. UTM Edit → Sharing: disable directory and clipboard sharing; Network → Emulated VLAN or Shared, without bridging or forwarding. Fields differ by virtualization mechanism. If you cannot locate and confirm them, do not attach real data.
NAT/Shared allows outgoing connectivity, and the guest may reach some host or home-network services. It is suitable for native updates of an ordinary OS, not isolation for attacking tools. Oracle explains NAT; UTM explains its network modes. After updating, disable the virtual network for the local-file case without turning off the host’s home Wi-Fi.
Practice. Does the file survive guest shutdown?
- Press Start or Run for Academy-Ubuntu. In the guest window, choose graphical Ubuntu installation, your language and keyboard, and normal interactive installation. Use the offered ordinary application selection without enterprise configuration.
- The disk step must concern a new virtual disk of approximately 40 GB inside the VM window. Continue installation onto that virtual disk only when this matches. If you see real host disks, a USB-booted installer or an unexpected disk size, cancel: that is another scenario. Never select the physical computer disk.
- Create guest user
learnerand a separate practice login passphrase, not your host password. Require a password at login. Wait for installation, reboot the guest and eject its virtual ISO when prompted if installation appears again. - After signing in, open guest Software Updater through application search. Check packages, install ordinary offered updates and restart if requested. Do not use a wizard to change the OS’s major release.
- Open guest Files → Documents, create Lab, launch the guest Text Editor and type
GUEST ONLY,Machine: Academy-Ubuntu,State: saved. Save as Lab/guest-plan.txt. Close and reopen through Files. - Shut down through the guest OS’s power menu → Shut Down and wait for Powered Off or Stopped. Open settings and disable the VirtualBox network adapter or remove only the virtual Network device in UTM. Record its previous mode so it can be restored later. Avoid Power Off as a substitute for normal guest shutdown.
- Start the VM and sign in again. guest-plan.txt should retain three lines. Requesting example.com in the guest browser may now fail, as expected with a genuinely disabled virtual adapter. Host Internet access may still work.
- In the host’s vm-passport.txt, record the VM location, ISO architecture, RAM, disk, network before/after, disabled integration and reopening result. Leave login secrets out.
Expected practice passport, not an observed author installation:
Host architecture: learner checks
Guest: Ubuntu Desktop, matching architecture
VM: Academy-Ubuntu
RAM: 6 GB; new virtual disk: 40 GB
Shared folders/clipboard: disabled
Network after case: virtual adapter disabled/removed
Guest file after restart: three saved lines
Predict: will the guest file appear in the host's Lab?
Check whether you enabled a shared directory. The virtual disk is a file or set of files on the host, but guest Documents does not automatically become host Documents. Inspect both systems without transferring secrets.4. Mistakes, state snapshots and cleanup
A black screen: check matching ISO architecture, completed download and virtualization mechanism rather than randomly allocating all resources. No desktop after installation: you may have selected Server. Return to Desktop instead of copying commands from an unfamiliar forum. Installation starts again: stop the guest and eject its virtual ISO. A very slow host: shut down the guest normally and reduce load without taking memory from every other application.
A snapshot permits returning to a VM state. For a selected stopped VirtualBox VM, open Snapshots → Take and name it clean-learning; first preserve any required guest-plan version. Restore rolls back guest changes, so losing work after the snapshot is expected. Oracle describes snapshots. Do not assume UTM offers that identical interface. The common case requires only a repeated start and the file-copy skills from the preceding module. A same-disk snapshot is not a separate backup.
Keep the passport, stopped practice VM and ISO until the course ends. Later remove a VM through its management tool only after checking its name and exporting required practice data. Do not manually delete an unfamiliar virtual disk or leave a shared personal directory attached.
The Astra Group author’s tutorial in Russian illustrates architecture and resource planning for UTM on Apple Silicon. It covers another product and route; we use it as preparation context and verify network properties against UTM documentation.
Bridge to a specialty: the Linux course continues with guest files and permissions; networking foundations explain connection modes; penetration testing requires its own specifically isolated laboratory and authorized target. Your result is an ordinary guest OS, a saved file and a boundary passport. It does not authorize checking somebody else’s network or establish that any VM is suitable for offensive experimentation.
With your passport and practice guest, continue to Linux for security; explore connection modes in network foundations.
What your computer stores
Change the conditions and observe this training model. It runs in your browser and does not change your computer.
A filename is not the whole story. Try revealing its extension.
Choose conditions above to see an explanation of the result.
Independent exercise · Russian
В мастерской колледжа преподаватель готовит виртуальный компьютер для группы. После занятия снимок вернут к исходному состоянию. Нужно заранее установить, где исчезнет учебная запись и где она переживёт возврат.
Evidence
В настройках гостевой системы подключён виртуальный диск и общая папка «Обмен», которая хранится на компьютере преподавателя. Снимок гостя сделан в 09:00. В 09:20 в локальной папке гостя и в «Обмене» появились два новых учебных файла. В обоих записано «занятие 7». Других сохранений и копий нет.
Assignment
Составьте таблицу для двух файлов. Предскажите наличие каждого после штатного выключения и повторного запуска, затем после возврата к снимку 09:00. Укажите операцию, по которой отличите возврат от перезапуска.
Compare your reasoning
Оба файла сохраняются при штатном выключении установленной гостевой системы. Возврат виртуального диска к 09:00 уберёт новый локальный файл гостя. Общая папка расположена на хосте и сохраняет второй файл. Проверка выполнена, если после возврата преподаватель откроет его из «Обмена» на хосте и прочтёт «занятие 7».
Personal practice environment
Check an excerpt, find matching lines and compute the SHA-256 of the original text. Temporary data expires after 30 minutes or when you close the environment.
Sign in