Posted over 6 years ago. Visible to the public.

Using QEMU to quickly test an ISO or bootable USB drive

When you want to quickly boot from a drive or image in a virtual machine you do not need to setup up a VirtualBox machine. Often QEMU does the job well enough.

Install it:

Copy
sudo apt-get install qemu

To boot an ISO:

Copy
qemu-system-x86_64 -cdrom filename.iso

If you prepared a USB pen drive and want to test it, run it like this (/dev/sdx being your device name; you may need to sudo to access it):

Copy
qemu-system-x86_64 -hda /dev/sdx

Be aware that not everything runs smoothly in QEMU – you might need to set up a VirtualBox for complex scenarios.

On older Ubuntus, you could still say qemu where it's now qemu-system-x86_64 or qemu-system-i386.

Growing Rails Applications in Practice
Check out our new e-book:
Learn to structure large Ruby on Rails codebases with the tools you already know and love.

Author of this card:

Avatar
Arne Hartherz
Last edit:
almost 3 years ago
by Arne Hartherz
About this deck:
We are makandra and do test-driven, agile Ruby on Rails software development.
License for source code
Posted by Arne Hartherz to makandropedia