Create a custom ESXi image for your RAID Driver | 3ware 9750 SAS RAID
Situation :
I have a new server with following RAID card : 3ware 9750 SAS
I would like to run ESXi on it but my RAID card is not supported by VMWare ![]()
Since I have only one partition , I need to modify the original ESXi iso with my own RAID driver in order to be able to install ESXi on my server..
It’s easy , follow the next three steps :
Step 1 – Extract the 3ware 9750 SAS RAID-driver
- Please go to the following url and download the iso on a linux server
- Mount that iso :
- mount -o loop /tmp/vmware-esx-drivers-scsi-3w-sas_400.3.26.00.001vm40-1.0.4.00000.229230.iso /media/
- Copy the rpm from that iso to /tmp
- cp /media/.rpm/vmware-esx-drivers-scsi-3w-sas-400.3.26.00.001vm40-1.0.4.00000.x86_64.rpm /tmp/
- Extract the content from that rpm without installing it
- cd /tmp
- rpm2cpio /tmp/vmware-esx-drivers-scsi-3w-sas-400.3.26.00.001vm40-1.0.4.00000.x86_64.rpm | cpio -idmv
(the following is the one that we are interested in : usr/lib/vmware/vmkmod/3w-sas.o
Step 2 – Create your custom oem.tgz file
- Make it yourself easy and get an already existing oem.tgz ( eg mine : oem-9750.tgz )
That way you already have the proper files and directories in place. - Extract that tgz file in an new temporarily directory (eg: /tmp/oem)
- tar xvzf oem-9750.tgz
- cp that “.o file” from step 1 to the following dir : /tmp/oem/usr/lib/vmware/vmkmod/3w-sas.o
- Next, adjust the pci.ids file
- vi /tmp/oem/etc/vmware/pci.idsAdd the PCI ID of your raid card to that file.
In my case :- 13c1 3ware Inc
- 1010 9750 SAS2/SATA-II RAID PCIe(An overview of all PCI ID’s can be found here: http://pciids.sourceforge.net/pci.ids)
- vi /tmp/oem/etc/vmware/pci.idsAdd the PCI ID of your raid card to that file.
- Also adjust the simple.map file
- vi /tmp/oem_9750/etc/vmware/simple.map
- 13c1:1010 0000:0000 storage 3w-sas.o
- vi /tmp/oem_9750/etc/vmware/simple.map
- Once that is done create your oem.tgz file :
- cd /tmp/oem
- tar cvzf oem.tgz ./*
Step 3 – Create your custom ISO
- Download this excellent script from mkesxiaio | http://code.google.com/p/mkesxiaio/ on your server
- cd /tmp/my-cd
- wget http://mkesxiaio.googlecode.com/files/mkesxiaio_3.9.9.sh
- chmod a+x mkesxiaio_3.9.9.sh
- Download the ESXi iso from VMWare ( ESXi 4.1 Installable (CD ISO) to /tmp/my-cd
- Copy your custom oem.tgz (Step2) to /tmp/my-cd
- Run the script , follow the instructions, use your brains and once you are done your custom iso will be here:
- /tmp/my-cd/save/VMware_esxi_custom_4.1_oem.iso
If you have questions ,feel free to leave a comment here and if possible I will try to assist you!
Note : I spend quite some time on this issue during my work as an operation manager @ nomadesk - The easiest and most secure way to share, synchronize and backup files wherever you are, online or offline! So thank you for that!
Comments
10 Responses to “Create a custom ESXi image for your RAID Driver | 3ware 9750 SAS RAID”
Leave a Reply
I also have a 9750 that i am trying to integrate and totally new to this mk script.
Can you tell me what options i need to include when running the script to include the oem.tgz that you posted on vm-help?
Hi Nick,
You don’t need to included any options when starting the script.
The only requirements are that you have the orginal ESxi ISO in place + the custom oem.tgz file.
Does that answers your question?
I have Promise Supertrak 8650 SAS RAID Card
and also follow your instrctions to make a oem.tgz that contain stex.o driver.
then install via PXE server and load oem.tgz sucess but system responds esxi could not populate filesystem: Boot image is corrupted
Thanks for using my script
Np , thank you for the excellent script
Hi Stijn,
That’s exactly what I need. Tks!
Btw, I’ll be having a conference call Filip next week. Hoping we can bring nomadesk to APAC.
With guys like working nomadesk, we are even more confident to go a long way w/ ur mobile data protection solution.
Thank you, always nice to read comments like these!
New to linux. I’m trying to run script on a SUSE 11 box but there’s no apt-get. Script asks for an alternative. I tried to give it zypper with no switches but it didn’t complete. Does anybody know what should be supplied or if it will even work on 11? I desperately need to get a disk to install from with this 3ware controller.
Just finished an installation of Ubuntu 10.04 and tried running script. Got the following error:
171: Syntax error: “(” unexpected
That’s the second uncommented line of the script (if I’m reading it right). Is this a Ubuntu specific issue?
Glenn I suggest that you ask for support here : http://www.vm-help.com/forum/
Since I don’t have thatm uch spare time to assist you!
Kind regards
Stijn