Nov 24, 2009

VMware Server 1.0.7 on Ubuntu 8.10

After nearly a day long struggling to run my WinXp in Ubuntu, my mission is completed Now I can run the already installed XP Pro (in different partition) virtually in Linux. So no need for me to install the XP again. The good is, no more switching between OS and run Adobe software from the VMware Server. The bad is, slow and I'm still working on bridging the network. If using NAT I dont want to share same IP between host and guest host OS. Damn slow indeed.



I keep this note for my reference and share to all:

Download the dependencies and components


You’ll need to, of course, download the VMware Server .tar.gz file. This can be done using this command:


wget -c http://download3.vmware.com/software/vmserver/VMware-server-1.0.7-108231.tar.gz


There is also a patch to get this to compile properly. VMware has regularly been guilty of not keeping up with the latest kernels. This patch will help correct this problem:


wget -c http://www.insecure.ws/warehouse/vmware-update-2.6.27-5.5.7-2.tar.gz



And the one last thing we’ll need are the compiler tools, which can be installed using this command (or click the package name to use aptURL):


sudo aptitude install build-essential linux-kernel-headers xinetd


Now that we have all of the dependencies and archives downloaded we can unpack them. In the same location where you downloaded the .tar.gz files (likely your home folder or Desktop), run the following command:


tar xf vmware-update*.tar.gz

tar xf VMware-server*.tar.gz



Installing VMware Server 1.0.7 + patch


We’ll now start the installation. First we need to install the core vmware application. We’ll then patch the configuration script, and configure the system.


cd vmware-server-distrib/

sudo ./vmware-install.pl


On my installation I used the defaults until it asked me if I’d like to run the vmware-config.pl configuration script. At this point select [no].


Once this has finished and you’ve quit at the configuration option, use these commands to patch the config:



cd ../vmware-update*/

sudo ./runme.pl


This script will patch the configuration and then again ask you to run the vmware-config.pl configuration script. This time around select [yes]. On my installation I selected the defaults for the remaining questions and my installation works fine.



Running Your XP Partition Directly In Ubuntu Using VMware


This is a great thing to try and comes in handy if you still need to use Windows for those few things and want to find a way to do it without having to reboot over and over again.

Using VMware GSX its possible to create a virtual machine using a pre-existing windows disk/partition and boot that directly. Now I haven’t done any tests (yet), but if you try this and you see similar things let me know (comment), but I set this up and gave my Windows VM 800MB of ram. Now my machine has a total of 3GB ram but, and here’s whats really interesting. Loading my Windows XP VM seems 50x better speed wise then it does to boot into it directly without virtualization. Like I said I’ve not run any tests to confirm this but when it takes about a minute of the Windows XP is now loading screen compared to 10 seconds through the VM then it kinda gets you thinking. Taking into consideration the VM only has 800mb! and directly it has 3GB. Anyway, here’s how:

  • Install XP on a disk seperate to linux or dual boot off the same disk (I have to seperate disks, grub sitting on the linux disk)

  • Install VMware Server, in Ubuntu sudo apt-get install vmware-server

  • Once installed go back to Windows and create a new hardware profile:


    • Click StartControl PanelSystem


    • On the Hardware tab, select Hardware Profiles

    • Click Copy, and call your new hardware profile VMware.



  • Install the SCSI drivers (I didn’t do this initially, so when the VM would load Windows would just blue screen) http://download3.vmware.com/software/vmscsi-1.2.0.4.flp. You can extract the drivers using this http://america.winimage.com/download/winima80.exe. To install the drivers do the following:



    • Click StartControl PanelAdd Hardware and step through the wizard

    • Tell Windows you’ve already connected the hardware.

    • On the next screen, there’s a list of installed hardware. Go all the way down to the bottom and choose Add a new hardware device.

    • Choose to Install the hardware that I manually select from a list.


    • Next choose SCSI and RAID controllers. After, that, click Have Disk… and navigate to the drivers you extracted with WinImage.Windows will install the VMware SCSI driver.



  • Boot back into Ubuntu and start VMware Server Console from Application->System Tools

  • Select Create A New Virtual Machine:



    • Select Custom

    • Select your version of Windows (in my case XP Professional)

    • Leave the name default unless you want to change it

    • Default for the processor (one)

    • Make private, up to you I normally uncheck this (I’m the only user on my PC anyway)

    • Select the amount of RAM you want to give the virtual machine

    • Bridged networking normally suites


    • Buslogic For the SCSI controller

    • Select Use a physical disk (for advanced users)

    • Now depending how you set this up disk or partition will determine what you select here. If Linux and Windows are on seperate disks and Windows is still bootable without grub you can just select the entire Windows disk otherwise select individual partitions and select your windows and linux parition



  • After this you can customize the hardware of the VM if you like, remove floppy etc

  • Start the VM and boot into windows making sure to select the VMware hardware profile

  • Once loaded install the VMware tools, from the server console VM->Install VMware tools…


  • Once done reboot and enjoy


  • credit to: ubuntu-tutorials.com and Networkfoo.org




    2 comments :

    1. layan xp dlm linux.. susah ke bro?? aku tak pernah try lagi... aku layan linux dlm xp aje... selamba2 aje..

      ReplyDelete
    2. Yang ni , layan XP yg sedia ada, any changes dlm XP yang run kat VMware akan update kat actual Win XP OS. Kalau kat XP layan Linux cam VMware player, tu layan live CD, tak boleh save apa2. Ni tgh nak try kalau kat XP guest OS Linux yg sedia ada. Try la mungkin boleh reduce issue lab tak cukup kat kolej.

      ReplyDelete

    Related Posts with Thumbnails