Category Archives: VMware

Vmware tools in Cpanel

Posted on by .

To add VMware tools to the Cpanel VPS server.

Click on the client to install VMware tools.

mkdir /media/cdrom
mount /dev/cdrom /media/cdrom
cd /tmp
tar –xf /media/cdrom/VM*
cd vm*

‘/sbin/ifup vswif0’ suceeded, but returned with non-zero status: 1″ on ESX Service Console

Posted on by .

“‘/sbin/ifup vswif0’ suceeded, but returned with non-zero status: 1” on ESX Service Console


When trying to configure the IP address or enable a Service Console the following error may appear:

# esxcfg-vswif -e vswif0
Error trying to perform operation Exec of command ‘/sbin/ifup vswif0’ suceeded, but returned with non-zero status: 1

In addition the ip address is listed as

# esxcfg-vswif -l
Name Port Group IP Address Netmask Broadcast Enabled DHCP
vswif0 Service Console true false


This results from an IP address conflict:

– Bind another IP address on the same subnet to the the service console:

# esxcfg-vswif -i -n vswif0

– Ping the conflicting IP address:

# ping
PING ( 56(84) bytes of data.
64 bytes from icmp_seq=0 ttl=128 time=1.36 ms
64 bytes from icmp_seq=1 ttl=128 time=0.278 ms
— ping statistics —
2 packets transmitted, 2 received, 0% packet loss, time 5011ms
rtt min/avg/max/mdev = 0.278/0.517/1.361/0.379 ms, pipe 2

– Check the ARP table:

# arp -a ( at 00:99:99:99:99:99 [ether] on vswif0

00:99:99:99:99:99 is the MAC of the conflicting server.

HA error on all ESX servers

Posted on by .

A customer had 17 ESX servers in stress, after a thermal error 3 blades went off line and disk 0 was gone. HA gave an error on all servers and reconfigure HA didn’t do the job.

An error occurred during configuration of the HA Agent on the host was the error. I disabled HA on the cluster and enabled it, afther this action ervy server was back online and no error’s. I suppose that the setting that only 2 servers can fail for HA was course of this error, 3 servers went down at the same time and VMware ESX did’t see the old servers online therefor it was not allowed to reconfigure the hosts for HA. Disable HA and enabling HA pushes an new HA settings set to the ESX servers and makes it possible to reconfigure it for HA.

Host in HA Cluster must have userworld swap enabled

Posted on by .

Error when enabling HA on ESX 3.5 i servers : Host in HA Cluster must have userworld swap enabled

This error you get from a lack of storage reservation for saving the HA settings on the ESX3.5i. You can set this using the following procedure.

To enable swap on your ESXi 3 host system:
  1. On the VirtualCenter Server, select the ESXi 3 Server host.
  2. Click the Configuration tab.
  3. Click Advanced Settings.
  4. Choose ScratchConfig.
  5. Configure ScratchConfig.ConfiguredScratchLocation to a valid directory with sufficient space (1GB) to hold the userworld swap file. The userworld swap can be configured on local storage or shared storage.

    Note: Each swapfile needs a unique name across all ESX hosts.

    For example, /vmfs/volumes/.

  6. Select the ScratchConfig.ConfiguredSwapState option.
  7. Click OK.
  8. Reboot the ESX Server 3i system.
After you have enabled swap on the ESXi 3 host system, you can add the host to a VMware HA cluster.

Source : from the VMware Site

3D Desktop Virtualization – All media CODECs, All Graphics, All USB

Posted on by .

3D Desktop Virtualization – All media CODECs, All Graphics, All USB

Zie hier een demo van de nieuwe features welke op korte termijn mogelijk zijn binnen de virtual machines. Bidirectionele video en audio.

Vmware zal de PCoIP chip integreren in de producten hiermee zal de VDI infrastructuur pas echt een vlucht gaan nemen wegens het wegnemen van de huidige beperkingen voor een breede acceptatie.


VDI microsoft licenties

Posted on by .

Licenties voor VMWare VDI, vaak krijgen wij vragen over de licenties die er benodigd zijn voor een VMware VDI oplossing. Ik zal proberen aan de hand van een voorbeeld hier een stukje over te vertellen.

Case : Klant wilt 100 werkplekken aanbieden waarvan 70 op Windows xp en 30 op basis van Vista op een infrastructuur van VMware met een centrale ISCSI storage. De klant heeft reeds een VMware infrastructuur met 2 ESX servers en Fysieke Virtual center server met

Technische oplossing : Hiervoor worden 4 ESX servers ingezet en een Fysieke server voor virtual center, de templates en de disks zullen opgeslagen worden op een Equallogic san.  

Ten eerste zal de klant hiervoor het volgende nodig hebben :

  • VMware licenties
  • Microsoft licenties
  • Software licenties voor de applicaties.

voor de software licenties is eigenlijk de grootste uitdaging. het is namelijk zo dat er het aantal licenties aanwezig voor het aantal keren dat het pakket opgestart kan worden. Dit kan overigens per leverancier verschillen. Dit betekend dus als het pakket locaal in deVDI image is opgenomen er een licentie aanwezig dient te zijn.

ESX commando’s

Posted on by .

ESX Commands

Q: De Serviceconsole Switch back in default VLAN.
A: esxcfg-vswitch -p Service Console -v 0

Q: List van de virtual Switches
A: esxcfg-vswitch -l

Q: enablen disk resignature
A: esxcfg-advcfg -s 1 /LVM/EnableResignature

Q: Rescan ISCSI datastores on ESX hosts (Rescan van de hba32)
A: esxcfg-rescan vmhba32

PXE Boot

Posted on by .

For those of you wondering if this is possible I have managed to get this working. Here's what you need to do:

1) On your RIS server create the following folder structure: SetupEnglishImagesPXELinuxi386templatespxelinux.cfg (pxelinux.cfg is a fodler)

2) Download the latest version of syslinux from:

3) From the ESX 3 (this works with 2.5.x as well) CD (imagespxeboot) copy the following files to SetupEnglishImagesPXELinuxi386templates


ntoe: you MAY want to rename these files IF you plan on have multiple versions of ESX builds available.

4) from the file you downloaded in step 2, copy the pxelinux.0 to the templates folder.

5) create a file called pxelinux.sif file in the template folder with the following contents:

Description = "Linux"
Help = "This option runs a Linux installer."
LaunchFile = "SetupEnglishImagesPXELinuxi386templatespxelinux.0"
ImageType = Flat

6) in the SetupEnglishImagesPXELinuxi386templatespxelinux.cfg folder create a file called 'default' (no extension) with the following info.

prompt 1
display boot.msg
timeout 1000

label esx
kernel vmlinuz
append initrd=initrd.img

This is the info you've placed in the syslinux.cfg file. Since no files are stored on the RIS server, you'll will need to build ESX via http/ftp or NFS. I'm using FTP via IIS 6.0 and it works quite well.

If you want a boot message, then copy the boot.msg file to SetupEnglishImagesPXELinuxi386templates

Once you do the PXE boot you should see a "server build" called Linux and when you select it, it will eventually present you witht he "boot:" option where you can select the build that you want.


disclaimer: I didn't invent this method, I actually found it looking for info on parameters used in ks.cfg/syslinux.cfg.