Raw Disk Access

Discussions related to using VirtualBox on Windows hosts.
Post Reply
Romep
Posts: 4
Joined: 23. Jul 2009, 22:26
Primary OS: MS Windows 7
VBox Version: OSE Debian
Guest OSses: Debian

Raw Disk Access

Post by Romep »

Hello,

ich just installed Windows 7 RC + Virtualbox 3.0.2 on my HTPC. I also want to build a software raid in linux and encrypt it. I found several threads which said, that this wont work with a linux virtual machine under windows, but the last post was in 2007. I always get an error when executing the following command in command promt with administrator priviledges.

"VBoxManage.exe internalcommands listpartitions -rawdisk \\.\PhysicalDrive1"
"Error opening the raw disk: VERR_SHARING_VIOLATION".

Is there a way to use a linux software raid this way under windows?
baf
Volunteer
Posts: 829
Joined: 27. Sep 2008, 06:18
Primary OS: Mac OS X Leopard
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: linux,xp,win7
Location: Luleå or Skellefteå, Sweden

Re: Raw Disk Access

Post by baf »

Why do you want raid?
In this case you would probably not gain so much security anyway.
If it is for learning then create a couple of virtual disk and use them.
Some say: "You learn as long as you live".
My way: "You live as long as you learn".
Romep
Posts: 4
Joined: 23. Jul 2009, 22:26
Primary OS: MS Windows 7
VBox Version: OSE Debian
Guest OSses: Debian

Re: Raw Disk Access

Post by Romep »

Safety, if one HDD will crash. And more space than on one single drive.
baf
Volunteer
Posts: 829
Joined: 27. Sep 2008, 06:18
Primary OS: Mac OS X Leopard
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: linux,xp,win7
Location: Luleå or Skellefteå, Sweden

Re: Raw Disk Access

Post by baf »

Oh I see now "Windows 7" there is a big problem with raw disk access and windows vista/7. Microsoft has removed it unless you buy a special license and compile it into the program so its broken (some other threads here says).
Some other ways you might look at.
put the vdi:s on a windows raid.
use several vdi:s on different drives and use software raid in them.
Some say: "You learn as long as you live".
My way: "You live as long as you learn".
Romep
Posts: 4
Joined: 23. Jul 2009, 22:26
Primary OS: MS Windows 7
VBox Version: OSE Debian
Guest OSses: Debian

Re: Raw Disk Access

Post by Romep »

So in Windows XP it will work? I think i'm going to switch back.
baf
Volunteer
Posts: 829
Joined: 27. Sep 2008, 06:18
Primary OS: Mac OS X Leopard
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: linux,xp,win7
Location: Luleå or Skellefteå, Sweden

Re: Raw Disk Access

Post by baf »

As far as I know it should. I have never tested myself. Running on OSX.
Some say: "You learn as long as you live".
My way: "You live as long as you learn".
Romep
Posts: 4
Joined: 23. Jul 2009, 22:26
Primary OS: MS Windows 7
VBox Version: OSE Debian
Guest OSses: Debian

Re: Raw Disk Access

Post by Romep »

It works. But do you know any other method how i can do this? I want to use the HTPC for watching BlueRay. So i definitely need Windows for the media center software (i choose mediaportal). And i want to build a cryptsetup+luks encrypted software raid on the same machine and serve files to my network. I thought it would be the best way, because if i want to seperate the two things (or any other reason) in the future i could definitly reuse the raid. If i got like 4*750GB harddisks (=2,25TB in raid) i can't put the files anywhere else and build a new raid (if you know what i mean). So it has to be a solution "for ever".
baf
Volunteer
Posts: 829
Joined: 27. Sep 2008, 06:18
Primary OS: Mac OS X Leopard
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: linux,xp,win7
Location: Luleå or Skellefteå, Sweden

Re: Raw Disk Access

Post by baf »

In this case I must say that you should put the raid and crypt on the host itself. I saw that there should be windows clients too for luks.
This is because running over a VM does increase the crash risk in the case of power failures and such. This is because you get an extra layer of "latency" so you wont have a guarantee that data is synced when it should. So either look at windows solutions or get another machine to act as file server. And remember this machine can be pretty old and still be a good fileserver when you use linux on it.
Some say: "You learn as long as you live".
My way: "You live as long as you learn".
Post Reply