{"id":212,"date":"2008-11-06T22:54:44","date_gmt":"2008-11-06T20:54:44","guid":{"rendered":"http:\/\/glandium.org\/blog\/?p=212"},"modified":"2010-01-27T08:52:26","modified_gmt":"2010-01-27T07:52:26","slug":"another-tool-to-mount-virtual-disk-images","status":"publish","type":"post","link":"https:\/\/glandium.org\/blog\/?p=212","title":{"rendered":"Another tool to mount virtual disk images"},"content":{"rendered":"<p><a href=\"http:\/\/www.xatom.net\/archive\/61\/vboxmount-is-public\/\">Vboxmount is public<\/a>, says Christian Kellner.<\/p>\n<p>It is a tool using VirtualBox APIs to bring virtual disks (not sure if it is limited to VirtualBox format or works for any format VirtualBox knows) as block devices under linux, using the <a href=\"http:\/\/nbd.sourceforge.net\/\">network block device driver<\/a> (nbd).<\/p>\n<p>I have to say there are 2 things I don't like about nbd.<\/p>\n<p>First, it adds useless overhead, since it has to go through the network stack, even when the whole thing is local.<\/p>\n<p>Second, I have had bad experience with nbd stability, though I must say I only tested on old stuff. A while ago, VMware ESX 2.5 had a tool, named vmware-mount, that would basically do what Vboxmount does, for ESX vmdk files, on the ESX service console (a 2.4.something kernel). The fact is, the whole thing would bring the whole server down (kernel panic or deadlock, I can't remember) more often than not. Which is why the tool has not been provided since ESX 3.0. This tool was using nbd.<\/p>\n<p>There are IMHO better ways to implement something like this, though the nicest doesn't exist yet.<\/p>\n<ul>\n<li><a href=\"http:\/\/wiki.xensource.com\/xenwiki\/DmUserspace\">dm-userspace<\/a> allows for something similar, but requires the image file to be backed by a loopback device, and the data on the image needn't be compressed.<\/li>\n<li><a href=\"http:\/\/fuse.sourceforge.net\/\">Fuse<\/a> would allow to present a flattened image as a file, that you could turn into a block device with the loopback device driver. I happen to have written something like that, except its legal status is unsure.<\/li>\n<li>As for the nicest solution I can see, that doesn't exist yet, as said above, it would be some kind of \"Buse\" (Block device in USEr space), or process-backed loopback device, call it like you want, that would allow a process to answer to random reads in a (virtual) block device, in a similar way a Fuse file system process would answer to random reads in a (virtual) file. This has been discussed several times on several mailing lists, but has not yet been implemented, as far as I know.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Vboxmount is public, says Christian Kellner. It is a tool using VirtualBox APIs to bring virtual disks (not sure if it is limited to VirtualBox format or works for any format VirtualBox knows) as block devices under linux, using the network block device driver (nbd). I have to say there are 2 things I don&#8217;t [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[23],"class_list":["post-212","post","type-post","status-publish","format-standard","hentry","category-pdo","tag-en"],"_links":{"self":[{"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/212","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=212"}],"version-history":[{"count":2,"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/212\/revisions"}],"predecessor-version":[{"id":666,"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/212\/revisions\/666"}],"wp:attachment":[{"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=212"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=212"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/glandium.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=212"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}