|
home /
infca /
ESX
(navigation links)
|
El que triunfa no es el que acierta,
sino el que menos se equivoca.
|
ESX
HW
Tenim :
. CPU's RAM HD OpSys IP sn
lab001 = x3850, 8864-3RG 4x "Duo" de 3,169 GHz 8 cores 32 GB 6x 73 GB = 440 GB => 337 GB (raid-5) ESX 4.0 99.137.166.41 99A4863
lab003 = x3850-M2, 7233-2RG 4x "Quad" de 2,132 GHz 16 cores 108 GB 4x 146 GB = 587 GB => 417 GB (raid-5) ESX 4.0 92.168.78.93 99A2637
lab007 = x3850, 8864-4RG 4x "Duo" de 3,336 GHz 8 cores 24 GB 6x 146 GB = 880 GB => 680 GB (raid-5) ESX 4.0 99.137.166.48 99C4573
lab0s8 = x3850-M2, 7233-5LG 4x "SixCore" de 2,4 GHz 24 cores 112 GB 4x 143 GB = 572 GB => 408 GB (raid-5) ESX 4.0 99.137.164.23 99B9814
lab0s2 = x3850-X5, 7145-1RG 4x "Quad" de 1,86 GHz 16 cores 230 GB 8x 300 GB = 2,4 TB => 1,6 TB (raid-5) ESX 4.0 92.168.78.92 06A0616
lab0s6 = x3850-X5, 7143-1RG 4x "SixCore" de 1,87 GHz 24 cores 262 GB 8x 500 GB = 4,0 TB => 2x 1,36 TB(raid-5) ESXi 5.1 92.168.83.51 06X3824
lab0s5 = x3850-X5, 7143-B1G 4x "SixCore" de 1,87 GHz 24 cores 64 GB 8x 500 GB = 4,0 TB => 2x 1,36 TB(raid-5) ESXi 5.5 92.168.78.64 06Z3097
lab0s4 = x3850-M2, 7141-3RG 4x "Quad" de 2,40 GHz 16 cores 32 GB 2x 73 GB = 65 GB ESX 4.0 99.137.165.8 99A3380
.
bptse = x3650-M2, 7947-3AG 8x i7 CPU 920 a 2,1 GHz . 36 GB 800 GB (raid-5) + 1,9 TB (raid-5) + SAN ESXi 5.0.0 99.137.165.20 i .21 KD5161P
iLog = x3550, 7978-L2G 2x "Quad" de 2,493 GHz 8 cores 32 GB 4x 300 GB + 500 GB 99.137.165.7 . .9 KDWFBVF
2x BPM = x346, 8840-4RY 2x 3,6 GHz . 4 GB 200 GB ESX v4.1 99.137.166.61 i .63 KDXGVC4+KDXGTZ1
.
42C1780 = NetXtreme II 1000 Express Dual Port Ethernet Adapter -
url
46M0831 = ServeRAID M1015 SAS/SATA Controller -
url + 46M0832 = ServeRAID M1000 Series Advance Feature Key (RAID-5)
46M6050 = Brocade 8 Gb FC dual-port HBA for IBM system X
El ESX parla de ... sockets, cores and cpus ...
-
System x3850 M2 at-a-glance guide.
System x3850 (8864) at-a-glance.
x3850 (8864) Compatibility sw & hw.
-
3850 M2 support.
url
-
eX5 Portfolio Overview: system x3850 X5, x3950 X5, x3690 X5, and BladeCenter HX5 -
redbook (memory configuration)
-
IBM System X at-a-glance guide :
pdf.
-
System x3950 M2 and x3850 M2 Technical Introduction -
Red Paper
-
Installation Guide - IBM System x3850 M2 and x3950 M2 (7141, 7233, 7234).
url.
PDF.
-
Problem Determination and Service Guide - IBM System x3850 M2 and x3950 M2 (Type 7141, 7233, 7234).
url.
PDF.
-
User's Guide - IBM System x3850 M2 and x3950 M2 (7141, 7233, 7234).
url.
PDF.
-
Quick Installation Guide - Brocade 8 Gb FC Single-Port and Dual-Port HBAs for IBM System x
url.
PDF.
-
Tuning IBM System xServers for Performance.
url
-
x3650-m2 at a glance.
-
IBM System x3950 M2 and x3850 M2
Technical Introduction.
-
Rack power configurator.
-
Compatibility for hardware, applications, and middleware [*****],
xSeries,
OS info : ESX 4.1 required by x3850 X5.
BMC
The Baseboard Management Controller (BMC) is a small, independent micro-controller used
to perform low-level system monitoring and control functions, as well as remote IPMI interface functions.
It uses multiple I2C bus connections to communicate out-of-band with other onboard devices.
The BMC provides environmental monitoring for the server.
If environmental conditions exceed thresholds or if system components fail,
the BMC lights the light path diagnostic LEDs to help you diagnose the problem and also records the error in the BMC system event log.
x3850 M2 Tech Intro
RSA II
The x3850 M2 and x3950 M2 have the Remote Supervisor Adapter II service processor as a standard component.
This adapter is installed in a dedicated PCI-X slot, and provides similar functionality
as the Remote Supervisor Adapter II PCI option available for other System x servers.
However, only the Ethernet and video connectors are used on the x3850 M2 and x3950 M2.
The other external ports (including remote power and the ASM interconnect) are not supported on these servers.
x3850 M2 Tech Intro
RSA + BMC = IMM
System Management Bridge BMC CLI and Remote Console Utility v2.0.25.1 -
SMBridge :
SMBridge provides server management ability via two distinct modes of operation,
a "Command Line Interface" mode (CLI) and an "Interactive Server" mode (Server).
CLI Mode:
In CLI mode, SMBridge supports out-of-band (OOB) access (through LAN or serial port) to a remote server.
It enables SMBridge users to execute IPMI control commands in a native command line to manage the remote server.
To ease the use of this utility, SMBridge also supports an interactive usage, invoked by -interactive option.
Server Mode:
In server mode, SMBridge is started as a background service or daemon after SMBridge package is installed.
This service/daemon can be connected using any standard telnet client.
After connected, user will be provide a command line interface with SMBridge> prompt.
All commands provided in CLI SMBridge interactive mode can also work for server mode.
In addition, two commands are added: console and reboot.
These two commands allow administrators to view and change the BIOS settings,
access to Linux serial console and Microsoft's EMS/SAC interfaces.
The IMM and IMM2 consolidate service processor functionality
previously provided by the combination of the Baseboard Management Controller (BMC)
and the Remote Supervisor Adapter II in IBM System x and BladeCenter products -
url
USB device (FAT32)
First test :
[sebas@BCNILOG01 ~]$ tail -f /var/log/messages
Feb 27 14:33:52 ILOG01 kernel: [2260195.316861] scsi6 : usb-storage
Feb 27 14:33:54 ILOG01 kernel: [2260197.325327] Vendor: SanDisk Model: Cruzer Blade Rev: 1.00
Feb 27 14:33:54 ILOG01 kernel: [2260197.325409] Type: Direct-Access ANSI SCSI revision: 02
Feb 27 14:33:54 ILOG01 kernel: [2260197.327194] SCSI device sde: 7837696 512-byte hdwr sectors (4013 MB)
Feb 27 14:33:54 ILOG01 kernel: [2260197.328041] sde: Write Protect is off
Feb 27 14:33:54 ILOG01 kernel: [2260197.329289] sde: cache data unavailable
Feb 27 14:33:54 ILOG01 kernel: [2260197.329298] sde: assuming drive cache: write through
Feb 27 14:33:54 ILOG01 kernel: [2260197.331750] SCSI device sde: 7837696 512-byte hdwr sectors (4013 MB)
Feb 27 14:33:54 ILOG01 kernel: [2260197.332245] sde: Write Protect is off
Feb 27 14:33:54 ILOG01 kernel: [2260197.333375] sde: cache data unavailable
Feb 27 14:33:54 ILOG01 kernel: [2260197.333385] sde: assuming drive cache: write through
Feb 27 14:33:54 ILOG01 kernel: [2260197.333388] sde: sde1
Feb 27 14:33:54 ILOG01 kernel: [2260197.334204] sd 5:0:6:0: Attached scsi removable disk sde
Feb 27 14:33:54 ILOG01 kernel: [2260197.334249] sd 5:0:6:0: Attached scsi generic sg6 type 0
Feb 27 15:07:49 ILOG01 vobd: Feb 27 15:07:49.102: 2265686442850us: [vprob.storage.connectivity.lost]
Lost connectivity to storage device mpx.vmhba33:C0:T0:L0. Path vmhba33:C0:T0:L0 is down. Affected datastores: Unknown.
Complete one:
[sebas@BCNILOG01 ~]$ tail -f /var/log/messages
Oct 13 15:45:03 bcnlab003 logger: - - - - - - - - SAGcron15min - v1.2
Oct 13 15:59:40 bcnlab003 kernel: [2169234.441871] scsi7 : usb-storage
Oct 13 15:59:42 bcnlab003 kernel: [2169236.656398] Vendor: Model: Rev: PMAP
Oct 13 15:59:42 bcnlab003 kernel: [2169236.656491] Type: Direct-Access ANSI SCSI revision: 02
Oct 13 15:59:42 bcnlab003 kernel: [2169236.658502] SCSI device sdn: 2006016 512-byte hdwr sectors (1027 MB)
Oct 13 15:59:42 bcnlab003 kernel: [2169236.659127] sdn: Write Protect is off
Oct 13 15:59:42 bcnlab003 kernel: [2169236.660427] sdn: got wrong page
Oct 13 15:59:42 bcnlab003 kernel: [2169236.660441] sdn: assuming drive cache: write through
Oct 13 15:59:42 bcnlab003 kernel: [2169236.662850] SCSI device sdn: 2006016 512-byte hdwr sectors (1027 MB)
Oct 13 15:59:42 bcnlab003 kernel: [2169236.663468] sdn: Write Protect is off
Oct 13 15:59:42 bcnlab003 kernel: [2169236.664722] sdn: got wrong page
Oct 13 15:59:42 bcnlab003 kernel: [2169236.672310] sdn: assuming drive cache: write through
Oct 13 15:59:42 bcnlab003 kernel: [2169236.672315] sdn: sdn1
Oct 13 15:59:43 bcnlab003 kernel: [2169236.678484] sd 5:0:15:0: Attached scsi removable disk sdn
Oct 13 15:59:43 bcnlab003 kernel: [2169236.686222] sd 5:0:15:0: Attached scsi generic sg16 type 0
Some hand work:
[root@bcnlab003 /]# mkdir /mnt/usb-disk
[root@bcnlab003 /]# mount /dev/sdn1 /mnt/usb-disk/
[root@bcnlab003 /]# cd /mnt/usb-disk/
[root@bcnlab003 usb-disk]# ls -al
total 12
drwxr-xr-x 2 root root 4096 Jan 1 1970 .
drwxr-xr-x 5 root root 4096 Oct 2 11:51 ..
-rwxr-xr-x 1 root root 229 Oct 10 10:17 a.txt
[root@bcnlab003 usb-disk]# cat a.txt
Volume in drive H is SAG-1G
Volume Serial Number is 2872-070F
Directory of H:\
10-10-14 08:17 0 a.txt
1 File(s) 0 bytes
0 Dir(s) 1.025.036.288 bytes free
[root@bcnlab003 /]# umount /dev/sdn1
[root@bcnlab003 /]#
ESXi :
[sebas@BCNILOG01 ~]$ tail -f /var/log/usb.log
2014-10-13T13:15:09Z usbarb[9043]: USBArb: 2 Devices enumerated
2014-10-13T13:15:09Z usbarb[9043]: USBArb: Device 0:name:IBM\ RNDIS/CDC\ ETHER vid:04b3 pid:4010 path:6/1 speed:full family:comm version:2 id:6000204b34010 owner:(null)
2014-10-13T13:15:09Z usbarb[9043]: USBArb: Device 1:name:Kingston\ Removable\ Disk vid:13fe pid:1a23 path:3/1 speed:full family:storage version:2 serialnum:6E660A00177A id:3000213fe1a23 owner:(null)
SW
The name ESX originated as an abbreviation of "Elastic Sky X" ...
ESX is an enterprise-class, type-1 (or bare-metal) hypervisor (or virtual machine monitor)
En principi treballem amb ESX v 4.0 :
[root@bcnlab0s8 cmds]# cat /etc/issue
VMware ESX 4.0 (Kandinsky)
Que accepta els següents Sistemes Operatius:
- Windows Server 2008 R2
- Windows 7
- Windows Server 2008
- Windows Vista
- Windows Server 2003
- Windows XP
- Windows 2000
- Windows NT 4.0
- Windows ME
- Windows 98
- Windows 95
url :
Guest Operating System installation guide
+
supported
Guest Operating Systems
how to reset root password
- reboot ESX v4.0
- wait for GRUB screen
- move arrow down to point to "Troubleshooting Mode"
- enter "a" letter, indicating "kernel arguments" or "boot options"
- type a "space" followed by the text "single" and then "intro"
- you'll get "sh-2.05b#" prompt - type "passwd" and then entre the new password twice
- now, at the "sh-2.05b#" prompt, type "reboot"
url
esx v5
Ens cal v5 per :
Whats new in vSphere 5.1
Ens cal v5 per :
- hardware version 9
- assign 1 TB of RAM to VM
esx v5.5
Ens cal v5.5 per :
Com "matar" una VM:
/vmfs/volumes/backup
esxcli vm process list // see "world-number" of each VM
esxcli vm process kill --type=soft {|hard|force} --worls-id=world-number
Veure la versio del ESXi:
~ # vmware -v
VMware ESXi 5.5.0 build-1746974
Aturar la maquina :
/bin # poweroff
/bin #
ESXi 5.5 Error: vSphere Client could not connect from XP client
When VMware vClient tries to connect to ESX 5.5 server, the error message reads like:
vSphere Client could not connect to 192.168.1.100.
An unknown connection error occurred.
The client could not send a complete request to the server.
The underlying connection was closed: An unexpected error occurred on a send.
The solution is to edit /etc/vmware/rhttpproxy/config.xml in ESX server to insert
<vmacore>
...
<ssl>
...
<cipherList>ALL</cipherList>
...
</ssl>>
...
</vmacore>
Then, restart the service
/etc/init.d/rhttpproxy restart
"Copied it" or "Moved it" ?
The "I Moved It" option should be used when there is any license item related to the MAC,
as the MAC will be preserved (this can lead to interesting problems ...)
The "I Copied It" option should be used when you intend to run more than one copy of the VM in your vSphere environment.
La recomendación es mover la imagen porque sino el windows (a veces) pierde la licencia.
Si creas una copia necesitas una nueva licencia.
Compte : using "moved", the MAC gets copied, so mind not to start both VMs at the same time or "generate" new mac (win-7).
Accepted VM types
<vm>.ova requires ESX 4.1
Virtual disk provisioning
When creating a new virtual disk (VMDK) there are a few options for how the virtual disk is created and when the space is allocated.
- Thick Provisioned Lazy Zeroed:
Allocates the disk space statically (no other volumes can take the space), but doesnt write zeros to the blocks until the first write takes place to that block during runtime (which includes a full disk format).
- Thick Provisioned Eager Zeroed: (Recommended for I/O intensive workloads)
Allocates the disk space statically (no other volumes can take the space), and writes zeros to all the blocks.
- Thin Provision:
This method provides quick access to the virtual disk and increases storage utilization by allocating disk space on demand.
Allocates the disk space only when a write occurs to a block, but the total volume size is reported by VMFS to the OS. Other volumes can take the remaining space. This allows you to float space between your servers, and expand your storage when your size monitoring indicates theres a problem. Note that once a Thin Provisioned block is allocated, it remains on the volume regardless if youve deleted data, etc.
By definition, you would expect Thick Provisioning Eager Zeroed to be the fastest.
bibl
VMFS
Multiple servers can read/write the same filesystem simultaneously,
while individual virtual machine files are locked.
wiki
VMFS max datastore size
VMFS 3, being LVM-based, cannot properly deal with partitions of > 2TB.
ESX/ESXi has a limit of 2TB VMFS volumes.
What you can do is create a 2TB VMFS extend and then extend it to include the other space if you want all 4TB in one volume.
VMware vSphere 5.5 goes up to 64 TB
VMFS max file size
When you create a VMFS datastore on your VMware ESX servers many administrators select the default 1MB block size without knowing when or why to change it.
The block size determines the minimum amount of disk space that any file will take up on VMFS datastores.
So an 18KB log file will actually take up 1MB of disk space (1 block) and a 1.3MB file will take up 2MB of disk space (2 blocks).
But the block size also determines the maximum size that any file can be, if you select a 1MB block size on your data store the maximum file size is limited to 256GB.
So when you create a VM you cannot assign it a single virtual disk greater then 256GB.
There is also no way to change the block size after you set it without deleting the datastore and re-creating it, which will wipe out any data on the datastore.
Because of this you should choose your block size carefully when creating VMFS datastores.
The VMFS datastores mainly contain larger virtual disk files so increasing the block size will not use all that much more disk space over the default 1MB size.
You have the following choices when creating a datastore:
- 1MB block size 256GB maximum file size
- 2MB block size 512GB maximum file size
- 4MB block size 1024GB maximum file size
- 8MB block size 2048GB maximum file size
Besides having smaller files use slightly more disk space on your datastore there are no other downsides to using larger block sizes.
There is no noticeable I/O performance difference by using a larger block size.
When you create your datastore, make sure you choose your block size carefully.
1MB should be fine if you have a smaller datastore (less than 500GB) and never plan on using virtual disks greater then 256GB.
url
5 Ways to Administer ESX
- Console access to the Service Console
- SSH to the Service Console
- VMware Virtual Infrastructure (VI) Web Access to the ESX Server
- VMware Virtual Infrastructure Client (VI Client) to the Server (requires .Net)
- VMware Virtual Infrastructure Client (VI Client) to the Virtual Center Server (VC Server)
5 Ways to Administer a VMware ESX Server
Commands
Creació d'usuaris
useradd <nom> -g <grup> { as 'users' }
passwd <nom> { set new user password, as -p requires encrypted pwd }
I just set up an ESX 4.1 Server and added another user via vSphere Client.
Ticking "enable shell access" would enable SSH Access for this user.
The user was not allowed to log in.
After digging trough the PAM configuration I found out that
adding a user via vSPhere Client does not create the necessary entry in /etc/security/access.conf
So adding "+:username:ALL" fixed the issue.
[sebas@dyn-9-137-164-136 etc]$ cat group
root:x:0:root,sebas
adm:x:4:root,adm,daemon,sebas
ESX CLI
commands :
Compte : any changes made to the configuration of the host will not be seen by vCenter Server or the host itself until you restart the vmware-hostd daemon.
By restarting this daemon, the configuration file /etc/vmware/esx.conf will be re-read.
service mgmt-vmware restart
will restart this daemon.
Install & cfg
The vSphere CLI command set allows you to run common system administration commands against ESX/ESXI systems from an administration server of your choice.
You can run most vSphere CLI commands against a vCenter Server system and target any ESX/ESXi system that system manages.
vSphere CLI commands are especially useful for ESXi hosts because they do not include a Service Console.
vSphere CLI commands run on top of the vSphere SDK for Perl. The vSphere CLI, vSphere SDK for Perl,
and some prerequisite software are included in the installation package on Windows and on supported Linux distributions.
After you have installed the package, which includes the vSphere SDK for Perl,
you can run vSphere CLI commands or run scripts from the operating system command line.
Each time you run a command, you specify the connection options directly or indirectly.
When you run commands, you must specify the ESX/ESXi host against which you want to run the command and the user name and password for authentication.
When you run a vSphere CLI command, authentication happens in the order of precedence presented in
{Table 1-1, "vSphere CLI Authentication Precedence"}
| Authentication | Description | See
|
| Command line
|
Password (--password),
session file (--sessionfile),
or configuration file (--config) specified on the command line.
|
Using a Session File on page 14
|
|
Configuration file
|
Password specified in a .visdkrc configurationfile.
|
Using a Configuration File on page 15
|
|
Environment variable
|
Password specified in an environment variable.
|
Using Environment Variables on page 15
|
|
Credential store
|
Password retrieved from the credential store.
|
vSphere Web Services SDK Programming Guide and vSphere SDK for Perl Programming Guide.
|
|
Current account
(Active Directory)
|
Current account information used to establish an SSPI connection.
Available only on Windows.
|
Using Microsoft Windows Security Support Provider Interface (SSPI) on page 16
|
|
Prompt the user for a password.
|
Password is not echoed to screen.
|
|
local vsp_40_u1_vcli.pdf
esxcfg-nics -l
[root@lab007 etc]# esxcfg-nics -l
Name PCI Driver Link Speed Duplex Description
vmnic0 01:01.00 tg3 Up 100Mbps Full Broadcom Corporation NetXtreme BCM5704 Gigabit Ethernet
vmnic1 01:01.01 tg3 Up 100Mbps Full Broadcom Corporation NetXtreme BCM5704 Gigabit Ethernet
If you have a non-working NIC, you can try :
[root@lab007 etc]# esxcfg-nics -a vmnic0
It fixed (with a complete restart) a problem we had !
esxcfg-scsidevs -c
May give you better output to determine the where and what of your disks.
esxcfg-vswif= manage the Ethernet interfaces of the Service Console
[root@lab007 etc]# esxcfg-vswif -l {list the name of the vswif adapter}
Name Port Group IP Address Netmask Broadcast Enabled DHCP
vswif0 Service Console 9.137.164.27 255.255.255.0 9.137.164.255 true false
vswif1 Service Console 2 9.137.164.59 255.255.255.0 9.137.164.255 true false
[root@lab007 network-scripts]# esxcfg-vswif --del vswif1
Nothing to flush.
Command details :
[root@lab007 network-scripts]# esxcfg-vswif
esxcfg-vswif <options> [<vswif>]
-a | --add Add vswif, requires IP parameters. Automatically enables interface.
-d | --del Delete vswif.
-l | --list List configured vswifs.
-e | --enable Enable this vswif interface.
-s | --disable Disable this vswif interface.
-p | --portgroup Set the portgroup name of the vswif.
-i | --ip <X.X.X.X> or DHCP The IP address for this vswif or specify DHCP to use DHCP for address.
-n | --netmask <X.X.X.X> The IP netmask for this vswif.
-b | --broadcast <X.X.X.X> The IP broadcast address for this vswif. (not required if netmask and ip are set)
-c | --check Check to see if a virtual NIC exists. Program outputs a 1 if the given vswif exists, 0 otherwise.
-D | --disable-all Disable all vswif interfaces. (WARNING: This may result in a loss of network connectivity to the Service Console).
-E | --enable-all Enable all vswif interfaces and bring them up.
-r | --restore Restore all vswifs from the configuration file (FOR INTERNAL USE ONLY).
-h | --help Show this message.
esxcfg-vswitch : list, add, modify or delete virtual Ethernet switches on an ESX host
This command is one of the most useful commands in the Service Console
[root@lab007 etc]# esxcfg-vswitch -l
Switch Name Num Ports Used Ports Configured Ports Uplinks
vSwitch0 32 7 32 vmnic0
PortGroup Name Internal ID VLAN ID Used Ports Uplinks
VM Network portgroup1 0 2 vmnic0
Virtual Machine Network portgroup3 0 2 vmnic0
Service Console portgroup0 0 1 vmnic0
Switch Name Num Ports Used Ports Configured Ports Uplinks
vSwitch1 64 2 64 vmnic1
PortGroup Name Internal ID VLAN ID Used Ports Uplinks
Network 2 portgroup4 0 0 vmnic1
[root@lab007 network-scripts]# esxcfg-vswitch -D "Service Console 2" vSwitch1
Command details :
[root@lab007 network-scripts]# esxcfg-vswitch
esxcfg-vswitch [options] [vswitch[:ports]]
-a | --add Add a new virtual switch.
-d | --delete Delete the virtual switch.
-l | --list List all the virtual switches.
-L | --link=pnic Set pnic as an uplink for the vswitch.
-U | --unlink=pnic Remove pnic from the uplinks for the vswitch.
-p | --pg=portgroup Specify a portgroup for operation
Use ALL for operation to work on all portgroups
-v | --vlan=id Set vlan id for portgroup specified by -p. 0 would disable the vlan
-c | --check Check to see if a virtual switch exists. Program outputs a 1 if it exists, 0 otherwise.
-A | --add-pg=name Add a new portgroup to the virtual switch.
-D | --del-pg=name Delete the portgroup from the virtual switch.
-C | --check-pg=name Check to see if a portgroup exists. Program outputs a 1 if it exists, 0 otherwise.
-r | --restore Restore all virtual switches from the configuration file. (FOR INTERNAL USE ONLY).
-h | --help Show this message.
Com crear una 2-a conexio NIC
[root@esx1host root]# esxcfg-vswitch -a vSwitch1 ; add a 2nd switch
[root@esx1host root]# esxcfg-vswitch -A "Network 2" vSwitch1 ; and portgroup
esxcfg-info
[root@lab007 etc]# [root@lab007 root]# esxcfg-info > esxinfo-08-06-2009.txt
[root@lab007 root]# less esxinfo-08-06-2009.txt
URL
esxtop
12:05:23pm up 21:35, 132 worlds; CPU load average: 0.01, 0.02, 0.02
PCPU USED(%): 109.1 0.1 0.1 0.1 0.1 0.0 0.2 0.0 0.1 0.1 0.1 0.1 0.1 0.0 0.1 0.0 AVG: 6.9
PCPU UTIL(%): 100.0 100.0 100.0 3.1 3.3 3.1 3.2 3.1 3.3 100.0 100.0 100.0 100.0 100.0 100.0 100.0 AVG: 63.7
CORE UTIL(%): 100.0 100.0 3.4 3.3 3.6 100.0 100.0 100.0 AVG: 63.8
CCPU(%): 0 us, 100 sy, 0 id, 0 wa ; cs/sec: 284
ID GID NAME NWLD %USED %RUN %SYS %WAIT %RDY %IDLE %OVRLP %CSTP %MLMTD %SWPWT
1 1 idle 16 662.65 800.00 0.00 0.00 96.08 0.00 1.04 0.00 0.00 0.00
2 2 system 6 0.00 0.00 0.00 574.49 0.00 0.00 0.00 0.00 0.00 0.00
6 6 helper 77 0.15 0.28 0.00 7337.81 0.11 0.00 0.00 0.00 0.00 0.00
7 7 drivers 9 0.00 0.00 0.00 855.68 0.00 0.00 0.00 0.00 0.00 0.00
8 8 vmotion 4 0.00 0.00 0.00 380.11 0.00 0.00 0.00 0.00 0.00 0.00
10 10 console 2 33.95 94.96 0.00 95.02 0.00 0.03 0.04 0.00 0.00 0.00
15 15 vmkapimod 7 0.00 0.00 0.00 664.87 0.00 0.00 0.00 0.00 0.00 0.00
17 17 FT 1 0.00 0.00 0.00 94.95 0.00 0.00 0.00 0.00 0.00 0.00
18 18 vobd.4275 8 0.00 0.00 0.00 759.50 0.00 0.00 0.00 0.00 0.00 0.00
19 19 net-cdp.4283 1 0.00 0.00 0.00 93.30 0.00 0.00 0.00 0.00 0.00 0.00
20 20 vmware-vmkauthd 1 0.00 0.00 0.00 93.28 0.00 0.00 0.00 0.00 0.00 0.00
5 Critical VMware ESX CLI Network Troubleshooting Commands
- service network restart
The service X restart command is an excellent command
that allows you to restart any service running on your ESX Server.
In our case, we are using the network keyword to restart network services.
This is the command you should run after making changes to your ESX networking configuration.
You can also do network start or network stop.
This brings down all network interfaces, then brings up the interfaces configured to start at boot.
- ifconfig
This command is used to view the status of all network interfaces on the system.
However, it can do a lot more than just view an interface,
it can reconfigure interfaces, bring them down, or back up.
You can change the IP address of your interfaces with ifconfig.
- esxcfg-vswif
Allows you to view the status of or reconfigure the VMware Service Console (SC) network interface.
That SC network interface is called "vswif" and the first interface is always "vwsif0".
To view the status of it, you can use the -l (L for list) command
- esxcfg-vswitch
This command is used to view the status of or reconfigure the VMware virtual switches (called vswitch).
These vswitches are used to connect the physical NIC in the server (called vmnic)
to the ESX port groups (such as the "Service Console" and the "VM Network" port groups).
To view the status of your vswitches, you can use the -l (L for list) command.
- esxcfg-nics
This command is used to view the status of or reconfigure the VMware Physical Network interface cards
that are installed in the physical server.
These physical NICs are called "vmnic" and they start with "vmnic0".
The vmnics are connected to vswitches to connect the physical network to the virtual networks.
To view the status of your vmnics, you can use the -l (L for list) command.
URL
25 essential ESX commands
URL
How to troubleshoot common ESX problems in VMware
URL
ESX Server 1.5
troubleshootong guide
MAC address change
- click Edit Settings on the VM and then click on the network adapter.
The default option for MAC addressing is automatic.
You should be able to click the radio button for a manually created MAC address on that same screen and set it there.
- using VMX file :
- remove the VM from inventory (don't delete)
- using the Datastore Browser, or WinSCP, or SSH and VI, or FastSCP, browse to /vmfs/volumes/<datastorename>/<vmname>
- edit the <vmname>.vmx file (using your tool of choice) - you'll find the mac address specified in here - so just make sure to keep syntax etc correct.
- right click the .vmx using the Datastore browser and import it.
Using vmkfstools
You use the vmkfstools utility to create and manipulate
virtual disks, file systems, logical volumes, and physical storage devices on the VMware ESX hosts.
Using vmkfstools, you can create and manage virtual machine file system (VMFS)
on a physical partition of a disk.
You can also use the command to manipulate files,
such as virtual disk files, stored on VMFS-2, VMFS-3, and NFS.
The vmkfstools i command will allow you to clone the VMs disk to another VMFS datastore.
[root@lab0s8 ~]# vmkfstools
No valid command specified
OPTIONS FOR FILE SYSTEMS:
vmkfstools -C --createfs vmfs3
-b --blocksize #[mMkK]
-S --setfsname fsName
-Z --spanfs span-partition
-G --growfs grown-partition
deviceName
-P --queryfs -h --humanreadable
-T --upgradevmfs
-x --upgradetype [zeroedthick|eagerzeroedthick|thin]
-u --upgradefinish
vmfsPath
OPTIONS FOR VIRTUAL DISKS:
vmkfstools -c --createvirtualdisk #[gGmMkK]
-d --diskformat [zeroedthick|
thin|
eagerzeroedthick]
-a --adaptertype [buslogic|lsilogic|ide]
-w --writezeros
-j --inflatedisk
-k --eagerzero
-U --deletevirtualdisk
-E --renamevirtualdisk srcDisk
-i --clonevirtualdisk srcDisk
-d --diskformat [zeroedthick|
thin|
eagerzeroedthick|
rdm:<device>|rdmp:<device>|
2gbsparse]
-X --extendvirtualdisk #[gGmMkK]
[-d --diskformat eagerzeroedthick]
-M --migratevirtualdisk
-r --createrdm /vmfs/devices/disks/...
-q --queryrdm
-z --createrdmpassthru /vmfs/devices/disks/...
-v --verbose #
-g --geometry
vmfsPath
OPTIONS FOR DEVICES:
-L --lock [reserve|release|lunreset|targetreset|busreset] /vmfs/devices/disks/...
-B --breaklock /vmfs/devices/disks/...
For more information, please run 'man vmkfstools' to refer to the online manual.
url,
url,
How to display "Observed IP Ranges" ?
esxcfg-info -n (and optionally add " | grep Hint")
vSwitch's, PortGroups, etc
Ken's Virtual Reality :
The Great vSwitch Debate
Part 8 (Final) - importance of naming standards;
part 7 - configurations for systems with two, four, and six pNICS;
part 6 - first host configuration;
part 5 - various networks that you have to contend with in an ESX environment as well as an approach to help in deciding which networks to combine, if you have to;
part 4 - fault detection and the Cisco Discovery Protocol;
part 3 - various load balancing options that are available in a VMware vSwitch;
part 2 - vSwitch security features (Promiscuous Mode, MAC Address Change, and Forged Transmits) as well as network traffic shaping options;
part 1 - vSwitch functions, Port Groups, VLAN tagging/trunking, valid communications paths, and some other basic vSwitch information.
To bind some VM to a NIC and other to the second NIC you have to
build 2 vSwitch (but you loose NIC failover capacity)
or build 1 vSwitch with 2 portgroup.
There are 3 type of portgroup:
- VM portgroup - the IP is inside the VM
- SC portgroup - you must specify the IP for management
- vmkernel portgroup - you must specify an IP for iSCSI storage, and/or NFS storage, and/or VMotion
CLI improvement
For CLI I suggest to see also Perl or PowerShell extention,
cause API and SDK is more documented than the simple CLI.
Getting Started with the vSphere SDK for Perl
URL
Sample code,
scripts and resources.
vm-support -h : script for gathering debugging information
vm-support -x : list VM's id's
vmware-cmd
[root@myhost ~]# vmware-cmd -h
usage: vmware-cmd [options]
options:
-h, --help show this help message and exit
-v Verbose.
-q Quiet. Minimal output.
Connection Options:
-H <host> specifies an alternative host (if set, -U and -P must also be set)
-O <port> specifies an alternative port
-U <username> specifies a user
-P <password> specifies a password
Server Operations:
/usr/bin/vmware-cmd -l
/usr/bin/vmware-cmd -s listvms
/usr/bin/vmware-cmd -s register <config_file_path>
/usr/bin/vmware-cmd -s unregister <config_file_path>
VM Operations: ( use "vmware-cmd -l" to locate the cfg file )
/usr/bin/vmware-cmd <cfg> getstate
/usr/bin/vmware-cmd <cfg> start [soft|hard|trysoft]
/usr/bin/vmware-cmd <cfg> stop [soft|hard|trysoft]
/usr/bin/vmware-cmd <cfg> reset [soft|hard|trysoft]
/usr/bin/vmware-cmd <cfg> suspend [soft|hard|trysoft]
/usr/bin/vmware-cmd <cfg> getconfig <variable>
/usr/bin/vmware-cmd <cfg> setguestinfo <variable> <value>
/usr/bin/vmware-cmd <cfg> getguestinfo <variable>
/usr/bin/vmware-cmd <cfg> getproductinfo <product_info>
/usr/bin/vmware-cmd <cfg> connectdevice <device_name>
/usr/bin/vmware-cmd <cfg> disconnectdevice <device_name>
/usr/bin/vmware-cmd <cfg> getid
/usr/bin/vmware-cmd <cfg> getconfigfile
/usr/bin/vmware-cmd <cfg> getheartbeat
/usr/bin/vmware-cmd <cfg> getuptime
/usr/bin/vmware-cmd <cfg> gettoolslastactive
/usr/bin/vmware-cmd <cfg> hassnapshot
/usr/bin/vmware-cmd <cfg> createsnapshot <name> <description> <quiesce> <memory>
/usr/bin/vmware-cmd <cfg> revertsnapshot
/usr/bin/vmware-cmd <cfg> removesnapshots
/usr/bin/vmware-cmd <cfg> answer
Recommended sequence -
KB 1004340 :
- verify the VM is running : # vmware-cmd -l
- get VM's .vmx path, as /vmfs/volumes/<UUID>/<VMDIR>/<VMNAME>.vmx
- determine VM's state : # vmware-cmd <path.vmx> getstate
- stop VM : vmware-cmd <path.vmx> stop
- determine VM's state : # vmware-cmd <path.vmx> getstate
- stop VM : vmware-cmd <path.vmx> stop hard
- determine VM's state : # vmware-cmd <path.vmx> getstate
Si volem recollir informacio dels problemes amb la comanda "vm-support":
- determine the WorldID with the command: # vm-support -x
- kill the virtual machine by using this command in the home directory of the virtual machine: # vm-support -X <world_ID>
This can take upwards of 30 minutes to terminate the virtual machine.
El mètode mes dur amb ESX :
- donar la comanda /usr/lib/vmware/bin/vmdumper -l
- veure la part "vmxCartelID=5413"
- aturar la VM amb # /usr/lib/vmware/bin/vmkload_app -k 9 ####, on #### seria 5413 en el nostre cas.
El mètode mes dur amb Linux :
- donar la comanda ps auxwww | grep Cog
- veure la part "process_ID" que surt al principi de la línia, després de l'usuari.
- aturar la VM amb # kill <PID>, esperar 30 segons i donar # kill -9 <PID>
How to know who is answering the PING ?
On your own workstation, open a command prompt,
and type nbtstat-A (ip address of ESX host).
That will give you that MAC for that ESX host (or whatever owns that IP).
Then you use putty login to the console of that host and do esxcfg-nics -l
to list the Network interfaces on that host.
If that IP is listed for that MAC,
and you can see it as one of the interfaces for the same ESX host,
then that means that's the IP currently assigned.
Web Access
I just wanted to access my ESX 4.0 server via https.
Unfortunately I received a "503 Service unavailable" error.
First I checked if the service was running:
service vmware-webAccess status
or
[root@localhost ~]# chkconfig list vmware-webAccess
It wasnt running so I started it:
service vmware-webAccess start
But why did this happen?
Well page 7 of the
vSphere Web Access Guide
revealed it.
As of ESX 4.0 this service has been disabled by default.
If you do however need it on a regular base it might be a smart thing to enable it:
chkconfig --level 345 vmware-webAccess on
URL
Disabling and enabling VMware Web Access on an ESX host
[root@myhost ~]# service vmware-webAccess status
webAccess is stopped
[root@myhost ~]# service vmware-webAccess start
Starting VMware Virtual Infrastructure Web Access:
VMware Virtual Infrastructure Web Access [ OK ]
[root@myhost ~]# chkconfig --level 345 vmware-webAccess on
[root@myhost ~]# esxcfg-firewall --enableService webAccess
URL
Steps to verify the networking files on your ESX host
- Verify the format and content of /etc/hosts.
Here is an example of the /etc/hosts file:
127.0.0.1 localhost.localdomain localhost
192.168.1.10 server.domain.com server
- Verify the contents of /etc/sysconfig/network.
Confirm that the proper values for your environment exist for the fully qualified hostname and gateway.
Here is an example of the /etc/sysconfig/network file:
NETWORKING=yes
HOSTNAME=server.fqn.domain.com
GATEWAY=192.168.1.1
GATEWAYDEV=vswif0
- Verify that /etc/sysconfig/network-scripts/ifcfg-vswif0 has the correct settings
for IP address (IPADDR), subnet mask (NETMASK), and network (NETWORK).
Here is an example of the ifcfg-vswif0 file for a static IP:
DEVICE=vswif0
BOOTPROTO=static
BROADCAST=192.168.1.255
IPADDR=192.168.1.10
NETMASK=255.255.255.0
NETWORK=192.168.1.0
ONBOOT=yes
PORTGROUP="Service Console"
MACADDR=00:50:56:4a:66:ba
For a dynamic IP it could look like this:
DEVICE=vswif0
MACADDR=00:50:56:4b:99:48
ONBOOT=yes
PORTGROUP="Service Console"
BOOTPROTO=dhcp
DHCLIENT_IGNORE_GATEWAY=yes
DHCPV6C=no
IPV6INIT=no
IPV6_AUTOCONF=no
PEERDNS=yes
- To display the actual IP, run the command:
[root@server root]# ifconfig -a
- To display the routing table, run the command:
[root@server root]# route n
The output looks similar to:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 vswif0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 vswif0
0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 vswif0
Ensure that the second column of the row flagged with UG matches the gateway address for your environment.
- Verify that the DNS information in /etc/resolv.conf is correct for your environment.
Here is an example of the /etc/resolv.conf file:
search domain.com
nameserver 192.168.1.2
nameserver 192.168.1.3
Note: By default, up to three nameservers can be added to resolv.conf.
The compile time parameter MAXNS defines how many nameservers can be used.
- Verify network connectivity between systems, using the ping command to www.google.es or to the default gateway or DNS.
Note: Changes to the network and/or ifcfg-vswif0 files require a restart of the network service.
To restart the network service, run the following command:
[root@server root]# service network restart
url
TCP debug commands
The esxcfg-vswif command allows you to view the status of or reconfigure the VMware Service Console network interface.
That SC network interface is called vswif.
[root@bcnlab007 ~]# esxcfg-vswif -l
Name Port Group/DVPort IP Family IP Address Netmask Broadcast Enabled TYPE
vswif0 Service Console IPv4 9.137.166.48 255.255.255.128 9.137.166.127 true STATIC
The esxcfg-vswitch command is used to view the status of or reconfigure the VMware virtual switches (called vswitch).
These vswitches are used to connect the physical NIC in the server (called vmnic) to the ESX port groups
(such as the "Service Console" and the "VM Network" port groups).
[root@bcnlab007 ~]# esxcfg-vswitch -l
Switch Name Num Ports Used Ports Configured Ports MTU Uplinks
vSwitch0 32 5 32 1500 vmnic0
PortGroup Name VLAN ID Used Ports Uplinks
VM Network 0 2 vmnic0
Service Console 0 1 vmnic0
Switch Name Num Ports Used Ports Configured Ports MTU Uplinks
vSwitch1 64 2 64 1500 vmnic1
PortGroup Name VLAN ID Used Ports Uplinks
bcnlab007 NIC 2 0 0 vmnic1
The esxcfg-nics command is used to view the status of or reconfigure the VMware Physical Network interface cards
that are installed in the physical server. They are called vmnic.
[root@bcnlab007 ~]# esxcfg-nics -l
Name PCI Driver Link Speed Duplex MAC Address MTU Description
vmnic0 01:01.00 tg3 Up 100Mbps Half 00:14:5e:bc:74:3e 1500 Broadcom Corporation NetXtreme BCM5704 Gigabit Ethernet
vmnic1 01:01.01 tg3 Up 100Mbps Half 00:14:5e:bc:74:3f 1500 Broadcom Corporation NetXtreme BCM5704 Gigabit Ethernet
vmnic2 10:00.00 bnx2 Down 0Mbps Half 00:10:18:57:b9:84 1500 Broadcom Corporation Broadcom NetXtreme II BCM5709 1000Base-T
vmnic3 10:00.01 bnx2 Down 0Mbps Half 00:10:18:57:b9:86 1500 Broadcom Corporation Broadcom NetXtreme II BCM5709 1000Base-T
How to display all TCP information
#!/bin/bash
if [ `id -u` -ne 0 ]
then
echo "Must be running as root"
exit 1
fi
devise=vswif0
echo "My host name is (cmd HOSTNAME):"
hostname
echo "La MAC es (cmd IFCONFIG):"
ifconfig $devise | grep HWaddr
echo "La IP es (cmd IFCONFIG):"
ifconfig $devise | grep "inet addr:"
echo "El Default Gateway es (cmd ROUTE):"
route -n | grep "UG"
echo "El Default Gateway es (file NETWORK):"
cat /etc/sysconfig/network | grep "GATEWAY="
echo "Els DNS son (file RESOLV.CONF):"
cat /etc/resolv.conf | grep "nameserver"
echo "El domini es (file RESOLV.CONF):"
cat /etc/resolv.conf | grep ".com"
eth adapters naming, SLES
Modern Linux distributions use udev naming devices.
The udev on SUSE 11 uses MAC addresses to identify ethernet cards.
After cloning, the MAC address changes and udev creates a new ethernet device named eth1 instead of eth0.
To ensure network connectivity for the SUSE 11 virtual machine clone after the reboot,
you must modify the entries in the /etc/udev/rules.d/70-persistent-net.rules file.
svs-mils:/root # cat /etc/udev/rules.d/70-persistent-net.rules
# This file was automatically generated by the /lib/udev/write_net_rules
# program run by the persistent-net-generator.rules rules file.
#
# You can modify it,as long as you keep each rule on a single line.
# PCI device 0x15ad:0x0720 (vmxnet)
# PCI device 0x8086:0x100f (e1000)
# PCI device 0x15ad:0x0720 (vmxnet)
# PCI device 0x8086:0x100f (e1000)
# PCI device 0x15ad:0x0720 (vmxnet)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:83:b9:9b", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:83:b9:a5", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
url
{bestp}
ESX 4 partitions Best Practice
The / (or 'root') partition stores the ESX system
and all files not stored in another custom partition.
If this partition is filled to capacity, the ESX host could crash.
It is imperative to prevent this.
I would also recommend to rename the local VMFS partition during installation.
The default name is 'Storage1', and my recommendation would be '<hostname>-localstorage'.
When you install ESX 4 you should choose Advanced for the installation type
so you can delete the default partitioning.
/ - 5120MB
Swap - 1600MB
/var - 4096MB /var/log limit
/home - 2048MB /home/<user> limit
/opt - 2048MB or /vmimages
/tmp - 2048MB to untar, mount ISO's -
URL,
URL,
{bestp}
Best practice in LUN design
- LUN size : usually a value between 400-800GB could be reasonable.
- LUN number : usually more that one, but not too much...
URL
Single use ESXUPDATE How To for ESX 4
-
On a Windows box, download the patch bundle directly from VMware. This will be .zip file.
-
On a Windows box with the vSphere client installed,
use the vSphere client's datastore browser to upload the .zip file to a datastore on an ESX 4 host.
-
Obtain local console access, or SSH (putty), to the ESX 4 host that the bundle file was uploaded to.
-
Verify that the ESX 4 host disk free space is acceptable (2X the size of the bundle), using the command:
vdf -h
-
Move the bundle file off of the datastore and into /var/updates, using the command:
mv /vmfs/volumes/datastore/ESX400-200909001.zip /var/updates
-
Verify that the patch bundles aren't already installed (or if they are required), using the command:
esxupdate query
-
If applicable, use the vSphere client to put the ESX 4 host in maintenance mode. Alternatively, use the command:
vimsh -n -e /hostsvc/maintenance_mode_enter
The following commands may also be used to list and then shut down virtual machines.
This is for environments without VMotion or for single hosts.
vmware-cmd -s listvms
vmware-cmd <full path to .vmx file> stop soft
-
To determine which bulletins in the bundle are applicable to this ESX 4 host, use the command:
esxupdate --bundle file:///var/updates/ESX400-200909001.zip scan
-
To check VIB signature, dependencies, and bulletin order without doing any patching (a dry run), use the command:
esxupdate --bundle file:///var/updates/ESX400-200909001.zip stage
-
If the stage (dry run) found no problems, then the bundle can be installed using the command:
esxupdate --bundle file:///var/updates/ESX400-200909001.zip update
-
When (or IF) prompted to reboot, use the command:
reboot
Note: Not all patches will require an ESX host reboot.
-
After the system boots, verify patch bundles were installed with the command:
esxupdate query
-
If applicable, take the ESX host out of maintenance mode with the command:
vimsh -n -e /hostsvc/maintenance_mode_exit
-
If applicable, restart virtual machines using the vSphere client or the following command:
vmware-cmd <full path to .vmx file> start
-
Delete the bundle zip file from the /var/updates folder, using the command:
rm /var/updates/*.zip
-
Verify that host disk free space is still acceptable, using the command:
vdf -h
URL
ESX Firewall
[root@BCNILOG01 ~]# esxcfg-firewall
esxcfg-firewall
-q | --query Lists current settings.
-q | --query <service> Lists setting for the specified service.
-q | --query incoming|outgoing Lists setting for non-required incoming/outgoing ports.
-s | --services Lists known services.
-l | --load Loads current settings.
-r | --resetDefaults Resets all options to defaults
-e | --enableService <service> Allows specified service through the firewall.
-d | --disableService <service> Blocks specified service
-o | --openPort <port,tcp|udp,in|out,name> Opens a port.
-c | --closePort <port,tcp|udp,in|out> Closes a port previously opened via --openPort.
--ipruleAdd <host,cport,tcp|udp,REJECT|DROP|ACCEPT,name>
Adds a rule to block/allow hosts to access specific COS service;
'cport' can be specified like 'a:b'. For ex: 0:65535 blocks all the ports;
'host' can specified like 'a/b'. For ex: 0.0.0.0/0 blocks all the hosts.
--ipruleDel <host,cport,tcp|udp,REJECT|DROP|ACCEPT>
Deletes the host rule previously added via --ipruleAdd
--moduleAdd <module> Loads an iptables module, and adds it to the peristent firewall configuration.
--moduleDel <module> Removes an iptables module, and removes it from the persistent firewall configuration.
--blockIncoming Block all non-required incoming ports (default value).
--blockOutgoing Block all non-required outgoing ports (default value).
--allowIncoming Allow all incoming ports.
--allowOutgoing Allow all outgoing ports.
-h | --help Show this message.
[root@BCNILOG01 ~]#
For Eaton
esxcfg-firewall -o 4679,tcp,in,EATONhttp
esxcfg-firewall -o 4680,tcp,in,EATONhttps
esxcfg-firewall -o 80,tcp,out,http
esxcfg-firewall o 5000,tcp,out,EATONinit
Force VM to enter BIOS
A vegades ens convé entrar en la BIOS de una màquina virtual.
Per facilitar aquesta operació, fem servir aquest truc:
- right click on the VM, and open its Properties
- open "Configure and Edit Settings"
- in the "Options" tab, select "Boot Options" on the left
- on the right, check "Force BIOS Setup"
url
vSphere Client
Number of active connections has changed. There are now 2 active connections to this console.
vSphere client at windows 7
vsphere client error parsing the server clients.xml
Firewall & SCP/FTP or SSH clients, enable system console
To enable FTP client, SSH or system console, do:
- start vSphere Client
- select Server, as "bcnlab001"
- click on "Configuration" tab on your right
- under Software part, click on Security Profile menu
- activate SSH or FTP client or enable system console (Alt+F1)
OR from command line in ESX Server please type
esxcfg-firewall -e sshClient --> this will enable the SSH Client
To save this configuration, type
service mgmt-vmware restart
After this you will be able to ssh even across the reboot
Backup de VM's
[root@myhost storage]# cat crear_i_enviar_backup.sh
#!/bin/bash
echo +++ Crear TAR i enviar a 0S8 ...
echo +++ Versio 1 = funciona.
echo +++ Versio 2 = noms amb espais.
echo +++ Versio 3 = trassa.
echo +++ Pendent : no posar clau remota.
date_name=`date +"%y%m%d"`
bak_file=$date_name".tar.gz"
dir_src="/vmfs/volumes/ds3400_bcn"
dir_dst="/vmfs/volumes/Storage1/backups"
fn0=$1
fn1=$fn0"_"$bak_file
f_src=$dir_src"/"$fn0"/"
f_dst=$dir_dst"/"$fn1
echo "SRC =" $f_src
echo "DST =" $f_dst
echo "Correcte ? Y = go ahead, CTRL+C = abort."
echo --- read usr_input
time_name=`date +"%H%M"`
echo "("$time_name") +++ Crear {"$fn1"}" >> crear_i_enviar_backup.log
echo "Crear fitxer {"$f_dst"}"
echo "... amb el contingut del directori {"$f_src"}"
echo "(a) go to source directory : "
cd $f_src ;
echo "(b) veure que hi som : "
ls -l *.vmx ;
echo "(c) create TGZ file : "
tar -cvzf $f_dst * ; tar -czvf $fBkup ${DIR_BACKUP_1}
time_name=`date +"%H%M"`
echo "("$time_name") --- Creat {"$f_dst"}" >> crear_i_enviar_backup.log
ls -lrt $dir_dst
time_name=`date +"%H%M"`
echo "("$time_name") +++ Enviar {"$fn1"}" >> crear_i_enviar_backup.log
echo "Enviar {"$fn1"} a DESTI ..."
scp ./"$fn1" rmt_usr@dest.host.com:/vmfs/volumes/Storage1/backups/
time_name=`date +"%H%M"`
echo "("$time_name") --- Enviat {"$fn1"}" >> crear_i_enviar_backup.log
echo "+++ Fet."
Read ...
Backup solutions for VMware ESXi.
VMware Consolidated Backup Documentation.
Backup en background
[sebas@bcnlab007 ~/cmds]$ nohup ./fer_backup_directoris.sh &
Three ways to temporarily move VMs off a VMware ESX host :
- Method 1: Create a network-based data store + "vmkfstools i"
- Method 2: Use VMware Converter
- Method 3: Use a secure copy (SCP) file transfer utility - Veeam
Fast SCP : more than 6 times faster than SCP
How to send an Email from ESX
1 :
2 :
configure SNMP,
3 :
Upload smtp_send.pl script to /usr/local/bin,
and upload Lite.pm from the MIME package to /usr/lib/perl5/5.8.0/MIME/,
the "5.8.0" directory could be different on your ESX build, it depends on which version of perl is running.
Now open up the firewall for smtp out to be able to send email:
esxcfg-firewall -o 25,tcp,out,SMTP
Now you can send html email with the following command;
in this example I used the vdf.html ouput file as input for the body of the email.
/usr/local/bin/smtp_send.pl -t info@test.com -s "VMFS report" -f esx01@test.com -m "'cat /var/log/vdf.html" -r 172.10.10.10
-t = Receiver
-s = Subject
-f = Sender
-m = Message body
-r = Mail relay host
You can add this line to the bottom of the
vdf-vmfs script and schedule this script via the
crontab.
Add the following line(I assumed you named the script vdfhtml.sh) to the crontab if you want to receive this email every day at 10:00:
00 10 * * * root /usr/local/bin/vdfhtml.sh
SNMP enable
- Connect to your server via SSH or go to the servers console
- Edit /etc/snmp/snmp.conf and add a community string to the rocommunity value
- Enable SNMP to start automatically when the server starts with chkconfig snmpd on
- Either reboot the server (so that the SNMPd will start automatically) or start the SNMP daemon by typing service snmpd start
url
Now you can use snmpget, snmpset and snmpwalk.
Search for "Configuring the ESX Server SNMP Agent" in
Search VMware.
The VMware SNMP agent sets up a single default read-only community named public.
This means that, by default, all incoming requests must include public as the community name.
These read-only requests can only retrieve the values of variables.
SNMP enable (again)
VMware ESX Server (not ESXi) comes with two SNMP agents.
One agent is based on net-snmp (a well-known Linux SNMP agent with excellent documentation on the Internet).
The other SNMP agent is very simple and only supports traps.
This is the same agent that ESXi offers.
In this article, I will be configuring the more advanced SNMP agent net-snmp.
For documentation on how to configure the slimmed down ESX agent and ESXi agent see VMware's article on using SNMP with ESXi.
Still, keep in mind that with that agent you won't be able to monitor your server using an application like I demonstrate below. You will only be able to configure ESX or ESXi to send traps to your NMS.
How to enable SNMP in ESX Server via SSH
Other than going to the server's console, configuring SNMP via SSH is the only way to do it.
Once connected to the ESX Server using SSH you can use standard Linux commands to configure SNMP.
While you can get very complex in the configuration of SNMP (using version 3 with encryption and such),
I will just cover the standard SNMP configuration.
The SNMP daemon is NOT running by default so until you follow these instructions,
your SNMP monitoring application won't be able to talk to your ESX Server.
First, I would edit the /etc/snmp/snmpd.conf file using nano or vi.
For example:
. . .
At minimum, enter the read-only community string (ROcommunity).
I entered the system contact, the system location, read only community string, and trap community string.
At this point, the SNMP daemon is configured but not yet started.
You could start the SNMP daemon manually by simply typing:
Or However, you actually want the SNMP daemon to start automatically every time the server boots.
To do this, type:
. . .
At this point, SNMP reads are configured (we didn't configure traps)
and the SNMP daemon will start when the server boots.
You could reboot the server if it isn't yet in production or you could use the snmpd start command above.
Either way, to make sure it is running, you can do a ps ef | grep snmp and see your SNMPd running, like this:
Or, you could run:
. . .
There are also lots of SNMP commands in ESX.
In /usr/bin you will find commands like snmpstatus, snmptest, and snmpwalk.
Here is the full list:
. . .
Actually, these aren't ESX specific; these are Red Hat Enterprise Linux commands.
That means that you can reference the net-snmp documentation for complete instructions
on how all of these commands work.
If you wanted to configure ESX to send traps to your NMS,
you would edit the trapcommunity and the trapsink in the /etc/snmp/snmpd.conf file.
The trapsink is the hostname of the NMS.
To enable or disable traps completely in ESX server, you can edit /etc/vmware/hostd/config.xml.
For more information on this, see the VMware's Using SNMP with ESX Server 3 documentation.
How to monitor VMware ESX Server using SolarWinds VM Monitor
You could use just about any SNMP monitoring tool to monitor VMware ESX Server- WhatsUP, Solarwinds Orion, Nagios and others.
I chose to use a simple free tool that I recently learned about.
This tool is from Solarwinds and it is called SolarWinds VM Monitor.
You can download it free and the limitation is that it only monitors a single VMware ESX Server at a time.
I like the simple slick interface of VM Monitor.
It reminds me of a Windows sidebar gadget or Mac OS widget.
url
Misc
How to know ESX version ?
cat /etc/vmware-release
VMware ESX 4.1 (Kandinsky)
In the ESX 4.0 service console: Get summary information about the system level of the system by typing vmware -l.
url
For more information on determining detailed build number information for ESX hosts, see
KB 1001179.
Recover root pwd
url :
bring down the server,
enter single user mode ("a" to enter kernel args to Grub, "single" to select mode),
use the passwd command, and reboot.
How to check disk space on ESX ?
url.
How to send an Email from ESX ?
url.
How to migrate a VM hardware to v7 (ESX) ?
url :
(a) stop the VM, (b) right click on it, (c) select "Upgrade Virtual Hardware".
Diferencies entre
- Essentials
- Essentials Plus
- Standard
- Advanced
- Enterprise (***)
- Enterprise Plus
logs
/var/log/vmkernel <- the log of VMkernel itself
/var/log/vmkwarning <- the warnings extracted from VMkernel are dumped there
/vmfs/volumes/<vmdatastoreUUID>/<vmname>/vmware.log <- the VM's log
ask forum
ESX v4.1
pubs;
download ;
upgrade to 4.1 :
- Upload Items :
- pre-upgrade-from-ESX4.0-to-4.1.0-0.0.260247-release.zip
- upgrade-from-ESX4.0-to-4.1.0-0.0.260247-release.zip
- enter the host into "Maintenance Mode" :
vimsh -n -e /hostsvc/maintenance_mode_enter
- run "esxupdate" on "pre-upgrade" :
esxupdate --bundle=<upgrade bundle path> update
- run "esxupdate" on "upgrade" :
esxupdate --bundle=<upgrade bundle path> update
- exit the "Maintenance Mode" :
vimsh -n -e /hostsvc/maintenance_mode_exit
- reboot the host :
reboot -f now
ESX logging from script
[root@bcnlab003 cron]# logger -p user.info "JaJaJa"
[root@bcnlab003 cron]# cat /var/log/messages
Jan 4 11:39:20 bcnlab003 sebas: JaJaJa
Upgrading to VMware vSphere 5 Enterprise Plus
url ;
VMware vSphere 5.0 only supports the ESXi hypervisor architecture.
Existing ESX deployment of vSphere 4.x or older will have to be migrated to ESXi in order to upgrade to vSphere 5.0.
For more information on ESXi and how to migrate, visit the ESXi InfoCenter
How vSphere 5.0 Differs from vSphere 4.x
- Service Console is removed
You can perform most tasks that you performed in the Service Console by using
esxcli commands in the ESXi Shell,
by using vCLI commands,
and by using VMware PowerCLI commands.
- ESXi does not have a graphical installer
Accés SSH a ESXi
Per accedir des Putty amb SSH al ESXi, o fer servir WinSCP
p. ex. per poder fer una còpia duna màquina virtual,
hem de fer (veure URL) :
- entrar a la consola del host ESXi
- pulsar ALT+F1
- entrar "unsupported"
- entrar la clau de pas de root
- editar /etc/inetd.conf
- treure '#' del davant de '#ssh'
- matar inetd :
- a. ps ef | grep inetd
- b. kill -9 <num>
- engegar inetd : '$ inetd'
URL
or
URL
or
URL
Accés de root via SSH a ESX v4
How to enable SSH for root user :
- go to the service console on the physical server and log in
- vi /etc/ssh/sshd_config
- change the line that says PermitRootLogin from "no" to "yes"
- restart the sshd service by typing: services.sh sshd restart
Putty banner
First, modify sshd_config :
# no default banner path
Banner /etc/ssh/sshd_banner.txt
Then create it
[root@bcnlab0s8 ssh]# cat sshd_banner.txt
* here you are ...
Finally
[root@bcnlab0s8 ssh]# service sshd restart
Accés via SSH a ESX v4.1 (user "sebas")
To enable SSH for "sebas" user (as putty access), provide Administrator rights to it (AD at v4.1) :
usermod -G sebas,root sebas
wiki
Better logging
In order to have better logging, the following files must have increased their size/number :
/var/log/vmware/hostd.log
/var/log/messages
/var/log/vmkernel
/var/log/vmksummary.txt
/var/log/vmkwarning
logrotate
Per obligar a una rotacio dels logs i/o comprovar si hi ha algun error a la configuracio, fem :
logrotate /etc/logrotate.conf
Jo tenia un error de nom de fitxer duplicat a /etc/logrotate.d/ que em posava a /var/log/messages :
logrotate: ALERT exited abnormally with [1]
vmkernel configuration
Modify "/etc/logrotate.d/vmkernel" :
/var/log/vmkernel{
create 0600 root root
missingok
nocompress
# keep a history over 3 years.
monthly
rotate 36
# max log size of 200k (thus limiting total disk usage to under 8megs)
size 200k
sharedscripts
postrotate
/bin/kill -HUP 'cat /var/run/syslogd.pid 2> /dev/null' 2> /dev/null || true
endscript
}
ESXi and ESX Architectures Compared
VMware ESX Architecture.
In the original ESX architecture, the virtualization kernel (referred to as the vmkernel)
is augmented with a management partition known as the console operating system (also known as COS or service console).
The primary purpose of the Console OS is to provide a management interface into the host.
Various VMware management agents are deployed in the Console OS,
along with other infrastructure service agents (e.g. name service, time service, logging, etc).
In this architecture, many customers deploy other agents from 3rd parties to provide particular functionality,
such as hardware monitoring and system management.
Furthermore, individual admin users log into the Console OS to run configuration and diagnostic commands and scripts.
VMware ESXi Architecture.
In the ESXi architecture, the Console OS has been removed and all of the VMware agents run directly on the vmkernel.
Infrastructure services are provided natively through modules included with the vmkernel.
Other authorized 3rd party modules, such as hardware drivers and hardware monitoring components, can run in vmkernel as well.
Only modules that have been digitally signed by VMware are allowed on the system, creating a tightly locked-down architecture.
Preventing arbitrary code from running on the ESXi host greatly improves the security of the system.
url
Summary of the architectural differences between ESX Server 3 and ESX Server 3i
| | VMware ESX Server 3i | VMware ESX Server 3
|
| On-disk footprint | 32 MB | 2 GB
|
| Bootstrap | Direct from boot loader | Service console driven
|
| Direct management interaction | DCUI | Service console shell session
|
| Hardware monitoring agents | CIM plug-in modules | Full applications in service console
|
| Other agents | Implemented via VI SDK only | Full applications in service console
|
| Scripts, automation and troubleshooting | DCUI, remote command line interfaces, and VI SDK | Service console shell and VI SDK
|
| Other software | Moved to outside environment | Resident in service console
|
See :
ESXi vs Full ESX ,
thread.
ESXi is functionally equivalent to ESX but lacks the ESX Console.
URL :
VMware ESX and ESXi 4.0 Comparison;
VMware ESX and ESXi Comparison.
ESXi 4/5 misc
Display system info
$ df -h // display filesystem
# esxcli hardware memory get // display memory
# esxcli hardware cpu list // display CPU info
# find / -size +1000000k -exec du -h {} \; // find files larger than 1 GB
$ cat /etc/hosts // display host names
# cat resolv.conf // display domain and nameservers
# esxcli network ip interface list // display MACs
# esxcli network ip interface ipv4 list // display IP and mask
# esxcfg-nics -l // mostrar nics
ESXi 5.0 logs
- /var/log/vmkernel.log - all log entries are generated by the VMkernel.
- /var/log/vmkwarning.log - a subset of the VMkernel logs that include only warnings and sysalerts events.
- /var/log/hostd.log - host management service (hostd = host daemon) log.
- /var/log/sysboot.log - system boot log.
- /var/log/fdm.log - VMware HA log file.
How to stop a VM
ESXi 5.x:
-
Get a list of running virtual machines, identified by World ID, UUID, Display Name, and path to the .vmx configuration file, using this command:
esxcli vm process list
-
Power off one of the virtual machines from the list using this command:
esxcli vm process kill --type=[soft,hard,force] --world-id=WorldNumber
Notes:
Three power-off methods are available.
Soft is the most graceful, hard performs an immediate shutdown, and force should be used as a last resort.
Alternate power off command syntax is:
esxcli vm process kill -t [soft,hard,force] -w WorldNumber
ESXi 4.1:
- Get a list of running virtual machines, identified by World ID, UUID, Display Name, and path to the .vmx configuration file, using this command:
esxcli vms vm list
-
Power off one of the virtual machines from the list using this command:
esxcli vms vm kill --type=[soft,hard,force] --world-id=WorldNumber
Using VIM-CMD:
-
Get a list of all registered virtual machines, identified by their VMID, Display Name,
and path to the .vmx configuration file, using this command:
vim-cmd vmsvc/getallvms
-
To get the current state of a virtual machine:
vim-cmd vmsvc/power.getstate VMID
-
Shutdown the virtual machine using the VMID found in Step 2 and run:
vim-cmd vmsvc/power.shutdown VMID
-
If the virtual machine fails to shut down, use this command:
vim-cmd vmsvc/power.off VMID
Using ESXTOP:
- run esxtop command
- Press c to switch to the CPU resource utilization screen.
- Press Shift+v to limit the view to virtual machines. This may make it easier to find the Leader World ID in step 7.
- Press f to display the list of fields.
- Press c to add the column for the Leader World ID.
- Identify the target virtual machine by its Name and Leader World ID (LWID).
- Press k.
- At the World to kill prompt, type in the Leader World ID from step 6 and press Enter.
- Wait 30 seconds and validate that the process is not longer listed.
url
vim-cmd
Totes les comandes disponibles :
/usr/lib # vim-cmd
Commands available under /:
hbrsvc/ internalsvc/ solo/ vmsvc/
hostsvc/ proxysvc/ vimsvc/ help
Una sub-branca :
/usr/lib # vim-cmd hostsvc
Commands available under hostsvc/:
advopt/ enable_ssh refresh_firewall
autostartmanager/ firewall_disable_ruleset refresh_services
datastore/ firewall_enable_ruleset reset_service
datastorebrowser/ get_service_status runtimeinfo
firmware/ hostconfig set_hostid
net/ hosthardware standby_mode_enter
rsrc/ hostsummary standby_mode_exit
storage/ login start_esx_shell
summary/ logout start_service
vmotion/ maintenance_mode_enter start_ssh
connect maintenance_mode_exit stop_esx_shell
cpuinfo pci_add stop_service
disable_esx_shell pci_remove stop_ssh
disable_ssh queryconnectioninfo task_list
enable_esx_shell querydisabledmethods updateSSLThumbprintsInfo
FTP
On ESXi 4.0 there is an FTP client, as mentioned you need to get into the unsupported busybox console:
~ # vmware -v
VMware ESXi 4.0.0 build-171294
~ # ftpget
BusyBox v1.9.1-VMware-visor-654 (2008-12-17 10:01:32 PST) multi-call binary
Usage: ftpget [options] remote-host local-file remote-file
Retrieve a remote file via FTP
Options:
-c,--continue Continue previous transfer
-v,--verbose Verbose
-u,--username Username
-p,--password Password
-P,--port Port number
~ # ftpput
BusyBox v1.9.1-VMware-visor-654 (2008-12-17 10:01:32 PST) multi-call binary
Usage: ftpput [options] remote-host remote-file local-file
Store a local file on a remote machine via FTP
Options:
-v,--verbose Verbose
-u,--username Username
-p,--password Password
-P,--port Port number
Links, docu
ESX under WS
Being able to run VMware ESX 4.0 under VMware Workstation as a VM
gives users and professionals in the IT community great flexibility
when it comes to learning, experimenting or even demonstrating the product.
Needless to say, this is not an officially supported deployment.
pdf.
doc.
x3850
BIOS
emulator
Boot sequence
.
System initializing memory
System initializing
{Server Firmware}
Connecting Boot Devices and Adapters
Qlogic fibre channel adapter (driver 2.0.0 firmware 4.03.001
<F1> Setup
<F2> Diagnostics
{ <F6> POST Event Viewer } if errors
<F12> Select boot device
{10 secs}
LSI MegaRAID SAS-MFI BIOS
Press <Ctrl><H> for WebBIOS or press <Ctrl><Y> for Preboot CLI
Adapter 0 : ServeRAID M1015 SAS/SATA controller
Drive security disabled
QLogic Corporation QLE2560 PCI 3.0 Fibre Channel ROM BIOS version 2.02
Press <CTRL-Q> or <ALT-Q> for Fast!UTIL
ServerEngines 10Gb UMDI, PXE-2.0 BIOS v2.103.397.31
Press <Ctrl> <P> for PXESelect Utility
ESX disable Guest-to-Host Synchronization
- in the guest VM, open VMware Tools
- select the "options" tab
- uncheck "Time synchronization"
- click "Apply"
While this will prevent the ongoing, periodic guest-to-host time synchronization.
Be aware that, by default, it will still occur once during each of the following each Virtual Machine operations:
- Resume from suspend
- Migrate with VMotion to another host
- Take or revert to a snapshot
- Shrink the virtual disk
- Restart the VMware Tools service
- Power on
To also disable time synchronization for the above operations,
shut down the Virtual Machine, edit its configuration file (.vmx) and specify the following options:
tools.syncTime = "0"
time.synchronize.continue = "0"
time.synchronize.restore = "0"
time.synchronize.resume.disk = "0"
time.synchronize.shrink = "0"
time.synchronize.tools.startup = "0"
url
NTPD
NTP servers :
see
ntp pool homepage;
(0..3).europe.pool.ntp.org,
time.nist.gov,
time.windows.com,
Configure ESX:
[root@bcnlab0s8 ~]# esxcfg-firewall -q ntpClient
Service ntpClient is blocked.
[root@bcnlab0s8 ~]# esxcfg-firewall -e ntpClient
[root@bcnlab0s8 ~]# esxcfg-firewall -q ntpClient
Service ntpClient is enabled.
[root@bcnlab0s8 ~]# date
Mon Nov 17 08:11:15 CET 2014
[root@bcnlab0s8 ~]# ntpdate -u 0.europe.pool.ntp.org // ESX
17 Nov 08:40:42 ntpdate[12307]: step time server 195.154.216.35 offset 1762.627694 sec
[root@bcnlab0s8 ~]# date
Mon Nov 17 08:40:45 CET 2014
/etc # ntpd -q // ESXi, set & quit
Create a /etc/ntp.conf file:
restrict 127.0.0.1
server 0.europe.pool.ntp.org
server 1.europe.pool.ntp.org
server 2.europe.pool.ntp.org
server 3.europe.pool.ntp.org
server time.nist.gov
server 127.127.1.0 # local clock
fudge 127.127.1.0 stratum 10
driftfile /var/lib/ntp/drift
broadcastdelay 0.008
Restart service:
service ntpd restart // ESX only
/etc/init.d/ntpd restart // ESX & ESXi
Set the hardware clock with the system clock,
as on reboot machine sets its system clock from hardware clock:
/sbin/hwclock --systohc
How to display hardware clock?
[root@bcnlab0s8 etc]# hwclock --show // ESX
Mon 17 Nov 2014 09:04:54 AM CET -0.328769 seconds
/etc # hwclock // ESXi
10:06:02 11/17/2014 UTC
Clocks in a Linux System
There are two main clocks in a Linux system:
The Hardware Clock:
This is a clock that runs independently of any control program running in the CPU
and even when the machine is powered off. (???)
url,
use vSphere Client,
NTP troubleshooting
- ESX : /var/log/messages
- ESXi : /var/log/syslog.log
- successfull: ntpd[263140]: synchronized to <ntp.server.ip.address>, stratum <X>
url
AutoStart VMs
Pot ser aixo ?
/etc/rc.d/rc3.d/S99vmware-autostart
/usr/bin/vmware-autopoweron
logger -t 'VMware[init]' -p daemon.err >/dev/null 2>&1
VMware tools
RH v 6.1 :
[root@rhv6-64b ~]# cd /media/VMware\ Tools/
[root@rhv6-64b VMware Tools]# rpm -Uvh VMwareTools-4.0.0-208167.i386.rpm
Preparing... ########################################### [100%]
1:VMwareTools ########################################### [100%]
The installation of VMware Tools 4.0.0 for Linux completed successfully.
You can decide to remove this software from your system at any time by
invoking the following command: "rpm -e VMwareTools".
Before running VMware Tools for the first time, you need to configure it for your running kernel
by invoking the following command: "/usr/bin/vmware-config-tools.pl".
Enjoy,
--the VMware team
[root@rhv6-64b VMware Tools]# /usr/bin/vmware-config-tools.pl
Stopping VMware Tools services in the virtual machine:
Guest operating system daemon: [ OK ]
Unmounting HGFS shares: [ OK ]
Guest filesystem driver: [ OK ]
None of the pre-built vmmemctl modules for VMware Tools is suitable for your running kernel.
Do you want this program to try to build the vmmemctl module for your system
(you need to have a C compiler installed on your system)?
[yes] no
VMware tools from console
En VMWare 9, las VMWare Tools no tienen interfaz grfico.
Cmo hacer un Shrink? Pues por consola.
Por ejemplo: c:\program files\vmware\vmware tools\vmwaretoolboxcmd.exe disk shrink c:\
VMware tools & Windows activation
Message on VM-n:
The Microsoft Windows XP product activation feature creates a key
based on the virtual hardware in the virtual machine where it is installed.
Changes in the virtual machine configuration may require you to reactivate the guest operating system.
To minimize those changes, be sure to set the final memory size for the virtual machine
and install VMware Tools before you activate Windows XP.
For more information about Windows XP product activation and virtual machines
see our Web site at "http://www.vmware.com/info?id=2".
ESX problems I've got and solved
Symptom: message "File <unspecified filename> was not found" when starting the VM for the first time
Solution : remove from VMX file the line
sched.swap.derivedName = "/vmfs/volumes/4bed4424-06a57778-d1a4-001a64db6cdc/vm_name/vm_name-d2b8314b.vswp"
Dubtes ESX
Com conectar un device USB a una VM sota ESX v4 ?
Solució:
- in a terminal window, run "tail -f /var/log/messages
- plug in the USB flash drive
- the terminal window will display several messages identifying the USB flash drive, as:
Oct 25 13:25:23 ubuntu kernel [sdb] Attached SCSI removable disk
- run /sbin/fdisk /dev/sdb, and type "p" to display the partition table. Use "q" to quit.
What is vmkfstool.
Hypervisor només és a ESXi ?
Què és ?
Additional step is nedded:
Through the VI client:
Configure --------> Advanced settings -----------> VMkernel
Make sure this parameter : "VMkernel.boot.techSupportMode" is set to check on
Links
VMware offers supported, powerful system administration tools.
Please see http://www.vmware.com/go/sysadmintools for details.
Admin Guide 4.1,
Web Access +
u1,
VMware vSphere ESXi and vCenter Server 5.1 Documentation Center,
VMware vSphere 5.1 documentation [*****],
vSphere 4
How to (web) access VM console
without vi client
List of
esxcfg- commands.
Search for "esxcfg-vswitch".
ESXi 3.5,
ESX 3.0.
ESX 3i Remote Command Line Interface
VMware Infrastructure 3 Documentation (VMware ESX 3.5 Update 2 and later)
What's New in VMware vSphere 4.0
VMware vSphere 4.0 U1 documentation {***}
Drivers,
Backup :
Backup solutions for VMware ESXi,
Free alternative for backing up VM's for ESX(i) 3.5 and 4.0+
Setting the MAC address for a VM.
The VMware OUI for automatically generated MAC addresses is 00:0C:29.
VMware uses a different OUI for manually generated addresses: 00:50:56.
Pubs :
vSphere
(ESXi v4 and ESX v4),
ESX
(ESX server v 1.5, v 2, v 2.1, v 2.5).
ESX Configuration Guide, ESX 4.0 Update 1, vCenter Server 4.
Network configuration : see "Network" section of
ESX Configuration Guide.
Good page :
Petri & KB.
ESX guide (VMVision GmbH).
API :
How to browse the internal vSphere APIs
ESX v4 forum.
Search the VMware
Compatibility Guide (for Ubuntu 64-bit)
vCli
homepage
Si l'instalació de XP no troba drivers SATA ... els posem al floppy :
url -
1.474.560 LSI_Driver_XP_P12_12605.flp - LSI Logic XP Driver (Newer Version)
1.474.560 vmscsi-1.2.0.4.flp - Bus Logic XP driver [***]
1.474.560 WinXPSCSI.flp - LSI Logic XP Driver (Older Version)
Un administrador ... en
rus.
SolarWinds ESX Monitor.
Veeam ESX Monitor.
ESX + Perl.
EC2 ...
Brocade links
Brocade
815 as ESX.
HBA install
guide - win also :
get
ISO
Admin
guide {usr/pwd}
Windows 2008 Storage Manager
Storage Manager,
assign a LUN.
Storage Manager for SANs
Step-by-Step Guide
{see "using Storage manager" + "Requirements"}
-
the server must be running Windows Server 2008 with the Storage Manager for SANs feature installed.
To add the feature, in Server Manager click the Features node, and then click Add Features to launch the Add Features Wizard.
-
the VDS hardware provider for each storage subsystem must be installed on the server.
Installing IBM System Storage Support for uSoft
VDS,
Virtual Disk Service.
IBM
VDS providers