View unanswered posts | View active topics It is currently Sat Oct 19, 2019 11:45 am



Reply to topic  [ 13 posts ]  Go to page 1, 2  Next
 Creating ISO with drivers using bash script 
Author Message

Joined: Thu Jul 29, 2010 10:09 pm
Posts: 8
Reply with quote
Post Creating ISO with drivers using bash script
How do you add drivers to the ISO install? I have to add drivers to the ISO so that it will recognize my NIC.

I am using my laptop to create the ISO. I have the following files on the same folder:

-installation iso: Mware-VMvisor-Installer-4.1.0-260247.x86_64.iso
-mkesxiaio_3.9.7.sh and inetd.conf
-oem.tgz

I downloaded oem.tgz from the following:

viewtopic.php?f=12&t=1272

The file name is:

RTL8111_8168_P55_integr_SATA_Ctrl.(AHCI).oem.tgz

But I renamed it to "oem.tgz". I run the script, choose option 3 for ESXi 4.1 but I get an error stating:
No ISO file... exiting

Am I doing something wrong? Am I supposed to run the script on the machine that I'm going to install ESXi on? Or am I supposed to have the CD ISO already on the cd rom? It's not really explained other than to have the script and the driver in the same directory. I didnt see a mention as to the location of the ISO.


Thu Jul 29, 2010 10:28 pm
Profile
Site Admin

Joined: Mon Mar 16, 2009 10:13 pm
Posts: 3880
Reply with quote
Post Re: Creating ISO with drivers using bash script
Try it with the ISO file in the same folder.

_________________
Dave Mishchenko
VMware vExpert 2009-2013
Image
Now available - VMware ESXi: Planning, Implementation, and Security
Also available - vSphere Quick Start Guide


Thu Jul 29, 2010 11:51 pm
Profile

Joined: Wed Mar 18, 2009 1:32 pm
Posts: 455
Location: Sweden
Reply with quote
Post Re: Creating ISO with drivers using bash script
Strange that you get that error if you have all 3 files in the same folder.
You have read the how-to ?

//Daniel

_________________
Dovie'andi se tovya sagain,



Thu Jul 29, 2010 11:53 pm
Profile WWW

Joined: Thu Jul 29, 2010 10:09 pm
Posts: 8
Reply with quote
Post Re: Creating ISO with drivers using bash script
Varazir wrote:
Strange that you get that error if you have all 3 files in the same folder.
You have read the how-to ?

//Daniel



Very strange indeed. I have only seen this problem many times but in windows. The script didnt like my file's hierarchy. I have a partition just for data. I had to create a folder in the root of the drive and then it worked. So basically I went to "/media/HD" and created a folder, named it "esxi" and put all the files there, it ran without a problem. 0_o


Fri Jul 30, 2010 6:26 am
Profile

Joined: Mon Aug 02, 2010 12:09 am
Posts: 1
Reply with quote
Post Re: Creating ISO with drivers using bash script
I have the same problem. Do you have any idea? I created folder esxi on desktop in unbutum live 64 bit. but I get an error stating:
No ISO file... exiting


Mon Aug 02, 2010 5:47 am
Profile

Joined: Wed Mar 18, 2009 1:32 pm
Posts: 455
Location: Sweden
Reply with quote
Post Re: Creating ISO with drivers using bash script
Remember that you can't make just a normal live boot.
You need to create a extra drive that you mount and run the script from.

Look at the how to in my sig

I have never had the problem

could you set to run the script like this

bash -x mkesxiaio_3.9.7.sh

and post what you get ?


//Daniel

_________________
Dovie'andi se tovya sagain,



Mon Aug 02, 2010 6:39 am
Profile WWW

Joined: Thu Jul 29, 2010 10:09 pm
Posts: 8
Reply with quote
Post Re: Creating ISO with drivers using bash script
Hi, I was able to create the ISO but the install didnt work because of the NIC drivers. I'm wondering if I didnt create the ISO correctly to include the drivers? Or the drivers dont really work with my NIC in the first place? In any case, I am wondering if someone could help me create a USB bootable drive. I want to create a USB drive so I wont have to keep burning CD's that wont work, I'd rather using my USB thumb drive. My thumb drive is 4 gigs and I can use the entire drive to create a bootable drive that can be used to install ESXi 4.1 with custom drivers.

I am following the guide but it has very bad flow. I can't really follow it.

I'm looking at the section titled "Custom oem.tgz"
--> I choose Method 1.
I am using an already configured oem.tgz downloaded from here: viewtopic.php?f=12&t=1272

Everything is good but now I'm looking at the section titled "Prepare the necessary".
-->I am using ubuntu, do I really need to worry about this section?

Now, this is where everything goes haywire and flow is lost:

N.B.: if you have a custom driver as explained in Method 2 of paragraph Custom oem.tgz,

Now you go further down and this sends chills down my spine:

1) ISO installation // 2) USB installationn // 3) USB boot

The pictures are awesome but I am now completely lost!

There is no flow to the documentation. This is where I am so far.

--> I stored my files on its own partition called "myfiles" and I have created a directory called "esxi". Basically all the files I'm supposed to have are in /media/myfiles/esxi

-->The files I think I need and are in the folder "esxi":
-installation iso: Mware-VMvisor-Installer-4.1.0-260247.x86_64.iso
-mkesxiaio_3.9.7.sh and inetd.conf
-oem.tgz , downloaded from viewtopic.php?f=12&t=1272


Question: Do I need anything else to kick start the script?

How should I partition the USB drive? I have erased the USB drive and have nothing on it right now.


Wed Aug 04, 2010 2:02 pm
Profile
Site Admin

Joined: Mon Mar 16, 2009 10:13 pm
Posts: 3880
Reply with quote
Post Re: Creating ISO with drivers using bash script
If you want an alternate method just to test the NIC driver that you can use the instructions here http://www.vm-help.com/esx40i/ESXi_USB_install.php.

In addition to creating the bootable flash drive per the instructions you would
1) edit the config file to include an append a reference for oem.tgz

So this line

Code:
kernel mboot.c32
append vmkboot.gz --- vmkernel.gz --- sys.vgz --- cim.vgz --- ienviron.vgz --- install.vgz


should become this

Code:
kernel mboot.c32
append vmkboot.gz --- vmkernel.gz --- sys.vgz --- cim.vgz --- ienviron.vgz --- install.vgz  --- oem.tgz


2) copy the oem.tgz file.

If you can get that to boot without errors then you'll know the driver is OK. You'll then have to use the script to make your bootable ISO / usb drive as an install with this method won't work (as the oem.tgz won't end up on the install partition.

_________________
Dave Mishchenko
VMware vExpert 2009-2013
Image
Now available - VMware ESXi: Planning, Implementation, and Security
Also available - vSphere Quick Start Guide


Wed Aug 04, 2010 2:18 pm
Profile

Joined: Thu Jul 29, 2010 10:09 pm
Posts: 8
Reply with quote
Post Re: Creating ISO with drivers using bash script
I really wanted to try the guide first. I went ahead and ran mkesxiaio_3.9.7.sh and just followed the prompts to create a bootable USB. The guide showing you how to use the script could use a little clean up however the script is straight forward. All I did was follow the menus and follow the error prompts, the error prompts told you exactly what was wrong, I was eventually able to finish the entire script and created a bootable USB drive. I can confirm that NIC drivers work with the USB drive, I can boot up using the USB drive, my NIC is recognized, and I can get an IP.

My next question is, how can I install ESXi on my hard drive? Did I choose the correct setting? I have tried using the following options:

[2] USB installation
[3] USB boot

I did not try the following:

[4] USB installation without custom files
[5] USB boot without custom file

When I boot up into the USB drive I see a screen broken up into 2 panels, one panel is yellow, the other is gray.

I click on F2 "Customize System" and the panels are changed.
The yellow panel is labeled "System Customization" I have the following options:

-Configure Password
-Configure Lockdown Mode

-Configure Management Network
-Restart Management Network
-Test Management Network
-Disable Management Network
-Restore Standard Switch

-Configure Keyboard
-View Support Information
-View System Logs

-Troubleshooting Options

-Reset System Configuration
-Remove Custom Extensions

Question: How do I install ESXi to the hard drive? Am I barking up the wrong tree? O_O


Wed Aug 04, 2010 6:18 pm
Profile

Joined: Wed Mar 18, 2009 1:32 pm
Posts: 455
Location: Sweden
Reply with quote
Post Re: Creating ISO with drivers using bash script
Hello

What I'm reading you have used 3) USB boot .
That option is just going to let you boot from the USB no installation.

What you need to do is 1) ISO installation or 2) USB installation.

If you have Ubuntu installed local on your system
you can skip "Prepare the necessary".

I moved the N.B

At the "1) ISO installation // 2) USB installationn // 3) USB boot" it sas

"The first part is the same for all the frist three options.
If you have multiple .tgz files, the script wil ask you to decide wich one to choose"

If you only have one file you will not see that menu.

Going to talk to Spike see if he can change the guide so it has a better flow.

//Daniel

_________________
Dovie'andi se tovya sagain,



Wed Aug 04, 2010 8:51 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 13 posts ]  Go to page 1, 2  Next

Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.