Installing Virtual Machine (Ubuntu ) on a USB Drive and Testing Its Functionality
While exploring virtual machines, I became curious about how they work when storage space is shared on a USB stick , similar to Tails.
But my main goal was simply to test the VM’s functionality and observe what happens.
I’ve documented my test results in this article for your reference.
Tools & Resources Used
Setting It Up :
1. Preparing the USB stick
Format the USB drive in exFAT for cross-compatibility (NTFS also works) for better performance and readability.
2. Create the Ubuntu Virtual Machine using VirtualBox
Since the installation was done on a low-storage USB disk, it took more than an hour to complete.
Testing the virtual machine
Test case 1 : Booting Test
领英推荐
Result : Terminal commands are functioning as expected.
Test case 2 : File integrity Test
Result : The file remains as it is.
Test case 3 : Creating User Groups
Type the command :
sudo adduser testuser
Result :It worked as intended, but the OS became slower when booting and switching between users
Test case 4 : Live Crash Test ( Forcefully Removing the USB While the VM Is Running )
Caution: Create a backup before doing this, as files on the USB disk may get corrupted and require reinstallation.
Result
Best practices : shut down the VM before removing the USB stick.
Hope this information helps you !