lost and found ( for me ? )

ESXi 4.1 update 1: How to change language environment of vSphere Client

vSphere Client Version : 4.1.0 Build 345043
VMware ESXi Version : 4.1.0 Build 348481

I installed vSphere client with Japanese language environment , but I want to change it in English.

There are two ways

- method 1

open command prompt and start vSphere client ( VpxClient.exe ) with “--locale en_US” option.

>"C:\ProgramFiles\VMware\Infrastructure\VirtualInfrastructureClient\Launcher\VpxClient.exe" --locale en_US


- method 2

open VMware vSphere Client property and add “--local en_US”.



Language environment has changed in English.

VMware ESXi 4.1.0 Update 1 : CPU Hot plug


I referred to the following URL.
http://communities.vmware.com/docs/DOC-10493

[ software info ]

ESXi
~ # vmware -l
VMware ESXi 4.1.0 Update 1


VM is Scientific Linux6 (SL6) 32bit. I assigned 1 vCPU.
[root@sl6-1 ~]# cat /etc/redhat-release
Scientific Linux release 6.0 (Carbon)

[root@sl6-1 ~]# uname -r
2.6.32-131.6.1.el6.i686


[ procedures ]

Step1

power off VM

Step2

on vSphere client , enable CPU hot plug to that VM.

Step3

power on VM

Step4

add vCPUs

on vSphere client , VM -> edit -> Hardware -> CPU
I changed # of vCPUs from 1 to 4.


dmesg
[root@sl6-1 ~]# dmesg
processor LNXCPU:03: registered as cooling_device3
SMP alternatives: switching to SMP code
Booting Node 0 Processor 3 APIC 0x3
Initializing CPU#3
mce: CPU supports 0 MCE banks
x86 PAT enabled: cpu 3, old 0x0, new 0x7010600070106
Skipped synchronization checks as TSC is reliable.
Booting Node 0 Processor 2 APIC 0x2
Initializing CPU#2
mce: CPU supports 0 MCE banks
x86 PAT enabled: cpu 2, old 0x0, new 0x7010600070106
Skipped synchronization checks as TSC is reliable.
Booting Node 0 Processor 1 APIC 0x1
Initializing CPU#1
mce: CPU supports 0 MCE banks
x86 PAT enabled: cpu 1, old 0x0, new 0x7010600070106
Skipped synchronization checks as TSC is reliable.


# of vCPU truns 4.
[root@sl6-1 ~]# cat /proc/cpuinfo | grep "model name" | wc -l
4


On SL6 32bit , I don’t need to do anything to activate hot-plugged vCPUs.
Just only change # of vCPUs via vSphere client.

change # of vCPUs from 4 to 8.

# of vCPU turns 8.
[root@sl6-1 ~]# cat /proc/cpuinfo | grep "model name" | wc -l
8


dmesg
processor LNXCPU:07: registered as cooling_device7
Booting Node 0 Processor 6 APIC 0x6
Initializing CPU#6
mce: CPU supports 0 MCE banks
x86 PAT enabled: cpu 6, old 0x0, new 0x7010600070106
Skipped synchronization checks as TSC is reliable.
Booting Node 0 Processor 5 APIC 0x5
Initializing CPU#5
mce: CPU supports 0 MCE banks
x86 PAT enabled: cpu 5, old 0x0, new 0x7010600070106
Skipped synchronization checks as TSC is reliable.
Booting Node 0 Processor 4 APIC 0x4
Initializing CPU#4
mce: CPU supports 0 MCE banks
x86 PAT enabled: cpu 4, old 0x0, new 0x7010600070106
Skipped synchronization checks as TSC is reliable.
Booting Node 0 Processor 7 APIC 0x7
Initializing CPU#7
mce: CPU supports 0 MCE banks
x86 PAT enabled: cpu 7, old 0x0, new 0x7010600070106
Skipped synchronization checks as TSC is reliable.

[root@sl6-1 cpu]# pwd
/sys/devices/system/cpu

[root@sl6-1 cpu]# ls
cpu0  cpu2  cpu4  cpu6  cpufreq  kernel_max  online    present
cpu1  cpu3  cpu5  cpu7  cpuidle  offline     possible
[root@sl6-1 cpu]#
[root@sl6-1 cpu]# cat online
0-7

ESXi 4.1 update 1 : How to enable SSH access

You can enable SSH access via vsphere client.

vsphere client -> security profile -> click property

start SSH

Now you can login to ESXi via SSH
~ # vmware -l
VMware ESXi 4.1.0 Update 1

How to create bootable USB for ESXi 4.1 update1 with unetbootin on ubuntu 11.04


[ software info ]

ubuntu 11.04 server 64bit : 2.6.38-10-server
syslinux 4.02
unetbootin : 471-2ubuntu1
ESXi 4.1 update1 : VMware-VMvisor-Installer-4.1.0.update1-348481.x86_64.iso

[ logs ]

Step1

prepare USB stick ( I prepared 4GB USB stick. BUFFALO: model name YUF-4G-WH )
create a partition and format it by VFAT.

USB stick device name ( /dev/sdg )
create a partition ( /dev/sdg1 )
root@hat1:~# LANG=C fdisk  /dev/sdg

WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
       switch off the mode (command 'c') and change display units to
       sectors (command 'u').

Command (m for help): p   <- no partitions

Disk /dev/sdg: 4007 MB, 4007657472 bytes
124 heads, 62 sectors/track, 1018 cylinders
Units = cylinders of 7688 * 512 = 3936256 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x4911f7a1

 Device Boot      Start         End      Blocks   Id  System

Command (m for help): n   <- create a primary partition. # is 1
Command action
 e   extended
 p   primary partition (1-4)
p
Partition number (1-4): 1 <- partition 1
First cylinder (1-1018, default 1): 1  <- size
Last cylinder, +cylinders or +size{K,M,G} (1-1018, default 1018): +450M

Command (m for help): a  <- toggle bootable flag
Partition number (1-4): 1 <- partition number 1

Command (m for help): t  <- change partition type as W95 FAT32
Selected partition 1  <- partition number 1
Hex code (type L to list codes): b  <- W95 FAT32
Changed system type of partition 1 to b (W95 FAT32)

Command (m for help): w  <- save configuration
The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: If you have created or modified any DOS 6.x
partitions, please see the fdisk manual page for additional
information.
Syncing disks.

root@hat1:~# LANG=C fdisk -l /dev/sdg

Disk /dev/sdg: 4007 MB, 4007657472 bytes
124 heads, 62 sectors/track, 1018 cylinders
Units = cylinders of 7688 * 512 = 3936256 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x4911f7a1

 Device Boot      Start         End      Blocks   Id  System
/dev/sdg1   *           1         121      465093    b  W95 FAT32


Step2

format it
root@hat1:~# mkfs.vfat -n BOOT -F 32 /dev/sdg1
mkfs.vfat 3.0.9 (31 Jan 2010)


Step3

install unetbootin to  create a bootable USB.
root@hat1:~# apt-cache search unetbootin
unetbootin - installer of Linux/BSD distributions to a partition or USB drive

root@hat1:~# apt-get install unetbootin

root@hat1:~# dpkg -l unetbootin | tail -1
ii  unetbootin                            471-2ubuntu1                                 installer of Linux/BSD distributions to a partition or USB drive


connect USB stick and mount a partition you created.
then start unetbootin.
# mount /dev/sdg1 /media/USB/
# unetbootin


seletct ISO image and press OK.


creating



overwrite menu.c32 ( click yes )

done. click exit.

change directory
root@hat1:~# cd /media/USB/

root@hat1:/media/USB# ls
README.txt  cisco_n1k     isolinux.bin  open_source_licenses.txt  ubnpathl.txt
a.z         ienviron.vgz  isolinux.cfg  sys.vgz                   vmkboot.gz
boot.cat    imagedd.bz2   ldlinux.sys   syslinux.cfg              vmkernel.gz
cim.vgz     imagedd.md5   mboot.c32     tboot.gz
cimstg.tgz  install.vgz   menu.c32      ubnfilel.txt


Step4

modify syslinux.cfg. add “ks=usb:/ks.cfg”
root@hat1:/media/USB# cat syslinux.cfg
default menu.c32
menu title VMware VMvisor Boot Menu
timeout 80

label ESXi Installer
menu label ^ESXi Installer
kernel mboot.c32
append vmkboot.gz ks=usb:/ks.cfg --- vmkernel.gz --- sys.vgz --- cim.vgz --- ienviron.vgz --- install.vgz

label ^Boot from local disk
menu label ^Boot from local disk
localboot 0x80


Step5

make ks.cfg file.
root@hat1:/media/USB# cat ks.cfg
vmaccepteula
rootpw welcome
autopart --firstdisk --overwritevmfs
install usb
network --bootproto=static --ip=192.168.11.200 --gateway=192.168.11.1 --hostname=sumavihv --device=vmnic0 --nameserver=192.168.11.1 --netmask=255.255.255.0


Step6

copy /usr/lib/syslinux/mboot.c32 and /usr/lib/syslinux/menu.c32 to the USB stick’s partition.
root@hat1:/media/USB# cp /usr/lib/syslinux/mboot.c32 .
root@hat1:/media/USB# cp /usr/lib/syslinux/menu.c32 .


unmont a partition.
root@hat1:~# umount /dev/sdg1


that’s it !

I could install ESXi 4.1 U1 using this USB stick on HP ML110 G6 :)

procedures are:

connect USB stick and boot from USB stick
install ESXi in DL110’s HDD
after finishing the installation , press reboot
disconnect USB stick