Copying the /var/log/weasel.log file from a failed scripted install of an ESXi host
search cancel

Copying the /var/log/weasel.log file from a failed scripted install of an ESXi host


Article ID: 309904


Updated On:


VMware vSphere ESXi


This article helps you to copy the /var/log/weasel.log file from an ESXi host that has experienced a failed scripted install.

Note: The weasel.log file is used to troubleshoot scripted install issues.


VMware ESXi 4.0.x Embedded
VMware ESXi 4.0.x Installable
VMware ESXi 4.1.x Embedded
VMware ESXi 4.1.x Installable


To copy the /var/log/weasel.log file from the ESXi host:

  1. Insert a USB key into the host that has a FAT16 partition with maximum 2GB.
  2. Verify that the USB key is detected.
  3. Run this command to determine the identifier of the USB key:

    # fdisk -l

    You see an output similar to:

    In this sample output, the identifier is /dev/disks/mpx.vmhba32\:C0\:T0\:L0\:1. The backslashes included escape the colon characters. Note that the identifier may differ slightly in your environment.

  4. Run this command to copy the weasel.log file to the USB key:

    # mcopy -i /dev/disks/mpx.vmhba32\:C0\:T0\:L0\:1 /var/log/weasel.log '::weasel.log'

    Note: After running this command, you may see an error similar to:

    Total number of sectors not a multiple of sectors per track! Add mtools_skip_check=1 to your .mtoolsrc file to skip this test

    If you see this error:

    1. Run this command:

      # echo "mtools_skip_check=1" > .mtoolsrc

    2. Run the mcopy command again:

      # mcopy -i /dev/disks/mpx.vmhba32\:C0\:T0\:L0\:1 /var/log/weasel.log '::weasel.log'

Additional Information

Deploying ESXi 4.1 using the Scripted Install feature
Troubleshooting ESXi 4.1 Scripted Install errors