Page 1 of 7 123 ... LastLast
Results 1 to 10 of 106

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

Hybrid View

  1. #1
    Join Date
    Mar 2006
    Location
    Canada
    Beans
    1,313
    Distro
    Ubuntu 10.10 Maverick Meerkat

    HOWTO: VMWare Player / Windows XP / Ubuntu Repositories

    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:
    Code:
    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
    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)
    and,
    • 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
    Code:
    sudo aptitude update && sudo aptitude upgrade

    2] Install VMWare Player

    Code:
    sudo aptitude install vmware-player
    3] Create a folder to store your Virtual Machines
    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 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 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 = ""
    • 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:
    Code:
    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
    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!
    • Edit your .vmx file to remove the .iso instance: refer to step 6
    11] Enjoy

    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:
    Code:
    sudo aptitude install ssh
    RUNNING VMWARE USING WINDOWS AS THE HOST
    • 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.
    INCASE OF FAILURE
    • 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/vmware
    • 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
    REFERENCE AND (more advanced) TUTORIALS
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

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

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

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

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

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

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

  2. #2
    Join Date
    Oct 2005
    Location
    Wyoming
    Beans
    50

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

    With the qemu command you should be able to specify a literal disk size, say 10G.

    I have seem so many posts about using VMWare Server being used on a standalone machine, just to run a second OS. VMWare player is much simpler to use to do this. Sure, if you need headless server, then by all means run a VMWare server on a dedicated box. My VMWare Server is headless itself, running 3 different OS's, Ubuntu Host, with a Win2K Server VM, a Ubuntu Webserver VM, and a Slackware File Server VM.

    But for my Laptop, I run WinXpPro as my main OS, with a Ubuntu 610 Desktop VM installed from scratch in VMWare Player. It achieves pretty much native speeds. Where as if you do it in a local VMWare server, you have more procceses running then you need to.

  3. #3
    Join Date
    Apr 2006
    Beans
    19

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

    Excellent tutorial, altonbr. Thanks.

  4. #4
    Join Date
    Mar 2006
    Location
    Canada
    Beans
    1,313
    Distro
    Ubuntu 10.10 Maverick Meerkat

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

    Glad it helped

  5. #5
    Join Date
    May 2005
    Location
    Birmingham UK
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

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

    Thanks for this clear tutorial; I'm now waiting for Office 2003 to install its updates to the updates to Service Pack 2 in that quaint way Microsoft have. I'm using XP home edition in a virtual machine with 5Gb of drive space and 256 Mb of RAM. The host computer has 512Mb of Ram and is a P4. Yes, I have another 512 Mb of RAM on order

    I'd just go so far as to clarify step 8 along the following lines

    • Alter line 7 of the VMX file to read ide1:0.fileName = "auto detect"

    • Alter line 47 of the VMX file to read ide1:0.deviceType = "cdrom-raw"


    for people like me.

  6. #6
    Join Date
    Mar 2006
    Location
    Canada
    Beans
    1,313
    Distro
    Ubuntu 10.10 Maverick Meerkat

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

    Quote Originally Posted by keithpeter View Post
    Thanks for this clear tutorial; I'm now waiting for Office 2003 to install its updates to the updates to Service Pack 2 in that quaint way Microsoft have. I'm using XP home edition in a virtual machine with 5Gb of drive space and 256 Mb of RAM. The host computer has 512Mb of Ram and is a P4. Yes, I have another 512 Mb of RAM on order

    I'd just go so far as to clarify step 8 along the following lines

    • Alter line 7 of the VMX file to read ide1:0.fileName = "auto detect"

    • Alter line 47 of the VMX file to read ide1:0.deviceType = "cdrom-raw"


    for people like me.
    Yes, once Windows XP is done installing (which you said it has), and once the VM is shutdown, THEN edit the .vmx file and change those lines EXACTLY as you have them. Then you should be able to use your CD-ROM drive.

  7. #7
    Join Date
    Dec 2006
    Beans
    7

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

    Strange, gnomebaker fails to make .iso unless using gksudo
    readcd: Permission denied. Cannot open '/dev/sg0'. Cannot open SCSI driver.

    Lol, another thing that shocked me, wtf ...i have a legal copy windows that came with my laptop and it says "According to our record you have exceeded the number of activations" or something like that
    Last edited by kikuman; January 28th, 2007 at 11:07 PM.

  8. #8
    Join Date
    May 2005
    Location
    Birmingham UK
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

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

    Quote Originally Posted by kikuman View Post
    Strange, gnomebaker fails to make .iso unless using gksudo
    readcd: Permission denied. Cannot open '/dev/sg0'. Cannot open SCSI driver.
    I get the same but as I'm running Xubuntu I have to do sudo gnomebaker.. It is the same in K3b as well.

    How do I get a USB thumb drive to recognise within my Windows XP virtual machine without any impact on permissions in Xubuntu? I would like to use the stick drive to transfer files between Xubuntu and the vmplayer Windows XP

    I tried changing line 28 in the vmx file from

    • usb.present = "FALSE"


    to

    • usb.present = "TRUE"


    and this resulted in Windows XP in vmplayer seeing my USB drives, but then permissions were changed so that the drives would not autoplay under my normal user in Xubuntu. pmount generated errors and I ended up re-installing Xubuntu as sudo chmod and sudo chown did not work.

  9. #9
    Join Date
    Mar 2006
    Location
    Canada
    Beans
    1,313
    Distro
    Ubuntu 10.10 Maverick Meerkat

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

    Quote Originally Posted by kikuman View Post
    Strange, gnomebaker fails to make .iso unless using gksudo
    readcd: Permission denied. Cannot open '/dev/sg0'. Cannot open SCSI driver.

    Lol, another thing that shocked me, wtf ...i have a legal copy windows that came with my laptop and it says "According to our record you have exceeded the number of activations" or something like that
    Does this thread help any?: http://www.ubuntuforums.org/showthread.php?t=217472

    What about running GnomeBaker from the Application list? Or is that not a possibility?

  10. #10
    Join Date
    Jun 2006
    Location
    Pensacola, FL
    Beans
    987
    Distro
    Ubuntu 10.04 Lucid Lynx

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

    are the repos down or something, i can't install vmware playe, says missing files or something

    Edit: more specifically when i run

    sudo apt-get install vmware-player-kernel-modules
    it says
    Install these packages without verification [y/N]? y
    Err http://albertomilone.com binary/ vmware-player-kernel-modules-2.6.17-10 2.6.17.8-1
    404 /drivers/edgy/nonlegacy/32bit/binary/vmware-player-kernel-modules-2.6.17-10_2.6.17.8-1_i386.deb
    Failed to fetch http://albertomilone.com/drivers/edg...7.8-1_i386.deb 404 /drivers/edgy/nonlegacy/32bit/binary/vmware-player-kernel-modules-2.6.17-10_2.6.17.8-1_i386.deb
    E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
    Last edited by loserboy; February 7th, 2007 at 02:19 AM.
    "To be conscious that you are ignorant of the facts is a great step to knowledge"

Page 1 of 7 123 ... LastLast

Bookmarks

Posting Permissions

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