{"id":1502,"date":"2021-12-16T14:09:18","date_gmt":"2021-12-16T11:09:18","guid":{"rendered":"https:\/\/files2.tojikon.net\/files-cloud\/2021\/06\/14\/how-to-create-a-kvm-virtual-machine-in-ubuntu\/https:\/\/files2.tojikon.net\/files-cloud\/2021\/06\/14\/how-to-create-a-kvm-virtual-machine-in-ubuntu\/"},"modified":"2021-12-16T14:09:18","modified_gmt":"2021-12-16T11:09:18","slug":"how-to-create-a-kvm-virtual-machine-in-ubuntu","status":"publish","type":"post","link":"https:\/\/tojikon.net\/en\/1502-how-to-create-a-kvm-virtual-machine-in-ubuntu\/","title":{"rendered":"How to create a KVM virtual machine in Ubuntu"},"content":{"rendered":"<section id=\"related_posts\">\n<div class=\"block-head\">\n<h3>Related Articles<\/h3>\n<\/div>\n<\/section>\n<p>Are you in need of a KVM virtual machine in Ubuntu but don\u2019t know where to start? As it turns out, the Gnome Boxes app makes setting up a KVM virtual machine in Ubuntu a breeze. In this guide, we\u2019ll show you how to do it!<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-404129 size-full\" src=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-create-a-kvm-virtual-machine-in-ubuntu.png\" alt=\"KVM virtual machine in Ubuntu\" width=\"1200\" height=\"654\" srcset=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-create-a-kvm-virtual-machine-in-ubuntu.png 1200w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-create-a-kvm-virtual-machine-in-ubuntu-5.png 300w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-create-a-kvm-virtual-machine-in-ubuntu-6.png 1024w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-create-a-kvm-virtual-machine-in-ubuntu-7.png 768w\" sizes=\"(max-width: 1200px) 100vw, 1200px\"\/><\/p>\n<h2>How to create a KVM virtual machine in Ubuntu \u2013 Gnome Boxes\u00a0<\/h2>\n<p>The easiest and fastest way to create a KVM virtual machine on Ubuntu is with the Gnome Boxes tool. This program takes the headaches out of setting up a KVM environment on Linux by doing pretty much everything for the user.<\/p>\n<p>That said, the Gnome Boxes application, while excellent, does not come pre-installed on Ubuntu. So, before we go over how to create anything with the app, we\u2019ll need to go over how to install it on Ubuntu.<\/p>\n<h3>Install via Ubuntu Software<\/h3>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-314102 size-full\" src=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-create-a-kvm-virtual-machine-in-ubuntu-1.png\" alt=\"\" width=\"1200\" height=\"729\" srcset=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-create-a-kvm-virtual-machine-in-ubuntu-1.png 1200w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-create-a-kvm-virtual-machine-in-ubuntu-8.png 300w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-create-a-kvm-virtual-machine-in-ubuntu-9.png 768w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-create-a-kvm-virtual-machine-in-ubuntu-10.png 1024w\" sizes=\"(max-width: 1200px) 100vw, 1200px\"\/><\/p>\n<p>If you\u2019re a typical Ubuntu User, you might prefer to install software through the Ubuntu Software app rather than dealing with the terminal. To install Boxes through Ubuntu Software, do the following.<\/p>\n<p>First, launch Ubuntu Software by pressing\u00a0<strong>Win<\/strong>, searching for \u201cUbuntu Software,\u201d and opening the app with the orange shopping bag icon. Once it is open, find the search box in the upper-left-hand corner, and click on it with the mouse.<\/p>\n<p>In the search box, type \u201cGnome Boxes\u201d and press the <strong>Enter\u00a0<\/strong>key. The Gnome Boxes app should be the first result in the search. Click on it with the mouse to access its software page.<\/p>\n<p>On the Gnome Boxes software page, find the \u201cInstall\u201d button and click on it with the mouse to start installing Boxes onto Ubuntu. It should only take a couple of seconds.<\/p>\n<h3>Install via Terminal<\/h3>\n<p>If you use Ubuntu and love the terminal, you can quickly get the Gnome Boxes application up and running with the command line. To start, open up a terminal window on the Ubuntu desktop by pressing <strong>Ctrl + Alt + T\u00a0<\/strong>on the keyboard or by searching for \u201cTerminal\u201d in the app menu.<\/p>\n<p>Once the terminal window is open and ready to go, use the\u00a0<strong>apt install\u00a0<\/strong>command to install the \u201cgnome-boxes\u201d package on your computer. This installation will only take a couple of seconds to complete.<\/p>\n<pre>\nsudo apt install gnome-boxes\n<\/pre>\n<h3>Install via Flatpak<\/h3>\n<p>Gnome Boxes is also available as a Flatpak package in the Flathub app store. So, if you prefer Flatpak to what is included with Ubuntu, you can quickly get it working. To start, you\u2019ll need to install the Flatpak runtime on Ubuntu.<\/p>\n<p>To install the Flatpak runtime, follow this guide on the subject. When you\u2019ve finished configuring the Flatpak runtime for Ubuntu, you will need to enable the Flathub app store using the command below.<\/p>\n<pre>\nflatpak remote-add --if-not-exists flathub https:\/\/flathub.org\/repo\/flathub.flatpakrepo\n<\/pre>\n<p>Finally, you can install the Gnome Boxes app from the Flathub app store by making use of the following\u00a0<strong>flatpak install\u00a0<\/strong>command.<\/p>\n<pre>\nsudo flatpak install flathub org.gnome.Boxes\n<\/pre>\n<h2>How to create a KVM virtual machine in Ubuntu \u2013 Setting up the VM<\/h2>\n<p>First, open up Gnome Boxes on the Ubuntu desktop. Once it is open, press the + symbol in the left-hand corner. By pressing this button, the \u201cCreate a Virtual Machine\u201d menu will appear.<\/p>\n<p>In this menu, locate the \u201cFeatured Downloads\u201d menu. In this area, you can download Red Hat Enterprise Linux, Fedora, as well as Fedora Silverblue. Alternatively, if you wish to download a different OS, find \u201cSelect an OS Source\u201d and choose the \u201cOperating System Download\u201d option to download any OS directly to Gnome Boxes.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-404122 size-full\" src=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-create-a-kvm-virtual-machine-in-ubuntu-2.png\" alt=\"\" width=\"1200\" height=\"660\" srcset=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-create-a-kvm-virtual-machine-in-ubuntu-2.png 1200w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-create-a-kvm-virtual-machine-in-ubuntu-11.png 300w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-create-a-kvm-virtual-machine-in-ubuntu-12.png 1024w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-create-a-kvm-virtual-machine-in-ubuntu-13.png 768w\" sizes=\"(max-width: 1200px) 100vw, 1200px\"\/><\/p>\n<p>When you\u2019ve made your download choice, Gnome Boxes will show you a download bar. It\u2019ll then attempt to download the software to your computer. Keep in mind that this download will take some time, as most OSes are a few gigabytes in size.\u00a0<\/p>\n<p>After the download process is complete, a \u201cReview and Create\u201d window will appear. In this window, Gnome Boxes will display a default configuration for your KVM virtual machine in Ubuntu. Find and click on the \u201cCreate\u201d button to make the VM.<\/p>\n<p>Once the \u201cCreate\u201d button has been selected, your KVM virtual machine will instantly startup. From here, you will need to go through the installation process to install the KVM virtual machine OS to the Gnome Boxes.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-404123 size-full\" src=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-create-a-kvm-virtual-machine-in-ubuntu-3.png\" alt=\"\" width=\"1200\" height=\"647\" srcset=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-create-a-kvm-virtual-machine-in-ubuntu-3.png 1200w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-create-a-kvm-virtual-machine-in-ubuntu-14.png 300w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-create-a-kvm-virtual-machine-in-ubuntu-15.png 1024w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-create-a-kvm-virtual-machine-in-ubuntu-16.png 768w\" sizes=\"(max-width: 1200px) 100vw, 1200px\"\/><\/p>\n<p>When the installation is complete, reboot it. After it reboots, feel free to shut it down.<\/p>\n<h2>How to create a KVM virtual machine in Ubuntu \u2013 Accessing your VM<\/h2>\n<p>From here, any time you wish to access the virtual machine, simply click on it in Gnome Boxes to start it up. When you click on the virtual machine icon in Gnome Boxes, it will start up and be ready to use.\u00a0<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone wp-image-404130 size-full\" src=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-create-a-kvm-virtual-machine-in-ubuntu-4.png\" alt=\"\" width=\"1200\" height=\"640\" srcset=\"https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-create-a-kvm-virtual-machine-in-ubuntu-4.png 1200w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-create-a-kvm-virtual-machine-in-ubuntu-17.png 300w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-create-a-kvm-virtual-machine-in-ubuntu-18.png 1024w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-create-a-kvm-virtual-machine-in-ubuntu-19.png 768w, https:\/\/files2.tojikon.net\/files-cloud\/wp-content\/uploads\/2021\/12\/how-to-create-a-kvm-virtual-machine-in-ubuntu-20.png 320w\" sizes=\"(max-width: 1200px) 100vw, 1200px\"\/><\/p>\n<p>If you need to access other features in the virtual machine, click on the menu next to the minimize button. It reveals many useful features that can add to the KVM virtual machine experience.\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Related Articles Are you in need of a KVM virtual machine in Ubuntu but don\u2019t know where to start? As it turns out, the Gnome Boxes app makes setting up a KVM virtual machine in Ubuntu a breeze. In this guide, we\u2019ll show you how to do it! How to create a KVM virtual machine &hellip;<\/p>\n","protected":false},"author":1,"featured_media":1503,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[21],"tags":[33],"_links":{"self":[{"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/posts\/1502"}],"collection":[{"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/comments?post=1502"}],"version-history":[{"count":0,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/posts\/1502\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/media\/1503"}],"wp:attachment":[{"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/media?parent=1502"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/categories?post=1502"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tojikon.net\/en\/wp-json\/wp\/v2\/tags?post=1502"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}