Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Linux Links | Bling | About BLU

BLU Discuss list archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss] Using raw host hard disk in virtual client



What I do under Linux host/OS to access partitions or logical volumes using
VirtualBox guests is to prepare the resource with the following command:

 VBoxManage internalcommands createrawvmdk -filename $vmdk_file -rawdisk $device

where:
 vmdk_file looks like ~/.VirtualBox/HardDisks/foo.vmdk
 device looks like /dev/volgroup/logicalvol

The device could equally well look like a disk partition /dev/sda6.

Performance is equal to or possibly better than the bare-metal, setting it up
this way.  (How could it be "better"?  The big host OS cache, which should be
turned off if you're concerned about data integrity during a power outage.)

If VBoxManage command line comes with the PC version, it'd work the same way.

-rich






BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org