Posts

Foresight Technologies

Foresight Technologies located in Phoenix and Tempe Arizona currently utilizes N2 Network Solutions for 24/7 maintenance and monitoring.  N2 has also done site to site VPN solutions for Foresight using Cisco ASA 5505 firewalls.  Their server infrastructure, implemented by N2, is composed of Vmware ESX servers with multiple virtual machines.

Adding SSH capability to ESXi

Go to the ESXi console and press alt+F1
Type: unsupported
Enter the root password
At the prompt type “vi /etc/inetd.conf”
Look for the line that starts with “#ssh” (you can search with pressing “/”)
Remove the “#” (press the “x” if the cursor is on the character)
Save “/etc/inetd.conf” by typing “:wq!”
Restart the management service “/sbin/services.sh restart”

Booting to ESXi 3.5 from a USB flash drive

The first thing you’ll need to do is make sure you find at least a 1gb flash drive.
Next use a program like Winrar or Peazip to get into your vmware install iso.
First open the iso file with Winrar. It is not associated by default so you will have to right click on it and do open with Winrar.
Next you will want to open a file named Install.TGZ then the file in that Install.TAR then usrlibvmwareinstallerVMware-VMvisor-big-3.5.0_Update_3-123629.i386.bz2VMware-VMvisor-big-3.5.0_Update_3-123629.i386.dd
Once you get this file extracted you need to download a program called Winimage.
Once WinImage is installed open it and go to Disk>restore virtual hard disk image on physical drive> From here select your thumb drive to write to it. Find the .dd file that you extracted in the previous step. Once you write this you should be all set. A VERY important note you need to go into your BIOS and select “USB Mass Storage Emulation Type” – “All Fixed Disc if you do not do this you will receive an error when trying to boot to the thumb drive.
lspci -vvnn > lspci.log
Now that we have the ESXi image on our thumb drive if we have an unsupported system there is one more step we need to go through. We need to edit 2 files for our storage controller and network card to be compatible.
)cd /tmp/
2) mkdir -p oem/etc/vmware
3) mkdir -p oem/usr/share/hwdata
4) cd oem/etc/vmware
5) cp /etc/vmware/simple.map simple.map
6) vi simple.map
add the necessary PCI data for your devices
7) close vi – press ESC and enter :wq
8) cd /tmp/oem/usr/share/hwdata
9) cp /usr/share/hwdata/pci.ids pci.ids
10) vi pci.ids
add the necessary description for your devices (this will be displayed in the console and VI Client)
11) close vi – press ESC and enter :wq
12) cd /tmp/oem
13) chown -R 201:201 ./etc
14) chown -R 201:201 ./usr
15) chmod -R 755 ./etc
16) chmod -R 755 ./usr
17) chmod 644 ./etc/vmware/simple.map
18) chmod 644 ./usr/share/hwdata/pci.ids
19) tar -cvzf oem.tgz etc usr
20) cp oem.tgz /bootbank/oem.tgz
21) cd /bootbank/
22) chmod 755 oem.tgz
23) reboot the host

My battle with installing ESXi 3.5 Update 2

pciids-intelSo I found out Vmware ESXi 3.5 their latest version is free! And it’s only 32mb and it is completely host independent. So I decided to give it a shot. First I downloaded it just to be faced with an error during the install. I’m trying to install it on my Intel DX58SO motherboard with an i7 processor.
vm-error
Now for my entries
pciids
From here I was able to browse the web to determine my Intel SATA controller was not supported by Vmware. In fact I’m under the impression the supported list is very small. Then I discovered there was a community put together hardware compatibility list. These nice people even created custom files for installing ESX. You can download these files so that your install disk supports more controllers. This is the step I’m going to describe because this is what I have to do to install my version.
First you need to get a minimum 512mb USB thumb drive. What we’re going to do is create an image from the CD to this thumb drive so that we can modify the files and then boot to it to install ESXi. Your motherboard must support USB booting.
First thing you need to download Syslinux. The reason we’re downloading this is so we can boot to it to launch the install.
Now format your USB stick using FAT32. Then browse to the directory in which you extracted your Syslinux files and run this command “syslinux.exe . This will make your USB disc bootable and copy over the files necessary for Syslinux to run. Now you will want to copy all the files from the ESXi downloadable iso. You can do this by downloading a program called Winrar or you can burn the ISO using Nero then just simply copy all the files over. Whichever way you want to do it.
Now you will want to download 1.04 or latest version of the community OEM.TGZ file. This file contains all of the drivers for tons of SATA and Network cards. Once you download this file you must rename it OEM.TGZ and replace the one on your USB stick. This will give you the added driver support. If your device is supported you can now boot to your USB stick and install ESXi.
If you made it this far it means your device was not on the list. That is unfortunate. Now that you are back in Windows go into your device manager and find your SATA controller. Here is an example of mine:
hardware
ids
You can see fro my image my vendor number is 8086 and my model is 3A26. I actually have two my other one is the same vendor but it’s 3A20. So now I need to boot to my ESX install thumb drive again. Once I get the screen that says push to install I’m going to hit alt+F1. This is going to give me the console in which I can edit the files necessary. The login is going to be root with no password.
Once logged in here are the commands we’re going to run:
1) cd /tmp/
2) mkdir -p oem/etc/vmware
3) mkdir -p oem/usr/share/hwdata
4) cd oem/etc/vmware
5) cp /etc/vmware/simple.map simple.map
6) vi simple.map
— add the necessary PCI data for your devices
i.e.
simplemap
7) close vi – press ESC and enter :wq
8) cd /tmp/oem/usr/share/hwdata
9) cp /usr/share/hwdata/pci.ids pci.ids
10) vi pci.ids
— add the necessary description for your devices (this will be displayed in the console and VI Client)
i.e.
Keep your file organize find your manufacturer first mine is intel in this case
pciids-intel1
Now for my model number entries:
pciids1
11) close vi – press ESC and enter :wq
12) cd /tmp/oem
13) chown -R 201:201 ./etc
14) chown -R 201:201 ./usr
15) chmod -R 755 ./etc
16) chmod -R 755 ./usr
17) chmod 644 ./etc/vmware/simple.map
18) chmod 644 ./usr/share/hwdata/pci.ids
19) tar -cvzf oem.tgz etc usr
20) mkdir -p /bootbank/
21) cp oem.tgz /bootbank/oem.tgz
22) cd /bootbank/
23) chmod 755 oem.tgz
24) reboot