Getting started with virtualization and integrating features
VirtualBox is a user friendly way to deploy and virtualize operating systems on your host machine. In this guide we will be virtualizing Ubuntu 22.04 and implementing many ease-of-use features that expand functionality and simplify operation.
Installing the OS in VirtualBoxInstall the operating system through a .iso file and configure the virtual machine's settings
Adding guest additionsGuest additions add functionality between the host and guest operating system.
Here we will enable copy-pasting between the host and virtual machine.
Linking a machine folderA machine folder is a permanent shared location between the host operating system and your virtual machine. Files and folders placed inside of the machine folder can be handled from both the host and virtual machine.
Creating snapshotsSnapshots, virtual machine restore points, are a major feature and benefit for virtualized operating systems. Do not be afraid to use this feature and take snapshots. Do note that snapshots create system files that vary in size.
Attaching a virtual hard driveLike physical machines, a virtual machine could have virtual drives attached to it. The most common virtual hard drive file type is a .vhd. (The newer standard is .vhdx) These files act as virtual drives that can not only be attached to virtual machines but also attached to your Windows OS through Disk Management.
Permanently mount drive with fstab
Create the mount point
sudo mkdir /mnt/100GB✂
Identify drive (I.E: /dev/sdb)
sudo mount -t ext4 /dev/sdb /mnt/100GB✂
Get drive UUID and type
sudo lsblk -o NAME,FSTYPE,UUID,MOUNTPOINTS✂
sudo nano /etc/fstab✂
fstab entries have the following format:
sudo findmnt --verify✂
*do not reboot if there are errors/warnings. An invalid fstab can render a disk unbootable*
[UUID] [mount-point] [type] [options] [dump] [pass]
#4TB Disk UUID=b09bb4c8-de4d-4ce6-a93f-30c4c9241a58 /mnt/4TB ext4 defaults 0 0Test fstab