Results 1 to 10 of 106

Thread: HOWTO: VMWare Player / Windows XP / Ubuntu Repositories

Threaded View

  1. #1
    Join Date
    Mar 2006
    Ubuntu 10.10 Maverick Meerkat

    HOWTO: VMWare Player / Windows XP / Ubuntu Repositories

    For VMWare Server, please see this tutorial:

    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: 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:, 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.


    Your kernel version:
    uname -r
    Tested with:
    • 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
    • Ubuntu 6.10 Edgy (on hard drive)
    • VMWare Player 1.0.2-2
    • QEMU 0.8.2-0ubuntu1
    • Windows XP Pro SP2 iso
    • 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)
    • 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
    Here we go!
    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
    sudo aptitude update && sudo aptitude upgrade

    2] Install VMWare Player

    sudo aptitude install vmware-player
    3] Create a folder to store your Virtual Machines
    mkdir ~/vmware

    4] Install QEMU

    sudo aptitude install qemu

    5] Create virtual drive using QEMU

    qemu-img create -f vmdk vmware/WindowsXPPro.vmdk 10GB
    • 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.
    6] Download the .vmx file
    Supplied by at:
    • Or run gedit (or a similar editor),
    sudo gedit ~/vmware/WindowsXPPro.vmx
    • and copy and paste this:
    displayName = "Windows XP"
    guestOS = "winxphome"

    memsize = "64"
    ide0:0.fileName = "WindowsXP.vmdk"
    ide1:0.fileName = "WindowsXP.iso"

    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 = ""
    • Click save
    7] If you are using a CD as an installer...
    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:
    sudo gedit ~/vmware/WindowsXPPro.vmx
    • [line 7] ide1:0.fileName = "auto detect"
    • [line 47] ide1:0.deviceType = "cdrom-raw"
    8] Edit the .vmx file accordingly
    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: . 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
    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!
    • Edit your .vmx file to remove the .iso instance: refer to step 6
    11] Enjoy

    • 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:
    sudo aptitude install ssh
    • 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
    sudo aptitude purge vmware-player
    • clear the VMWare folder so that no previous versions are detected
    sudo rm -R /etc/vmware
    • compile VMWare Player from source by downloading the latest version from
      • Code:
        tar -xzvf $filename
      • Code:
        cd $filename
      • Code:
        sudo ./
        • run through the steps to compile the proper vmware-kernel-headers and install VMWare Player
    REFERENCE AND (more advanced) TUTORIALS
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	vmware-installing_windows- 
Views:	553 
Size:	467.8 KB 
ID:	23516   Click image for larger version. 

Name:	vmware-installing_windows- 
Views:	501 
Size:	798.9 KB 
ID:	23517   Click image for larger version. 

Name:	vmware-install_windows-files.07.01.20.png 
Views:	299 
Size:	110.1 KB 
ID:	23518   Click image for larger version. 

Name:	vmware-install_feisty- 
Views:	366 
Size:	52.0 KB 
ID:	23519   Click image for larger version. 

Name:	vmware-windows_2000-ie5.07.01.20.png 
Views:	406 
Size:	371.2 KB 
ID:	24118  

    Last edited by altonbr; May 29th, 2007 at 12:04 AM.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts