Creating a New Virtual Machine for ESX
How to create a new virtual machine, using VMWare Infrastructure Client (VI Client) wizard.
Create Datastore
- Run the VI Client; enter your server's IP address, username and password.
- Pick Inventory > Configuration. Select Click here to create a datastore.
- Select radio button Disk/LUN
- Under Device location - leave defaults
- Under Current disk layout - select radio button Use free space
- Under Properties - select datastore name, e.g. dell06
- Under Formatting - pick 1024GB, block size 4MB. Leave checkbox Maximize capacity selected.
- Click Next and Finish.
- Verify that under Inventory > Configuration > Hardware > Storage there is an entry: Identification=dell06, Device=vmhba0:0:0:7, Capacity=221.00GB, Free=220.45GB, Type=vmfs3.
- Reboot the ESX server. (You can do this from the VI Client - right-click the server name in the leftmost navigation pane and pick Reboot.)
Warning: Rebooting at this place is essential, otherwise the datastore does not work! In some other cases VI Client may not properly initialize file system. When trying to create a new virtual machine, you may get the following message General system error occurred: read only file. Solution to this may be found in newsgroups.
Creating new virtual machine
- Pick tab Getting Started, click Create a new virtual machine
- Leave Typical
- Give your virtual machine a name, e.g. winxp61
- As a datastore pick the datastore you created in the previous subsection.
- As a Guest Operating System, select radio button Microsoft Windows and select version Microsoft Windows XP Professional (32 bit)
- Leave the number of virtual processors equal to 1 (default).
- As a RAM memory, pick 512MB (overwrite the default 256)
- Pick two NIC cards per your VMWare. They are both VM Network, Adapter = Enhanced vmxnet, connect at power on is Yes.
- Leave virtual disk size at 8GB.
- Click Finish
Preparing the ISO image
- Run WinSCP (SCP client) and connect to the standard SSH port (22) on your ESX server.
- Log in as "administrator" user.
- Copy the ISO image file you wish to install, e.g. winxpproeng_sp2.iso
- Connect with a regular SSH client (PuTTY) to the same ESX server. Issue these commands
sudo mkdir /vmimages/tools-isoimages/myimages
sudo mv /home/administrator/winxpproeng_sp3.iso /vmimages/tools-isoimages/myimages
Preparing the SCSI drivers
- Right click the virtual machine, e.g. winxp61, select Edit Properties. Verify, what is written next to SCSI Controller property. It could be either BusLogic or LSI Logic.
- Check that there is a BusLogic driver /vmimages/floppies/vmscsi-1.2.0.2.flp on the ESX server.
- If there is no such file (or you want another driver or a newer version version), you can also download an appropriate driver, e.g.
- LSI Logic XP Driver (older version)
- LSI Logic XP Driver (newer version)
- BusLogic XP Driver
- If you download another driver, use WinSCP to move it to an appropriate subdirectory, e.g. /vmimages/floppies/myimages
- Select Floppy Drive, and select an appropriate *.flp file.
- Do not check the Connect at power on box for the floppy device. Otherwise XP when you go to start the installation will try to boot from the floppy disk and will fail.
- Check the Connected checkbox for the floppy device though.
Run the machine for the first time
- Run the VMWare Infrastructure (VI) Client. Log in as "administrator"
- In the left navigation window pick the dell06 ESX server and select winxp61.
- Right click that entry and pick Edit Settings
- Pick CD/DVD Drive 1, select the checkbox Connect at power on
- Select radio button Datastore ISO file, click Browse
- Select /vmimages/tools-isoimages/myimages/winxproeng_sp2.iso, and click OK. You will have the following text displayed in the text-field: [] /vmimages/tools-isoimages/myimages/winxpproeng_sp2.iso
- Close the Properties dialog by clicking OK.
- In the VI Client console right-click the winxp61 and select Power On.
- Click the Console tab very fast, click inside the console screen so that the mouse focus is captured by the guest machine, and press F6 to get an opportunity to add more drivers.
- Press S to add drivers from a floppy disk.
- Read the message "Please insert the disk labeled...", at this moment select Edit Properties in the VI Client, and select option Connect for the floppy disk device.
- After adding drivers resume installation.
- Click Yes to install anyway despite the "Windows Logo test" warnings
Installation options for Windows XP
- Use defaults for installation, leave English (United States) as the regional settings, i.e. do not customize the regional options.
- Pick a user name Student from the organization Education and Training (the installation does not allow to pick Administrator at this point). Pick password from the data sheet.
- Enter the Volume License Product Key - a combination of 25 letters and digits.
- After installation is done, shut down the machine.
- Detach the floppy drive and the CD-ROM by editing the properties for the shut down machine.
Links
- http://www.techhead.co.uk/vmware-esx-creating-a-windows-xp-vm-and-getting-error-setup-did-not-find-any-hard-disk-drives-installed-in-your-computer .
- http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1001805
Tags: esx