You are not logged in.

#1 2007-03-11 12:11:43

ravisghosh
Member
From: Intergalactic Spaces
Registered: 2006-10-12
Posts: 516
Website

Running a Windows Partition in VMWare Without Installing Windows Again

I found this great piece of instructions regarding running physical windows partition in linux using vmware. Here is the link http://oopsilon.com/Running-a-Windows-P … -in-VMware. Its really simple enough to understand for a noob like me. But I found something which I could not understand. The author mentioned "If you have Windows on one hard disk and Linux on another, use the Windows disk in the command below, otherwise just use the disk device containing the Windows partition" and in his example, he used "parted /dev/hda" which is reccommended if windows is on one disk and linux on another. But the results from "unit s" command  shows that he has windows and linux both on "hda" only. "Otherwise just use the disk device containing the Windows partition" means to me that if windows and linux is on same disk, then one should windows disk device, i.e., "hda1" and this is what he should have used in his example. This thing is confusing.

Here is what I got when I fired parted on /dev/sda and /dev/sda1 (windows disk)

[root@bluehead shantanu]# parted /dev/sda
GNU Parted 1.8.2
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) unit s 
(parted) print 
Model: ATA SAMSUNG SV4002H (scsi) 
Disk /dev/sda: 78242975s
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number   Start               End                Size               Type           File system    Flags
1              63s                 10233404s    10233342s    primary       fat32              boot 
2              10233405s     78236549s    68003145s    extended                           lba 
5              10233468s     20225834s    9992367s      logical        fat32               lba 
6              20225898s     24434864s    4208967s      logical        linux-swap 
7              24434928s     37126214s    12691287s    logical        ext3 
8              37126278s     64774079s     27647802s    logical        ext3 
9               64774143s     78236549s    13462407s    logical        fat32 

_________________________


[root@bluehead shantanu]# parted /dev/sda1
GNU Parted 1.8.2
Using /dev/sda1
Welcome to GNU Parted! Type 'help' to view a list of commands. 
(parted) unit s 
(parted) print 
Model: Unknown (unknown)
Disk /dev/sda1: 10233341s
Sector size (logical/physical): 512B/512B 
Partition Table: loop

Number    Start     End                 Size                File system     Flags
1               0s         10233341s     10233342s     fat32

So, we have 2 sets of values ( 10233341s and 78242975s, and other values), Could anyone please suggest which one to use.

As you could see I have got 7 partitions out of which partition 1 is windows' C and partition 5 and 9 (fat32) are used for common data (music, etc) used by both linux and windows. Will it be possible to access these partitions simultaneously from native linux and virtual windows? Will that cause any damage?

Another thing is that I use windows boot menu to go to grub and then boot linux so as to keep mbr unaffected. Will that affect virtual machine configuration in anyway. I have heard that booting into the same partition by 2 OS's will destroy the partition. Any thought on that.

Offline

#2 2007-03-11 18:14:41

iBertus
Member
From: Greenville, NC
Registered: 2004-11-04
Posts: 2,228

Re: Running a Windows Partition in VMWare Without Installing Windows Again

I don't think running a physical Windows install from within VMWare will work with Windows XP. I could be mistaken but the virtual hardware is not going to match the installed hardware and the WPA stuff will lock you out pretty quick.

Offline

#3 2007-03-11 18:31:41

Dieter@be
Forum Fellow
From: Belgium
Registered: 2006-11-05
Posts: 2,001
Website

Re: Running a Windows Partition in VMWare Without Installing Windows Again

iBertus wrote:

I don't think running a physical Windows install from within VMWare will work with Windows XP. I could be mistaken but the virtual hardware is not going to match the installed hardware and the WPA stuff will lock you out pretty quick.

that's why you first have to boot into windows, create a new hardware profile, and use that when booting


< Daenyth> and he works prolifically
4 8 15 16 23 42

Offline

#4 2007-03-12 09:02:49

Bob Day
Member
Registered: 2005-11-26
Posts: 43

Re: Running a Windows Partition in VMWare Without Installing Windows Again

[root@B0310_01 ronald]# parted /dev/sda1
GNU Parted 1.8.2
Using /dev/sda1
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) unit s                                                           
(parted) print                                                            
Error: Can't have a partition outside the disk!

I think you can just use /dev/sda since /dev/sda1 does not give any info for me.

I'm very interested to see if you can get this to work

Offline

#5 2007-03-12 13:28:45

ravisghosh
Member
From: Intergalactic Spaces
Registered: 2006-10-12
Posts: 516
Website

Re: Running a Windows Partition in VMWare Without Installing Windows Again

parted /dev/sda gives info for the whole disk whereas /dev/sda1 gives info for sda1 only. Probably, you dont have any device such as sda1. I just dont want to make a mistake since it will ruin my partition.

Offline

#6 2007-03-12 13:50:35

Bob Day
Member
Registered: 2005-11-26
Posts: 43

Re: Running a Windows Partition in VMWare Without Installing Windows Again

I have /dev/sda1, I have Windows XP installed on it.
You won't ruin anything, with parted you only look up some information about your disk.

Offline

#7 2007-03-13 01:15:09

ravisghosh
Member
From: Intergalactic Spaces
Registered: 2006-10-12
Posts: 516
Website

Re: Running a Windows Partition in VMWare Without Installing Windows Again

I know I wont ruit anything with parted but I may damage my disk doing wrong things with vmware, etc.

Offline

#8 2007-03-13 15:04:04

Bob Day
Member
Registered: 2005-11-26
Posts: 43

Re: Running a Windows Partition in VMWare Without Installing Windows Again

ok, I tried it and it worked out perfectly for me.
The only thing missing in the tutorial is that I had to add myself to the usergroup disk.

Offline

#9 2007-03-13 15:51:46

RaisedFist
Member
From: Romania
Registered: 2007-01-30
Posts: 556
Website

Re: Running a Windows Partition in VMWare Without Installing Windows Again

Bob Day wrote:

ok, I tried it and it worked out perfectly for me.
The only thing missing in the tutorial is that I had to add myself to the usergroup disk.

So it works... but how good does it work? Is it useable? For example I'd like to try this thing for using photoshop within the virtual windows machine.

Offline

#10 2007-03-13 16:08:57

Dieter@be
Forum Fellow
From: Belgium
Registered: 2006-11-05
Posts: 2,001
Website

Re: Running a Windows Partition in VMWare Without Installing Windows Again

Can any of you guys check what changes on the filesystem when you add a new hardwareprofile?
My windows doesn't start correctly, because something stupid probably, so I would like to add a hardwareprofile to the windows from out of linux, and then booting it in vmware.


< Daenyth> and he works prolifically
4 8 15 16 23 42

Offline

#11 2007-03-13 20:08:12

Bob Day
Member
Registered: 2005-11-26
Posts: 43

Re: Running a Windows Partition in VMWare Without Installing Windows Again

RaisedFist wrote:
Bob Day wrote:

...

So it works... but how good does it work? Is it useable? For example I'd like to try this thing for using photoshop within the virtual windows machine.

It depends on the amount of memory you assign to vmware. With the 780MB I assigned it works quit fast.
How it is with photoshop I do not know yet.

Offline

#12 2007-03-14 10:49:15

Purch
Member
From: Finland
Registered: 2006-02-23
Posts: 229

Re: Running a Windows Partition in VMWare Without Installing Windows Again

I did not even think about using vmware like this, but this is brilliant.

I did as told in the guide, but the virtual machine cannot start. It crashes to a permission problem while reading WindowsXP.vmdk. I dont have logs now, but I can get them later. The file permissions are same as for the other virtual XP with 10G virtual partition. Did I miss something?

edit: vmware does not support sata raw disks to boot hmm http://www.vmware.com/community/thread. … eID=585172

Last edited by Purch (2007-03-14 11:13:57)

Offline

#13 2007-03-15 07:32:29

ravisghosh
Member
From: Intergalactic Spaces
Registered: 2006-10-12
Posts: 516
Website

Re: Running a Windows Partition in VMWare Without Installing Windows Again

@bob, which values did u use, the one for the whole disk or the windows partition only??

Offline

#14 2007-03-15 07:57:18

Bob Day
Member
Registered: 2005-11-26
Posts: 43

Re: Running a Windows Partition in VMWare Without Installing Windows Again

ravisghosh wrote:

@bob, which values did u use, the one for the whole disk or the windows partition only??

The whole disk

Offline

#15 2007-03-16 14:54:11

ravisghosh
Member
From: Intergalactic Spaces
Registered: 2006-10-12
Posts: 516
Website

Re: Running a Windows Partition in VMWare Without Installing Windows Again

@Bob, Do u have 2 separate disks for linux and windows or separate partitions like I have.

Offline

#16 2007-03-16 14:57:55

Bob Day
Member
Registered: 2005-11-26
Posts: 43

Re: Running a Windows Partition in VMWare Without Installing Windows Again

ravisghosh wrote:

@Bob, Do u have 2 separate disks for linux and windows or separate partitions like I have.

separate partitions like you have

Offline

#17 2007-03-17 02:15:00

ravisghosh
Member
From: Intergalactic Spaces
Registered: 2006-10-12
Posts: 516
Website

Re: Running a Windows Partition in VMWare Without Installing Windows Again

@bob, could u please make the memory allocation thing a bit clear. I mean what portion of memory you assigned to it. I have 256 mb ram.

Offline

#18 2007-03-17 09:21:57

Bob Day
Member
Registered: 2005-11-26
Posts: 43

Re: Running a Windows Partition in VMWare Without Installing Windows Again

while running windows in vmplayer, you can access a memory allocate slider in vmplayer. It gives you a recommended value. I just that one.

Offline

#19 2007-03-17 09:40:13

Purch
Member
From: Finland
Registered: 2006-02-23
Posts: 229

Re: Running a Windows Partition in VMWare Without Installing Windows Again

I was looking solution to SATA disk problem. It looks like that if you change from bios that sata disks are identified as ide disks. Then you can use hard disk mount system.

Offline

#20 2007-03-18 07:53:15

RaisedFist
Member
From: Romania
Registered: 2007-01-30
Posts: 556
Website

Re: Running a Windows Partition in VMWare Without Installing Windows Again

So... I tried this morning to boot my windows partition using all the info in this thread. This is what I get:

Invalid BOOT.INI file
Booting from C:\Windows\
NTDETECT failed

and vmplayer enters an infinite loop with this neutral

Any hints?

Offline

#21 2007-03-18 15:12:28

murkus
Member
From: Europe/Helsinki
Registered: 2004-03-19
Posts: 254

Re: Running a Windows Partition in VMWare Without Installing Windows Again

I have a different problem relating to these instructions.

when starting up the vmplayer I get following error

Error while opening virtual machine winxp.vmdk: File "/home/murkus/vmware/winxp.vmdk" line 8: Syntax error.
.

here's my files: winxp.mbr  winxp.vmdk  winxp.vmx

cat winxp.vmdk

# Disk DescriptorFile
version=1
CID=9428f535
parentCID=ffffffff
createType="fullDevice"

# Extent description
RW 63 FLAT "winxp.mbr" 0
RW 120103136 FLAT "/dev/hdb" 63

# The Disk Data Base
#DDB

ddb.toolsVersion = "6530"
ddb.adapterType = "ide"
ddb.virtualHWVersion = "4"
ddb.geometry.sectors = "63"
ddb.geometry.heads = "255"
ddb.geometry.cylinders = "7476"

cat winxp.vmx

config.version = "8"
virtualHW.version = "4"

uuid.location = "56 4d 56 4a 7b d7 4c 30-f5 80 d6 8b c4 59 aa eb"
uuid.bios = "56 4d 56 4a 7b d7 4c 30-f5 80 d6 8b c4 59 aa eb"

uuid.action = "create"
checkpoint.vmState = ""

displayName = "Windows XP Professional"
annotation = ""
guestinfo.vmware.product.long = ""
guestinfo.vmware.product.url = ""

guestOS = "winxppro"
numvcpus = "1"
memsize = "320"
paevm = "FALSE"
sched.mem.pshare.enable = "TRUE"
MemAllowAutoScaleDown = "FALSE"

MemTrimRate = "-1"

nvram = "WindowsXP.nvram"

mks.enable3d = "FALSE"
vmmouse.present = "FALSE"
vmmouse.fileName = "auto detect"

tools.syncTime = "TRUE"
tools.remindinstall = "FALSE"

isolation.tools.hgfs.disable = "FALSE"
isolation.tools.dnd.disable = "FALSE"
isolation.tools.copy.enable = "TRUE"
isolation.tools.paste.enabled = "TRUE"
gui.restricted = "FALSE"

ethernet0.present = "TRUE"
ethernet0.connectionType = "nat"
ethernet0.addressType = "generated"
ethernet0.generatedAddress = "00:0c:29:59:aa:eb"
ethernet0.generatedAddressOffset = "0"

usb.present = "TRUE"
usb.generic.autoconnect = "TRUE"

sound.present = "TRUE"
sound.virtualdev = "sb16"

ide0:0.present = "TRUE"
ide0:0.fileName = "winxp.vmdk"
ide0:0.mode = "independent-persistent"
ide0:0.deviceType = "rawDisk"
ide0:0.redo = ""
ide0:0.writeThrough = "FALSE"
ide0:0.startConnected = "TRUE"

ide1:0.present = "TRUE"
ide1:0.fileName = "/dev/cdrom"
ide1:0.deviceType = "atapi-cdrom"
ide1:0.writeThrough = "FALSE"
ide1:0.startConnected = "TRUE"

floppy0.present = "TRUE"
floppy0.fileName = "/dev/fd0"
floppy0.startConnected = "TRUE"

serial0.present = "FALSE"
serial1.present = "FALSE"
parallel0.present = "FALSE"

I can't see any difference to the instructions given above..

.murkus

Offline

#22 2007-03-18 21:46:18

ravisghosh
Member
From: Intergalactic Spaces
Registered: 2006-10-12
Posts: 516
Website

Re: Running a Windows Partition in VMWare Without Installing Windows Again

Help, Help, Help..

Could anyone please upload the windows.iso file somewhere in rapidshare, etc., and post the url or else send me as an attachment at ravisghosh@gmail.com. I'm a bandwidth-poor guy. Please help me out.

Offline

#23 2007-03-18 21:56:37

ravisghosh
Member
From: Intergalactic Spaces
Registered: 2006-10-12
Posts: 516
Website

Re: Running a Windows Partition in VMWare Without Installing Windows Again

someone has already done that favor. here is the link http://www.advicesource.org/ubuntu/files/windows.rar

Offline

#24 2007-03-18 22:00:23

ravisghosh
Member
From: Intergalactic Spaces
Registered: 2006-10-12
Posts: 516
Website

Re: Running a Windows Partition in VMWare Without Installing Windows Again

Another query about hard disk accessing.

Suppose i have windows in sda1 (fat32), data in sda2 (fat32),  and linux (ext3) sda3. I install vmware in sda3 with linux and run windows on sda1 from it. Now, if I access data in sda2 simultaneously from hda1 (virtual windows) and hda3 (linux), will it cause any damage or trouble?

Offline

#25 2007-03-18 22:55:18

ravisghosh
Member
From: Intergalactic Spaces
Registered: 2006-10-12
Posts: 516
Website

Re: Running a Windows Partition in VMWare Without Installing Windows Again

After setting up all the things mentioned, I had put WindowsXP.mbr, WindowsXP.vmdk, and WindowsXP.vmx files in my home directory as mentioned in another post http://www.advicesource.org/ubuntu/Run_ … layer.html. Then I tried to run VMWare by double clicking or hitting enter on WindowsXP.vms file and also trying to run VMware Player from xfce4 menu, but nothing starts up. On doing "vmware" (and "sudo vmware" too) in console, it gives "command not found". I installed VMware Player from AUR. Please suggest something guys.

Last edited by ravisghosh (2007-03-18 23:04:37)

Offline

Board footer

Powered by FluxBB