VMware

bensykes' blog

Bensykes' VMware blog

1 Posts
0

Update 30/10/08: More information about this received from the Vmware forums (see this thread ). Thanks jmattson!

For those of you who want to test out the free ESXi bare-metal hypervisor but don't have a "supported hardware" type - here is a method to run it within the free VMware Server 2 .


This has been tested with VMware Server 2 installed in a Ubuntu Hardy AMD64 Linux system, running on a system Intel Core2 Duo processor with Intel VT (P8600) with a plain old SATA drive. Other architectures/systems may work however your mileage may vary. There are 4 limitations:


Limitation 1 - Virtual SMP is supported however ESXi will stall on startup and take a while to load. It will start though. For virtual SMP to work you'll need at least 1GB of RAM set for both the ESXi VM in VMware Server and the VM within ESXi otherwise you'll get a memory allocation error when starting VM's within ESXi.
Limitation 2 - Only 32-bit OS guests are supported within the ESXi host. This is because the hardware VT is not exposed to the ESXi host from VMware server 2 which means no 64-bit CPU support.
Limitation 3 - Performance will be pretty slow and eat up a lot of CPU - as there is no VT support and 2 virtualization layers.
Limitation 4 - VMware server 2 needs to be running on a machine with hardware virtualization, either Intel VT or AMD-V.


Disclaimer:
This is pretty experimental and definitely not supported so use at own risk. I'm not at all responsible for anything that goes wrong!


Instructions:


1. Download, install and enter the license details for VMware Server 2 from here: http://www.vmware.com/download/server/. I used Build 116503 for Linux as a tarball. You could download the .rpm package and use alien to convert it to a .deb package for Debian/Ubuntu but the tarball is probably more straightforward.


2. Once installed, create a new virtual machine from the VMware server 2 web interface (http://localhost:8222). I set the operating system type to Red Hat Enterprise Linux 4 64-bit (UPDATE: use "Other 32-bit"). Everything else can be set to default, no need to configure any particular options unless you want them. Networking is probably best to set as either bridged (if you have a network supporting DHCP) or NAT. For testing between 4-8 GB of virtual disk space should be enough to install 1 or 2 VM's within the ESXi VM.


Edit the .vmx file that is created (default path on linux is /usr/lib/vmware/Virtual Machines/<vm name>/<vm name>.vmx. Add in these lines to the file and save to allow a virtual machine to run within a virtual machine (see this thread for details):


{code}
monitor.virtual_exec = "hardware"
monitor_control.restrict_backdoor = "TRUE"
{/code}


3. Download (and optionally burn the ISO image) for the VMware ESXi hypervisor from http://www.vmware.com/download/esxi/ .


4. Start up the new virtual machine from within the VMware Server 2 web
interface, and use the console to either connect the ISO image for ESXi
or connect to the drive containing your optionally burnt ESXi boot CD.


5. Install the ESXi hypervisor within the VM console. Default options are fine (not that it gives you many options).


6. Once installed, put a password on the root account within the ESXi VM (pressing F2 brings up the service console menu) to protect the machine. From your host PC, connect to http://<esxi-vm-ip-address>/ where <esxi-vm-ip-address> is
replaced by the reported system IP address. You can then install the Virtual Infrastructure Client (requires a windows PC or VM to install on) and configure the ESXi machine as necessary - it is as far as i can tell fully featured.


7. As for installing virtual machines and having them usable,i have tested it using Debian Etch i386 so far - i haven't tested with anything else, but i would assume any 32-bit OS would work successfully.

0 Comments 0 References Permalink
Click to view bensykes's profile Member since: Oct 28, 2008

Bensykes' VMware blog

View bensykes's profile

Recent Comments

  • No recent comments.

Popular Tags

Archives

Communities