VMWare

PowerShell Revert to snapshot

Posted by admin on 31/05/2010 at 2:43 pm

For our test environment we need to rollback to a snapshot(default) every evening. I don’t like to do that by hand so lets create a script.The second point it has to be run as a scheduled task and I don’t want to parse my credentials within the script as plain text. First of allOn the [...]

PowerShell Show VM having snapshots

Posted by admin on 28/05/2010 at 1:22 pm

By default a param minus 30 days. Save it to a *.ps1 file and it ready to use. param ($Age = 30) Connect-VIServer localhost$vm = Get-VM$snapshots = Get-Snapshot -VM $vmWrite-Host -ForegroundColor Red “Old snapshots found:”foreach    ($snap in $snapshots) {    if ( $snap.Created -lt (Get-Date).AddDays( -$Age )){        Write-Host “MachineName:” $snap.VM “Name: ” $snap.Name ” Size: ” [...]

Export VM Workstation or Server to OVF

Posted by admin on 14/05/2010 at 9:11 am

I use this tool for exporting VM’s to ESX4 server. Also I do use it for backup my VM’s, due to the compression technique it save’s a lot of space. (Before using it write down your network adapter settings as IP address and so on). Before you can start using it you have to download [...]

Commit and remove snapshots on ESX4

Posted by admin on 16/04/2010 at 11:44 am

To commit and remove snapshots you need to have enough freespace (vmdk + “-delta”.vmdk) First create a snapshot after the latest changes. After that has been done you can delete the other one’s using the gui or commandline. To commit the latest one to the original you have to use the commandline. vmware-cmd -l   this [...]

ESX4 backup using Backup Exec 12.5

Posted by admin on 09/02/2010 at 4:34 pm

After struggling with this error “e0009558 – Cannot find the VMware Converter. Please install the VMware Converter. For additional information regarding this error refer to link V-79-57344-38232” This while version “VMware-converter-4.0.0-146302″ is up and running on vcb proxy server and backupexec server. After searching a lot of google options I found the solution. It seems [...]

Web access in ESX4 (vSphere)

Posted by admin on 09/12/2009 at 10:07 pm

After a default installation you will probably receive a 503 Error. Check if the service is running “service vmware-webAccess status”If not “service vmware-webAccess start“.To start it automatic after a reboot “chkconfig –level 345 vmware-webAccess on“

MetaLun EMC SAN and ESX 4 (vSphere)

Posted by admin on 08/12/2009 at 1:01 pm

 Expand the CLARiiON LUN on the ClaRiiON  storage system to the desired LUN size, issue a rescan at the ESX level. Sometimes you have to rescan again before your metalun will be shown.(I have to find out why) Your old disk will disappear from storage adapter view and the new metalun wil be shown.   [...]

Using a Qlogic QLE220 HBA with ESX 4

Posted by admin on 19/11/2009 at 3:34 pm

After installing ESX4, we see that the HBA is not recognized. Put the server in maintenance mode. To get it working you have to modify your qla2xxx.xml file. So login to your ESX4 server using putty and change to /etc/vmware/pciid the mentioned file will be there. copy this part <device id=”5432″>   <vmware label=”fc”>     [...]

Update ESX4 using the commandline.

Posted by admin on 19/11/2009 at 2:24 pm

Just starting to update a esx4 server using the commandline. I downloaded from VMWare the update I needed. Started putty and did a copy of the downloaded zip file to the local storage. Then run: esxupdate check –bundle ESX400-200906001.zip esxupdate update –bundle ESX400-200906001.zip

Enable ssh on Esxi4

Posted by jewe on 23/10/2009 at 9:47 am

1. Press ALT-F1 to access the main console. 2. Type the word: unsupported. You will get the nice message: You have activated Tech Support Mode. The time and date of this activation have been sent to the system logs. Tech Support Mode is not supported unless used in consultation with VMware Tech Support. VMware offers [...]