{"id":1263,"date":"2024-07-21T13:14:47","date_gmt":"2024-07-21T11:14:47","guid":{"rendered":"http:\/\/dety.net.ua\/?p=1263"},"modified":"2024-07-21T13:14:47","modified_gmt":"2024-07-21T11:14:47","slug":"proxmox-mount-a-qcow2-disk-image","status":"publish","type":"post","link":"https:\/\/dety.net.ua\/?p=1263","title":{"rendered":"Proxmox + mount\u00a0a qcow2\u00a0disk image"},"content":{"rendered":"\n<p><strong>Step 1 &#8211; Enable NBD on the Host<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>modprobe nbd max_part=8\n<\/code><\/pre>\n\n\n\n<p><strong>Step 2 &#8211; Connect the QCOW2 as network block device<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>qemu-nbd --connect=\/dev\/nbd0 \/var\/lib\/vz\/images\/100\/vm-100-disk-1.qcow2\n<\/code><\/pre>\n\n\n\n<p><strong>Step 3 &#8211; Find The Virtual Machine Partitions<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>fdisk \/dev\/nbd0 -l\n<\/code><\/pre>\n\n\n\n<p><strong>Step 4 &#8211; Mount the partition from the VM<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mount \/dev\/nbd0p1 \/mnt\/somepoint\/\n<\/code><\/pre>\n\n\n\n<p><strong>Step 5 &#8211; After you done, unmount and disconnect<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>umount \/mnt\/somepoint\/\nqemu-nbd --disconnect \/dev\/nbd0\nrmmod nbd\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Step 1 &#8211; Enable NBD on the Host Step 2 &#8211; Connect the QCOW2 as network block device Step 3 &#8211; Find The Virtual Machine Partitions Step 4 &#8211; Mount the partition from the VM Step 5 &#8211; After you done, unmount and disconnect<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-1263","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/posts\/1263","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dety.net.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1263"}],"version-history":[{"count":1,"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/posts\/1263\/revisions"}],"predecessor-version":[{"id":1264,"href":"https:\/\/dety.net.ua\/index.php?rest_route=\/wp\/v2\/posts\/1263\/revisions\/1264"}],"wp:attachment":[{"href":"https:\/\/dety.net.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1263"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dety.net.ua\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1263"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dety.net.ua\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1263"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}