Add raw hard drive to VM system

Discussions about using Windows guests in VirtualBox.
Post Reply
drewbp
Posts: 1
Joined: 13. Jul 2009, 20:56
Primary OS: MS Windows XP
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP-MCE

Add raw hard drive to VM system

Post by drewbp »

Okay i admit I am a total newb. I have searched the forums, although maybe not for long enough, and I have read the manual section 9.10 about adding a raw hard drive.

I dont get where to do this though. \\.\PhysicalDrive0. Do I do it in a command line on the host or guest. How do I point it to the actual hard drive. In this case it is the D:\ drive on my host machine is a 320GB hard drive I would like access to.

Thanks in advance. I am more than happy if someone knows off hand another post that answers my question.
TerryE
Volunteer
Posts: 3572
Joined: 28. May 2008, 08:40
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu 10.04 & 11.10, both Svr&Wstn, Debian, CentOS
Contact:

Re: Add raw hard drive to VM system

Post by TerryE »

drewbp wrote:I dont get where to do this though. \\.\PhysicalDrive0.
You do it on the host. This creates a VMDK which you add to your guest VM. The guest can't see the hosts disks (except that is any partition windows that you've allowed through the createrawvmdk command)

Use the listpartitions command to see what you've got. If you've got a single HDD the this will be \\.\PhysicalDrive0. Any second HDD will be \\.\PhysicalDrive1. This is a Windows naming convention. The D:\ "drive" is typically the second partition on the HDD.
Read the Forum Posting Guide
Google your Q site:VirtualBox.org or search for the answer before posting.
Post Reply