Boot block devices as virtual devices in Virtual Box

VBoxManage internalcommands createrawvmdk -filename [path/to/file/name.vmdk] -rawdisk /dev/[block_device]
eg: VBoxManage internalcommands createrawvmdk -filename ~/.VBox_sdc.vmdk -rawdisk /dev/sdc In order to start virtual box using block devices, ( Or to boot from it) run as ROOT sudo VirtualBox Then add & select the vmdk file as a device. At last Start the virtual box. - This cmd needs to run once for a device. - See command 8936 to run with out using ROOT power and easy handling of Virtual m/c

0
By: totti
2011-08-19 14:26:22

What Others Think

For the name I use rdisk-disk2.vmdk, because this virtual machine is only a reference to this device. Upon rebooting, the scenario could change, e.g. if you unplug things and move stuff around, a computer could be allocated a different number. proofreading and editing Services
patrickmoran · 84 weeks and 4 days ago
Nice post and thanks for sharing this to us. Spinning is an effective and fun way to exercise. Here we bring some of the best spin bikes under 500$ for the people to use. https://bestspinbikes.me
robbpray · 81 weeks and 5 days ago
Nice post and thanks for sharing this to us. Spinning is an effective and fun way to exercise. Here we bring some of the best spin bikes under 500$ for the people to use.
robbpray · 81 weeks and 5 days ago
You're all that I believe in With all my heart I mean every word So as long as I live I love you run 3
lavernwalter · 65 weeks and 2 days ago
jacksmith · 65 weeks and 2 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: