Forum     

Go Back   Digit Technology Discussion Forum > Software > Open Source
Register FAQ Calendar Mark Forums Read

Open Source A place where you can talk to like-minded people about the fastest growing software movement today! Discuss anything and everything about Open Source software and Operating Systems.


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 08-02-2007, 09:45 PM   #1 (permalink)
Just another linux lover.
 
subratabera's Avatar
 
Join Date: Jun 2006
Location: Bangalore, KA
Posts: 562
Default Run Existing Windows Installation on Ubuntu with Vmware Player


Running existing Windows installation on Ubuntu is piece of cake. What you need is Vmware player and 10 minutes of spare time.

The easiest way to install Vmware player on Ubuntu is with Automatix. Automatix is great application that install software you can't live without with cuple of clicks, including free Vmware player and it's real time and nerve saver for newbies like me. If you don't have Automatix, get it here.


There are two ways you can get your existing Windows installation to run in Vmware player:

1. Vmware Conventer - It converts you existing physical Windows installation into virtual machine - means; if your Windows installation is 30 GB big, you will need another 30 GB of free space to store it somewhere. Not an option in my case.

2. To setup Vmware player to use physical Windows installation. Don't worry, you will still be able to boot and use your Windows like you used to do.

Let's start with the dirty work:

I will save you a lot of trouble with creating necesarry .vmdk and .vmw files. These are files that contain your virtual machine information and are used by Vmware player. Download windows.vmdk and windows.vxm but don't just fire 'em up yet. Read on.

Open console. You will use program "parted" to get some of your disk information and modify windows.vmdk file. Parted is already there in Ubuntu by default.
Strat parted with "sudo parted", (or if you have several disks "sudo parted /dev/hdx" where x the letter of the disk containing Windows installation) and type: "unit s" then "print". You will get something like this:



Note the underlined number. Now type: "unit cyl" and "print". You will get this:



Again, note the underlined numbers.

Open windows.vmdk file with text editor and find this part of file:



Underlined values should be replaced with the values given by parted but there is a catch. Note that second RW value from vmdk file is not the same as the one you got from parted "Disk /dev/hda/". Thats because first partition on disk is master boot record or MBR which points to boot files of operating systems. It's lenght in this case is 63, and as far as I know, it is pretty standard value.

We will use copy of MBR so actual start point of Windows parititon is parted's value "Disk /dev/hda" 240121727 minus 63.

240121727 - 63 = 240121664 <- result goes to vmdk file

Now, you do the same for your values and modify vmdk file. Don't forget about "ddb.geometry.heads" and "ddb.geometry.cylinders".

Type "quit" in parted and make copy of MBR. Copy-paste this command into console:
"dd if=/dev/hda of=windowsxp.mbr bs=512 count=63"

Ubuntu part of work is done but DON'T run Vmware player yet. Put vmdk and vmx files together with copy of MBR windowsxp.mbr which is already in your home directory.

Now reboot into Windows and set up another hardware profile for Vmware.
Start-> Control Panel-> System, click on Hardware tab and Hardware profiles. You will find Profile 1 (Current), highlight it and click Copy, give it new name, Vmware for instance and move it up.While at Hardware tab in System properties, you can disable driver signing.

One more thing to do. As you may know, work in Vmware machines is easier with Vmware tools. I took Vmware tools installation out of Vmware Server to spare you of downloading 100 MB + file and you can download it here. Unpack archive and put it somewhere on Windows partition.

If you don't trust me, go to Vmware web site and download whole Vmware Server package for Linux. You will find Vmware tools for Windows inside windows.iso file.

Finally, boot back to Ubuntu, run windows.vmx, choose newly created hardware profile at prompt and install Vmware tools once in Windows.

Oh and, windows.vmx contains some of virtual machine properties like amount of RAM or enabled or disabled peripherals so scroll thru it with text editor and customize it with your own needs.

Here is another similar article...
Five ways to use Windows apps in Linux

Source
__________________
Today is a most unusual day, because we have never lived it before; we will never live it again; it is the only day we have.
(Registered Linux User #432737 - subratabera.blogspot.com)

Last edited by subratabera; 08-02-2007 at 10:07 PM. Reason: Automerged Doublepost
subratabera is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 09-02-2007, 10:28 PM   #2 (permalink)
Just another linux lover.
 
subratabera's Avatar
 
Join Date: Jun 2006
Location: Bangalore, KA
Posts: 562
Default Re: Run Existing Windows Installation on Ubuntu with Vmware Player

No comments yet...
__________________
Today is a most unusual day, because we have never lived it before; we will never live it again; it is the only day we have.
(Registered Linux User #432737 - subratabera.blogspot.com)
subratabera is offline  
Old 10-02-2007, 12:24 PM   #3 (permalink)
Debian Rocks!
 
freebird's Avatar
 
Join Date: Feb 2007
Location: Coimbattore
Posts: 528
Post but..

vmware is good;but it is propreitory afaik.other FLOSS options like xen should've got the same head start.
__________________
"The day windows users wake up to reality, it will be doomsday for Microsoft."UNIX like OS are more secure.get urself out 4m M$ http://whylinuxisbetter.net http://tinyurl.com/2amjjc http://fsf.org
freebird is offline  
Old 10-02-2007, 06:55 PM   #4 (permalink)
Alpha Geek
 
dissel's Avatar
 
Join Date: Feb 2006
Location: Kolkata
Posts: 551
Default Re: Run Existing Windows Installation on Ubuntu with Vmware Player

Nice tutorial....I will try soon.

dissel is offline  
Old 12-02-2007, 04:16 PM   #5 (permalink)
Just another linux lover.
 
subratabera's Avatar
 
Join Date: Jun 2006
Location: Bangalore, KA
Posts: 562
Default Re: but..

Quote:
Originally Posted by freebird
vmware is good;but it is propreitory afaik.other FLOSS options like xen should've got the same head start.
AFAIK Xen won't allow you to use your existing Windows installation. But according to the above tutorial you can use your existing Windows without reinstalling it again...
__________________
Today is a most unusual day, because we have never lived it before; we will never live it again; it is the only day we have.
(Registered Linux User #432737 - subratabera.blogspot.com)
subratabera is offline  
Old 06-06-2008, 09:30 PM   #6 (permalink)
Wise Old Mouse
 
mrintech's Avatar
 
Join Date: Sep 2005
Location: Bhopal, India
Posts: 1,930
Default Re: Run Existing Windows Installation on Ubuntu with Vmware Player

sir

Automatix is not available and also the 2 files windows.vmdk and windows.vxm are not available

please help
__________________
- MrinTech :)
mrintech is offline  
Old 24-08-2008, 12:18 AM   #7 (permalink)
Right Off the Assembly Line
 
Join Date: Aug 2008
Posts: 1
Question Re: Run Existing Windows Installation on Ubuntu with Vmware Player

I tried to download the two windows.* but only got a front page for the server... Did you remove them? I've been playing around with VMWare server, but I think if I can get windows going from and EXISTING install with VMWare player - that would be stupendous!! But... I'm a bit of a command-line klutz
Patti
PattiM is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by Sujeet
- by clmlbx
- by Sujeet
- by icebags

Advertisement




All times are GMT +5.5. The time now is 10:48 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2