For VMWare Server, please see this tutorial: http://ubuntuforums.org/showthread.php?t=183209
Personal Note
As of May 5th, 2007, I've switched to using VMWare server. You can follow this tutorial almost verbatim but using "sudo aptitude install vmware-server" instead of "sudo aptitude install vmware-player" as in step 2. This is due to personal preference and the amount of virtual machines I run. One note: You have to register to receive a product-code for every vmware-server you install. That form can be found here: http://register.vmware.com/content/registration.html. Anyone looking for a more advanced way to run their virtual machines, I suggest trying it. Good luck!
A Note on Running XP on Ubuntu, through VMWare
Running XP (or ANY operating system) on Ubuntu through VMWare presents NO security risks, no matter how insecure the OS is that is running through VMWare. The whole point of VMWare is that it's a *virtual* machine. The two can not directly communicate with each other without the means of Samba or SSH (Windows SSH program: http://winscp.net), just as you would have to communicate with a separate, physical machine.
XP will gain no security from running off a secure Ubuntu platform because the host has *nothing* to do with the VM OS. The only thing Ubuntu offers is the speed of which it is compiled with VMWare, and VMWare itself. Ubuntu also can only give it's VMs whatever peripherals it can read, so if Ubuntu can't read your printer, neither can XP.
If you get a virus in XP, you have a virus in XP and nothing else. It can not, and will not effect Ubuntu. You can have 3 instances of XP running, and only have 1 effected by a virus (unless it knows how to propagate).
Lastly, if you're looking to ditch XP, but still hoping to play games, you CAN NOT through VMWare. You will have to dual-boot for that. Search through these forums for more on that topic. Installing VMWare Sever and then VMWare tools may give you a less-choppy effect for your graphics, but it still not recommended for games.
Testing
Your kernel version:Tested with:Code:uname -rand,
- Ubuntu 7.04 Feisty (on hard drive)
- VMWare
- Player 1.0.2-2
- Server 1.0.2-2
- Server 1.0.3-1
- QEMU 0.8.2+dfsg-0ubuntu1
- Ubuntu 6.06.1 LAMP Server iso
- Kernels:
- 2.6.20-15-386
- 2.6.20-16-386
and,
- Ubuntu 6.10 Edgy (on hard drive)
- VMWare Player 1.0.2-2
- QEMU 0.8.2-0ubuntu1
- Windows XP Pro SP2 iso
and,
- Ubuntu 6.06.1 Dapper (on hard drive)
- VMWare Player 1.0.1-4
- QEMU 0.8.0-3ubuntu1
- Windows XP Pro SP2 iso
- Kernels:
- 2.6.15-23-386
- 2.6.15-24-386
- 2.6.15-27-386
- 2.6.15-28-386 (working as of late March, 2007)
Here we go!
- Xubuntu 6.06.1 Dapper (on hard drive)
- VMWare Server
- QEMU 0.8.2+dfsg-0ubuntu1-dapper1
- Ubuntu Dapper 6.06.1 Server
- Kernels:
- 2.6.15-23-386
I've noticed a couple tutorials that are quite long and convoluted so I've decided to make a simple tutorial using 10 easy steps.
1] Update Ubuntu
Code:sudo aptitude update && sudo aptitude upgrade
2] Install VMWare Player
3] Create a folder to store your Virtual MachinesCode:sudo aptitude install vmware-player
Code:mkdir ~/vmware
4] Install QEMU
Code:sudo aptitude install qemu
5] Create virtual drive using QEMU
Code:qemu-img create -f vmdk vmware/WindowsXPPro.vmdk 10GB6] Download the .vmx file
- the number '10GB' means that the virtual drive will be 10GB (so make sure you have enough room on you HD). You may change the number accordingly.
- The above is assuming you are using the folder "~/vmware". Remove 'vmware/' from the terminal command or change accordingly if necessary.
Supplied by help.ubuntu.com at: https://help.ubuntu.com/community/VM...ndowsXPPro.vmx
- Or run gedit (or a similar editor),
Code:sudo gedit ~/vmware/WindowsXPPro.vmx
- and copy and paste this:
#!/usr/bin/vmware
displayName = "Windows XP"
guestOS = "winxphome"
memsize = "64"
ide0:0.fileName = "WindowsXP.vmdk"
ide1:0.fileName = "WindowsXP.iso"
# DEFAULT SETTINGS UNDER THIS LINE
config.version = "8"
virtualHW.version = "3"
MemAllowAutoScaleDown = "FALSE"
MemTrimRate = "-1"
uuid.location = "56 4d 34 58 fd 57 00 42-76 91 96 91 01 30 46 a5"
uuid.bios = "56 4d 34 58 fd 57 00 42-76 91 96 91 01 30 46 a5"
uuid.action = "create"
checkpoint.vmState = ""
ethernet0.present = "TRUE"
ethernet0.connectionType = "nat"
ethernet0.addressType = "generated"
ethernet0.generatedAddress = "00:0c:29:30:46:a5"
ethernet0.generatedAddressOffset = "0"
usb.present = "FALSE"
sound.present = "FALSE"
scsi0.present = "FALSE"
scsi0.virtualdev = "lsilogic"
scsi0:0.present = "FALSE"
scsi0:0.deviceType = "disk"
scsi0:0.mode = "persistent"
scsi0:0.redo = ""
scsi0:0.writeThrough = "FALSE"
scsi0:0.startConnected = "FALSE"
scsi0:1.present = "FALSE"
floppy0.present = "FALSE"
ide0:0.present = "TRUE"
ide0:1.present = "FALSE"
ide1:1.present = "FALSE"
ide1:0.present = "TRUE"
ide1:0.deviceType = "cdrom-image"
ide1:0.autodetect = "TRUE"
ide1:0.startConnected = "TRUE"
ide0:0.redo = ""7] If you are using a CD as an installer...
- Click save
If you are using a .iso file (possibly a Linux distrobution), then skip to step 7.
This gives you the use of your cd-rom drive back:
Code:sudo gedit ~/vmware/WindowsXPPro.vmx8] Edit the .vmx file accordingly
- [line 7] ide1:0.fileName = "auto detect"
- [line 47] ide1:0.deviceType = "cdrom-raw"
Code:sudo gedit ~/vmware/WindowsXPPro.vmx
- [line 2] displayName is simply the title of the VM window. This could be set to "Windows XP Pro", "Windows XP Home" or "Ubuntu Dapper LAMP Server". It's all up to you.
- [line 3] guestOS uses pre-defined phrases to tell VMWare what type of Operating System you will be using. An excellent list I found for this is at: http://www.ffnn.nl/pages/articles/li...on.php#oscodes . Bookmark this if you are using a lot of different OSes
- [line 5] memsize is how much memory you would like your new OS to use. I have 3GBs on my computer, so I entered in "1024". The file you downloaded should say "64". USE ONLY AS MUCH AS YOU THINK YOUR COMPUTER CAN HANDLE. If you want to multi-task between Ubuntu and Windows, tell it to use half your RAM and no more.
- [line 6] ide0:0.fileName = "WindowsXPPro.vmdk" (change this to your filename)
- [line 7] ide1:0.fileName = "WindowsXPPro.iso" (change this to your filename)
- [line 28] usb.present = "FALSE" to "TRUE" (only enable this if its needed)
- [line 29] sound.present = "FALSE" to "TRUE" (only enable this if its needed)
- [line 41] floppy0.present= "FALSE" to "TRUE" (only enable this if its needed)
9] Run VMWare Player and Install your OS
Code:vmplayer ~/vmware/WindowsXPPro.vmx
- or double-click the .vmx file
- or click Applications >> System Tools >> VMware Player and search for the .vmx using the file browser
10] If you installed from an .iso: Get your CD-ROM back!
11] Enjoy
- Edit your .vmx file to remove the .iso instance: refer to step 6
COMMUNICATE WITH WINDOWS
- To transfer files from Windows to Ubuntu or visa versa, use a program called WinSCP in Windows and install the SSH protocol for Ubuntu via this terminal command:
RUNNING VMWARE USING WINDOWS AS THE HOSTCode:sudo aptitude install sshINCASE OF FAILURE
- I've been able to use a Feisty .iso, a Dapper LAMP server .iso & a SuSE .iso all inside Windows XP Pro using almost the exact same methods as described above. Simple differences with QEMU in Windows vs Linux is you'll have to download QEMU manually, extract it, and then using "qemu-img.exe create -f vmdk feisty.vmdk 10GB". Notice the only difference is the ".exe" portion.
- The files (.vmx, .vdmk, .iso) are all "cross-platform" and therefore can simply be copied from one OS to an other and will still work. This is largely dependant on how advanced your configuration file is and the difference in version numbers of VMWare.
- remove VMWare Player
Code:sudo aptitude purge vmware-player
- clear the VMWare folder so that no previous versions are detected
Code:sudo rm -R /etc/vmwareREFERENCE AND (more advanced) TUTORIALS
- compile VMWare Player from source by downloading the latest version from http://www.vmware.com/download/player/
Code:tar -xzvf $filename Code:cd $filename Code:sudo ./vmware-install.pl
- run through the steps to compile the proper vmware-kernel-headers and install VMWare Player
Bookmarks