{"id":487,"date":"2017-05-27T21:58:34","date_gmt":"2017-05-27T20:58:34","guid":{"rendered":"http:\/\/darkandscary.co.uk\/?p=487"},"modified":"2017-05-27T21:58:34","modified_gmt":"2017-05-27T20:58:34","slug":"setting-up-virtual-machine-manager-to-work-with-the-kvm-hypervisor","status":"publish","type":"post","link":"https:\/\/darkandscary.co.uk\/?p=487","title":{"rendered":"Setting up Virtual Machine Manager to work with the KVM hypervisor"},"content":{"rendered":"<p>I want to use the Virtual Machine Manager application in openSUSE to manage my virtual machines and networks. Before that, I needed to create some areas on the hard disk to store information used by the hypervisor as follows. From the command line in my home directory I typed:<\/p>\n<pre>mkdir ISO\r\nmkdir vmachines<\/pre>\n<p>This created two directories, one (ISO) for storing bootable images used to install virtual machines and the other (vmachines) to hold the virtual hard disks used by those machines. Now that&#8217;s done, I can launch the VMM application from &#8216;System&#8217; -&gt; &#8216;Virtual Machine Manager&#8217;<\/p>\n<figure id=\"attachment_489\" aria-describedby=\"caption-attachment-489\" style=\"width: 556px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/darkandscary.co.uk\/wp-content\/uploads\/2017\/05\/Virtual-Machine-Manager.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-489 size-full\" src=\"http:\/\/darkandscary.co.uk\/wp-content\/uploads\/2017\/05\/Virtual-Machine-Manager.png\" alt=\"\" width=\"556\" height=\"578\" srcset=\"https:\/\/darkandscary.co.uk\/wp-content\/uploads\/2017\/05\/Virtual-Machine-Manager.png 556w, https:\/\/darkandscary.co.uk\/wp-content\/uploads\/2017\/05\/Virtual-Machine-Manager-289x300.png 289w\" sizes=\"auto, (max-width: 556px) 100vw, 556px\" \/><\/a><figcaption id=\"caption-attachment-489\" class=\"wp-caption-text\">&#8216;Front Page&#8217; of Virtual Machine Manager<\/figcaption><\/figure>\n<p>Double clicking on &#8216;QEMU\/KVM&#8217; promped me to input my root password and connected me to the hypervisor. Then, right clicking on &#8216;QEMU\/KVM&#8217; allowed me to select &#8216;Details&#8217; which then gave\u00a0me the following information pane about my hypervisor.<\/p>\n<figure id=\"attachment_493\" aria-describedby=\"caption-attachment-493\" style=\"width: 756px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/darkandscary.co.uk\/wp-content\/uploads\/2017\/05\/Connection-Details-overview.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-493 size-full\" src=\"http:\/\/darkandscary.co.uk\/wp-content\/uploads\/2017\/05\/Connection-Details-overview.png\" alt=\"\" width=\"756\" height=\"528\" srcset=\"https:\/\/darkandscary.co.uk\/wp-content\/uploads\/2017\/05\/Connection-Details-overview.png 756w, https:\/\/darkandscary.co.uk\/wp-content\/uploads\/2017\/05\/Connection-Details-overview-300x210.png 300w\" sizes=\"auto, (max-width: 756px) 100vw, 756px\" \/><\/a><figcaption id=\"caption-attachment-493\" class=\"wp-caption-text\">Basic performance details about the hypervisor. Options for this pane can be changed by clicking on &#8216;File&#8217; near the top-left of the window<\/figcaption><\/figure>\n<p>I first needed to tell the hypervisor where I was\u00a0going to put bootable disk images for it to use. Clicking on the &#8216;Storage&#8217; tab produced this window:<\/p>\n<figure id=\"attachment_497\" aria-describedby=\"caption-attachment-497\" style=\"width: 756px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/darkandscary.co.uk\/wp-content\/uploads\/2017\/05\/add-ISO-pool.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-497 size-full\" src=\"http:\/\/darkandscary.co.uk\/wp-content\/uploads\/2017\/05\/add-ISO-pool.png\" alt=\"\" width=\"756\" height=\"528\" srcset=\"https:\/\/darkandscary.co.uk\/wp-content\/uploads\/2017\/05\/add-ISO-pool.png 756w, https:\/\/darkandscary.co.uk\/wp-content\/uploads\/2017\/05\/add-ISO-pool-300x210.png 300w\" sizes=\"auto, (max-width: 756px) 100vw, 756px\" \/><\/a><figcaption id=\"caption-attachment-497\" class=\"wp-caption-text\">Click on the blue cross at the very bottom left of this window to add a new storage pool<\/figcaption><\/figure>\n<p>Call the new storage pool &#8216;ISO&#8217;<\/p>\n<figure id=\"attachment_501\" aria-describedby=\"caption-attachment-501\" style=\"width: 343px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/darkandscary.co.uk\/wp-content\/uploads\/2017\/05\/name-of-ISO-pool.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-501 size-full\" src=\"http:\/\/darkandscary.co.uk\/wp-content\/uploads\/2017\/05\/name-of-ISO-pool.png\" alt=\"\" width=\"343\" height=\"378\" srcset=\"https:\/\/darkandscary.co.uk\/wp-content\/uploads\/2017\/05\/name-of-ISO-pool.png 343w, https:\/\/darkandscary.co.uk\/wp-content\/uploads\/2017\/05\/name-of-ISO-pool-272x300.png 272w\" sizes=\"auto, (max-width: 343px) 100vw, 343px\" \/><\/a><figcaption id=\"caption-attachment-501\" class=\"wp-caption-text\">Naming the new ISO sotrage pool<\/figcaption><\/figure>\n<p>Then point to the newly created ISO directory created earlier.<\/p>\n<figure id=\"attachment_503\" aria-describedby=\"caption-attachment-503\" style=\"width: 413px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/darkandscary.co.uk\/wp-content\/uploads\/2017\/05\/select-ISO-dir.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-503 size-full\" src=\"http:\/\/darkandscary.co.uk\/wp-content\/uploads\/2017\/05\/select-ISO-dir.png\" alt=\"\" width=\"413\" height=\"378\" srcset=\"https:\/\/darkandscary.co.uk\/wp-content\/uploads\/2017\/05\/select-ISO-dir.png 413w, https:\/\/darkandscary.co.uk\/wp-content\/uploads\/2017\/05\/select-ISO-dir-300x275.png 300w\" sizes=\"auto, (max-width: 413px) 100vw, 413px\" \/><\/a><figcaption id=\"caption-attachment-503\" class=\"wp-caption-text\">Browse to ISO directory created earlier<\/figcaption><\/figure>\n<p>Next, I created another new storage pool, but this time called it &#8216;VMachines&#8217; and linked it to the &#8216;vmachines&#8217; directory created earlier. Now my storage pools look like this:<\/p>\n<figure id=\"attachment_505\" aria-describedby=\"caption-attachment-505\" style=\"width: 756px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/darkandscary.co.uk\/wp-content\/uploads\/2017\/05\/storage-pools.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-505 size-full\" src=\"http:\/\/darkandscary.co.uk\/wp-content\/uploads\/2017\/05\/storage-pools.png\" alt=\"\" width=\"756\" height=\"528\" srcset=\"https:\/\/darkandscary.co.uk\/wp-content\/uploads\/2017\/05\/storage-pools.png 756w, https:\/\/darkandscary.co.uk\/wp-content\/uploads\/2017\/05\/storage-pools-300x210.png 300w\" sizes=\"auto, (max-width: 756px) 100vw, 756px\" \/><\/a><figcaption id=\"caption-attachment-505\" class=\"wp-caption-text\">I now have three storage pools. The &#8216;default &#8216; pool will be unused, but I will put bootable image files in ISO and store virtual hard disks in VMachines<\/figcaption><\/figure>\n<p>Finally, I will go and fetch a copy of RouterOS for experimenting with Mikrotik routers. The file needed is on the <a href=\"https:\/\/mikrotik.com\/download\">Mikrotik download page<\/a>. It is possible to fetch the file into the correct location on the hard disk via the command line as follows:<\/p>\n<pre>cd ~\/ISO\r\nwget https:\/\/download2.mikrotik.com\/routeros\/6.39.1\/mikrotik-6.39.1.iso<\/pre>\n<p>I could now add that ISO to the storage pool by clicking on the swirly arrow icon which made VMM re-read the contents of the &#8216;ISO&#8217; storage pool allowing it to find the newly downloaded router software image.<\/p>\n<figure id=\"attachment_507\" aria-describedby=\"caption-attachment-507\" style=\"width: 756px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/darkandscary.co.uk\/wp-content\/uploads\/2017\/05\/refresh-list-of-volumes.png\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-507 size-full\" src=\"http:\/\/darkandscary.co.uk\/wp-content\/uploads\/2017\/05\/refresh-list-of-volumes.png\" alt=\"\" width=\"756\" height=\"528\" srcset=\"https:\/\/darkandscary.co.uk\/wp-content\/uploads\/2017\/05\/refresh-list-of-volumes.png 756w, https:\/\/darkandscary.co.uk\/wp-content\/uploads\/2017\/05\/refresh-list-of-volumes-300x210.png 300w\" sizes=\"auto, (max-width: 756px) 100vw, 756px\" \/><\/a><figcaption id=\"caption-attachment-507\" class=\"wp-caption-text\">Clicking on the swirly arrow icon has added the mikrotik &#8216;volume&#8217; to the ISO storage pool. That makes it available to the hypervisor for installing a virtual router<\/figcaption><\/figure>\n<p>Next time I will install the Mikrotik router as well as create some virtual networks for it to route between.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I want to use the Virtual Machine Manager application in openSUSE to manage my virtual machines and networks. Before that, I needed to create some areas on the hard disk to store information used by the hypervisor as follows. From the command line in my home directory I typed: mkdir ISO mkdir vmachines This created &hellip; <a href=\"https:\/\/darkandscary.co.uk\/?p=487\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Setting up Virtual Machine Manager to work with the KVM hypervisor<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19,21],"tags":[],"class_list":["post-487","post","type-post","status-publish","format-standard","hentry","category-linux","category-virtualisation"],"_links":{"self":[{"href":"https:\/\/darkandscary.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/487","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/darkandscary.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/darkandscary.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/darkandscary.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/darkandscary.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=487"}],"version-history":[{"count":5,"href":"https:\/\/darkandscary.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/487\/revisions"}],"predecessor-version":[{"id":513,"href":"https:\/\/darkandscary.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/487\/revisions\/513"}],"wp:attachment":[{"href":"https:\/\/darkandscary.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=487"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/darkandscary.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=487"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/darkandscary.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=487"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}