Archive for the ‘ESX 4’ Category
Posted by Marek.Z on 18 June 2010
The tail command displays last 10 lines of a file and with the –f (follow) parameter you can see the data appended to it. So, if you want to see what is going on in the vmkernel of your ESX host:
- Login to you ESX host
- Type: #tail –f /var/log/vmkernel
- Watch for new events to appear
- If you want to terminate the process, press CTRL + C
Nice & simple
Cheers!
- Marek.Z
Posted in ESX 3.5, ESX 4, Uncategorized, VMware | Leave a Comment »
Posted by Marek.Z on 24 March 2010
Before you begin, check the names of the vmhba adapters on your ESX server. From the vSphere Client go to Configuration tab and click on Storage Adapters. Now, to set Jumbo Frame support (MTU 9000) on your hardware iSCSI HBA, follow these steps:
- Login as Root user on your ESX server.
- Type: #esxcfg-hwiscsi –j enable <vmhba#>
- If successful, you should get the “MTU size successfully set to : 9000” message.
- To verify the change type: #esxcfg-hwiscsi –l <vmhba#>
All done!
Cheers!
- Marek.Z
Posted in ESX 4, VMware, vSphere | 1 Comment »
Posted by Marek.Z on 11 February 2010
If you want to kill an unresponsive VM on an ESX server and it cannot be turned off with the vmware-cmd stop hard command then try the following:
- Logon the ESX server as Root and type: #vm-support –x to find the VMID of the unresponsive VM.
- Next, type: #vm-support –X <VMID> to kill the VM. Answer the questions as desired and wait until the ESX server finishes the job.
Cheers!
- Marek.Z
Posted in ESX 3.5, ESX 4, VMware | 1 Comment »
Posted by Marek.Z on 25 November 2009
Follow these steps to configure software iSCSI networking on an ESX server. In this case I’ll be creating a new vSwitch, new Port Group on the new vSwitch and I’ll add the VMkernel port to the vSwitch. This setup will support the Jumbo Frames (MTU 9000). After that I’ll add an iSCSI target to the iSCSI software adapter and rescan the adapter for new targets.
- Login as Root user on your ESX server.
- List the vSwitches with #esxcfg-vswitch -l and check the next available switch name. In this case I’ll be using vSwitch2.
- Create a new vSwitch: #esxcfg-vswitch -a vSwitch2
- Set the MTU to 9000: #esxcfg-vswitch vSwitch2 -m 9000
- List available NIC’s that can be used with the new vSwitch: #esxcfg-nics -l. In this case I’ll use vmnic4 and vmnic5.
- Add the vmnic4 to the new vSwitch: #esxcfg-vswitch vSwitch2 -L vmnic4
- Add the vmnic5 to the new vSwitch: #esxcfg-vswitch vSwitch2 -L vmnic5
- Add a Port Group to the new vSwitch: #esxcfg-vswitch vSwitch2 -A “VMkernel iSCSI”
- Add the VMkernel port to the new Port Group: #esxcfg-vmknic -a -i <IP address>-n <Network Mask> -m 9000 “VMkernel iSCSI”
- Enable the software iSCSI adapter: #esxcfg-swiscsi -e
- Add the iSCSI target to the software iSCSI adapter: #vmkiscsi-tool -D -a <IP address> <vmhba#> . Repeat this step if you have more iSCSI targets.
- Rescan the vmhba adapter with: #esxcfg-rescan <vmhba#>
- When the targets are discovered, you can view them with: #vmkiscsi-tool -T -l <vmhba#>
- Restart your server if necessary.
All done
Tested on ESX 4.0.0, Build 164009. Should also work on ESX 3.x.x.
Cheers!
- Marek.Z
Posted in ESX 4, VMware | 1 Comment »
Posted by Marek.Z on 24 September 2009
I have encountered this error after a clean installation of ESX 4 server on a new HP DL 380 G6. When you access your ESX server through web interface and you try to log in by clicking on the “Log in to Web Access” link, you get the “503 Service Unavailable” error in your web browser. Here is how I solved this issue:
- Log in to the console of the affected ESX server (or through puTTY) and check the status of the vmware-webAccess service by typing: #service vmware-webAccess status
- If the service is not running, start it with: #service vmwware-webAccess start
- If you want to start this service automatically when your ESX server starts, type: #chkconfig – - level 3 vmware-webAccess on
- Now, try again to log in to the Web Access of you ESX server and the issue schould be solved.
Cheers!
- Marek
Posted in ESX 3.5, ESX 4, VMware | 4 Comments »