Intel NIC 82579LM install on ESXi 5.1

Hello,

i had recently the problem that i installed ESXi 5.1 on the local network. Installation and configuration went smoothly but the network card was not recognized. After some reading i found the answer, install a community-compiled driver for that card.

Here a quick how i've got the Intel 82579LM to work:

  1. Download the needed driver here. net-e1000e-2.1.4.x86_64.vib and put it on the disk
  2. Go to your ESXi and make sure that at least your ESXi Shell is enabled then go to the terminal using CTRL+ALT+F1
  3. Login with your root password
  4. Go to the folder you where you stored the driver
  5. Copy the driver to another place
    # cp /path/to/net-e1000 /tmp
  6. Put ESXi into maintenace mode
    # esxcli system maintenanceMode set -e true -t 0
  7. Set the host software level to community
    # esxcli software acceptance set –level=CommunitySupported
  8. Now install the driver
    # esxcli software vib install -v /tmp/net-e1000e-2.1.4.x86_64.vib (path must be absolute)
  9. And exit the maintenance mode
    # esxcli system maintenanceMode set -e false -t 0
  10. That's it, reboot the machine.

Sources: here

Click here for more drivers.

Enable TRIM with Non-Apple SSD

DO NOT USE THIS ON OSX 10.10 (YOSEMITE)!!!

Apple enabled TRIM support with OSX Lion (10.7) but there is a catch: apple enabled it only on apple-chosen-SSDs. So if you upgraded your hard drive to a 3rd party manufacturer chances are big that TRIM isn't enabled. Here is how to enable it from commandline:

  1. open terminal
  2. make yourself root
    # sudo su
  3. then change into the needed directory and backup a file
    # cd /System/Library/Extensions/IOAHCIFamily.kext
    # cd Contents/PlugIns/IOAHCIBlockStorage.kext/Contents/MacOS
    # cp IOAHCIBlockStorage IOAHCIBlockStorage.backup
  4. than patch the file for Mavericks 10.9.4-10.9.5
    # perl -pi -e 's|(^\x00{1,20})[^\x00]{9}(\x00{1,20}\x54)|$1\x00\x00\x00\x00\x00\x00\x00\x00\x00$2|sg' IOAHCIBlockStorage
  5. OR for Mountain Lion 10.8.3 – Mavericks 10.9.3
    # perl -pi -e 's|(\x52\x6F\x74\x61\x74\x69\x6F\x6E\x61\x6C\x00{1,20})[^\x00]{9}(\x00{1,20}\x54)|$1\x00\x00\x00\x00\x00\x00\x00\x00\x00$2|sg' IOAHCIBlockStorage
  6. OR for Mountain Lion 10.8.1-10.8.2 and Lion 10.7.5
    # perl -pi -e 's|(\x52\x6F\x74\x61\x74\x69\x6F\x6E\x61\x6C\x00{1,20})[^\x00]{9}(\x00{1,20}\x4D)|$1\x00\x00\x00\x00\x00\x00\x00\x00\x00$2|sg' IOAHCIBlockStorage
  7. OR for Mountain Lion 10.8.0 and Lion 10.7.4 BELOW
    # perl -pi -e 's|(\x52\x6F\x74\x61\x74\x69\x6F\x6E\x61\x6C\x00{1,20})[^\x00]{9}(\x00{1,20}\x51)|$1\x00\x00\x00\x00\x00\x00\x00\x00\x00$2|sg' IOAHCIBlockStorage
  8. # touch /System/Library/Extensions/
  9. reboot your machine

In the system report (system information > serial-ata device) the TRIM support should list YES. The patch has to be re-applied everytime there's an OS update.

Locale problem in CentOS

hello,

when executing some programs like bash, python, perl or yum you can sometimes encounter messages like these:

"-bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8)"

or

"Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US.UTF-8""

The fix for this bug is quite simple, just add following line to your /etc/sysconfig/i18n:

LC_CTYPE="en_US.UTF-8"

and the world is nice again 🙂

Update:
If using the MacOSX Terminal you can also deactivate the option "Set locale environment…" in the Terminal -> Settings -> Advanced tab.