[ESXi 3.5] ESXi 3.5 Update 5 Install CD with oem.tgz + ssh,ftp,rsync and wget (made easy)!

Hello,

It has been a while since I was really doing something new with VMWare, but as I had the need to install some new Servers, I also was looking for better ways on integrating oem.tgz and other features. For that, I stumbled upon an very cool and useful Linux Build Script for ESXi, made by the User Varazir. After this How To you're going to hold an ISO Installer with SSH, FTP, RSYNC, WGET and the Community Unified Driver Pack 1.1.0 oem.tgz in your Hands. Or an USB Stick with the same features - as Live Boot or Installer. Your choice.

Download:
VMware-VMvisor-InstallerCD-3.5.0_Update_5-207095.i386.iso: Vmware.com / ESXi 3.5 Download Section
Mkesxiiso.sh: http://varazir.mine.nu/esxi/
CommunityUnifiedDriverPack_v1.1.0_U3-123629.oem.gz: http://www.vm-help.com/esx/esx3i/Custom_oem.tgz/CommunityUnifiedDriverPack_v1.1.0_U3-123629.oem.gz

What you also need:
An english (!) speaking and recent Ubuntu Version with installed mkisofs.
You can use the VMWare Player for that ;-).

How To:
Copy all the files into the /tmp Folder of the Ubuntu Installation.
Rename the CommunityUnifiedDriverPack_v1.1.0_U3-123629.oem.gz to oem.tgz
Give chmod +x to the latest Mkesxiiso.sh (in my case: chmod +x mkesxiaio_3.9.1.sh).
Run sudo ./mkesxiaio_3.9.1.sh
Now the Script is going to walk you through the build of the ESXi System.

Thanks to Varazir and www.vm-help.com its finally very easy to build an custom system!

Addition: Add User to installed ESXi:
If you got an installed ESXi 3.5 and want to have an second User to use ssh and ftp instead of "root only", do this:
userdelete the old additional VMWare User you created. Create it a new with: useradd Username -M -d /
Wit that command you create the new user and put its root folder into "/" (root).
Problem why an normal user can't access ssh is, that VMWare does erase the home Folder on every boot.
You should also change the User Password on creation with passwd Username...

ESXi 3.5 on Dell Optiplex 745

- Exchange oem.tgz on root of ESXi 3.5 Install CD with new oem.tgz
- Install with CD with OEM Community Version or IC8 oem.tgz  (SATA on Normal Mode)
- Boot from Knoppix 5.1, copy OEM.tz onto hda5 / Hypervisor Partition  (SATA on  Legacy Mode)
- Boot, works!

Hints:
- Use UltraISO und BurnISO to modificiate / burn the stock ISO
- http://www.vm-help.com./esx/esx3i/customize_oem_tgz.php

Get Ethernetcard working again in Linux under ESXi

After installing Ubuntu Server on Vmware ESXi, I couldn't find a NIC:

sudo /etc/init.d/networking restart

* Reconfiguring network interfaces...
eth0: ERROR while getting interface flags: No such device
SIOCSIFADDR: No such device
eth0: ERROR while getting interface flags: No such device
SIOCSIFNETMASK: No such device
SIOCSIFBRDADDR: No such device
eth0: ERROR while getting interface flags: No such device
eth0: ERROR while getting interface flags: No such device
Failed to bring up eth0.

Problem is that the ethernet MAC addresses are cached.

To remove the cache values:

sudo rm /etc/udev/rules.d/70-persistent-net.rules

Reboot, and it should work.

Other NIC files:
* /etc/hosts - change ip address and hostnames
* /etc/hostname - change hostname
* /etc/network/interfaces - change ip address

Eisfair von ESXi auf CF

- ESXi Export für Workstation / Player
- Erweitere Template mit VMXBuilder um IDE Festplatte, size minimum the SCSI HDD
(Vorsicht, IDE:0:0!, CD Laufwerk auf IDE:0:1 setzen!)
- Booted VM mit "Ultimate Boot CD", starte Tool "g4u" V1.17
- Kopiere SCSI Disk auf IDE Disk
- Editiere Template: Entferne SCSI HDD
- Boote mit "Ultimate Boot CD", DamnSmall Linux
- mount /dev/hda2
- sudo vi /etc/fstab: /dev/sda1 und /dev/sda2 auf /dev/hda1 und /dev/hda2 ändern
- umount
- boot

Bootloader
---------------------------------
---------------------------------

/etc/lilo.conf
---------------------------------
disk = /dev/hda
bios = 0x80
boot = /dev/hda
read-only
prompt
timeout = 50
vga = normal
image = /boot/kernel
root = /dev/hda2
label = eis
initrd = /boot/initrd.gz
append = "ide=nodma acpi=force"
---------------------------------

Anschließend "lilo -v"

- wenn Eisfair läuft, neustarten
- Boot auf CD Image Acronis Home
- Image erstellen und auf Netzlaufwerk speichern

Am neuen PC
- Installiere Eisfair auf dem neuen Datenträger / CF
- wenn Eisfair läuft, neustarten
- Boot auf CD Image Acronis Home
- Image von hda2 aus dem Netzlaufwerk wiederherstellen
- booten
- Anschließend "lilo -v"

fertig