LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 10-14-2008, 11:40 AM   #1
PB0711
Member
 
Registered: Aug 2004
Location: London, UK
Distribution: Ubuntu 10.10, ubuntu 11.04, suse 9.2, OSX
Posts: 259

Rep: Reputation: 30
VMware with Dual Booting XP & Ubuntu


Hello all,

I'm trying to Virtualize a dual booting computer and leave the dual booting option as well for a friend of mine.
I thought I did everything right but I get "Cannot find Windows_XP.vmdk" when I load up the vmx file in Vmware player.
The computer has two hard drives details below. Any help would be great!!
Thanks,

Paul

Code:
sudo sfdisk -d /dev/sda
[sudo] password for userA: 
# partition table of /dev/sda
unit: sectors

/dev/sda1 : start=       63, size=174867462, Id= 7, bootable
/dev/sda2 : start=174867525, size= 20482875, Id= f
/dev/sda3 : start=        0, size=        0, Id= 0
/dev/sda4 : start=        0, size=        0, Id= 0
/dev/sda5 : start=174867588, size= 20482812, Id= c

fdisk /dev/sda
Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1       10885    87433731    7  HPFS/NTFS
/dev/sda2           10886       12160    10241437+   f  W95 Ext'd (LBA)
/dev/sda5

fdisk /dev/sdb
   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1        7295    58597056   83  Linux
/dev/sdb2            7296        7784     3927892+  82  Linux swap / Solaris
/dev/sdb3            7785       12161    35158252+  83  Linux


-
#vmx files

# First IDE disk, size 100Gb
ide0:0.present = "TRUE"
ide0:0.fileName = "Windows_XP.vmdk"
ide0:0.mode = "persistent"
ide0:0.deviceType = "rawDisk"
ide0:0.startConnected = "TRUE"
ide0:0.writeThrough = "FALSE"

#-----------------
#vmdx file
#---
# Disk DescriptorFile
version=1
CID=a67b572e
parentCID=ffffffff
createType="fullDevice"
#
# Extent description
RW 174867462 FLAT "/dev/sda" 0
#
# The Disk Data Base 
#DDB
#
ddb.virtualHWVersion = "4"
ddb.geometry.cylinders = "16383"
ddb.geometry.heads = "16"
ddb.geometry.sectors = "63"
ddb.geometry.biosCylinder = "1024"
ddb.geometry.biosHeads = "255"
ddb.geometry.biosSectors = "63"
ddb.adapterType = "ide"
 
Old 10-15-2008, 04:55 AM   #2
PB0711
Member
 
Registered: Aug 2004
Location: London, UK
Distribution: Ubuntu 10.10, ubuntu 11.04, suse 9.2, OSX
Posts: 259

Original Poster
Rep: Reputation: 30
Well I'm a bit further. I have to run it as root to have access to the /dev/sda1 drive but that's ok I guess.
My problem now is that I grub is unhappy. I think this is because it can't find the right stuff?!?! I don't know. I'll google my error: Error 22
EDIT:
Seems that I need to add my linux drive in there so that grub can read the boot directory. There isn't a boot directory on this computer so... Must say I'm a little unhappy about allowing access to both hard drives. I'm not sure if something bad could happen if it runs both?!?!
EDIT

Anyway here is the updated file for those who might need it.

Code:
vmx file->
scsi0:0.present = "TRUE"
scsi0:0.fileName = "Windows XP Professional.vmdk"
scsi0:0.deviceType = "rawDisk"

VMDK file->
# Disk DescriptorFile
version=1
encoding="UTF-8"
CID=c2495587
parentCID=ffffffff
createType="partitionedDevice"

# Extent description
RW 63 FLAT "Windows XP Professional-pt.vmdk" 0
RW 174867462 FLAT "/dev/sda" 63
RW 63 FLAT "Windows XP Professional-pt.vmdk" 63
RW 20482812 ZERO 
RW 21168 ZERO 

# The Disk Data Base 
#DDB

ddb.virtualHWVersion = "7"
ddb.uuid = "60 00 C2 9b 03 02 5e 7b-8d 17 1c 3e fb d8 dd 31"
ddb.geometry.cylinders = "12161"
ddb.geometry.heads = "255"
ddb.geometry.sectors = "63"
ddb.geometry.biosCylinders = "12161"
ddb.geometry.biosHeads = "255"
ddb.geometry.biosSectors = "63"
ddb.adapterType = "buslogic"

Last edited by PB0711; 10-15-2008 at 05:25 AM. Reason: updated information
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
dual booting XP and ubuntu with ubuntu being installed first kajangmarc Linux - General 6 01-30-2009 02:06 PM
Dual booting through vmware? okos Linux - Software 8 02-01-2008 01:13 PM
Partition rearrangement & dual booting Ubuntu/XP via GRUB VoidRoamer Linux - Hardware 9 04-29-2007 08:32 AM
Dual Booting SuSE 9.2 & XP Pro/dual hard drives The_Bug Linux - General 3 01-04-2006 05:44 PM
Dual-booting an old FC w/Ubuntu? Blackfire Linux - General 1 08-09-2005 04:06 AM


All times are GMT -5. The time now is 01:53 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration