VMware
1 2 Previous Next 16 Replies Last post: Jun 29, 2009 5:25 PM by jkasal  

Install VMware ESX3 without isolating the SAN posted: Feb 13, 2008 6:11 AM

Click to view MitchHP's profile Enthusiast 26 posts since
Jan 3, 2008
Dear community,

according to a project I am currently workingon I developed a script to automatically build an ISO image based on a VMware ISO image such as "upgrade-esx-3.0.2-61618.iso" or "esx-3.5.0-64607.iso". The script is based on a whitepaper at XtraVirt.com (Install VMware ESX3 without isolating the SAN) but I thought the described process might be to much for those who are not that familar with linux coding.

It works on linux (I tested it with Debian Linux (Ubuntu) and Fedora Linux) and required to previously install the mkisofs package. The resulting ISO image (/root/esxNoSan.iso) can be used to install an ESX server without detaching SAN cables or organising LUN masking each time you build or rebuild a VMware ESX Server.

The script can easily be executed by giving the input ISO image as parameter. (Remember to set correct permissions "chmod +x createISO.sh" previously and to execute the script as root, because the script is built within a few temporary folders in /root). For further information feel free to read through the script or re-code it to match your needs.

Regards, Thomas!
Attachments:

Re: Install VMware ESX3 without isolating the SAN

1. Jan 8, 2008 1:47 AM in response to: MitchHP
Click to view Vliegenmepper's profile Master 1,511 posts since
May 10, 2006
Haven't tested it yet but is sounds usefull.. Thanx

Re: Install VMware ESX3 without isolating the SAN

2. Jan 11, 2008 2:51 AM in response to: MitchHP
Click to view dinny's profile Expert 452 posts since
Sep 20, 2006
Hiya,

I wrote the whitepaper that is hosted on Xtravirt last year.

A scripted solution is definitely the way to go.

It was something I vaguely thought of doing at the time - but I ran out of time and motivation :-)

Scripts run in a few mins as opposed to 2 or 3 hours to do it manually.

Bouke wrote a similar script to do the same thing a while ago.

http://www.jume.nl/index.php?option=com_content&task=view&id=34&Itemid=5

I do intend to republish the whitepaper doc - with a link to the script - but been too busy with the day job - will hopefully get round to it soon.....

Dinny

Re: Install VMware ESX3 without isolating the SAN

4. Feb 3, 2009 8:50 AM in response to: MitchHP
Click to view polovp's profile Lurker 2 posts since
Jan 22, 2009
I have written a bash scritp that is focused on boot.iso image file.

I takes original boot.iso in argument and then generates a new bootNoSan.iso image without qlogic/Emulex modules.

If it can help someone, I would be very pleased.

Paulo
Attachments:

Re: Install VMware ESX3 without isolating the SAN

5. Feb 3, 2009 12:12 PM in response to: polovp
Click to view Fogel's profile Novice 23 posts since
Feb 5, 2007

Hey,

I understand this only applies to local disk ESX installation. I'm currently looking at a "boot-on-san" blade solution for my esx hosts. I'm guessing allowing only one LUN to be visible to the ESX server would be pretty messy? I mean, if I could find a way to determine which LUN has 20Gb (My VM LUNs are 500Gb, my boot LUN would have 20Gb), maybe I could do an ignoredisk on the rest?

Anyone here have an idea how I could script my installation and I wouldn't have to remove the server from the SAN Storage Manager to install it on the SAN? I'd really like to remove the "dezoning" phase from the installation.

Re: Install VMware ESX3 without isolating the SAN

6. Feb 3, 2009 12:18 PM in response to: polovp
Click to view Wimo's profile Expert 516 posts since
Oct 7, 2004

We have been looking for something like this - thanks guys. What we had been doing on some new DL580s is going into the BIOS and disabling the PCI slots holding the HBAs. Unfortunately other models don't have this handy feature.

One question - if the ISO this creates installs ESX without the Emulex or QLogic drivers - how do you get them back after the install?

Re: Install VMware ESX3 without isolating the SAN

7. Feb 4, 2009 7:09 AM in response to: Wimo
Click to view polovp's profile Lurker 2 posts since
Jan 22, 2009
The boot.iso file is only used once (for installation). When installation finish and the server will be rebooted, all modules (including qlogic/Emulex) will allow you to access your Lun's on Emulex/QLogic

Re: Install VMware ESX3 without isolating the SAN

9. Jun 12, 2009 12:42 PM in response to: MitchHP
Click to view jkasal's profile Novice 10 posts since
Jun 7, 2008

Has anyone ran into issues running this script against an ESX 3.5 Update 4 iso? The script seems to run fine but when I try to install I get a package error. The error states...

"The Package VMware-esx-drivers-scsi-aaraid_esx30_350.1.1.5.2vmw-82663 cannot be opened. This is due to a missing file or perhaps a corrupt package. If you are installing from CD media this usually means the CD media is corrupt, or the CD drive is unable to read the media. Press ok to try again."

Pressing OK doesn't do anything. I have also installed directly from the un-altered CD and the install completes just fine.

Could this be a permission issue? Maybe the script changes the permissions of the specified file?

I appreciate any light you guys can shed on this.

Thanks,

Joe

Re: Install VMware ESX3 without isolating the SAN

10. Jun 12, 2009 12:45 PM in response to: jkasal
Click to view jkasal's profile Novice 10 posts since
Jun 7, 2008

I should add I get the same error when I use Bouke's script. He has also updated it for ESX 3.5 Update 4.

My hardware is BL460c's and I'm installing via PXE.

Re: Install VMware ESX3 without isolating the SAN

11. Jun 12, 2009 1:06 PM in response to: MitchHP
Click to view RParker's profile Champion vExpert 5,790 posts since
Dec 6, 2006
The resulting ISO image (/root/esxNoSan.iso) can be used to install an ESX server without detaching SAN cables or organising LUN masking each time you build or rebuild a VMware ESX Server.

Great tool. Thanks. Although isolating is not a requirement, it's just a safeguard. If you pay attention to the screens and watch for datastore / targets you shouldn't have to isolate. Also for upgrades, it doesn't prompt for this info either.

Re: Install VMware ESX3 without isolating the SAN

12. Jun 12, 2009 4:01 PM in response to: jkasal
Click to view doslager's profile Novice VMware Employees 11 posts since
Oct 7, 2005

I think the problem is related to whatever you are using to extract the files from the ISO. Whatever program you use is truncating the filename to a certain length (and thus clipping the .rpm extension).

I used Bourke's script on Ubuntu to re-master the ISO and copied it to my Windows laptop. I then used WinImage (www.winimage.com) to extract the files for my PXE server distro point.

I see the same issue when I view the ISO using 7-zip, or WinRar. But, i see the full filename when I view the ISO with WinImage and extract the files with WinImage.

Dave O.


Re: Install VMware ESX3 without isolating the SAN

13. Jun 12, 2009 4:08 PM in response to: RParker
Click to view doslager's profile Novice VMware Employees 11 posts since
Oct 7, 2005

Good points RPaker, but when doing kickstart installs with PXE, there aren't any prompt screens. ;)

In the ks.cfg file, you have to explicitly specify a specific disk (ie sda, sdb, sdc, etc). Depending on how your hardware enumerates the PCI bus it may scan the HBAs first before the local storage. So, your SAN LUNs may be sda, sdb, sdc, sdd, etc....and your local storage something down the line like sde or sdf. In vSphere (ie ESX4) this is a bit different but still can be tricky at the same time.

When using HP hardware, their RAID is specified as cciss, so this problem is not as big of a deal on HP. (Dell and IBM RAID drivers enumerate their local storage and SAN as "sdX")

When doing a manual install by spinning up a CD, I always recommend pulling the cables, un-zoning the server, or using the above CD when installing and/or re-installing on a server attached to a live SAN with live LUNs. In my opinion, ts not worth the risk of human error.

Just my $0.02....

Dave O.

Re: Install VMware ESX3 without isolating the SAN

14. Jun 13, 2009 9:45 AM in response to: doslager
Click to view jkasal's profile Novice 10 posts since
Jun 7, 2008

That was it! I was using WinRAR and it was clipping the .RPM off. WinRAR must have a character limitation that WinImage does not.

Thanks for the help Dave O!

Jkasal

VMware Beta Programs

Want to be Considered for Future Beta Programs?

Learn More

VMware Developer

Download SDKs, APIs, videos,
training, and more in the Developer community.

Learn More

Developer
Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld
Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

Only VMware ... Delivers Nexus 1000V

Ensure consistent, policy-based network capabilities to virtual machines across your data center.

Learn More

Communities