<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Kvm on ElastiCourse</title><link>https://www.elasticourse.com/tags/kvm/</link><description>Recent content in Kvm on ElastiCourse</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><copyright>ElastiCourse.</copyright><lastBuildDate>Sat, 19 Oct 2024 23:56:06 -0400</lastBuildDate><atom:link href="https://www.elasticourse.com/tags/kvm/index.xml" rel="self" type="application/rss+xml"/><item><title>How to Boot From a Physical USB Flash Drive in a VM</title><link>https://www.elasticourse.com/how-to-boot-from-a-physical-usb-flash-drive-in-a-vm/</link><pubDate>Sat, 19 Oct 2024 01:21:54 -0400</pubDate><guid>https://www.elasticourse.com/how-to-boot-from-a-physical-usb-flash-drive-in-a-vm/</guid><description>&lt;img src="https://www.elasticourse.com/how-to-boot-from-a-physical-usb-flash-drive-in-a-vm/usb-vm-boot.webp" alt="Featured image of post How to Boot From a Physical USB Flash Drive in a VM" />&lt;p>Booting from USB flash drive is possible with virtualization apps like VirtualBox and Virtual Machine Manager.
This article will demonstrate multiple methods to boot your USB flash drive in a VM.&lt;/p>
&lt;h2 id="virtualbox-instructions">VirtualBox Instructions
&lt;/h2>&lt;ul>
&lt;li>If you don&amp;rsquo;t have VirtualBox installed, you can download it from the &lt;a class="link" href="https://www.virtualbox.org/wiki/Downloads" target="_blank" rel="noopener"
>official website&lt;/a>.&lt;/li>
&lt;li>Click &lt;code>New&lt;/code> to create a new virtual machine in VirtualBox. Select the OS you need to install from the flash drive.&lt;/li>
&lt;/ul>
&lt;p>&lt;img src="https://www.elasticourse.com/how-to-boot-from-a-physical-usb-flash-drive-in-a-vm/virtualbox-1.webp"
width="1277"
height="748"
loading="lazy"
class="gallery-image"
data-flex-grow="170"
data-flex-basis="409px"
>&lt;/p>
&lt;ul>
&lt;li>Assign desired CPU and RAM for the OS you are installing from the USB drive.&lt;/li>
&lt;li>Enable EFI if the flash drive has UEFI boot support.&lt;/li>
&lt;/ul>
&lt;p>&lt;img src="https://www.elasticourse.com/how-to-boot-from-a-physical-usb-flash-drive-in-a-vm/virtualbox-2.webp"
width="1277"
height="748"
loading="lazy"
class="gallery-image"
data-flex-grow="170"
data-flex-basis="409px"
>&lt;/p>
&lt;ul>
&lt;li>Assign desired storage size for your new VM.&lt;/li>
&lt;/ul>
&lt;p>&lt;img src="https://www.elasticourse.com/how-to-boot-from-a-physical-usb-flash-drive-in-a-vm/virtualbox-3.webp"
width="1277"
height="748"
loading="lazy"
class="gallery-image"
data-flex-grow="170"
data-flex-basis="409px"
>&lt;/p>
&lt;ul>
&lt;li>Click &lt;code>Finish&lt;/code> to complete the VM creation.&lt;/li>
&lt;/ul>
&lt;p>&lt;img src="https://www.elasticourse.com/how-to-boot-from-a-physical-usb-flash-drive-in-a-vm/virtualbox-5.webp"
width="1277"
height="748"
loading="lazy"
class="gallery-image"
data-flex-grow="170"
data-flex-basis="409px"
>&lt;/p>
&lt;ul>
&lt;li>Select your new VM, and Click &lt;code>Settings&lt;/code>.&lt;/li>
&lt;li>Under USB settings, change the USB controller to &lt;code>USB 3.0&lt;/code>.&lt;/li>
&lt;li>Click the green &lt;code>Add&lt;/code> button to select your flash drive from the list of connected USB devices.
&lt;ul>
&lt;li>For VirtualBox 7.1 and above, change to &lt;code>Expert&lt;/code> mode to see all settings.&lt;/li>
&lt;/ul>
&lt;/li>
&lt;li>Click &lt;code>OK&lt;/code> to Save.&lt;/li>
&lt;/ul>
&lt;p>&lt;img src="https://www.elasticourse.com/how-to-boot-from-a-physical-usb-flash-drive-in-a-vm/virtualbox-6.webp"
width="1277"
height="748"
loading="lazy"
class="gallery-image"
data-flex-grow="170"
data-flex-basis="409px"
>&lt;/p>
&lt;ul>
&lt;li>Confirm USB device filter is correctly set and active, then &lt;code>Start&lt;/code> your VM.&lt;/li>
&lt;/ul>
&lt;p>&lt;img src="https://www.elasticourse.com/how-to-boot-from-a-physical-usb-flash-drive-in-a-vm/virtualbox-7.webp"
width="1277"
height="748"
loading="lazy"
class="gallery-image"
data-flex-grow="170"
data-flex-basis="409px"
>&lt;/p>
&lt;ul>
&lt;li>The USB flash drive should now be booted in your VM.&lt;/li>
&lt;/ul>
&lt;p>&lt;img src="https://www.elasticourse.com/how-to-boot-from-a-physical-usb-flash-drive-in-a-vm/ventoy-booted.webp"
width="1280"
height="839"
loading="lazy"
class="gallery-image"
data-flex-grow="152"
data-flex-basis="366px"
>&lt;/p>
&lt;h2 id="virtual-machine-manager-instructions">Virtual Machine Manager Instructions
&lt;/h2>&lt;p>If you don&amp;rsquo;t have &lt;code>virt-manager&lt;/code> installed, you can download it for your OS.&lt;/p>
&lt;div class="highlight">&lt;div class="chroma">
&lt;table class="lntable">&lt;tr>&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code>&lt;span class="lnt">1
&lt;/span>&lt;span class="lnt">2
&lt;/span>&lt;span class="lnt">3
&lt;/span>&lt;span class="lnt">4
&lt;/span>&lt;span class="lnt">5
&lt;/span>&lt;/code>&lt;/pre>&lt;/td>
&lt;td class="lntd">
&lt;pre tabindex="0" class="chroma">&lt;code class="language-sh" data-lang="sh">&lt;span class="line">&lt;span class="cl">zypper install libvirt virt-manager &lt;span class="o">(&lt;/span>OpenSuse, or through YaST&lt;span class="o">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">yum install virt-manager &lt;span class="o">(&lt;/span>Fedora&lt;span class="o">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">apt install virt-manager &lt;span class="o">(&lt;/span>Debian, Ubuntu, Linux Mint&lt;span class="o">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">emerge virt-manager &lt;span class="o">(&lt;/span>Gentoo&lt;span class="o">)&lt;/span>
&lt;/span>&lt;/span>&lt;span class="line">&lt;span class="cl">pkg_add virt-manager &lt;span class="o">(&lt;/span>OpenBSD&lt;span class="o">)&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/td>&lt;/tr>&lt;/table>
&lt;/div>
&lt;/div>&lt;ul>
&lt;li>Start by creating a new virtual machine using &lt;code>Manual install&lt;/code>.&lt;/li>
&lt;li>Assign Desired CPU and RAM for the VM to match the OS you are trying to install from the USB flash drive.&lt;/li>
&lt;/ul>
&lt;p>&lt;img src="https://www.elasticourse.com/how-to-boot-from-a-physical-usb-flash-drive-in-a-vm/virt-manager-1.webp"
width="1268"
height="748"
loading="lazy"
class="gallery-image"
data-flex-grow="169"
data-flex-basis="406px"
>&lt;/p>
&lt;ul>
&lt;li>Select the OS you are installing.&lt;/li>
&lt;/ul>
&lt;p>&lt;img src="https://www.elasticourse.com/how-to-boot-from-a-physical-usb-flash-drive-in-a-vm/virt-manager-2.webp"
width="1264"
height="746"
loading="lazy"
class="gallery-image"
data-flex-grow="169"
data-flex-basis="406px"
>&lt;/p>
&lt;ul>
&lt;li>Choose customize install before install.&lt;/li>
&lt;/ul>
&lt;p>&lt;img src="https://www.elasticourse.com/how-to-boot-from-a-physical-usb-flash-drive-in-a-vm/virt-manager-3.webp"
width="1264"
height="746"
loading="lazy"
class="gallery-image"
data-flex-grow="169"
data-flex-basis="406px"
>&lt;/p>
&lt;ul>
&lt;li>In the VM settings overview, change Firmware to &lt;code>UEFI&lt;/code> if the flash drive supports it.&lt;/li>
&lt;/ul>
&lt;p>&lt;img src="https://www.elasticourse.com/how-to-boot-from-a-physical-usb-flash-drive-in-a-vm/virt-manager-4.webp"
width="1021"
height="837"
loading="lazy"
class="gallery-image"
data-flex-grow="121"
data-flex-basis="292px"
>&lt;/p>
&lt;ul>
&lt;li>Click &lt;code>Add Hardware&lt;/code> then &lt;code>USB Host Device&lt;/code> from the settings menu.&lt;/li>
&lt;li>Choose your USB flash drive from the list of connected devices.&lt;/li>
&lt;li>Save by clicking &lt;code>Finish&lt;/code>.&lt;/li>
&lt;/ul>
&lt;p>&lt;img src="https://www.elasticourse.com/how-to-boot-from-a-physical-usb-flash-drive-in-a-vm/virt-manager-5.webp"
width="932"
height="848"
loading="lazy"
class="gallery-image"
data-flex-grow="109"
data-flex-basis="263px"
>&lt;/p>
&lt;ul>
&lt;li>Click &lt;code>Boot Options&lt;/code> to modify boot order.&lt;/li>
&lt;li>Enable the check mark next to your flash drive.&lt;/li>
&lt;li>Move the flash drive to the top of the boot order.&lt;/li>
&lt;li>Save by clicking &lt;code>Apply&lt;/code>.&lt;/li>
&lt;li>Start the VM by clicking &lt;code>Begin Installation&lt;/code>.&lt;/li>
&lt;/ul>
&lt;p>&lt;img src="https://www.elasticourse.com/how-to-boot-from-a-physical-usb-flash-drive-in-a-vm/virt-manager-6.webp"
width="1019"
height="839"
loading="lazy"
class="gallery-image"
data-flex-grow="121"
data-flex-basis="291px"
>&lt;/p>
&lt;ul>
&lt;li>The USB flash drive should now be booted in your VM.&lt;/li>
&lt;/ul></description></item></channel></rss>