For various reasons I had the need to open a raw disk inside VMware Server 2. The reports from the field say that this just isn't supported. Although I don't need to actually run a raw disk, I needed to get some data off it -- 400GB worth. It turns out 'not supported' really means 'not in the UI.' I don't know the reason why it isn't in the UI, maybe marketing wants people to use ESX, or maybe the UI guys fell behind with their workload.
Alas, it is possible. And here's how.
1) Take out your 'raw disk' and put it into another machine.# Test VM.vmx scsi1.present = "TRUE" scsi1:0.present = "TRUE" scsi1:0.fileName = "500GB.vmdk" scsi1:0.deviceType = "rawDisk"
And of course, the entire 500GB.vmdk file
# 500GB.vmdk # Disk DescriptorFile version=1 CID=7e245252 parentCID=ffffffff createType="fullDevice" # Extent description RW 976773168 FLAT "/dev/sdb" 0 # The Disk Data Base #DDB ddb.virtualHWVersion = "6" ddb.geometry.cylinders = "60801" ddb.geometry.heads = "255" ddb.geometry.sectors = "63" ddb.geometry.biosCylinders = "60801" ddb.geometry.biosHeads = "255" ddb.geometry.biosSectors = "63" ddb.adapterType = "buslogic"
Note: If your guest OS is 64-bit, you won't be able to use buslogic. Switch the last entry above to 'lsilogic'.
While you could likely create the vmdk file by hand, the only number I'm not certain about is the part after the RW. The Disk Data Base you can just see by typing in 'fdisk /dev/sdb'
4) Move the disk back to the 'server' and turn the server back on.[root@files dev]# ls sd* sda sda1 sda2 sda3 sdb sdb1 [root@files dev]# ls /mnt cdrom floppy [root@files dev]# mkdir /mnt/disk [root@files dev]# mount /dev/sdb1 /mnt/disk [root@files dev]# ls /mnt/disk Files lost+found Movies Music Personal VMWare [root@files dev]#
There quick words to the point, I like it.
This entry is from my tutorial section and was written on Aug. 11, 2008. It's been tagged with Tips, Tricks and Hacks and My Big Fat Server and VMware. There have been 2 comments so far.
> I don't know the reason why it isn't in the UI, maybe marketing
> wants people to use ESX, or maybe the UI guys fell behind with
> their workload.
It's the latter.