Page 1 of 137 1231151101 ... LastLast
Results 1 to 10 of 1362

Thread: HowTo: Windows (XP) on Ubuntu with VMWare Server

  1. #1
    Join Date
    Oct 2005
    Location
    Netherlands
    Beans
    103
    Distro
    Ubuntu Development Release

    Smile HowTo: Windows (XP) on Ubuntu with VMWare Server

    Update!
    Vmware Server is now in the repositories. (7.10, also 7.04)
    See the updated instructions below.

    Introduction

    Are you too having problems with software that is only available on Windows and not on Linux? Are you still Dual Booting to solve this problem? After this HowTo you will never need to dual-boot again for your windows only software, like Adobe CS!

    Info
    That sounds great, but how?
    Did you ever heard about Virtual Machines? There is software available that can run Windows XP or any other Operating System inside your main Operating System. This means that you can run Windows XP in Ubuntu without the need to Reboot/Dual Boot.

    That sounds slow...
    It is indeed a little slower, but really: a little. Personally I am very willing to sacrifice that little speed in order to avoid Dual Booting.

    What else can I do with it?

    Run seperate Operating Systems for Online Banking and other things that you want to secure. Try out new Ubuntu Versions without Dual Booting, Try out other Linux Distro's etc.

    What can I not do with it?
    You will not be able to use hardware that doesn't work on Ubuntu. This is very important to understand!
    The Virtual Machine runs on top of Ubuntu, so it can only acces Ubuntu detected devices. It is a virtual machine with virtual hardware.

    Also don't expect to be gaming on a Virtual Machine at this moment. Heavy Videocard 3d things are just not supported right now. So for gaming it's unfortunately a no go. For everything else, just try it out!

    Requirements
    • Ubuntu Edgy, Dapper or Breezy or later.
    • A Windows (XP) Installation CD & Key
    • Internet Connection (+- 100 Megabyte file download)
    Procedure Gutsy & Feisty

    Because VMWare Server is now in the repo's, installation is much easier.
    • Make sure you have enabled the "partner" repository.
      • Code:
        sudo gedit /etc/apt/sources.list
      • Make sure the lines below are not commented out with a #. Save the file.(replace gutsy with feisty if necessary!)
        Code:
        deb http://archive.canonical.com/ubuntu gutsy partner
        deb-src http://archive.canonical.com/ubuntu gutsy partner
    • Install VMWare Server
      • Code:
        sudo apt-get update && sudo apt-get install vmware-server
    • Get your serial at http://register.vmware.com/content/registration.html
    • Now skip to the section "Installation of Windows XP"
    Procedure Edgy and earlier versions
    First we need to install a few dependencies:

    In a terminal type
    Code:
    sudo apt-get install linux-headers-`uname -r` build-essential xinetd
    This will install all needed dependencies (atleast I hope so )

    Breezy users will also need to install gcc-3.4.
    Code:
    sudo apt-get install gcc-3.4
    We are now ready to download VMWare Server.
    • Go to http://www.vmware.com/products/server/
    • On the menu on the right click: Download VMWare Server
    • Click on the appropriate Download Now button.
    • Register as new user, do give a valid email adres, since you will be receiving the registration key by email.
    • Select the VMWare Server beta (for Linux)
    • Accept the EULA
    • Download VMware Server for Linux. (first mentioned, binary (.tar.gz) )
    The Installation
    • Open the downloaded file with the archive manager.
    • Extract it to somewhere, I will use /tmp here.
    • Startup the terminal and go to the extracted files
      Code:
      cd /tmp  replace with your download directory
      cd vmware-server-distrib
        • Breezy users only. Execute
          Code:
          export CC=/usr/bin/gcc-3.4
    • Execute the installation script
      Code:
      sudo ./vmware-install.pl
    • You can accept all defaults, only thing you might want to alter is the directory where the Virtual Machines are stored. I have mine set to /home/username/vmware . But offcourse, just accept the settings you want to.
    • You will be prompted for your key during the installation. You will find the key in your email inbox
    • If everything went allright, the installation will finish without any problems
    We can now test if it worked by starting the VMWare server console
    • Via the menu Applications => System Tools => Vmware Server Console
    • If everything is allright, the server console program will show up.
    • If it didn't, start the terminal and execute
      Code:
      vmware
      This will display the errors, post them here and hopefully we can solve them.
    Installation of Windows XP
    Next thing we want to do is Install Windows (XP) !

    First we need a virtual machine
    • Insert your Windows (XP) CD into your CDROM drive
    • Open the VMware Server Console
    • select 'Create a new virtual machine'
    • => Next => Next => Select Windows Xp (or whatever Windows versions you want to install )
    • => Next => Enter a name and select a location for the Virtual Machine File (It contains the virtual harddisk, so it needs quite some space, min 2 GB, but I would recommend 8+ GB )
    • => Next => Select Network type. I am using NAT, but choose whatever fits you ( or your mood )
    • => Next => Choose the size for the Virtual Disk and set other preferences
    • => Next => Finish
    Now we can start the newly made virtual machine and the install of Windows!
    • Start the virtual machine
    • Hopefully it detects your Windows install CD and will start the installation! If it won't boot from the CD, stop the virtual machine and check/change the preferences for the virtual machine regarding the CD drive
    • Enjoy the installation and the freedom to use Ubuntu while installing

    Tips

    You will definately want to install the VMWare tools, when windows has been installed. This will speed up your Windows responsiveness
    • Make sure your Windows Virtual Machine is Running and visable/selected. (Not in FullScreen)
    • Go to the VM menu (on the top in the VM Server Console)
    • Select Install VMWare Tools.
      This will start a installation wizard in your WIndows Environment. Just install the stuff and you will have better mouse and system responsiveness.
    CTRL + ALT will release the mousecursor from the virtual machine
    CTRL + ALT in FullScreen mode will get you out of the FullScreen.

    You can Suspend a running virtual machine. this way it will start very fast the next time you need it.

    To have sound support, add a sound device in the virtual machine settings.

    Enjoy!

    See Attached screenshots from my windows XP Installation and the succes of it.

    Please no discussions about Windows versus Linux in this Thread.


    Common Problems & Solutions
    • No Serial Number Received
    You can view your serial numbers at: http://www.vmware.com/vmwarestore/ne...mber_login.jsp
    • After a kernel upgrade VMWare won't start because it has not been (correctly) configured for the running kernel
    execute
    Code:
    sudo /usr/bin/vmware-config.pl
    • vmware-config.pl fails to find the right kernel headers. It cannot find /usr/src/kernel/include and won't proceed to install.
    You have a updated kernel, but not the updated kernel headers.
    You can install them by executing
    Code:
    sudo apt-get install linux-headers-`uname -r`
    Now you can succesfully run
    Code:
    sudo /usr/bin/vmware-config.pl
    • You don't want to install the kernel headers manually each time there is an update.
    There is a package called linux-headers-*** that automatically installs the latest kernelheaders, so you don't need to install them manually each time.

    There are 4 flavours of this package: 386, 686, k7, server.

    If you don't know wich one you need, execute
    Code:
    uname -r
    It will give you something like 2.6.15-26-k7 or 2.6.15-26-686

    Now you know the right flavour, install it by
    Code:
    sudo apt-get install linux-headers-***
    Replace the *** with 386, 686, k7 or server.
    • Uninstallation failed and reinstall won't work
      ====
      A previous installation of VMware software has been detected.
      The previous installation was made by the tar installer (version 3).
      Keeping the tar3 installer database format.
      Error: Unable to execute "/usr/bin/vmware/vmware-uninstall.pl.
      Failure
      Execution aborted.
      ====
    Look for the /etc/vmware directory and either move it to a different location or remove it altogether.
    Code:
    sudo rm -R /etc/vmware

    Note
    According to Flip314:
    VMWare has stated that VMWare Server will be a free product, just like VMWare player.


    Credits
    Used some information from a blogpost by James Wilford and a comment placed there by 'mips' (http://blog.wilf.me.uk/articles/2006...beta-on-ubuntu )
    Thanks to Remusus for the linux-headers-'uname -r ' command.
    Thanks to firetux for the GCC-3.4 info
    Thanks to Nick Couchman from the VMWare forum for the uninstallation problems workaround.
    Attached Images Attached Images
    Last edited by Peturrr; March 2nd, 2008 at 06:54 PM. Reason: Updated instructions because of vmware server in the repos.

  2. #2
    Join Date
    Oct 2005
    Beans
    51
    Distro
    Ubuntu 6.06

    Re: HowTo: Windows (XP) on Ubuntu with VMWare Server

    Excelent how-to. I heard about VMWare in the past but I thought it was very dificult to install.

    For exemple, my wireless card works in windows, so this means that I can use my wireless network in Ubuntu with this?

    Can I install progrms in windows, shutdown the PC, turn on Ubuntu and VMWare and use that programs?

    Sorry the n00b questions

  3. #3
    Join Date
    Feb 2006
    Beans
    62

    Re: HowTo: Windows (XP) on Ubuntu with VMWare Server

    great guide,

    just let me add one thing. If you have the same problem I had with VMWare not starting. You can go to the terminal and type vmware hit enter and see if it claims about "libgcc.s.s0.1" and "libpng12.so.0" not being recognized. If so, just do the following:

    sudo cp /lib/libgcc_s.so.1 /usr/lib/vmware/lib/libgcc_s.so.1/

    and

    sudo cp /usr/lib/libpng12.so.0 /usr/lib/vmware/lib/libpng12.so.0/

    For some reason I had problem installing a virtual machine if I ran "vmware" so I always do:

    sudo vmware

    to run it as a super user (correct me if this is not a good policy please)

    Hope this was useful

    Cheers

    Mariano

  4. #4
    Join Date
    Oct 2005
    Location
    Netherlands
    Beans
    103
    Distro
    Ubuntu Development Release

    Re: HowTo: Windows (XP) on Ubuntu with VMWare Server

    Thanks for your comments and appreciation.

    @nomearod
    You won't be able to acces the programs you have already installed on your windows. The virtual windows machine will be a new windows install, that only is accesible with VMware software. You cannot boot it directly. you won't be able to use your internet in windows if it's not installed in Ubuntu. Also a scanner or other hardware will not run, since it is running above Ubuntu. You will still need to reboot to a real windows for that. Sorry.
    ==update== This appears to be not true. It is possible to boot an existing windows installation. This is not covered (yet) in the HOWTO

    @marianoi
    Running VMWare as super user doesn't seem be a good practice to me. But If that's the only way for you to start the stuff... So be it.
    Last edited by Peturrr; July 14th, 2006 at 08:33 AM.

  5. #5
    Join Date
    May 2006
    Beans
    37
    Distro
    The Feisty Fawn Testing

    Re: HowTo: Windows (XP) on Ubuntu with VMWare Server

    Quote Originally Posted by Peturrr
    Note
    Since this is free bèta software, It could be the case that in a few months it will not be free available anymore. In That case, you can always use the free VMWare player to acces your Virtual Machine.
    I wil try to find out if they intend to allow you using the beta software for free.
    VMWare has stated that VMWare Server will be a free product, just like VMWare player. They seem to be focussed on selling VMWare Workstation, and want to use Player and Server to get people hooked while competing with other products like VirtualPC.

  6. #6
    Join Date
    Feb 2006
    Beans
    62

    Re: HowTo: Windows (XP) on Ubuntu with VMWare Server

    It says something about not being able to modify a file (do not remember which one). So I tried with sudo vmware and it started. Now it is working fine

    Cheers

  7. #7
    Join Date
    Nov 2005
    Beans
    2,322
    Distro
    Ubuntu Intrepid Ibex (testing)

    Re: HowTo: Windows (XP) on Ubuntu with VMWare Server

    Very nice guide, thanks!

    I've been keen for some time to try VMWare on Ubuntu, but didn't have nerve to do
    it yet.

    I guess it's out of question to use already installed XP on VMWare ?

  8. #8
    Join Date
    Oct 2005
    Location
    Netherlands
    Beans
    103
    Distro
    Ubuntu Development Release

    Re: HowTo: Windows (XP) on Ubuntu with VMWare Server

    Quote Originally Posted by mlind
    I guess it's out of question to use already installed XP on VMWare ?
    I guess it is for now. It would be very hard to accomplish, but who knows, someday...

  9. #9
    Join Date
    May 2006
    Beans
    37
    Distro
    The Feisty Fawn Testing

    Re: HowTo: Windows (XP) on Ubuntu with VMWare Server

    Quote Originally Posted by mlind
    I guess it's out of question to use already installed XP on VMWare ?
    Is this what you mean? I haven't tried it, but it sounds cool.

    Has anyone tried the experimental D3D accelleration (possibly only available in VMWare Workstation)? I'm gonna give it a shot once I get my ati driver issues resolved

  10. #10
    Join Date
    Oct 2005
    Beans
    51
    Distro
    Ubuntu 6.06

    Re: HowTo: Windows (XP) on Ubuntu with VMWare Server

    Quote Originally Posted by Peturrr
    Thanks for your comments and appreciation.

    @nomearod
    You won't be able to acces the programs you have already installed on your windows. The virtual windows machine will be a new windows install, that only is accesible with VMware software. You cannot boot it directly. you won't be able to use your internet in windows if it's not installed in Ubuntu. Also a scanner or other hardware will not run, since it is running above Ubuntu. You will still need to reboot to a real windows for that. Sorry.
    For exemple:
    - I install Windows XP in Ubuntu with VMWare. Then install in my virtual XP some programs and drives. Can I use then everytime I want ? ( Under ubuntu and with VMWare )

Page 1 of 137 1231151101 ... 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
  •