![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
|
Tutorials & Tips The place to find Ubuntu related Tips & Tricks. |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
First Cup of Ubuntu
![]() Join Date: Aug 2005
Beans: 5
Ubuntu Breezy 5.10
|
HOWTO: Install Windows XP/2000 in VMWare Player
This guide will allow you to install Windows XP or 2000 solely with the VMWare Player. For the uninitiated, VMWare released a free application that allows users to run, but not create virtual machines. Using QEMU, we will create an environment suitable for use with the player.
As a side-note, I'd like to point out that VMWare makes quality software. If you require additional functionality, consider upgrading to Workstation. For those curious, these actions are condoned by the developers as per this quote: "We’re well aware of what people could potentially do, and we’ll live with the consequences. As you observe, Workstation has a lot of features that no amount of vi and dd hacking will replicate and these are what make Workstation worth buying (eg: Teams as you mention, or snapshots). I suspect that most people who go to the trouble are one’s who haven’t bought or wouldn’t buy Workstation anyway." Installing the player itself involves some patience. Get the Linux tar from this page. Most of my instructions will be shamelessly ripped from this lovely tutorial. Fire up a root terminal and do: Code:
apt-get install build-essential uname -r apt-get install linux-headers-'kernel version' apt-get install gcc-3.4 apt-get install g++-3.4 Code:
tar xvzf VMware-player-1.0.0-16981.tar.gz cd vmware-player-distrib export CC=/usr/bin/gcc-3.4 ./vmware-install.pl There are two components to a virtual machine, the hard drive image and a text file that VMWare interprets. First, we'll create an image with QEMU. I know this sounds a little odd, but I couldn't get the QEMU command used to generate the disk working from the Linux port. Fortunately, the utility works fine with the Windows port under Wine. I can't really bothered to delve into the specifics of installing Wine other than suggesting: Code:
apt-get install wine Code:
wine qemu-img.exe create -f vmdk WindowsXPPro.vmdk 2G Formating 'WindowsXPPro.vmdk', fmt=vmdk, size=2097152 kB You now have the choice to install XP or 2000. On my 1.2ghz/512mb system Windows 2000 runs considerably more responsively; your choice. As per the other tutorial, we should be able to insert our CD and go after the following. But in my case, neither my bootable XP or 2000 CD had any interest in well, booting. I'd suspect I'm not the only one with this concern, so we'll play with ISO images instead. Code:
apt-get install gnomebaker Unfortunately, our ISO image will not have the bootable sector intact. We'll instead boot from a series of floppy images. My Windows 2000 disc included them in a "bootdisk" folder, whereas XP did not. For 2000, copy the four img files from it to our created folder. With XP, you'll need some additional nonsense. Hunt down an appropriate set from Microsoft for your version of XP, and do the following: Code:
apt-get install cabextract cabextract 'nameofarchive.exe' -d 'our working directory' Now that we have a matching ISO and floppy set, we're ready to proceed with installation. Paste one of the following to a text editor (gedit/leafpad) and save it as either WindowsXPPro.vmx or Windows2000Pro.vmx to our directory: Windows XP: Code:
#!/usr/bin/vmware config.version = "8" virtualHW.version = "3" ide0:0.present = "TRUE" ide0:0.filename = "WindowsXPPro.vmdk" memsize = "192" MemAllowAutoScaleDown = "FALSE" ide1:0.present = "TRUE" ide1:0.fileName = "WindowsXPPro.iso" ide1:0.deviceType = "cdrom-image" ide1:0.autodetect = "TRUE" floppy0.fileType = "file" floppy0.fileName = "cdboot1.img" floppy0.startConnected = "True" ethernet0.present = "TRUE" usb.present = "TRUE" sound.present = "TRUE" sound.virtualDev = "es1371" displayName = "Windows XP Pro" guestOS = "winxppro" nvram = "WindowsXPPro.nvram" MemTrimRate = "-1" ide0:0.redo = "" ethernet0.addressType = "generated" uuid.location = "56 4d cd 3f 59 5b 61 43-fd 73 ef 46 56 4c 23 7b" uuid.bios = "56 4d cd 3f 59 5b 61 43-fd 73 ef 46 56 4c 23 7b" ethernet0.generatedAddress = "00:0c:29:4c:23:7b" ethernet0.generatedAddressOffset = "0" tools.syncTime = "TRUE" ide1:0.startConnected = "TRUE" uuid.action = "create" checkpoint.vmState = "WindowsXPPro.vmss" tools.remindInstall = "TRUE" Code:
#!/usr/bin/vmware config.version = "8" virtualHW.version = "3" ide0:0.present = "TRUE" ide0:0.filename = "Windows2000Pro.vmdk" memsize = "192" MemAllowAutoScaleDown = "FALSE" ide1:0.present = "TRUE" ide1:0.fileName = "Windows2000Pro.iso" ide1:0.deviceType = "cdrom-image" ide1:0.autodetect = "TRUE" floppy0.fileType = "file" floppy0.fileName = "CDBOOT1.IMG" floppy0.startConnected = "True" ethernet0.present = "TRUE" usb.present = "TRUE" sound.present = "TRUE" sound.virtualDev = "es1371" displayName = "Windows 2000 Pro" guestOS = "win2000pro" nvram = "Windows2000Pro.nvram" MemTrimRate = "-1" ide0:0.redo = "" ethernet0.addressType = "generated" uuid.location = "56 4d cd 3f 59 5b 61 43-fd 73 ef 46 56 4c 23 7b" uuid.bios = "56 4d cd 3f 59 5b 61 43-fd 73 ef 46 56 4c 23 7b" ethernet0.generatedAddress = "00:0c:29:4c:23:7b" ethernet0.generatedAddressOffset = "0" tools.syncTime = "TRUE" ide1:0.startConnected = "TRUE" uuid.action = "create" checkpoint.vmState = "Windows2000Pro.vmss" tools.remindInstall = "TRUE" Once the floppies have done their thing, the ISO will take over and Windows will install normally. Sorry about the length of this. If I had web hosting, I could've posted many of these files and shaved off a few steps. I'll try my best to answer any questions that may come up, but concede that my level of Linux know-how is only intermediate. Here's a screeny for encouragement! Take care, -Kyle Last edited by dryandplain; October 30th, 2005 at 07:20 PM.. |
|
|
|
|
|
#2 |
|
Dipped in Ubuntu
![]() |
Re: HOWTO: Install Windows XP/2000 in VMWare Player
Thanks a lot! Works great, except, is it normal for the part of the install where Windows detects and installs all your hardware to take a REALLY long time?
|
|
|
|
|
|
#3 |
|
Dipped in Ubuntu
![]() |
Re: HOWTO: Install Windows XP/2000 in VMWare Player
Any ideas on how to bump the resolution above 640 x 480? The only video driver included for Windows 2000 is a VGA driver...
|
|
|
|
|
|
#4 |
|
Loony Lycanthrope
![]() Join Date: Jul 2005
Beans: 6,870
Ubuntu 8.04 Hardy Heron
|
Re: HOWTO: Install Windows XP/2000 in VMWare Player
If you have downloaded the Win2k video driver for your card, try installing it inside the Win2k that is running under VMWare.
I don't know if it will work as I'm currently in the process of setting this up myself. |
|
|
|
|
|
#5 | |
|
Fresh Brewed Ubuntu
![]() Join Date: Oct 2005
Location: Helsinki, Finland
Beans: 1,350
|
Re: HOWTO: Install Windows XP/2000 in VMWare Player
Thanks for the howto!
Quote:
Code:
cat /dev/cdrom > WindowsXPPro.iso |
|
|
|
|
|
|
#6 |
|
Quad Shot of Ubuntu
![]() |
Re: HOWTO: Install Windows XP/2000 in VMWare Player
nice, i assume i can increase the size of the virtual drive by changing this line:
wine qemu-img.exe create -f vmdk WindowsXPPro.vmdk 2G Formating 'WindowsXPPro.vmdk', fmt=vmdk, size=2097152 kB to make a larger drive? |
|
|
|
|
|
#7 | |
|
Loony Lycanthrope
![]() Join Date: Jul 2005
Beans: 6,870
Ubuntu 8.04 Hardy Heron
|
Re: HOWTO: Install Windows XP/2000 in VMWare Player
Quote:
|
|
|
|
|
|
|
#8 | |
|
Loony Lycanthrope
![]() Join Date: Jul 2005
Beans: 6,870
Ubuntu 8.04 Hardy Heron
|
Re: HOWTO: Install Windows XP/2000 in VMWare Player
Quote:
|
|
|
|
|
|
|
#9 |
|
Quad Shot of Ubuntu
![]() |
Re: HOWTO: Install Windows XP/2000 in VMWare Player
yep, worked great, now for another question.
i installed samba on ubuntu to share a folder with Windows running in VMWare, in case the virtual hard drive fills up, i can move files onto my main hard drive. when my laptop is plugged into the network, this works fine, but when i am disconnected, Ubuntu and XP in VMware cannot see each other. is there a way to create a virtual network incuding the host OS and the guest OS so they will always be connected? |
|
|
|
|
|
#10 |
|
Just Give Me the Beans!
![]() |
Re: HOWTO: Install Windows XP/2000 in VMWare Player
Most probably the reason you couldn't create the images with linux qemu is that the capability to create VMDK images was only added in 0.71, and ubuntu's version is still at 0.70. 0.72 (binary from http://fabrice.bellard.free.fr/qemu/download.html works fine. You also dont need to do all that with the floppy disks, at least for Windows 2000, at least if you make the cdrom image with the command
Code:
dd if=/dev/cdrom of=Windows2000Pro.iso In response to zachtib, I believe what you want is host-only networking - it bridges the hosts connection to the network by default (you may have success just selecting host-only networking from the ethernet submenu under Devices in player, I don't know) - I haven't tried this myself but there's docs for workstation that'll probably give you an idea at http://www.vmware.com/support/ws5/doc/ws_net.html Last edited by Wombley; November 4th, 2005 at 08:56 PM.. |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|