Monday, August 30, 2010

Note about permissions in VirtualBox physical hard disk usage in Linux host

From VirtualBox manual: "Starting with version 1.4, as an alternative to using virtual disk images, VirtualBox can also present either entire physical hard disks or selected partitions thereof as virtual disks to virtual machines...
...this type of access is called "raw hard disk access"; it allows a guest OS to access its virtual hard disk without going through the host OS file system."
Do read the manual (part 9.7.1 at now) and do it at your own risk! Here we will talk only about permission problem you can get in Linux host. That, you will need read/write access for the entire disk (or selected partitions). For example:

$ VBoxManage internalcommands createrawvmdk -filename $HOME/.VirtualBox/HardDisks/sda2.vmdk -rawdisk /dev/sda -partitions 2

set up an image for access /dev/sda2 in Linux host. User needs read/write access to this partition. Otherwise, we will get some messages like this while adding sda2.vmdk to a virtual machine:

NS_ERROR_FAILURE (0x80004005)
Component: 
HardDisk
Interface: 
IHardDisk {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}
Callee: 
IVirtualBox {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}

Check the physical disks properties:

$ ls -l /dev/sda*

brw-rw---- 1 root disk 8, 0 2010-08-30 21:53 /dev/sda
brw-rw---- 1 root disk 8, 1 2010-08-30 12:22 /dev/sda1
brw-rw---- 1 root disk 8, 2 2010-08-30 21:31 /dev/sda2
brw-rw---- 1 root disk 8, 5 2010-08-30 12:22 /dev/sda5

We can see one solution to grant permissions is adding username to the disk group, for example, by editing /etc/group file. And don't forget to re-login.

27 comments:

Commercial Electricians said...

Good post mate..Thanks for sharing mate

Commercial Electricians

HDD said...

Today, I managed to boot from physical drives. This required;

60 min straight forward reading
30 min writing this

20 min trying different options in VirtualBox

Pankaj said...

Awesome post! After Look at this I can’t stop myself to go for shopping just loving it. Airtel Free Internet Tricks Also check freecharge coupon code

Unknown said...

VirtualBox Vs VMware which is the best tool ?

Anderson said...

Romantic Songs
Sultan Ali Khan

ritu verma said...

who say seo is simplied thing
veteransdayimagesquotes

Unknown said...

Idea Check Number

Whatsapp Group Names

Trickideas

Satta King 2017 results
Bigg Boss 11 online
Voting Process of Bigg Boss 11
Coinbase Promo code

Bijay said...

how to download Videos From voot

Unknown said...

This is a great blog. keep sharing such nice post for us. Here are my sites for voot bigg boss 11 and Bigg Boss 11.

Unknown said...

This is a assortment of some wonderful Halloween coloring web pages selected predicated on their innovativeness and reliability. Select these as each is absolute to make an outstanding holiday art for your children. The fun and educative color sheets are well suited for small children, pre-schoolers, kindergarteners as well as teenagers.
Halloween Costume Ideas
Happy Halloween Wishes
Halloween pictures 2017
Halloween Costumes for women

Unknown said...

Veterans Day is not to be mistaken for Memorial Day. Veterans Day commends the administration of all U.S. military veterans, while Memorial Day is a day of recalling the men and ladies who kicked the bucket while serving.
Happy veterans day quotes
Happy Veterans Day Images
Veterans Day History
Happy Veterans Day Quotes
Happy Thanksgiving 2017 Wishes

Suresh Joshi said...


Also Read
Happy New Year 2018 Wishes
Happy New Year 2018 Quotes
Happy New Year 2018 SMS
Merry Christmas 2017 Images
Merry Christmas 2017 Greetings
Merry Christmas 2017 Wallpapers
Veterans Day
Veterans Day Quotes
When Is Veterans Day

Unknown said...

May i consider your ideas you are offered to your post. They are really convincing and will certainly work.Thanks for the post Latest showbox apk

sumitjain said...

My first time I visit here. I found so many entertaining stuff on your blog, especially its discussion. thanks for sharing such a wonderful post. Minecraft apk download

nishant said...

We are driving passionate bloggers who have been tracking escalating trends in simple mehndi design for legs in modern as well as traditional styles.

Mahesh chaube said...

really appreciate admin. content in this post is very useful: Bigg boss reality show
from:
Bigg Boss 12 live
proxy unblocked

Andriod Apps Download said...

World War Rising Download
World War Rising Download
World War Rising Download
World War Rising Download
World War Rising Download
World War Rising Download
World War Rising Download
World War Rising Download
World War Rising Download
World War Rising Download


Andriod Apps Download said...

Download Mad Rocket Fog Of War
Mad Rocket Fog Of War
Download Mad Rocket Fog Of War
Mad Rocket Fog Of War
Download Mad Rocket Fog Of War
Mad Rocket Fog Of War
Download Mad Rocket Fog Of War
Mad Rocket Fog Of War
Download Mad Rocket Fog Of War
Mad Rocket Fog Of War
Download Mad Rocket Fog Of War
Mad Rocket Fog Of War
Download Mad Rocket Fog Of War
Mad Rocket Fog Of War
Download Mad Rocket Fog Of War
Mad Rocket Fog Of War
Download Mad Rocket Fog Of War
Mad Rocket Fog Of War
Download Mad Rocket Fog Of War
Mad Rocket Fog Of War
Download Mad Rocket Fog Of War
Mad Rocket Fog Of War
Download Mad Rocket Fog Of War
Mad Rocket Fog Of War


Andriod Apps Download said...

Download Mad Rocket Fog Of War
Mad Rocket Fog Of War
Download Mad Rocket Fog Of War
Mad Rocket Fog Of War
Download Mad Rocket Fog Of War
Mad Rocket Fog Of War
Download Mad Rocket Fog Of War
Mad Rocket Fog Of War
Download Mad Rocket Fog Of War
Mad Rocket Fog Of War
Download Mad Rocket Fog Of War
Mad Rocket Fog Of War
Download Mad Rocket Fog Of War
Mad Rocket Fog Of War
Download Mad Rocket Fog Of War
Mad Rocket Fog Of War
Download Mad Rocket Fog Of War
Mad Rocket Fog Of War
Download Mad Rocket Fog Of War
Mad Rocket Fog Of War
Download Mad Rocket Fog Of War
Mad Rocket Fog Of War
Download Mad Rocket Fog Of War
Mad Rocket Fog Of War


Anonymous said...

Bigg Boss Voting Polls
Bigg Boss 12 Eviction
Bigg Boss 12 Cut Shots

Cara Mengobati Kesrek said...


I can only say thank you, for sharing information about health. Don't forget to visit our page. Thank you |
Cara Mengatasi Penyakit Dompo khasiar hito | Cara mengobati Kesrek febri hariadi | Khasiat Propolis Brazil sule sutisna | Obat Penumbuh Daging | paling ampuh | 7 Minuman kesehatan Alami | Andre Taulani | Thank You Somuach MUachh

Romsemulator apk said...

My first time I visit here. I found so many entertaining stuff on your blog, especially its discussion. Visit our blog also Casas Bahia 1.5.4 Apk
thanks for sharing such a wonderful post

Romsemulator apk said...

Hello, I am very happy to read your blog post. then I get good information about it. I like it. visit our blog also Duel Monsters 5 Expert 1 (Eurasia) . Thanks again for sharing this

Dave Benjamin said...

Do Follow New Blog Post on the New Current Running Shows
American Idol 2019 Winner Predictions
American Idol 2019 who will win Predictions
Who Won American Idol 2019
American Idol 2019 Winner Predictions
American Idol 2019 who will win Predictions
Who Won American Idol 2019
The Voice 2019 Winner Spoiler
American Idol 2019 Winner Spoiler
World of Dance 2019 Spoiler
The Voice 2019 Winner Predictions
who won The Voice 2019
The Voice 2019 Winner Name
The Voice 2019 Winner Predictions
who won The Voice 2019
The Voice 2019 Winner Name

Sahib Khan said...




bestlaptops12
bestphones90
bestmobiles44
bestlaptop22
bestlaptopsunder40000
bestphonesunder15000
bestlaptopsunder25000
bestlaptopsunder20000
bestphonesunder5000
bestphonesunder10000

Riko JR said...


Thank you for sharing a good and interesting article ...
I hope the new posts will increase and can be a very good reference.
Hopefully more success thank you very much..

cara mengatasi kepala kliyengan
Cara Pemesanan Jelly Gamat QnC
obat mata bintitan yang ampuh


Sahib Khan said...

black friday tv sales 2020
bose wireless headphone black friday deals
central bbq memphis black friday
xbox store black friday
walmart automotive black friday deals

black friday tv sales 2020
bose wireless headphone black friday deals
central bbq memphis black friday
xbox store black friday
walmart automotive black friday deals