Attaching MBR or GPT disk partitions to a VirtualBox VM

On one of my development machines I triple-boot so that I can test in a variety of operating environments. My default is OS X and the other day I wanted to write documentation using DocBook. I knew that my Linux installation already had publican installed and ready to go (publican is a wonderful documentation tool written by Red Hat to facilitate the publishing of DocBook-based documentation) and I really did not want to setup a new Fedora VM that duplicated a setup I already had.

In reality, a new VM would not be all that much effort, but I though it would be really handy to know how to boot a VM up from a physical partition and this way I could kill two birds with one stone. After some research, it seemed using VMWare's VMDK (Virtual Machine Disk Format) images was the most appropriate, as the metadata could be tricked into pointing to physical partitions instead of files. Unfortunately, the tools VirtualBox provide to create them are not compatible with GPT disk tables out of the box. This blog post does mention a trick to convert the VMDK metadata to match the GPT disk layout, but it failed consistently when I tried.

I then, by fluke, found Dave Vasilevsky's vmdk-raw-parts script on GitHub which worked flawlessly! Its usage is well documented so I will not bore you with the details, but with that said after using it to create my custom VMDK, the only change required was to run chmod 666 /dev/diskXsY to grant my user write permissions to the disk (prevents you from having to start VirtualBox as root).

Some Extra Troubleshooting

These details are completely irrelevant to the above, but I wanted to mention them here for others wanting to run the same setup:

  • If you need USB pass-through, remember to set your VCPUs to 1; set it to anything higher and USB stops functioning.
  • You'll need to redo the 'chmod' when ever you reboot your machine, as the permissions on the dev node get reset upon boot.
  • During the trial-and-error process of getting this to work, I often needed to recreate my VMDK and reload it. VirtualBox will moan about mismatched UUIDs... The simple fix is to open File > Virtual Media Manager... to delete then re-add your VMDK file.
Rating: 

Comments

I triple-boot so that I can test in a variety of operating about disk partitions or virtual box. I knew that my Linux installation already had publican installed and ready to go (publican (link is external). From best dissertation writers is a wonderful documentation tool provide written by Red Hat to facilitate the publishing of DocBook-based documentation) and I really did not want to setup a new Fedora VM that duplicated a setup I already had.

I actually enjoyed your post. The way you delivered your view/opinion, was very insightful. Your contribution to this community will be very fruitful to us. traditional pakistani dress

This looks like a great idea. You could always get high quality essays, assignments, coursework, term paper,from cheap essay writing services http://essayservices.org , and it will be surely worth it. So come with trust and go with an easy mind. We promise you a career with a brighter future.

Very informative article about VirtualBox VM, you have written about it in detail which i like reading. I have got useful information which i did not know before. Keep writing more articles they are really a great source of information.
leading manufacturer of rubber sheets

This topic has always been one of my favorite subjects to read about. I have found your post to be very rousing and full of good information. I will check your other articles shortly.
pakistani shoes for women

Of course, one of the capital Replica handbags things is to acquisition a acclaimed agent who sells them at discounts. There are no tricks at all. A acclaimed agent will never attenuate his acceptability or a quick blade as they apperceive that blessed barter will retain.Think about organising your backpack according to colour and size. You could accept all your atramentous accoutrements in one area and align them according to size. You could accept them in an ascendance adjustment with the abate accoutrements to uk replica handbags the larboard and the bigger ones to the right.It reflects personality, diversity, appearance and uniqueness. Altered humans accept their own appearance account that is why there are altered trends in the bazaar nowadays that will accompaniment the blazon of personality you have.The after-effects for accepting disorganised can sometimes be financially disastrous, emotionally cutting replica handbags uk and physically exhausting. As you body your backpack collection, it pays to accept a arrangement in abode to ensure that you can calmly analyze and retrieve the backpack you admiration for a specific event

There is actually a growing direction gap around software institutions. This direction gap is definitely preventing program companies out of successfully producing the direction potential you have to remain competitive inside of a rapidly switching business weather conditions.

PatrickMartell Meat martell, rochester institute of know-how, emeritus teacher frank Romano, futurists FrankRomano RichardWatson Rich Watson, CliveHumby, RorySutherland OgilvyMatherUK OgilvyOneLondon govt creative director and vice Lead designer.
top-10-writers.com

Magnificent site you have here, so much cool data!.. Source www.embossitworld.com

I have listened lot of things about VR box and have heard that most of businesses are using it in conference room. Recently I have seen a PhD dissertation writing services provider company that arranged VR box for its employees.