PDA

View Full Version : HOWTO: Install Windows XP/2000 in VMWare Player


Pages : [1] 2

dryandplain
October 30th, 2005, 07:14 PM
This guide will allow you to install Windows XP or 2000 solely with the VMWare Player. For the uninitiated, VMWare released a free application that allows users to run, but not create virtual machines. Using QEMU, we will create an environment suitable for use with the player.

As a side-note, I'd like to point out that VMWare makes quality software. If you require additional functionality, consider upgrading to Workstation. For those curious, these actions are condoned by the developers as per this quote:

"We’re well aware of what people could potentially do, and we’ll live with the consequences. As you observe, Workstation has a lot of features that no amount of vi and dd hacking will replicate and these are what make Workstation worth buying (eg: Teams as you mention, or snapshots). I suspect that most people who go to the trouble are one’s who haven’t bought or wouldn’t buy Workstation anyway."

Installing the player itself involves some patience. Get the Linux tar from this page (http://www.vmware.com/download/player/). Most of my instructions will be shamelessly ripped from this lovely tutorial (http://www.ubuntuforums.org/showthread.php?t=65638). Fire up a root terminal and do:

apt-get install build-essential
uname -r
apt-get install linux-headers-'kernel version'
apt-get install gcc-3.4
apt-get install g++-3.4

Now that the initial dependencies have been met, let's continue.

tar xvzf VMware-player-1.0.0-16981.tar.gz
cd vmware-player-distrib
export CC=/usr/bin/gcc-3.4
./vmware-install.pl

The installer has an unusually high number of prompts, all of which can be answered the default "yes" to by hitting enter. After hitting enter a few dozen times and agreeing to the license, everything should install successfully. If you're having problems installing the actual player, that other guy might be more qualified to diagnose it than I am. Moving along...

There are two components to a virtual machine, the hard drive image and a text file that VMWare interprets. First, we'll create an image with QEMU.

I know this sounds a little odd, but I couldn't get the QEMU command used to generate the disk working from the Linux port. Fortunately, the utility works fine with the Windows port under Wine. I can't really bothered to delve into the specifics of installing Wine other than suggesting:

apt-get install wine

Then download and install the Windows version of QEMU (http://free.oszoo.org/ftp/qemu/win32/release/QemuInstall-0.7.2.exe). Execute it from a command line as follows:

wine qemu-img.exe create -f vmdk WindowsXPPro.vmdk 2G Formating 'WindowsXPPro.vmdk', fmt=vmdk, size=2097152 kB

This will generate a 320k file which is a usable blank drive. Create a new folder to contain our files and name this guy either WindowsXPPro.vmdx or Windows2000Pro.vmdx accordingly.

You now have the choice to install XP or 2000. On my 1.2ghz/512mb system Windows 2000 runs considerably more responsively; your choice. As per the other tutorial, we should be able to insert our CD and go after the following. But in my case, neither my bootable XP or 2000 CD had any interest in well, booting. I'd suspect I'm not the only one with this concern, so we'll play with ISO images instead.

apt-get install gnomebaker

After inserting your original Windows disc, load Gnomebaker, choose "Copy Data CD," and tick the "Create ISO only" box. Save the resulting ISO as either WindowsXPPro.iso or Windows2000Pro.iso to the folder we just created. If the processes ever freezes 99%, feel free to "killall gnomebaker" without concern.

Unfortunately, our ISO image will not have the bootable sector intact. We'll instead boot from a series of floppy images. My Windows 2000 disc included them in a "bootdisk" folder, whereas XP did not. For 2000, copy the four img files from it to our created folder.

With XP, you'll need some additional nonsense. Hunt down an appropriate set from Microsoft for your version of XP, and do the following:

apt-get install cabextract
cabextract 'nameofarchive.exe' -d 'our working directory'

Deleted the non-img extracted files.

Now that we have a matching ISO and floppy set, we're ready to proceed with installation. Paste one of the following to a text editor (gedit/leafpad) and save it as either WindowsXPPro.vmx or Windows2000Pro.vmx to our directory:

Windows XP:

#!/usr/bin/vmware
config.version = "8"
virtualHW.version = "3"
ide0:0.present = "TRUE"
ide0:0.filename = "WindowsXPPro.vmdk"
memsize = "192"
MemAllowAutoScaleDown = "FALSE"
ide1:0.present = "TRUE"
ide1:0.fileName = "WindowsXPPro.iso"
ide1:0.deviceType = "cdrom-image"
ide1:0.autodetect = "TRUE"
floppy0.fileType = "file"
floppy0.fileName = "cdboot1.img"
floppy0.startConnected = "True"
ethernet0.present = "TRUE"
usb.present = "TRUE"
sound.present = "TRUE"
sound.virtualDev = "es1371"
displayName = "Windows XP Pro"
guestOS = "winxppro"
nvram = "WindowsXPPro.nvram"
MemTrimRate = "-1"
ide0:0.redo = ""
ethernet0.addressType = "generated"
uuid.location = "56 4d cd 3f 59 5b 61 43-fd 73 ef 46 56 4c 23 7b"
uuid.bios = "56 4d cd 3f 59 5b 61 43-fd 73 ef 46 56 4c 23 7b"
ethernet0.generatedAddress = "00:0c:29:4c:23:7b"
ethernet0.generatedAddressOffset = "0"
tools.syncTime = "TRUE"
ide1:0.startConnected = "TRUE"
uuid.action = "create"
checkpoint.vmState = "WindowsXPPro.vmss"
tools.remindInstall = "TRUE"

Windows 2000:

#!/usr/bin/vmware
config.version = "8"
virtualHW.version = "3"
ide0:0.present = "TRUE"
ide0:0.filename = "Windows2000Pro.vmdk"
memsize = "192"
MemAllowAutoScaleDown = "FALSE"
ide1:0.present = "TRUE"
ide1:0.fileName = "Windows2000Pro.iso"
ide1:0.deviceType = "cdrom-image"
ide1:0.autodetect = "TRUE"
floppy0.fileType = "file"
floppy0.fileName = "CDBOOT1.IMG"
floppy0.startConnected = "True"
ethernet0.present = "TRUE"
usb.present = "TRUE"
sound.present = "TRUE"
sound.virtualDev = "es1371"
displayName = "Windows 2000 Pro"
guestOS = "win2000pro"
nvram = "Windows2000Pro.nvram"
MemTrimRate = "-1"
ide0:0.redo = ""
ethernet0.addressType = "generated"
uuid.location = "56 4d cd 3f 59 5b 61 43-fd 73 ef 46 56 4c 23 7b"
uuid.bios = "56 4d cd 3f 59 5b 61 43-fd 73 ef 46 56 4c 23 7b"
ethernet0.generatedAddress = "00:0c:29:4c:23:7b"
ethernet0.generatedAddressOffset = "0"
tools.syncTime = "TRUE"
ide1:0.startConnected = "TRUE"
uuid.action = "create"
checkpoint.vmState = "Windows2000Pro.vmss"
tools.remindInstall = "TRUE"

Double click on the resulting file, and Windows should start to install. The only screwiness left at this point is that we'll need to swap floppy images. When prompted, click on the floppy icon to "eject" the drive. In Nautilus, rename cdboot1.img to cdboot01.img and cdboot2.img to cdboot1.img, then click the floppy icon again to continue. It may sound a little strange, but you're essentially renaming the images to match that of the first file when it wants it. You'll get the hang of it, promise.

Once the floppies have done their thing, the ISO will take over and Windows will install normally.

Sorry about the length of this. If I had web hosting, I could've posted many of these files and shaved off a few steps. I'll try my best to answer any questions that may come up, but concede that my level of Linux know-how is only intermediate.

Here's a screeny for encouragement (http://i24.photobucket.com/albums/c35/dryandplain/ps8.png)! :D

Take care,
-Kyle

sethmahoney
November 2nd, 2005, 08:38 PM
Thanks a lot! Works great, except, is it normal for the part of the install where Windows detects and installs all your hardware to take a REALLY long time?

sethmahoney
November 3rd, 2005, 01:13 AM
Any ideas on how to bump the resolution above 640 x 480? The only video driver included for Windows 2000 is a VGA driver...

yabbadabbadont
November 3rd, 2005, 06:22 PM
If you have downloaded the Win2k video driver for your card, try installing it inside the Win2k that is running under VMWare.

I don't know if it will work as I'm currently in the process of setting this up myself.

kaamos
November 3rd, 2005, 06:44 PM
Thanks for the howto!

I'd suspect I'm not the only one with this concern, so we'll play with ISO images instead.

apt-get install gnomebaker

After inserting your original Windows disc, load Gnomebaker, choose "Copy Data CD," and tick the "Create ISO only" box. Save the resulting ISO as either WindowsXPPro.iso or Windows2000Pro.iso to the folder we just created. If the processes ever freezes 99%, feel free to "killall gnomebaker" without concern.


A bit simpler way to do this: Insert the windows cd and run (no need to be root):
cat /dev/cdrom > WindowsXPPro.iso

zachtib
November 3rd, 2005, 08:12 PM
nice, i assume i can increase the size of the virtual drive by changing this line:
wine qemu-img.exe create -f vmdk WindowsXPPro.vmdk 2G Formating 'WindowsXPPro.vmdk', fmt=vmdk, size=2097152 kB
to make a larger drive?

yabbadabbadont
November 4th, 2005, 02:17 AM
If you have downloaded the Win2k video driver for your card, try installing it inside the Win2k that is running under VMWare.

I don't know if it will work as I'm currently in the process of setting this up myself.
OK, I found in the manual that you have to install the VMWare tools for the guest OS in order to use better (faster, higher resolution) graphics. I don't know if the vmware player supports this option, but in the 30-day eval of vmware workstation, you choose VM->Install VMware Tools from the menu while the virtual machine is powered on. Then you can choose a higher screen resolution. The help files also say that the new SVGA device is faster too.

yabbadabbadont
November 4th, 2005, 02:19 AM
nice, i assume i can increase the size of the virtual drive by changing this line:
wine qemu-img.exe create -f vmdk WindowsXPPro.vmdk 2G Formating 'WindowsXPPro.vmdk', fmt=vmdk, size=2097152 kB
to make a larger drive?

If you run "wine qemu-img.exe /?" you will see that only the first part of that string is the actual command. The last half, everything after "2G" is probably what the command prints out on the screen. You should just be able to change the "2G" to whatever size in gigabytes you want.

zachtib
November 4th, 2005, 10:33 AM
yep, worked great, now for another question.
i installed samba on ubuntu to share a folder with Windows running in VMWare, in case the virtual hard drive fills up, i can move files onto my main hard drive. when my laptop is plugged into the network, this works fine, but when i am disconnected, Ubuntu and XP in VMware cannot see each other. is there a way to create a virtual network incuding the host OS and the guest OS so they will always be connected?

Wombley
November 4th, 2005, 08:51 PM
Most probably the reason you couldn't create the images with linux qemu is that the capability to create VMDK images was only added in 0.71, and ubuntu's version is still at 0.70. 0.72 (binary from http://fabrice.bellard.free.fr/qemu/download.html works fine. You also dont need to do all that with the floppy disks, at least for Windows 2000, at least if you make the cdrom image with the command dd if=/dev/cdrom of=Windows2000Pro.iso (although gnomebaker should work just as well) - just press escape when booting vmplayer and select cdrom to boot from it - you can remove all the floppy related stuff from the config file.

In response to zachtib, I believe what you want is host-only networking - it bridges the hosts connection to the network by default (you may have success just selecting host-only networking from the ethernet submenu under Devices in player, I don't know) - I haven't tried this myself but there's docs for workstation that'll probably give you an idea at http://www.vmware.com/support/ws5/doc/ws_net.html

reedlaw
November 4th, 2005, 09:37 PM
I used the defaults for all of the questions in the VMWare Player install, but I can't get networking working in my virtual Windows. Do I need to assign an IP address to the virtual machine? If so, what is my gateway IP address?

BLTicklemonster
November 5th, 2005, 10:43 AM
So, I will attempt this later, but in the meantime, allow me to ask the one central question that will determine whether I will actually do this or not:


If I do this, will I be able to run ANY app that windows runs?

BLTicklemonster
November 5th, 2005, 05:07 PM
... like I'd wait for an answer, especially with asshats messing with the server.

So I get this error:

Trying to find a suitable vmmon module for your running kernel.

None of the pre-built vmmon modules for VMware Virtual Machine Player is
suitable for your running kernel. Do you want this program to try to build the
vmmon module for your system (you need to have a C compiler installed on your
system)? [yes]

Using compiler "/usr/bin/gcc-3.4". Use environment variable CC to override.

What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include]

The path "/usr/src/linux/include" is not an existing directory.



What do I do?


*edit:

Okay, I restarted terminal, sudo mkdir my way to having the /linux/include directory, went at it again, and viola!!!

Trying to find a suitable vmmon module for your running kernel.

None of the pre-built vmmon modules for VMware Virtual Machine Player is
suitable for your running kernel. Do you want this program to try to build the
vmmon module for your system (you need to have a C compiler installed on your
system)? [yes]

Using compiler "/usr/bin/gcc". Use environment variable CC to override.

Your kernel was built with "gcc" version "3.4.5", while you are trying to use
"/usr/bin/gcc" version "4.0.2". This configuration is not supported and VMware
Virtual Machine Player cannot work in such configuration. Please either
recompile your kernel with "/usr/bin/gcc" version "4.0.2", or restart
/usr/bin/vmware-config.pl with CC environment variable pointing to the "gcc"
version "3.4.5".

For more information on how to troubleshoot module-related problems, please
visit our Web site at "http://www.vmware.com/download/modules/modules.html" and
"http://www.vmware.com/support/reference/linux/prebuilt_modules_linux.html".

Execution aborted.

bill@ubuntumonster:~/vmware-player-distrib$


So I guess I remove 4.0.2, and put in 3.4.5, and start over...


*edit again:

No wait, if I do that, I lose tons of stuff.

Now what?

Wombley
November 5th, 2005, 05:43 PM
You need to install everything from the initial instructions - linux-headers will provide /usr/src/linux/include, and once you install gcc 3.4.5 (alongside 4.0.2 - they can coexist) and type the export CC=/usr/bin/gcc-3.4 line it'll work.

zachtib
November 5th, 2005, 05:43 PM
just install gcc-3.4 alongside 4.x, then use sxport CC=/usr/bin/gcc-3.4 before installing

Wombley
November 5th, 2005, 06:14 PM
Getting video to work above 640x480/16 colours (tested in 2000):


Get the windows vmware tools from http://www.vmware.com/support/kb/enduser/std_adp.php?p_faqid=920
Set the ISO image as the cdrom source in the .vmx file
Install the tools. Ignore the warning about the SVGA driver
In add new hardware, select graphics card and select from list, and have disk
Select the video/winnt2k folder under the cdrom drive
Ignore warnings and install
Select a higher resolution from display properties
(Hopefully) done


Also - simple way to get networking working: select NAT from the Ethernet menu in vmplayer

BLTicklemonster
November 5th, 2005, 08:44 PM
Trying to find a suitable vmmon module for your running kernel.

None of the pre-built vmmon modules for VMware Virtual Machine Player is
suitable for your running kernel. Do you want this program to try to build the
vmmon module for your system (you need to have a C compiler installed on your
system)? [yes]

Using compiler "/usr/bin/gcc-3.4". Use environment variable CC to override.

What is the location of the directory of C header files that match your running
kernel? [/usr/src/linux/include]

The path "/usr/src/linux/include" is an existing directory, but it does not
contain a "linux" subdirectory as expected.


well, it tried to use gcc-3.4, but it couldn't find a linux subdirectory. why is it saying I don't have /usr/src/linux/include? Is there something I should have before even doing this that I don't now about?

Wombley
November 6th, 2005, 02:40 AM
You MUST install the linux-headers-386 package to compile the kernel module - this will create the /usr/src/linux/include directory for you, and put all the files you need in it.

BLTicklemonster
November 6th, 2005, 10:37 AM
So far so good. So that may need to be added to the first post, along with adding sudo to:

tar xvzf VMware-player-1.0.0-16981.tar.gz
cd vmware-player-distrib
export CC=/usr/bin/gcc-3.4
sudo ./vmware-install.pl

because mine wouldn't let me ./vmware~ without it.

BLTicklemonster
November 6th, 2005, 10:49 AM
Okay, what else is there I'm supposed to know about?

bill@ubuntumonster:~$ wine qemu-img.exe create -f vmdk WindowsXPPro.vmdk 2G Formating 'WindowsXPPro.vmdk', fmt=vmdk, size=2097152 kB
wine: cannot find 'qemu-img.exe'


qemu is installed. Wine is installed. The previous step worked once I was told to have the linux headers. Is there something I'm supposed to have?

*edit:

I tried

wine c:\Program Files\Qemuqemu-img.exe create -f vmdk WindowsXPPro.vmdk 2G Formating 'WindowsXPPro.vmdk', fmt=vmdk, size=2097152 kB
and

wine c:\Program_Files\Qemu\qemu-img.exe create -f vmdk WindowsXPPro.vmdk 2G Formating 'WindowsXPPro.vmdk', fmt=vmdk, size=2097152 kB

and get errors saying it can't find anything.

I used winefile, and yes, it's there alright. But I can't get it to work. I feel like I'm soooo close.


*edit:

I can browse to most .exe files and double click them and they will open courtesy of wine, but nothing in the Qemu directory will. Do I have to enable Qemu as I had to enable the nvidia drivers (which messed me up bigtime for ever, let me tell you) before it will work? Perhaps killall gnome-panel? Restart? Throw money at it? Sacrifice a burnt offering?

BLTicklemonster
November 6th, 2005, 12:04 PM
Installing with Qemu using the following:

dd of=hd.img bs=1024 seek=3000000 count=0



qemu -hda /home/bill/hd.img -cdrom /home/bill/Desktop/WindowsXPPro/winxppro.iso -boot d -m 512 -user-net

just to be doing something until someone comes along with an answer lol.

ranf
November 6th, 2005, 12:27 PM
wine c:\Program Files\Qemuqemu-img.exe create -f vmdk WindowsXPPro.vmdk 2G Formating 'WindowsXPPro.vmdk', fmt=vmdk, size=2097152 kB
wine "c:\Program Files\Qemu\qemu-img.exe" create -f vmdk WindowsXPPro.vmdk 2G
Note the quotes (") around the pathname.

BLTicklemonster
November 6th, 2005, 12:32 PM
I don't know why, but it usually, on the error messages, leaves out the \ marks. I did put them in originally.

I have seen it come back with no \ marks at all. That one time, it did have some, though. Really odd.

BLTicklemonster
November 6th, 2005, 02:15 PM
wine "c:\Program Files\Qemu\qemu-img.exe" create -f vmdk WindowsXPPro.vmdk 2G
Note the quotes (") around the pathname.
:) :) :) okay.



*edit:

Okay, that worked. Now I go to the folder with the image and the floppy image files in it, and I double click on the vmx file, and I get this:


http://www.hawkwinds.com/tickle/novmdk.jpg

Now my question is, at this point:


wine qemu-img.exe create -f vmdk WindowsXPPro.vmdk 2G Formating 'WindowsXPPro.vmdk', fmt=vmdk, size=2097152 kB

This will generate a 320k file which is a usable blank drive. Create a new folder to contain our files and name this guy either WindowsXPPro.vmdx or Windows2000Pro.vmdx accordingly.



Exactly where was I supposed to create a new folder, and how, and why does this nifty how to not specify stuff for beginners if it is accessible to beginners?

I have been beating my head against Linux for 3 years because people refuse to give specific information. I dealt with instructors in school who couldn't teach their way out a paper bag, yet they were being paid to be teachers. Janitors should be paid more than instructors, and teachers should be at the top. No wait, Janitors would be better teachers, I bet, than any "instructor" I ever had.

That was my rant for the moment.

Now back to qemu. Yay, it installed. But how do I bring it back up again once I close XP? And if I want to install anything to XP in Qemu, how do I get it to see the cdrom? At present, it's stuck showing the xp installation cd, no matter if I restart xp or not. Of course I won't be able to do anything until I get back to xp, which I can't do because nothing I have found relating to using qemu was written by a non instructor mentality person.

There I go ranting again.

Come on people, be specific. I should not have had to been asking all these questions. Shoot, the entire freaking planet would be using LInux if you all would just be specific.

kashms
November 6th, 2005, 06:29 PM
Why just not run win2000 or winXP using qemu? Are there any performance gains when using the VMware Player?

yabbadabbadont
November 6th, 2005, 06:43 PM
BLTicklemonster
Come on people, be specific. I should not have had to been asking all these questions. Shoot, the entire freaking planet would be using LInux if you all would just be specific.


<begin rant>No, you shouldn't have had to been asking all of those questions. If you had read and followed *all* the instructions in the first post, as well as the other messages on the first page, you would realize that most of your questions had already been answered before you posted your first question. If you have been using Linux for 3 years, and yet still ask questions such as these, then perhaps the problem doesn't lie with those of us who donate our time (and patience) answering questions for those who are less knowledgeable. If you are going to ask for help, which no one is under any obligation to provide, then you should at least be polite about it.</end rant>

I apologize to everyone else who wasted time reading this post.

Wombley
November 6th, 2005, 07:26 PM
The new folder was to contain all the .vmx, .vmdx and other files vmware creates. This can be made and named anything you want, eg /home/username/win2000 or similar. You then put all the files you need to create in this folder, for example the .vmdx file you create with qemu. The problem you're presently having is that you either copied the wrong .vmx file from the original post (winxp instead of win2000 or vice versa) or you didn't change the filename to Windows2000Pro.vmdx when using qemu (if you're trying to use windows 2000). Create the file with the right name and it should work.

The advantage of using VMWare is that it's significantly faster than qemu (even with the kqemu accelerator module - I've heard figures like 90% of native performance for VMWare, although I can't remember where right now, but it does seem about that fast, whereas I noticed very little difference from normal qemu with kqemu).

BLTicklemonster
November 6th, 2005, 07:46 PM
I made two, one for xp, one for 2000. Neither work.

BLTicklemonster
November 6th, 2005, 07:49 PM
BLTicklemonster


<begin rant>No, you shouldn't have had to been asking all of those questions. If you had read and followed *all* the instructions in the first post, as well as the other messages on the first page, you would realize that most of your questions had already been answered before you posted your first question. If you have been using Linux for 3 years, and yet still ask questions such as these, then perhaps the problem doesn't lie with those of us who donate our time (and patience) answering questions for those who are less knowledgeable. If you are going to ask for help, which no one is under any obligation to provide, then you should at least be polite about it.</end rant>

I apologize to everyone else who wasted time reading this post.

Thank you for your reply. I you assume I've been using linux for 3 years because you read that into it. I've been trying to use linux for 3 years. Big difference. Also, re-read. The answers I've gotten have gotten me this far.

No apology. And trust me, this is polite.
Now are you going to help, or sit up in the monkey gallery tossing peanuts?

BLTicklemonster
November 6th, 2005, 08:38 PM
Why just not run win2000 or winXP using qemu? Are there any performance gains when using the VMware Player?
I installed xp with qemu, and it is nice, but now that I closed it, I cant find how to open it again, nor can I find info on how to install anything with xp in qemu.

I'm just having a ball here.

twowheeler
November 6th, 2005, 09:30 PM
You guys rock! This is perfect.

Wombley
November 6th, 2005, 11:27 PM
I made two, one for xp, one for 2000. Neither work.

OK, step by step. I'll assume you're making a windows 2000 disk, if not replace all Windows2000Pro references with WindowsXPPro, and the guestOS parameter in the .vmx file to winxppro. Ill also assume you've already got VMWare player installed properly:

Start a terminal, use mkdir to create a folder to keep the files in. Make sure (from synaptic) that the linux version of qemu IS NOT installed. Get the latest version from http://fabrice.bellard.free.fr/qemu/qemu-0.7.2-i386.tar.gz .


cd /
sudo tar -zxf /path/to/downloaded/qemu.tar.gz
cd ~/folderyoucreated
qemu-img create -f vmdk Windows2000Pro.vmdk 2G Formating 'Windows2000Pro.vmdk', fmt=vmdk, size=2097152 kB


Put your windows cd in the drive (assuming first cdrom drive)

sudo dd if=/dev/cdrom of=Windows2000ProCD.iso

Create a new text file called Windows2000Pro.vmx in your folder. Copy and paste the following into it:

#!/usr/bin/vmware
config.version = "8"
virtualHW.version = "3"
ide0:0.present = "TRUE"
ide0:0.filename = "Windows2000Pro.vmdk"
memsize = "192"
MemAllowAutoScaleDown = "FALSE"
ide1:0.present = "TRUE"
ide1:0.fileName = "Windows2000ProCD.iso"
ide1:0.deviceType = "cdrom-image"
ide1:0.autodetect = "TRUE"
floppy0.startConnected = "False"
ethernet0.present = "TRUE"
usb.present = "TRUE"
sound.present = "TRUE"
sound.virtualDev = "es1371"
displayName = "Windows 2000 Pro"
guestOS = "win2000pro"
nvram = "Windows2000Pro.nvram"
MemTrimRate = "-1"
ide0:0.redo = ""
ethernet0.addressType = "generated"
uuid.location = "56 4d cd 3f 59 5b 61 43-fd 73 ef 46 56 4c 23 7b"
uuid.bios = "56 4d cd 3f 59 5b 61 43-fd 73 ef 46 56 4c 23 7b"
ethernet0.generatedAddress = "00:0c:29:4c:23:7b"
ethernet0.generatedAddressOffset = "0"
tools.syncTime = "TRUE"
ide1:0.startConnected = "TRUE"
uuid.action = "create"
checkpoint.vmState = "Windows2000Pro.vmss"
tools.remindInstall = "TRUE"

Save. In your terminal type vmplayer Windows2000Pro.vmx
You should now be able to install windows. When you wish to run it again afterwords use the same command.

BLTicklemonster
November 7th, 2005, 12:32 AM
The stuff I did is in red. Trying to show where I tried to follow step by step.

OK, step by step. I'll assume you're making a windows 2000 disk, if not replace all Windows2000Pro references with WindowsXPPro, and the guestOS parameter in the .vmx file to winxppro. Ill also assume you've already got VMWare player installed properly:

Start a terminal, use mkdir to create a folder to keep the files in. sudo mkdir /home/bill/Windows2000Pro Make sure (from synaptic) that the linux version of qemu IS NOT installed done. Get the latest version from http://fabrice.bellard.free.fr/qemu/qemu-0.7.2-i386.tar.gz .
I downloaded it to /home/bill/

cd /
sudo tar -zxf /path/to/downloaded/qemu.tar.gz
sudo tar -zxf /home/bill/qemu-0.7.2-i386.tar.gz
cd ~/folderyoucreated
cd /home/bill/Windows2000Pro
qemu-img create -f vmdk Windows2000Pro.vmdk 2G Formating 'Windows2000Pro.vmdk', fmt=vmdk, size=2097152 kB


bill@ubuntumonster:~$ cd /home/bill/Windows2000Pro
bill@ubuntumonster:~/Windows2000Pro$ qemu-img create -f vmdk Windows2000Pro.vmdk 2G Formating 'Windows2000Pro.vmdk', fmt=vmdk, size=2097152 kB
bash: qemu-img: command not found



See what I mean?


Even going to the ludicrous extreme of extracting qemu to /home/bill/Windows2000Pro, and doing this:

bill@ubuntumonster:~$ cd /home/bill/Windows2000Pro/usr/local/bin/
bill@ubuntumonster:~/Windows2000Pro/usr/local/bin$ qemu-img create -f vmdk Windows2000Pro.vmdk 2G Formating 'Windows2000Pro.vmdk', fmt=vmdk, size=2097152 kB

I get this:

bash: qemu-img: command not found


So I've tried everything I can think of. I'm stumped.


Huh, shouldn't it have originally put qemu files in /usr/local/bin/? I'm there, and there aren't any.

BLTicklemonster
November 7th, 2005, 12:57 AM
God All Mighty.

I just got through Chowning my way all the way through putting qemu into /usr/local yada yada yada.



*edit:

Arrrrgh:

Network boot from AMD Am79c970A
Copyright (C) 2003-2005 VMware, Inc.
Copyright (c) 1997-2000 Intel Corporation

CLIENT MAC ADDR: blah blah blah
PXE-E53: No boot filename received

PXE-M0F: Exiting Intel PXE ROM.
Operating System not found

... well, at least I got past that part.

BLTicklemonster
November 7th, 2005, 01:09 AM
So what's to stop me from just putting in a cd and pressing CD-ROM from the vmware window and installing from there?

chronusdark
November 7th, 2005, 01:10 AM
how would i configure it so the virtual machine would just use my cdrom instead?

BLTicklemonster
November 7th, 2005, 01:12 AM
Follow this all the way through, and when you get stuck where i was just now, have the cd in the tray, and click cd-rom from the tool bar in vmware, lol. That's what I'm doing now. Probably will blow mine and your machines up though. I'd wait for some answers first before ever following me down the road to destruction, though.


(god it's slow as christmas, but then I'm doing winxp now instead of 2000. seems like the dude who started this thread said 2000 was faster...)

Once I get it on there, I wonder how I'll ever bring it back up? And if I get it back, how do I use it to install stuff? Will it be just like using plain old xp? Will it recognize cds I put in? Will it go online and get infected so I don't feel like its like "not really xp"?
j/k

BLTicklemonster
November 7th, 2005, 02:32 AM
http://www.hawkwinds.com/tickle/xpinlinux.jpg

Okay, so I'm sloppy, and it says it's Windows 2000 Pro. But it's working. And it goes online.


Okay, I closed it. Where'd it go? lol

I now have t xps. one in qemu, the other one in vmware. Neither one would see what I had put in the cd tray, so other than uploading the entire contents of a cd to my web site, downloading it and installing it like that, (if i can ever get either up again) what do I do?

Wombley
November 7th, 2005, 03:09 AM
I get this:

bash: qemu-img: command not found


So I've tried everything I can think of. I'm stumped.


Huh, shouldn't it have originally put qemu files in /usr/local/bin/? I'm there, and there aren't any.

You didn't perform the cd / command at the beginning, therefore it would have extracted the files to the directory you were in at the time. The reason it wouldn't work when you extracted it into your Windows2000Pro directory was that Ubuntu doesn't have the current directory in the search path by default - you'd have to have used ./qemu-img in this case. Sorry about the boot thing, forgot to say press escape when its booting to boot from CD. Bringing it back up is just the same way you installed it, just vmplayer /path/to/Windows2000Pro.vmx - and you can install pretty much any windows application on it and it should work like normal (with the exception of games etc which use a lot of 3d graphics). And yes, it is perfectly capable of being infected :)

To get the CD working, edit the .vmx file and replace these four lines:

ide1:0.present = "TRUE"
ide1:0.fileName = "Windows2000ProCD.iso"
ide1:0.deviceType = "cdrom-image"
ide1:0.autodetect = "TRUE"

With these three:

ide1:0.present = "TRUE"
ide1:0.fileName = "auto detect"
ide1:0.deviceType = "cdrom-raw"

BLTicklemonster
November 7th, 2005, 07:35 AM
Bringing it back up is just the same way you installed it, just vmplayer /path/to/Windows2000Pro.vmx - and you can install pretty much any windows application on it and it should work like normal (with the exception of games etc which use a lot of 3d graphics). And yes, it is perfectly capable of being infected :)


Thanks. When I do that, I get
Non-System disk of disk error
Replace and press any key when ready.

Im not goiing to have to install it each time I try to use it am I?

mapman
November 7th, 2005, 09:41 AM
I had the same problem too. Apparently vmware player is looking for your CDBOOT1.IMG, remnants of the install. To avoid this you could click on the floppy button on the top of the player window to disable the floppy, then enter twice to enter the windows startup....or edit the vmx file from floppy0.startConnected = "True" to floppy0.startConnected = "false". Hope that helps. Is there a link for possible vmx options, anyone?;)

Now I have a question...is their any quick way to increase the resolution? I tried previous steps of installing the video adapter driver from the vmtools iso but to no avail. Any suggestions...anybody?;)

BLTicklemonster
November 7th, 2005, 09:48 AM
Thanks, I'll try that this evening. I wonder about higher resolution, too.


(I deleted what I did this morning, going to start from scratch tonight, see if things go better)

Wombley
November 7th, 2005, 11:53 AM
Thanks. When I do that, I get
Non-System disk of disk error
Replace and press any key when ready.

Im not goiing to have to install it each time I try to use it am I?

You shouldn't have to reinstall it... - did you change the boot order in the virtual bios? If so change it back, or use escape on each boot and select the hard disk.

BLTicklemonster
November 7th, 2005, 12:23 PM
You shouldn't have to reinstall it... - did you change the boot order in the virtual bios? If so change it back, or use escape on each boot and select the hard disk.
I ... um ... look, I'm dumb, so if you would, talk down to me like I'm an idiotard, please? Like honestly, really, when you tell me stuff, if you don't mind, please list actions and methods. I have a gazillion things I'm attempting to do all at the same time, between working on a totally new way of doing things in UT, to mapping for these changes, to trying to get unrealed to work in ubuntu, my mind's scattered and it's tough on me trying to keep up with stuff. I was lucky to remember the chwon stuff I'd not have had to do if I were paying attention, that and remembering to sudo back there in the beginning when I was paying attention, lol.

I'm afraid though, that if windows in vmware won't get me using unrealed, then I'll have to either say g'bye to ubuntu or dual boot.

Hey, can I run an entire HD in vmware? Like slave my XP drive, and run it in vmware? That would be way easier than what we're doing here. Of course dual booting would be easier, but every time I've asked and been told how to set up dual booting two hard drives, I've not understood it well enough to do it. Once again, it's been "do this", not "go here, and do this here, then that there, moronmonster", which trust me, would be better. I may not be the brightest french fry on the apple tree, but once I get something figured out, I usually raise cain at it. It's just getting there that is the hard part for me.

Wombley
November 7th, 2005, 12:37 PM
I believe it's possible with VMWare Workstation, but I think its a bit complex and I'm not sure if it works with Player. Try the following:

vmplayer Windows2000Pro.vmx
As soon as it starts booting click inside the window to capture the mouse and press F2
Press the right key 4 times to get to the Boot menu in the BIOS
Use the down key to select the Hard Disk option
Press the + key until the Hard Disk option is at the top
Press F10 to save changes, and press Enter to confirm
Wait as it reboots, and hope that windows comes up...

BLTicklemonster
November 7th, 2005, 12:44 PM
Thanks, I'll give it a go tonight. ;)

kashms
November 7th, 2005, 06:25 PM
Getting video to work above 640x480/16 colours (tested in 2000):


Get the windows vmware tools from http://www.vmware.com/support/kb/enduser/std_adp.php?p_faqid=920
Set the ISO image as the cdrom source in the .vmx file
Install the tools. Ignore the warning about the SVGA driver
In add new hardware, select graphics card and select from list, and have disk
Select the video/winnt2k folder under the cdrom drive
Ignore warnings and install
Select a higher resolution from display properties
(Hopefully) done


Also - simple way to get networking working: select NAT from the Ethernet menu in vmplayer

I downloaded the file and edited the vmx file so it reads:
ide1:0.fileName = "windows.iso"

but how do I actually install the tools?

mapman
November 7th, 2005, 07:38 PM
You can install the tools by entering into the OS through VMPlayer then accessing the ide1 drive or in my case it was D: drive, then proceed from there to install it.

I wasn't able to increase the resolution using these steps after installing the tools however....let me know how you do if you can though. Thanks.;)

kashms
November 7th, 2005, 08:44 PM
Double clicking the vmware tools in "My Computer" (Drive D:) yields a setup.exe error:

"The application failed to initialize properly (0xc0000006). Click on OK to terminate the application"

Is this normal?

twowheeler
November 7th, 2005, 11:56 PM
Hmm, well, I have hit a roadblock. Everything seems to work well except for two things: sound and printing. Both of these are USB devices on my machine. Sound I can live without, but I gotta have access to the printer. There are *lots* of "my usb printer won't work" posts on the vmware forums, so I am not alone. I am still working at it, and will post if I figure it out.
;)

Edit: Ok, I got it. I had to edit the Windows2000Pro.vmx file to remove the settings that look like this:
usb.autoConnect.device0 = "path:2/1 autoclean:1"
usb.autoConnect.device1 = "path:1/1/2 autoclean:1"
These were apparently added automatically as I played with the USB device buttons. The problem appears to be that vmware is too smart -- it knows how to access and use the USB hardware directly, but that usually creates a problem for the host device drivers. In my case, I noticed that after running the vm, I had no sound or printer access until a reboot. People in the vmware forums seem to be trying to unload their linux printer module before vmware starts, running the vm, and then reloading the host module to get access back to the host. Life's too short for that. If you disable direct access to the USB devices, then by default it will use the host drivers. I was able to install an adobe postscript printer driver in the windows guest, and point it to the samba printer. It works perfectly. I have sound back too.

Lesson learned: once you get it going, don't click on any usb device buttons. It might be even better to change usb.present = "TRUE" to usb.present = "FALSE" if you can live without direct access to usb, although I have not tried that yet.

BLTicklemonster
November 8th, 2005, 12:29 AM
I had the same problem too. Apparently vmware player is looking for your CDBOOT1.IMG, remnants of the install. To avoid this you could click on the floppy button on the top of the player window to disable the floppy, then enter twice to enter the windows startup....or edit the vmx file from floppy0.startConnected = "True" to floppy0.startConnected = "false". Hope that helps. Is there a link for possible vmx options, anyone?;)

Now I have a question...is their any quick way to increase the resolution? I tried previous steps of installing the video adapter driver from the vmtools iso but to no avail. Any suggestions...anybody?;)
woot woot. Now on to resolution... yikes!!!

BTW, how do I install from a cd in this?

BLTicklemonster
November 8th, 2005, 01:07 AM
Wow, just change resolution. lmao.

and here's me using msn messenger in xp in ubuntu:

http://www.hawkwinds.com/tickle/msninxpinubuntu.jpg


Now my only problem is... I have to start over again!!!

There's not enough room on here for installing UT.

Caboto
November 8th, 2005, 03:27 AM
[...]
There's not enough room on here for installing UT.
I hope you don't mean Unreal Tournament. As far as I know, there's no 3D Acceleration (which already mentioned someone).

Wombley
November 8th, 2005, 04:21 AM
You can install the tools by entering into the OS through VMPlayer then accessing the ide1 drive or in my case it was D: drive, then proceed from there to install it.

I wasn't able to increase the resolution using these steps after installing the tools however....let me know how you do if you can though. Thanks.;)

Force the display adaptor to install - choose the "select from list" option after selecting install driver for it in device manager, then the "have disk" option, then show it the directory on the disk, select vmware driver and ignore the warnings... :)

BLTicklemonster
November 8th, 2005, 08:02 AM
I hope you don't mean Unreal Tournament. As far as I know, there's no 3D Acceleration (which already mentioned someone).

Yeah. But I was hoping against hope that the editor would work in XP/vmware.

I suppose it's time to see how one daul boots with two drives.

twowheeler
November 8th, 2005, 08:09 AM
In case it helps anyone here, this is my fully functional Windows2000Pro.vmx file:


#!/usr/bin/vmware
config.version = "8"
virtualHW.version = "3"
ide0:0.present = "TRUE"
ide0:0.filename = "Windows2000Pro.vmdk"
memsize = "192"
MemAllowAutoScaleDown = "FALSE"
ide1:0.present = "TRUE"
ide1:0.fileName = "auto detect"
ide1:0.deviceType = "cdrom-raw"
ide1:0.autodetect = "TRUE"
floppy0.fileName = "/dev/fd0"
floppy0.startConnected = "FALSE"
ethernet0.present = "TRUE"
usb.present = "FALSE"
sound.present = "TRUE"
sound.virtualDev = "es1371"
displayName = "Windows 2000 Pro"
guestOS = "win2000pro"
nvram = "Windows2000Pro.nvram"
MemTrimRate = "-1"
ide0:0.redo = ""
ethernet0.addressType = "generated"
uuid.location = "56 4d c3 67 77 20 86 54-d0 ec 04 8b aa ce 79 73"
uuid.bios = "56 4d c3 67 77 20 86 54-d0 ec 04 8b aa ce 79 73"
ethernet0.generatedAddress = "00:0c:29:ce:79:73"
ethernet0.generatedAddressOffset = "0"
tools.syncTime = "TRUE"
ide1:0.startConnected = "TRUE"
uuid.action = "create"
checkpoint.vmState = "Windows2000Pro.vmss"
tools.remindInstall = "FALSE"
fileSearchPath = "/home/dan/vmware/Windows2000;."

BLTicklemonster
November 8th, 2005, 09:16 AM
displayName = "Winbuntu 2000 Pro"


... tempting..

mapman
November 8th, 2005, 11:31 AM
Force the display adaptor to install - choose the "select from list" option after selecting install driver for it in device manager, then the "have disk" option, then show it the directory on the disk, select vmware driver and ignore the warnings... :)


:smile: Thanks Mr.Wombley. It worked as you said it would.:cool:

Wombley
November 8th, 2005, 11:59 AM
I hope you don't mean Unreal Tournament. As far as I know, there's no 3D Acceleration (which already mentioned someone).

There is actually an (experimental) option for this - see http://www.vmware.com/support/ws5/doc/ws_vidsound_d3d.html. However its still marked as experimental, and I'm not sure how it'd work with the version of vmware tools we've been using...

Caboto
November 8th, 2005, 12:19 PM
There is actually an (experimental) option for this - see http://www.vmware.com/support/ws5/doc/ws_vidsound_d3d.html. However its still marked as experimental, and I'm not sure how it'd work with the version of vmware tools we've been using...
Yes. But like the text (and you) said, it's for the workstation. That could work eg. for the UnrealED, but probably it won't be really good for playing (new) 3D-Games.

BLTicklemonster
November 8th, 2005, 12:51 PM
Yes. But like the text (and you) said, it's for the workstation. That could work eg. for the UnrealED, but probably it won't be really good for playing (new) 3D-Games.
Shoot, ut plays great in linux, I just need to be able to map in the editor. I'll check it out after I redo all this with like twice the space on the virtual drive.

BLTicklemonster
November 8th, 2005, 10:09 PM
Setting up a 10 gig virtual drive, and going at it again. Thank you so much for putting up with me and being so helpful you all. My apologies to everyone but... bah, yeah, him too.

Now to get it installed again, and try to install that 3d thing.

Huh, I wonder how well it networks. I can just share a cdrom from one of the other machines, and install UT from there instead of waiting for the files I uploaded to download from ftp....

First things first, I gotta get it running first, lol.


HECK YEAH, it worked. Instead of having to have floppies, just (yeah, I know, why go to the trouble of making an iso) when it says it can't find a bootable disk, click on the cdrom icon, and it boots from the cd. Now if I were a smart man, I'd figure out how to make the thing boot from it already, but well, I think I already blew any credibility I'd have in that department. Installing now.


*edit:

for some reason, if I try to change the size from 2 gig to a larger size, and change both values, it messes up. I wanted a 10 gig, because I'm a hog, so I tried this and it worked:

qemu-img create -f vmdk WindowsXPPro.vmdk 10G Formating 'WindowsXPPro.vmdk', fmt=vmdk


bill@ubuntumonster:~/WindowsXPPro$ qemu-img create -f vmdk WindowsXPPro.vmdk 10G Formating 'WindowsXPPro.vmdk', fmt=vmdk
Formating 'WindowsXPPro.vmdk', fmt=vmdk, size=10485760 kB
bill@ubuntumonster:~/WindowsXPPro$

twowheeler
November 8th, 2005, 11:38 PM
qemu-img create -f vmdk WindowsXPPro.vmdk 10G Formating 'WindowsXPPro.vmdk', fmt=vmdk


I'm sorry to have to repeat old information, but it was explained previously in this thread that the command ends after the "10G". The rest is output mistakenly included in the quoted text. At best, it will be ignored; at worst it will hose things up.

The man page gives the correct format for the command. Note that the last argument for the create command is [size] -- that would be "2G" or "10G" or whatever size you want.

QEMU-IMG(1) QEMU-IMG(1)

NAME
qemu-img - QEMU disk image utility

SYNOPSIS
usage: qemu-img command [command options]

OPTIONS
The following commands are supported:

create [-e] [-b base_image] [-f fmt] filename [size]
commit [-f fmt] filename
convert [-c] [-e] [-f fmt] filename [-O output_fmt] output_filename
info [-f fmt] filename

I just don't want more people to be confused about this.

BLTicklemonster
November 9th, 2005, 12:13 AM
Thanks Two, but I stay confused anyway.

I installed the vmware video drivers the slacker way.

I installed winace, and extracted the contents of the iso and installed from there.

Oh, and check this out:

http://www.hawkwinds.com/tickle/unrealedinubuntu.jpg


I can finally kick the windows out now. I have no reason to keep it on the other drive.

THANKS TO YOU ALL FOR YOUR HELP.

Snorrie
November 9th, 2005, 08:47 AM
Did someone tried this for windows 98? I wanted to install that but the floppy-thingy is not clear to me. What do I have to put on that? or make it boot from what file from a normal win-98-boot-floppy?

Thnx in advance,

Snorrie

Wombley
November 9th, 2005, 09:25 AM
Did someone tried this for windows 98? I wanted to install that but the floppy-thingy is not clear to me. What do I have to put on that? or make it boot from what file from a normal win-98-boot-floppy?

Thnx in advance,

Snorrie

You should be able to install straight from the windows 98 CD, although I haven't tried it myself. The floppys aren't really required unless you have a bad CD image.

yabbadabbadont
November 9th, 2005, 04:49 PM
My Win98SE full install CD wasn't bootable. The CD came with a win98 boot floppy. I just booted from the floppy and then ran the setup on the CD. I did this using the evaluation version of vmware workstation though. I used the eval version to create base installs of win98, win2k, and winXP. I created copies of these files and then installed my other software in the copies. That way I always have a clean install from which to start if I want to try something different. I use vmplayer with the images though.

There is a tool on the CD to create the boot disk, but is has to be run from DOS (might work with Wine, I'll try it in a little while and see what happens). It is in the tools/mtsutil/fat32ebd directory. There is a text file that explains how to create the disk.

EDIT: I couldn't get it to work with Wine, it would probably work with either DosEmu or DosBox though.

For those who are interested, I found this link with some useful information about the contents of the vmx files. http://blog.lorenzoferrara.net/pivot/entry.php?id=73#body

yabbadabbadont
November 9th, 2005, 06:01 PM
Did someone tried this for windows 98? I wanted to install that but the floppy-thingy is not clear to me. What do I have to put on that? or make it boot from what file from a normal win-98-boot-floppy?

Thnx in advance,

Snorrie

I don't think that I answered the question you asked with my previous post. If you have the Windows 98 boot floppy, then you can install win98 without creating the CD and floppy images. I have just done this using qemu-img and vmplayer to be sure that it can be done. (it took a few tries to find the right settings). Follow the original post's instructions on creating the hard drive image file using qemu-img. I called my image file w98.vmdk. Here is the vmx file that I used to install win98. #!/usr/bin/vmplayer
config.version = "8"
virtualHW.version = "3"
ide0:0.present = "TRUE"
ide0:0.filename = "w98.vmdk"
ide0:0.redo = ""
memsize = "128"
MemAllowAutoScaleDown = "FALSE"
ide1:0.present = "TRUE"
ide1:0.fileName = "/dev/hdc"
ide1:0.deviceType = "atapi-cdrom"
ide1:0.startConnected = "TRUE"
floppy0.fileName = "/dev/fd0"
floppy0.startConnected = "True"
ethernet0.present = "TRUE"
usb.present = "TRUE"
sound.present = "TRUE"
sound.virtualDev = "es1371"
displayName = "Windows 98 test image"
guestOS = "win98"
nvram = "w98.nvram"
MemTrimRate = "-1"
uuid.location = "56 4d 4e f4 6e 1c 68 77-97 68 c5 8f 84 8d 00 c6"
uuid.bios = "56 4d 4e f4 6e 1c 68 77-97 68 c5 8f 84 8d 00 c6"
tools.syncTime = "FALSE"
uuid.action = "create"
checkpoint.vmState = "w98.vmss"
tools.remindInstall = "FALSE"
ethernet0.addressType = "generated"
ethernet0.generatedAddress = "00:0c:29:8d:00:c6"
ethernet0.generatedAddressOffset = "0"


If you called your image file something other than w98, then change w98 to whatever you used everywhere it appears in this file. Also, you will need to modify the ide1:0.fileName line to point to the device for your cdrom. In my case it is /dev/hdc, you will need to change it to the correct value for your system. Once you have done all that, insert your boot floppy and win98 CD. Run vmplayer using the vmx file you have just created. You should see the boot floppy start up and then complain about the hard drive not being partitioned or formatted. Use fdisk to create a partition. I just created one for the whole virtual disk. You will have to restart the virtual machine now. From the vmplayer menu, choose Player->Troubleshoot->Reset. This will reboot the virtual machine. Once the floppy has booted again, format the virtual disk you just partitioned. Now you can run the setup.exe program off of the win98 CD and do a normal win98 setup.


I know that I have repeated many of the instructions from earlier posts, but I just wanted to be clear on the steps I took to install win98 in my virtual machine.

Snorrie
November 10th, 2005, 01:00 PM
Oh yeah! it worked! :D

It's a shame though that it (win 98 SE) is terribly slow on my laptop (750mhz, 512mb)

Is there a possibility to make it quicker with some tools?

thnx,

Snorrie

Wombley
November 10th, 2005, 01:43 PM
Have you installed the VMWare tools mentioned in previous posts? These should work with Windows 98 (theres a win9x folder for the graphics drivers, and its one of VMWare's supported OS's), and at least on Windows 2000 I found they made it run smoother.

BLTicklemonster
November 10th, 2005, 02:10 PM
So I redid my hard drive to 10 gig and all went well. I am amazed that XP is faster like this than it ever was normally.


Now for some tough questions:

How do I migrate files between the two? Between the xp vd, and linux?

Can I put a whole hard drive in vm? I have xp on a drive, and it's got like 6 ggs of stuff that I can do without, but sure could use. Can I point vmware player to that drive and run the xp off of it?

ranf
November 10th, 2005, 02:18 PM
How do I migrate files between the two? Between the xp vd, and linux?

Samba? Should be lightning fast.

Can I put a whole hard drive in vm? I have xp on a drive, and it's got like 6 ggs of stuff that I can do without, but sure could use. Can I point vmware player to that drive and run the xp off of it?
I have no idea if that can be achieved.

BLTicklemonster
November 10th, 2005, 02:31 PM
Thanks ranf, I tried that last night, I could get smbclient to show me useful stuff like smbclient -D| does neat stuff, but well, nothing happened when I did it.

I also tried typing in firefox:

smb://localhost:10000

and nothing happened.

I can't (of course I can't because it's probably staring me in the face) find anything useful (as in it says, because you are stupid, mr ticklemonster, we'll draw you a picture, please chose your favorite color of crayon) that gave me even a hint as to how to go from point a to point b. Perhaps my googling skills could use some tweaking...

BUT, I'm not going to rant and rave this time. Self depricating humor maybe, but no ranting.

jackmacokc
November 10th, 2005, 02:33 PM
I keep getting this error:
The network bridge on device /dev/vmnet0 is temporarily down because the bridged Ethernet interface is down. The virtual machine may not be able to communicate with the host or with other machines on your network.

Any ideas? Or should this simply be ignored.

Caboto
November 10th, 2005, 02:39 PM
I've tried to transfer files between the Guest OS (WinXP) and my Host OS with no real success.
The first method I've tried was to just drag'n'drop or Copy&Paste. The website says, the Player can handle this (from Linux to Windows and vice versa). It didn't work, of course..
Then i've installed Samba and shared some folders. Then I switch my Ethernet Card to "Host-only" and tried to find these folders with no success. But I did indeed found my PC. It asked for a User/PW, but didn't accept anything...

I've googled a little bit and found out, that the VMWare Workstation can have Shared Folder (like mounting partitions), but that this functionality was removed due to security reasons (when you use an image from someone else, you can't see what things are mounted automatically).

At the moment I'm using my Apache Webserver for transfering files. I've set up a domain at dyndns.org and using this. It's "normal" network speed, but a bit complicated...
I wish, I could just mount my other FAT32 partitions.


Edit:
There's a discussion for this subject in the VMWare Community Boards right here (http://www.vmware.com/community/thread.jspa?threadID=24795&tstart=0&messageID=300818).

ranf
November 10th, 2005, 02:48 PM
I also tried typing in firefox:
smb://localhost:10000

What is that supposed to do?

Start here https://wiki.ubuntu.com/SettingUpSamba?highlight=%28samba%29
and search this forum for "samba". There should be a bunch of threads.

BLTicklemonster
November 10th, 2005, 03:13 PM
It is a simple command line thing that makes people scratch their heads. Try it on some unsuspecting person sometime.

Other than that, it was supposed to bring up something about my computer so I could set the xp drive to have a letter and be shared. Or so I was told.

BLTicklemonster
November 10th, 2005, 11:44 PM
I just learned something. If you are running on an athlon machine, and find out about k7 kernel after doing this with vmware, and change, you will have to reinstall vmware. nice. lmao.

BLTicklemonster
November 12th, 2005, 09:12 AM
If the player won't launch, where can I find a log telling me what happened? I see nothing generated presently, and the player will not launch. (perhaps it won't launch because this is the first time I've tried to run with a drive slaved?)


*edit:

Nope, that's not it. Why do I keep loosing the ability to launch player? And when I do, what can I do to get it back? I've tried looking over the vmx file, but it's identical to the one I made in the first place. And there's no log that I can find.

BLTicklemonster
November 14th, 2005, 12:55 AM
This guide will allow you to install Windows XP or 2000 solely with the VMWare Player. For the uninitiated, VMWare released a free application that allows users to run, but not create virtual machines. Using QEMU, we will create an environment suitable for use with the player.

As a side-note, I'd like to point out that VMWare makes quality software. If you require additional functionality, consider upgrading to Workstation. For those curious, these actions are condoned by the developers as per this quote:

"We’re well aware of what people could potentially do, and we’ll live with the consequences. As you observe, Workstation has a lot of features that no amount of vi and dd hacking will replicate and these are what make Workstation worth buying (eg: Teams as you mention, or snapshots). I suspect that most people who go to the trouble are one’s who haven’t bought or wouldn’t buy Workstation anyway."

Installing the player itself involves some patience. Get the Linux tar from this page (http://www.vmware.com/download/player/). Most of my instructions will be shamelessly ripped from this lovely tutorial (http://www.ubuntuforums.org/showthread.php?t=65638). Fire up a root terminal and do:

sudo apt-get install build-essential
uname -r
sudo apt-get install linux-headers-'kernel version'
sudo apt-get install gcc-3.4
sudo apt-get install g++-3.4

Now that the initial dependencies have been met, let's continue.

sudo tar xvzf VMware-player-1.0.0-16981.tar.gz be aware that the version number may change
cd vmware-player-distrib
CC=/usr/bin/gcc-3.4
export CC=/usr/bin/gcc-3.4
sudo ./vmware-install.pl

The installer has an unusually high number of prompts, all of which can be answered the default "yes" to by hitting enter. After hitting enter a few dozen times and agreeing to the license, everything should install successfully. If you're having problems installing the actual player, that other guy might be more qualified to diagnose it than I am. Moving along...

There are two components to a virtual machine, the hard drive image and a text file that VMWare interprets. First, we'll create an image with QEMU.

I know this sounds a little odd, but I couldn't get the QEMU command used to generate the disk working from the Linux port. Fortunately, the utility works fine with the Windows port under Wine. I can't really bothered to delve into the specifics of installing Wine other than suggesting:

sudo apt-get install wine

Then download and install the Windows version of QEMU (http://free.oszoo.org/ftp/qemu/win32/release/QemuInstall-0.7.2.exe) if that does now work, then get it here (http://daimon55.free.fr/qemu/QemuInstall-0.7.2.exe) (make sure you install it :) . Create a folder in /home/yourname and name it either WindowsXPPro or Windows2000Pro, and in the terminal go to it:

cd /home/yourname/folder you created

Then execute qemu from a command line as follows:

wine "c:\Program Files\Qemu\qemu-img.exe" create -f vmdk WindowsXPPro.vmdk 2G Formating 'WindowsXPPro.vmdk', fmt=vmdk


(the size driver that makes is 2 gigs, if you want more, change from 2G to whatever size you want)

This will generate a 320k file which is a usable blank drive. Create a new folder to contain our files and name this guy either WindowsXPPro.vmdx or Windows2000Pro.vmdx accordingly.

You now have the choice to install XP or 2000. On my 1.2ghz/512mb system Windows 2000 runs considerably more responsively; your choice. As per the other tutorial, we should be able to insert our CD and go after the following. But in my case, neither my bootable XP or 2000 CD had any interest in well, booting. I'd suspect I'm not the only one with this concern, so we'll play with ISO images instead. If you want to install from a cd rom, then ignore this part.

sudo apt-get install gnomebaker

After inserting your original Windows disc, load Gnomebaker, choose "Copy Data CD," and tick the "Create ISO only" box. Save the resulting ISO as either WindowsXPPro.iso or Windows2000Pro.iso to the folder we just created. If the processes ever freezes 99%, feel free to "killall gnomebaker" without concern.

Unfortunately, our ISO image will not have the bootable sector intact. We'll instead boot from a series of floppy images. My Windows 2000 disc included them in a "bootdisk" folder, whereas XP did not. For 2000, copy the four img files from it to our created folder.

With XP, you'll need some additional nonsense. Hunt down an appropriate set from Microsoft for your version of XP, and do the following:

sudo apt-get install cabextract
cabextract 'nameofarchive.exe' -d 'our working directory'

Deleted the non-img extracted files.

Okay, you can start paying attention again if you are wanting to boot from a cd.

Now that we have a matching ISO and floppy set, we're ready to proceed with installation. Paste one of the following to a text editor (gedit/leafpad) and save it as either WindowsXPPro.vmx or Windows2000Pro.vmx to our directory:

Windows XP from iso:

#!/usr/bin/vmware
config.version = "8"
virtualHW.version = "3"
ide0:0.present = "TRUE"
ide0:0.filename = "WindowsXPPro.vmdk"
memsize = "192"
MemAllowAutoScaleDown = "FALSE"
ide1:0.present = "TRUE"
ide1:0.fileName = "WindowsXPPro.iso"
ide1:0.deviceType = "cdrom-image"
ide1:0.autodetect = "TRUE"
floppy0.fileType = "file"
floppy0.fileName = "cdboot1.img"
floppy0.startConnected = "True"
ethernet0.present = "TRUE"
usb.present = "TRUE"
sound.present = "TRUE"
sound.virtualDev = "es1371"
displayName = "Windows XP Pro"
guestOS = "winxppro"
nvram = "WindowsXPPro.nvram"
MemTrimRate = "-1"
ide0:0.redo = ""
ethernet0.addressType = "generated"
uuid.location = "56 4d cd 3f 59 5b 61 43-fd 73 ef 46 56 4c 23 7b"
uuid.bios = "56 4d cd 3f 59 5b 61 43-fd 73 ef 46 56 4c 23 7b"
ethernet0.generatedAddress = "00:0c:29:4c:23:7b"
ethernet0.generatedAddressOffset = "0"
tools.syncTime = "TRUE"
ide1:0.startConnected = "TRUE"
uuid.action = "create"
checkpoint.vmState = "WindowsXPPro.vmss"
tools.remindInstall = "TRUE"

Windows XP from cd:

#!/usr/bin/vmware
config.version = "8"
virtualHW.version = "3"
ide0:0.present = "TRUE"
ide0:0.filename = "WindowsXPPro.vmdk"
memsize = "192"
MemAllowAutoScaleDown = "FALSE"
ide1:0.present = "TRUE"
ide1:0.fileName = "auto detect"
ide1:0.deviceType = "atapi-cdrom"
ide1:0.autodetect = "TRUE"
floppy0.startConnected = "False"
ethernet0.present = "TRUE"
usb.present = "TRUE"
sound.present = "TRUE"
sound.virtualDev = "es1371"
displayName = "Windows XP Pro"
guestOS = "winxppro"
nvram = "WindowsXPPro.nvram"
MemTrimRate = "-1"
ide0:0.redo = ""
ethernet0.addressType = "generated"
uuid.location = "56 4d 86 fc d2 c6 27 b7-7d 0a dc c4 9f 36 b9 3f"
uuid.bios = "56 4d 86 fc d2 c6 27 b7-7d 0a dc c4 9f 36 b9 3f"
ethernet0.generatedAddress = "00:0c:29:36:b9:3f"
ethernet0.generatedAddressOffset = "0"
tools.syncTime = "TRUE"
ide1:0.startConnected = "TRUE"
uuid.action = "create"
checkpoint.vmState = "WindowsXPPro.vmss"
tools.remindInstall = "TRUE"

Windows 2000:

#!/usr/bin/vmware
config.version = "8"
virtualHW.version = "3"
ide0:0.present = "TRUE"
ide0:0.filename = "Windows2000Pro.vmdk"
memsize = "192"
MemAllowAutoScaleDown = "FALSE"
ide1:0.present = "TRUE"
ide1:0.fileName = "Windows2000Pro.iso"
ide1:0.deviceType = "cdrom-image"
ide1:0.autodetect = "TRUE"
floppy0.fileType = "file"
floppy0.fileName = "CDBOOT1.IMG"
floppy0.startConnected = "True"
ethernet0.present = "TRUE"
usb.present = "TRUE"
sound.present = "TRUE"
sound.virtualDev = "es1371"
displayName = "Windows 2000 Pro"
guestOS = "win2000pro"
nvram = "Windows2000Pro.nvram"
MemTrimRate = "-1"
ide0:0.redo = ""
ethernet0.addressType = "generated"
uuid.location = "56 4d cd 3f 59 5b 61 43-fd 73 ef 46 56 4c 23 7b"
uuid.bios = "56 4d cd 3f 59 5b 61 43-fd 73 ef 46 56 4c 23 7b"
ethernet0.generatedAddress = "00:0c:29:4c:23:7b"
ethernet0.generatedAddressOffset = "0"
tools.syncTime = "TRUE"
ide1:0.startConnected = "TRUE"
uuid.action = "create"
checkpoint.vmState = "Windows2000Pro.vmss"
tools.remindInstall = "TRUE"

Double click on the resulting file, and Windows should start to install. The only screwiness left at this point is that we'll need to swap floppy images. When prompted, click on the floppy icon to "eject" the drive. In Nautilus, rename cdboot1.img to cdboot01.img and cdboot2.img to cdboot1.img, then click the floppy icon again to continue. It may sound a little strange, but you're essentially renaming the images to match that of the first file when it wants it. You'll get the hang of it, promise.

Once the floppies have done their thing, the ISO will take over and Windows will install normally.

Sorry about the length of this. If I had web hosting, I could've posted many of these files and shaved off a few steps. I'll try my best to answer any questions that may come up, but concede that my level of Linux know-how is only intermediate.

Here's a screeny for encouragement (http://i24.photobucket.com/albums/c35/dryandplain/ps8.png)! :D

Take care,
-Kyle

redone a bit

BLTicklemonster
November 14th, 2005, 12:45 PM
question:

If I were to do all the steps up until the part where I click the vmx file to install, then uploaded the folder I made with the vmdk and vmx files in them, downloaded them on another machine, installed vmware player, and double clicked on the vmx file, would it work, even without wine or qemu? I'd think it would, but I don't know exactly whether or not either of them come into play at this point in things.

oh, and I just went through the whole thing again from scratch here on a different machine that is a fresh ubuntu install, and corrected some errors in case anyone tried that I just posted up there and it didn't work... which it wouldn't have, Ron, so pardon me, lol.

drummer
November 14th, 2005, 11:28 PM
the use of wine and qemu is only to create the disk image for vmware (.vmdk file) so once that's done, vmware doesn't use qine or qemu at all, they're purely for the initial setup.

drummer
November 14th, 2005, 11:42 PM
Also, how can I install the vmware tools svga drivers in a Windows XP Pro guest? I installed as per the windows.iso thing, but got errors saying i had to install them manually. I then installed them manually, using the add new hardware wizard as per previous posts, but the drivers seem to be broken. I used the drivers in the win2k folder in windows.iso as there wasn't one for xp. Can anyone help here, the mouse is very laggy and I'd like these drivers to work.

I've attached a screenshot of the device manager. the red arrow marks what i installed and the question mark is something else but i'm not sure what it is. I'll also note that I could up the resolution to 1280*1024 and higher from the clean xp install, if that's any use.

mingus
November 16th, 2005, 06:17 PM
Excellent thread . . . so just fwiw, thought I'd throw in my two cents after installing on two machines . . .

Re post #83, unable to get the display to work - note the video controller that Windows plug-n-pray has detected and for which there is no driver. That is blocking the display adapter driver from loading. Uninstall the controller and then reinstall as a new display adapter the vmware svga driver.

Re networking, sharing files, samba, etc. . . . my systems are all on a LAN, one of the two with vmplayer uses wireless, there is also a printer, all hung off a router. For the wireless system, I found I could not simply specify NAT in the player; could not find the router's DHCP server. So I config'd vmplayer vmnet0 to wlan0, vmnet8 as NAT, and vmnet1 as host (same as wireline system except vmnet0 there is eth0). The wireless system needed to be assigned a static IP. With Samba installed, all the systems can see one another as normal (smb.conf is configured with "netbios-name = <system-name>" and "security = share").

Only -minor - hiccup I've got is that I had to change the vmx file in order for the CD device to be recognized but now when a CD is placed in the drive *both* Ubuntu and Windows open it. :)

So far all is working well. On my SuSE system I have Xen but have not played with it yet, anyone given that a try for comparison? Seems to me that virtualization is *the* ticket to putting Windows permanently in the back seat.

BLTicklemonster
November 16th, 2005, 08:40 PM
Reckon how a fella would get a logitech moust to have the forward and back buttons navigate in there?

drummer
November 16th, 2005, 08:57 PM
mingus: thanks for that, but i just deleted the xp install i did :p. I got the drivers working in a windows 2000 install which I like better than xp anyway, much less confusing. XP tries to do to much for you imo, and the settings are easier to find for me in 2k.

Although I have yet to get my tv tuner working. I installed the drivers, but the actual card wasn't detected and I can't see it in the hardware manager.. any ideas?

mingus
November 17th, 2005, 12:24 AM
Re: Mouse and Tuner . . . sorry, I'm still new to virtualization as well. The vmplayer documentation only deals with installation. I would look at the workstation manual to understand which kinds of drivers can be installed, what the limitations are in the built-in virtual machines's hardware layer, etc. I don't know yet in what ways, if any, the hardware layer differs between the workstation and the player.

yabbadabbadont
November 20th, 2005, 05:52 PM
Drummer: You would have to check the VMware website, but I don't think that their virtual machine emulates a tv tuner. If their virtual machine doesn't emulate the hardware, then installing drivers for it inside the VM won't do any good. You should be able to use it in Ubuntu though. Are you having trouble with it in Ubuntu, or did you just want to play with it in Windows?

drummer
November 20th, 2005, 06:02 PM
I can watch tv in ubuntu fine, but have had problems recording it. I should try again now that I'm using Breezy, but in Hoary programs other than tvtime couldn't see the video stream.

Draaku
November 21st, 2005, 01:41 PM
Hi, I installed VMware following this guide. But I do not need it or want it anylonger. How would I remove it completely from my system?

ranf
November 21st, 2005, 02:22 PM
Hi, I installed VMware following this guide. But I do not need it or want it anylonger. How would I remove it completely from my system?
Type `vm' in a terminal, then hit Tab twice.

Draaku
November 21st, 2005, 06:42 PM
Type `vm' in a terminal, then hit Tab twice.

ok, it just lists some files, is there a command i type to verify it has been removed? I also found this file in /usr/bin/vmware-uninstall.pl

This stepped me through the uninstall and stated it was removed. thanks for the help.
I still would like to know what this command does? `vm'

thermopyl
November 22nd, 2005, 12:19 AM
SUperb HOWTO guys!

Followed all the instructions to the letter and up and running first time (with sound, networking & a good resolution too!) :D

However I now need to expand my image size from the original 2G..can you tell me how I can do this without destroying the work I have done so far?

Many thanks

ranf
November 22nd, 2005, 10:01 AM
I still would like to know what this command does? `vm'
There is no command named vm. I just told you to type the first two letters of vmware and then use the auto command completion of the bash (that's what runs the terminal) to find out which programs have vmware in their name.

Clearer now?

sumanjay
November 22nd, 2005, 07:14 PM
Thanks a lot! Works great, except, is it normal for the part of the install where Windows detects and installs all your hardware to take a REALLY long time?

I'm experiencing the same problem. It's been stuck at the "detecting and installing devices" screen for over an hour now! How long is it supposed to take? Should I try to reset the virtual system & start over?

Trying to install Windows 2000 on an AMD Athlon 1700XP with 1 GB RAM and a 10GB virtual partition.

drummer
November 22nd, 2005, 07:54 PM
I had the same problem with Windows 2000, it was stuck on the same screen for ages and didn't move (I left it running overnight). I read somewhere that it was a problem with VMWare being too smart with it's USB detection, so I removed the lines about USB in the .vmx file and restarted the installation. It worked fine after that and I'm pretty sure that that was the actual problem. I still have USB support, VMWare just added some lines back to the .vmx.

sumanjay
November 22nd, 2005, 08:17 PM
Thanks for that. I did the same and the installation has completed. However, when I try to install the VGA driver (VMware tools), the Hardware Wizard claims that there is no driver information present in that location. I am pointing the wizard to the correct location - the Video driver in the CDROM image (win.iso) that I downloaded from VMware's website. I would really like to be able to increase the resolution on my virtual machine, besides making it full screen on my current 1280x1024 desktop.

mdbarton
November 23rd, 2005, 10:16 AM
I'm considering giving this a go. Has anyone used VMWare to run MS Outlook and ActiveSync with a PocketPC? Evolution is rubbish (sorry, but it is just not there yet) and SynCE just does not work properly....

Would an alternative be to boot Win XP, install VMWAre workstation evaluation copy, create a WinXP image, then run it in VMare player under Ubuntu?

thermopyl
November 23rd, 2005, 03:28 PM
I'm considering giving this a go. Has anyone used VMWare to run MS Outlook and ActiveSync with a PocketPC? Evolution is rubbish (sorry, but it is just not there yet) and SynCE just does not work properly....

Hi
This is precisely why I followed this thread. I can confirm that active sync with my Ipaq has worked fine through VMWare. I have not tried MSOutlook yet, but as I can use Avantgo and install new apps I am not anticipating any probs.

siorai
November 30th, 2005, 09:12 PM
I'm at a bit of a loss here. I've installed vmware and it looks like everything is working fine. I'm using the .iso and floopy images to install XP Pro. It goes fine until it goes to examine the disks right before copying the files over for the install, then I get this:

Windows XP Professional Setup
------------------------------

The following value in the .SIF file used by Setup is
corrupted or missing:

Value 0 on the line in section [SourceDisksFiles]
with key "SP2.cab."

Setup cannot continue. To quit Setup, press F3.

I feel like I'm about this: >< close to getting it.

siorai
December 2nd, 2005, 12:09 PM
Well I got my problems sorted out. I think it stemmed from the Windows discs that I was using were both slipstreamed with the Service Packs into them. I borrowed a proper disc from work, followed the instructions on how to boot from the cd and booyaa! It worked! :D Now I can finally ditch that Windows install and quit dual booting.

Thank you to everyone in the thread for all the info.

siorai
December 2nd, 2005, 12:11 PM
Oh yeah, one question though. Is it possible to increase the size fo the virtual drive Windows is installed on, or do I have to simply reinstall, creating the virtual drive larger first?

mdbarton
December 2nd, 2005, 05:17 PM
I'm considering giving this a go. Has anyone used VMWare to run MS Outlook and ActiveSync with a PocketPC? Evolution is rubbish (sorry, but it is just not there yet) and SynCE just does not work properly....

Would an alternative be to boot Win XP, install VMWAre workstation evaluation copy, create a WinXP image, then run it in VMare player under Ubuntu?

Now have it working (activesync and pocketpc) - and I created the WinXP image using a VMWare workstation evaluation copy on windows. I have one or too niggles to sort out - if I get stuck will post them here.

Thanks for an excellent howto!

vtechstu
December 2nd, 2005, 09:12 PM
Hi,

When I run vmplayer <filename> in the terminal, this is printed right before vmware opens:

/usr/lib/vmware/bin/vmplayer: /usr/lib/vmware/lib/libpng12.so.0/libpng12.so.0: no version information available (required by /usr/lib/libcairo.so.2)
*** attempt to put segment in horiz list twice

It then opens. Do I need to worry about this?

Also, vmplayer began the install of windows, it loaded everything, and I pressed Enter, then it froze. Now everytime I go start up vmware for windows, i just get a black screen with an unmoving cursor in the top left, with white lines from where the VM Logo used to be.

Could anyone please help? Thanks.

EDIT: Fixed the second issue. I went back and recreated the vmdk file and it worked. I think something had gotten written to it.

ilmw
December 2nd, 2005, 11:43 PM
Oh yeah, one question though. Is it possible to increase the size fo the virtual drive Windows is installed on, or do I have to simply reinstall, creating the virtual drive larger first?

See the example:

vmware-vdiskmanager -x 36Gb myDisk.vmdk

This will increase the virtual disk size to 36G. It takes awhile though.

This works with vmware workstation. I don't know whether it works with vmware player or not.

It was said that this only increase the disk size, but won't change the the partition. So you need to use another tool to do it. I only have one partition so I did increase the virtual disk size by just running this command. See this page:
click (http://www.instant-tech.com/blogs/ctyler.nsf/d6plinks/CTYR-6CWMB4)

mdbarton
December 3rd, 2005, 02:43 AM
Hi,

When I run vmplayer <filename> in the terminal, this is printed right before vmware opens:

/usr/lib/vmware/bin/vmplayer: /usr/lib/vmware/lib/libpng12.so.0/libpng12.so.0: no version information available (required by /usr/lib/libcairo.so.2)
*** attempt to put segment in horiz list twice

It then opens. Do I need to worry about this?


I get the same message, but vmplayer doesn't run, I just get the command prompt again. It will run if I sudo vmplayer <filename>Are you running vmplayer as root or normal user? Jest to see if it is exactly the same problem....

siorai
December 3rd, 2005, 04:00 AM
See the example:

vmware-vdiskmanager -x 36Gb myDisk.vmdk

This will increase the virtual disk size to 36G. It takes awhile though.

This works with vmware workstation. I don't know whether it works with vmware player or not.

It was said that this only increase the disk size, but won't change the the partition. So you need to use another tool to do it. I only have one partition so I did increase the virtual disk size by just running this command. See this page:
click (http://www.instant-tech.com/blogs/ctyler.nsf/d6plinks/CTYR-6CWMB4)

Awesome. That worked perfectly with vmware player as well. Thanks.

vtechstu
December 3rd, 2005, 02:07 PM
Yes I ran sudo vmplayer Win.vmx Message still there. Also, I can't seem to run VMplayer any other way but through terminal. Under Applications, it shows it loading, but then dissapears. How do i naturally set it so it will run as non root? I think that might be it. Thanks.

mdbarton
December 6th, 2005, 01:25 AM
How do i naturally set it so it will run as non root?

That's the question I have as well...:confused:

Joeak
December 7th, 2005, 02:43 AM
Thanks for the tips! Since qemu on Breezy is 0.7.0, the qemu-img command failed, but I downloaded 0.7.2 under Windows, created the vmdk files there, copied them over to Ubuntu, hacked the vmx file to not boot from floppy, pointed it to my ISO image, and I'm installing away!

DarkFlounder
December 9th, 2005, 04:10 AM
Thanks for the howto. Works great. Took a little while to get the windows.iso file (wasn't available at the link listed earlier, had to look on p2p). Works great now. If only I can use 3d software on it (for testing Java3d applets I'm developing). But I heard that could be coming in a future edition.

mdbarton
December 9th, 2005, 04:55 AM
I get the same message, but vmplayer doesn't run, I just get the command prompt again. It will run if I sudo vmplayer <filename>Are you running vmplayer as root or normal user? Jest to see if it is exactly the same problem....

Has anyone got vmplayer running as a normal user - ie not as root? Can anyone suggest what I need to change to run this as a normal user?

yabbadabbadont
December 10th, 2005, 03:15 AM
Does the install create a vmware group in /etc/group ? I know it does on other Linux distributions. If so, make sure that your user is a member of that group.

Example:
id username
(list of groups displayed)

If vmware is not listed and is in /etc/group, then do:
sudo gpasswd -a username vmware

and see if it helps.

mdbarton
December 10th, 2005, 07:15 AM
Does the install create a vmware group in /etc/group ? I know it does on other Linux distributions. If so, make sure that your user is a member of that group.

Example:
id username
(list of groups displayed)

If vmware is not listed and is in /etc/group, then do:
sudo gpasswd -a username vmware

and see if it helps.

Thanks for the reply, unfortunately a vmware group has not been created. I did try adding one but it does not make a difference. Do I need to change a setting to make vmplayer aware of the group?

mdbarton
December 10th, 2005, 07:29 AM
fixed it! Have a look at http://www.vmware.com/community/thread.jspa?messageID=306128񊯐

just opened a terminal did a chown -R username .vmware and now I can run vmplayer as non-root.
:p

BLTicklemonster
December 13th, 2005, 07:12 PM
Just started vmware, and I was advised that there is an upgrade. ... um, is this going to bonk everything I have done?

dk_pa
December 14th, 2005, 04:46 AM
It looks like the link to the VMWare tools (windows.iso) file was taken down. Are the VMWare tools n/a anymore or can I get them somewhere else or someone send me them?

Remix_88
December 14th, 2005, 01:32 PM
I have found an alternate location for the current windows.iso.

http://www.vmware.com/download/esx/esx2-16515update.html

Download the tar.gz file, extract it and then you will have the current windows.iso of VMWare Tools :-) I just installed it and it works fine.

twowheeler
December 15th, 2005, 08:20 AM
Anyone else here having trouble with a cd burner under vmware player? It is a pioneer DVR-A07 cd/dvd burner. The software is win2000pro on vmplayer on hoary. I installed the pioneer drivers in windows, but none of the programs using the burner work. Nero says it can't identify the type of cd drive. iTunes coughs up "The attempt to burn a disc has failed. An unknown error has occurred (3410)."

I am wondering if it needs scsi emulation on the drive. I did a modprobe ide-scsi but it did not fix it. The drive reads and burns perfectly in linux using graveman or similar.

I searched the vmware forums for clues but came up empty. It must not be a common problem. :(

If you have a burner working, what are the settings in your .vmx file?

Thanx...

siorai
December 15th, 2005, 10:34 AM
twowheeler, I've never had any problems with my burner in vmware. I've got a Pioneer DVR-109 and I'm running XP Pro in vmware. Sorry I can't really help, but here's my .vmx file to compare:

#!/usr/bin/vmware
config.version = "8"
virtualHW.version = "3"
ide0:0.present = "TRUE"
ide0:0.filename = "WindowsXPPro.vmdk"
memsize = "192"
MemAllowAutoScaleDown = "FALSE"
ide1:0.present = "TRUE"
ide1:0.fileName = "auto detect"
ide1:0.deviceType = "cdrom-raw"
floppy0.startConnected = "False"
ethernet0.present = "TRUE"
usb.present = "TRUE"
sound.present = "TRUE"
sound.virtualDev = "es1371"
displayName = "Windows XP Pro"
guestOS = "winxppro"
nvram = "WindowsXPPro.nvram"
MemTrimRate = "-1"
ide0:0.redo = ""
ethernet0.addressType = "generated"
uuid.location = ""
uuid.bios = ""
ethernet0.generatedAddress = ""
ethernet0.generatedAddressOffset = "0"
tools.syncTime = "TRUE"
ide1:0.startConnected = "TRUE"
uuid.action = "create"
checkpoint.vmState = ""
tools.remindInstall = "FALSE"

ide1:0.autodetect = "TRUE"

BLTicklemonster
December 15th, 2005, 12:16 PM
Fascinating. Does dvdshrink work in vmware? I'd never given it any thought.

raha
December 15th, 2005, 01:37 PM
:smile: Thanks Mr.Wombley. It worked as you said it would.:cool:

Please somebody help me I cant download the window.iso file to install my 3D graphic.
I need VMWare tools.
Can somebody give it to me.

Thanks

siorai
December 15th, 2005, 02:50 PM
Fascinating. Does dvdshrink work in vmware? I'd never given it any thought.

It works perfectly. I also use DVD Decrypter, Nero, and PSPVideo9 in vmware, all of which work great.

twowheeler
December 16th, 2005, 08:32 AM
twowheeler, I've never had any problems with my burner in vmware. I've got a Pioneer DVR-109 and I'm running XP Pro in vmware. Sorry I can't really help, but here's my .vmx file to compare:

Thanks siorai. Also, are you accessing the drive as an ATAPI IDE device or through SCSI drivers?

Edit: I mean in ubuntu not windows.

Edit2: "never mind" I got it. The drive was in PIO mode. The answer was in this thread :
http://www.vmware.com/community/thread.jspa?messageID=297033񈡉

Chris Tucker
December 16th, 2005, 09:22 AM
wow, this seems a lot easier here than where anyone mentioned it to me before, i shall try this when i get home from work...
do USB devices work in VMware? cameras? disk drives?

siorai
December 16th, 2005, 10:41 AM
wow, this seems a lot easier here than where anyone mentioned it to me before, i shall try this when i get home from work...
do USB devices work in VMware? cameras? disk drives?

Both my PSP and my secure digital card reader work fine. They popup as soon as they're connected or I put a card in.

Chris Tucker
December 16th, 2005, 12:12 PM
awesome, i cant wait then
i could get started now, but id run out of battery power, and i dont have my windows discs here

siorai
December 16th, 2005, 02:12 PM
awesome, i cant wait then
i could get started now, but id run out of battery power, and i dont have my windows discs here

My one suggestion is to think ahead about how much space you want for your Windows install. I was shortsighted the first time and had to redo the whole thing. It's easy enough to have the VMWare XP access samba shares, but it's easier to just have enough room in the XP install to begin with.

Chris Tucker
December 16th, 2005, 02:58 PM
yes, i figured id try it with at least 6 gigs

Chris Tucker
December 16th, 2005, 05:57 PM
im booting directly from the CD and VMware closes at the network setup in hardway detection..
i am using wifi as my main connection, the config wizard for vmware created bridges for both my wlan0 and eth0

edit: about to try via ISO

Chris Tucker
December 16th, 2005, 09:41 PM
another note: that was XP.
via ISO it did the same thing.
right now i am trying win2000
later ima try some other linux distros in there :D
long night + me = bored
bored + time = fiddling

dk_pa
December 17th, 2005, 03:37 AM
I have to admit I am totally smitten by this software. On my Athlon 2500 w/512 Megs of ram Windows 2000 runs nearly flawless. I'll have to try to edit my vmx file to get it read my DVD burner and DVD rom and then I'll be totally set. This was super easy to setup and just blows my mind that it can run as fast as it does. Anway...good walkthrough and great software. I would say anyone who needs a Windows App under Linux definitely go this route.

kenweill
December 17th, 2005, 05:00 AM
Installing and running windowx xp inside Linux thru vmware player is great.
I can have a windows specific software installed in windows xp inside linux.

But what if i connect to the internet from Windows XP inside vmware?
Can I share that connection outside vmware? Or in the host(on the same machine)?
Can I share that connection to the other workstations in my LAN?

Actually, thats my problem regarding the internet connection. The accelerator/drivers for my modem is a windows based only. The accelerator won't install and run using wine. The accelerators, Internet Page Accelerator, and Internet over Satellite Accelerator that comes with my modem is windows specific software.

putte30
December 17th, 2005, 09:20 AM
I have network issues to.. unable to astablish an Internet connection... Anyone knows ?

Chris Tucker
December 17th, 2005, 01:34 PM
ok, ive tried win2000 via CD, winXPhome via CD, WinXP Pro via CD, winXP Pro ISO, and DamnSmall Linux, everything stops and either powers off the virtual machine or just stops when it hits network detection.

WinXP (all) virtual machine powers off abruptly

Win2000 (workstation) hardware detection dialog stops when bar is full. can still move the window around, move the mouse, but buttons are greyed out and system doesnt proceed with install.

DamnSmall Linux (bootable CD) virtual machine powers off abruptly at network detection


Any help?
I'll be trying reinstalling vmware player later today, and doing the network differently.

putte30
December 17th, 2005, 02:06 PM
Fixed my problem by adding the following line:

ethernet0.connectionType = "nat"

:D

Now Internet works... next step would be to enable networksharing trough samba... any ideas?

Chris Tucker
December 17th, 2005, 05:31 PM
sudo apt-get samba
man samba
google samba
search ubuntuforums samba

Chris Tucker
December 18th, 2005, 08:24 AM
udpate: windows XP and 2000 AND 98 all stall either during or at the end of hardware detection! other linux's work just fine.. any ideas?

Juzz
December 19th, 2005, 07:35 AM
Excellent thread . . . so just fwiw, thought I'd throw in my two cents after installing on two machines . . .

Re post #83, unable to get the display to work - note the video controller that Windows plug-n-pray has detected and for which there is no driver. That is blocking the display adapter driver from loading. Uninstall the controller and then reinstall as a new display adapter the vmware svga driver.

Re networking, sharing files, samba, etc. . . . my systems are all on a LAN, one of the two with vmplayer uses wireless, there is also a printer, all hung off a router. For the wireless system, I found I could not simply specify NAT in the player; could not find the router's DHCP server. So I config'd vmplayer vmnet0 to wlan0, vmnet8 as NAT, and vmnet1 as host (same as wireline system except vmnet0 there is eth0). The wireless system needed to be assigned a static IP. With Samba installed, all the systems can see one another as normal (smb.conf is configured with "netbios-name = <system-name>" and "security = share").

Only -minor - hiccup I've got is that I had to change the vmx file in order for the CD device to be recognized but now when a CD is placed in the drive *both* Ubuntu and Windows open it. :)

So far all is working well. On my SuSE system I have Xen but have not played with it yet, anyone given that a try for comparison? Seems to me that virtualization is *the* ticket to putting Windows permanently in the back seat.
What static IP did you give the wireless system - because my system is also having problems with the wireless ath0 net.

edemark
December 19th, 2005, 09:35 AM
First of all i just wanted to say that this thread is really nice i could install winxp and everithing works fine but 3d graphics (i new it would not work, in advance)
It is really cool. I can only compare with qemu but vmware seems much more smooth than qemu and easyly connects usb devices.
Now I have a question. One of my friends lended me the install disks of his ibook g4. So my question is if it is possible to install os x on vmware and how to do so. And finally one more question how to install a linux inside vmplayer (i would like to try out some live cd-s etc.

thanks in advance

djjazzy
December 19th, 2005, 02:38 PM
Just to add my 2 cents worth, this howto worked Gr8! I have a Latitude C640 notebook with 512MB RAM and Breezy, I'm running a virtual XP Pro machine with all WindowsUpdates, Symnatec AV and M$ Office 2k3, Outlook running with E2k3 profile. Had to set "Ethernet" to "Bridged" to get connectivity, have sound and reasonably sized screen. Going to try Cisco VPN client next. Thanks to all that contributed :p

-Jeff

SHare
December 19th, 2005, 02:46 PM
ok, ive tried win2000 via CD, winXPhome via CD, WinXP Pro via CD, winXP Pro ISO, and DamnSmall Linux, everything stops and either powers off the virtual machine or just stops when it hits network detection.

WinXP (all) virtual machine powers off abruptly

Win2000 (workstation) hardware detection dialog stops when bar is full. can still move the window around, move the mouse, but buttons are greyed out and system doesnt proceed with install.

DamnSmall Linux (bootable CD) virtual machine powers off abruptly at network detection


Any help?
I'll be trying reinstalling vmware player later today, and doing the network differently.

I get the same, I have a RT2500 wireless card installed and when any win installation gets to hardware detection (usually network) it powers of the vm. Any help appreciated.



edit
Just disabled the ethernet in the .vmx file and its installing far far quicker this time, will report back.

Wombley
December 19th, 2005, 03:13 PM
I'm sorry but OS X won't work on vmware as it''s based on PowerPC, a completely different architechture to what vmware emulates (x86 - although I suppose it's possible it'll be able to in the future, as Apple is moving to x86). For now I think the only real option for this is PearPC (http://pearpc.sourceforge.net/), although I'm not sure how well it works.

You install linux the same way you install windows - see the rest of this thread. If you look at the bottom of the VMWare window as it's booting up you'll see options for going into the BIOS - you'd probably want to do this and change the boot order to cdrom first if you're trying out lots of live cds.

First of all i just wanted to say that this thread is really nice i could install winxp and everithing works fine but 3d graphics (i new it would not work, in advance)
It is really cool. I can only compare with qemu but vmware seems much more smooth than qemu and easyly connects usb devices.
Now I have a question. One of my friends lended me the install disks of his ibook g4. So my question is if it is possible to install os x on vmware and how to do so. And finally one more question how to install a linux inside vmplayer (i would like to try out some live cd-s etc.

thanks in advance

imagine
December 19th, 2005, 04:32 PM
Now I have a question. One of my friends lended me the install disks of his ibook g4. So my question is if it is possible to install os x on vmware and how to do so.
I'm sorry but OS X won't work on vmware as it''s based on PowerPC, a completely different architechture to what vmware emulates
To nitpick a bit: The reason why OS X won't work is because VMware is *no* emulator : ) It cannot emulate a processor which doesn't exist, it only creates virtual machines which can use the processor together at the same time. And with the upcoming virtualisation technologies Vanderpool (Intel) and Pacifica (AMD) this will get even better.

edemark
December 20th, 2005, 02:02 AM
That is really sad that i will not be able to try out os x. :) Thanks anyway and thanks again for the thread :) which i used to set up xp. I now see why vmware is so good to my cpu "as it is not an emulator" so i do not mind that much that os x shall wait and there are possibilities (future) with the qemu (which is an emulator).

So thanks again for the thoughts

pd i have not used wine for creating the image file qemu did the trick and just one more thing new qemu is out have a look and you might not have to download wine (at least for this reason)

anil_robo
December 21st, 2005, 02:37 AM
This is a great how-to, but unfortunately the main author has not updated the information he got from other users! I guess someone should take the initiative of writing a good, newbie-friendly how-to based on this one! Even someone like me should be able to trap windows XP in Ubuntu's cage so that it does not trouble me anymore (and still plays Diablo II) :)

Juzz
December 21st, 2005, 08:20 AM
I was able to use my wireless connection by using this option:

ether