Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


Photo

VMWare using Physical Disk

- - - - -

  • Please log in to reply
6 replies to this topic

#1
IcemanND

IcemanND

    MSFN Junkie

  • Super Moderator
  • 3,266 posts
  • OS:Windows 7 x64
  • Country: Country Flag
So I have a custom build that I have to create for a specific project.

Details:
Host OS: Vista 64-bit Enterprise, only able to launch 2 VM's in VMPlayer. Hard drive partitioned, 40gb, 260gb.
VM 1 - XP Pro locked down so IE 7 is the only application that launches and the VM shuts down when it is closed (or crashes). 10gb virtual disk on c: partition.
VM 2- (for now) XP Pro, will be a full production and fully accessible OS (may do Vista at some point). runs on physical disk in 260gb partition.

Yes, I know there are other ways to do this but they want free. Not counting my time.


So Host OS and VM 1 are set up and everything is working as it should. Now we run into the snag. Trying to install XP to the physical disk from VMWare 6.5 you get and error that "operation on file "\\.\physicaldrive0" failed", So reading the documentation to make sure I've met all the requirements I find I forgot to remove the drive letter from that partition. Fine, done. Same error on the next attempt.
So I try full disk instead of a partition, thinking maybe it will let me select the second partition that way, no go, same error.
I beat Google up, down, left and right, and all I find are people having the same issue and a bunch of people doing it with Ubuntu as the host os. VMWare is just as helpful.

So I figured it out and for the next poor fool who tries this here is what you do. It is so simple it is not even funny. Ready for this?
Create the partition as a second primary partition (which I had done previously).
Now don't format it. (Simple right, heaven forbid they mention this in the VMWare docs)

Create your VM using the custom option, select "Use physical disk" on the "Select a Disk" config page, select your desired disk PhysicalDrive0 in my case, select "Use individual partitions", then select the desired partition, showed as FAT16 in VMware but it is actually RAW.

Now proceed on through as you normally would when creating a Virtual Machine.

Hope some one else finds this useful so my half a day wasted wasn't totally fruitless.


How to remove advertisement from MSFN

#2
Noise

Noise

    Windows Guru

  • Member
  • PipPipPip
  • 425 posts
Good info. I'll be setting up a VMWare environment in a week or so and I'll keep this in mind. It's a shame Vsphere licensing is so ridiculous. Running a basic VSphere (with vmotion) environment on two servers (each with 2 cpus, and shared storage) costs upwards of $15K! The job I have coming up, they declined to pay that kind of money for VSphere. So now I'll be stuck using Hyper-V or ESX. It makes me mad, but I can understand where the client is coming from.

On another note, I've been doing development work on Vmware, basically testing PXE/WinPE3.0 deployment. I can't find a Win7 driver (to integrate in to PE) for VMWare's virtual PCNet NIC driver. Windows Update doesn't have one, and there's absolutely nothing on the net.

#3
IcemanND

IcemanND

    MSFN Junkie

  • Super Moderator
  • 3,266 posts
  • OS:Windows 7 x64
  • Country: Country Flag
Check out VMWare they just released version 7 yesterday, I haven't been able to get it yet as work hasn't gotten our license numbers yet but it is supposed to be Win7 compatible so I would have to assume the new tools would have a working driver.

#4
McStarfighter

McStarfighter

    Newbie

  • Member
  • 47 posts
This is a problem based on Windows NT 6, because they have bigger restrictions about raw disk access. The only solution would be a driver like www.eldos.com but this has to be implemented by the distributor of the application (the driver isn't for the end-user) ...

#5
joakim

joakim

    Member

  • Member
  • PipPip
  • 154 posts
  • OS:none specified
  • Country: Country Flag
For those still wondering about physical disks and nt6: http://communities.v.../docs/DOC-10455

You can still use formatted physical disks as on nt5, but you will need a hack that in worst case may destroy your partition table unless you do it correct.

Cannot say about latest version 7.1 though..

Joakim

#6
allen2

allen2

    Not really Newbie

  • Member
  • PipPipPipPipPipPipPip
  • 1,812 posts
I tried the same kind of thing and had the same problem because when you install XP it try to write the MBR of the drives so if the virtual drive is a raw partition, it won't work.
The only way to do it and keep best performances (from using raw device) is to create a static vmdk for the system and a raw device for the rest.

#7
joakim

joakim

    Member

  • Member
  • PipPip
  • 154 posts
  • OS:none specified
  • Country: Country Flag
If you trick the OS into believing the disk is unpartitioned, then nt6.x have nothing to lock and thus vmware will have complete control of the disk including the mbr. Did you read the thread?

Joakim




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN