Posts Tagged ESXi

ESXi 5.0 JMicron ATA Driver for non AHCI mode

I just upgraded to ESXi 5, however there was no support for the JMicron ATA Controller on my EP45-UD3L board.

I updated danisoto’s driver to be ESXi 5 compatible with the help of the pata_jmicron linux source.

Driver VIB can be downloaded from here: pata-jmicron-0.1.5.x86_64.vib. Use ESXi-Customizer to integrate it with an install ISO.

Vib can be installed into a running instance like so:

#set acceptance to community support if not already selected
esxcli software acceptance set --level=CommunitySupported
esxcli software vib install -v

Note that I could not get the package to work with an existing instance and had to do a “fresh” install of ESXi (rather than installing the package or an in-place upgrade).

Source is on GitHub: (with build instructions)

, , ,


Recover Un-mountable VMWare ESXi Volume

After upgrading to VMWare ESXi 5 from 4.1, I found one of my datastore volumes would no longer mount. The disk would show up as a device, but there were a series of errors whenever I tried to mount the volume.

After trying a variety of things, I still couldn’t get the volume to mount, so I decided to try to recover the virtual machines off the drive before wiping it.

The first step is to configure the un-mountable disk as a raw passthrough. This will allow a guest OS to access the disk. Instructions for these steps can be found here:

After converting the disk to a raw passthrough, assign it to a virtual machine on your ESXi host. I chose Gentoo Linux.

By default, most linux distributions don’t ship with VMFS support, however Christophe Fillot and Mike Hommey have developed a tool called vmfs-tools that allows mounting of VMFS partitions. If you have Debian or Ubuntu you can simply install the package. Since I was using Gentoo I had to build from source:

You may have to emerge some of the prerequisites if you do not have them. See the vmfs-tools site for details.

tar -xf vmfs-tools-0.2.1.tar.gz
cd vmfs-tools-0.2.1
make && make install

Now that we have vmfs-fuse installed, we can mount our volume:

#Ensure the fuse kernel module is loaded
modprobe fuse
#Mount the device to the desired mountpoint
vmfs-fuse /dev/sdd1 /mnt/vmfs
#copy files off of mounted vmfs
cp -Rv /mnt/vmfs /tmp

, , ,

No Comments