#install tools qemu-kvm (debian based distros)
$ sudo apt-get install qemu-kvm
#load module
$ sudo modprobe nbd
#create loopback dev for the image
$ sudo qemu-nbd -c /dev/nbd0 <path to virtual disk>.vdi
#mount the partitions, that are exposed as /dev/nbd0pXXX
$ sudo mount -o noatime,noexec /dev/nbd0p1 /tmp/vdi/
#in the end unmount && shutdown the ndb
$ sudo umount /tmp/vdi/
$ sudo qemu-nbd -d /dev/nbd0
Script to mount VDI format VirtualBox virtual disk. It uses qemu-kvm tool and was tested with ubuntu distros.
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.