{"id":2460,"date":"2018-05-02T07:30:24","date_gmt":"2018-05-02T05:30:24","guid":{"rendered":"http:\/\/possiblelossofprecision.net\/?p=2460"},"modified":"2021-05-15T11:46:36","modified_gmt":"2021-05-15T09:46:36","slug":"mounting-a-vhd-disk-image-file","status":"publish","type":"post","link":"https:\/\/possiblelossofprecision.net\/?p=2460","title":{"rendered":"Mounting a VHD disk image file"},"content":{"rendered":"<p>On Linux <em>qemu-nbd<\/em> can be used to access disk images in different formats as if they were block devices.<\/p>\n<p>For example, to mount a VHD file run<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nqemu-nbd --connect=\/dev\/nbd0 --format=vpc &lt;vhd_file&gt;\r\nmount \/dev\/nbd0p1 \/mnt\/\r\n<\/pre>\n<p>To unmount and disconnect the nbd device run<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\numount \/mnt\r\nqemu-nbd --disconnect \/dev\/nbd0\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>On Linux qemu-nbd can be used to access disk images in different formats as if they were block devices. For example, to mount a VHD file run qemu-nbd &#8211;connect=\/dev\/nbd0 &#8211;format=vpc &lt;vhd_file&gt; mount \/dev\/nbd0p1 \/mnt\/ To unmount and disconnect the nbd device run umount \/mnt qemu-nbd &#8211;disconnect \/dev\/nbd0<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[82,13,7],"class_list":["post-2460","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-azure","tag-centos","tag-fedora"],"_links":{"self":[{"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/posts\/2460","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2460"}],"version-history":[{"count":5,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/posts\/2460\/revisions"}],"predecessor-version":[{"id":2490,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=\/wp\/v2\/posts\/2460\/revisions\/2490"}],"wp:attachment":[{"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2460"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2460"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/possiblelossofprecision.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2460"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}