View unanswered posts | View active topics It is currently Wed May 22, 2013 7:22 am



Reply to topic  [ 33 posts ]  Go to page 1, 2, 3, 4  Next
 mkesxiaio.sh issues 
Author Message

Joined: Mon Apr 20, 2009 4:47 pm
Posts: 16
Post mkesxiaio.sh issues
@Varazir - I found this script today (oddly enough I noticed it today) and it worked awesome!!! I noticed this page that describes the exact steps your script takes me and I was *so* happy when I found it. You are the man for making it.

I installed it on an Ubuntu 9.04 (with latest RC / dist-upgrade) box. I selected the SSH + FTP and received a failure. Here's the output:

Code:
Replacing ^#ssh with ssh in /home/andy/esx-ienv/etc/inetd.conf  [Done]
Creating /home/andy/esx-oem/sbin        [Done]
Downloading ProFtpd to /home/andy/esx-ftp       [Done]
./mkesxiaio_2.6.sh: line 499: cd: /home/andy/esx-ftp/proftpd: No such file or directory
Copy the proftpd.conf to /home/andy/esx-oem/etccp: cannot stat `proftpd.conf': No such file or directory
        [Done]
Copy the proftpd to /home/andy/esx-oem/sbincp: cannot stat `proftpd': No such file or directory
        [Done]
Copy the tcpd to /home/andy/esx-oem/sbincp: cannot stat `tcpd': No such file or directory
        [Done]
Replacing ^#ftp with ftp in /home/andy/esx-ienv/etc/inetd.conf  [Done]
Replacing in.ftpd with proftpd in /home/andy/esx-ienv/etc/inetd.conf    [Done]
Do you like to edit /home/andy/esx-oem/etc/proftpd.conf  [y/n]


After some quick troubleshooting, it turns out I didn't have unzip on the machine. Again, this is a plain vanilla ubuntu server machine. After
Code:
apt-get install unzip
, ftp worked liked a charm. Maybe your script should check for unzip? :)

Also, for some reason, even when booting up with the usb key in the physical box, the USB option never worked. Not sure what happened there. I did not attempt to mount it and run the check again, so I instead just wrote the iso file and burned it to test if it worked (and it did!). I didn't try and replicate the problem, so I haven't much to offer for output, except that it just didn't find the usb key to write to after I kept hitting 1 to update. Maybe some more error output or direction would be helpful in your script?

- Suggestion (since you are learning batch scripting, and you are doing great so far, maybe setting defaults that people might want (like Y/n - like, yes, if enter is pressed).
- perhaps executing your script with --default would answer those Y/n questions? *shrug* just a thought, and I thank you very much for your great script!


Mon Apr 20, 2009 5:32 pm
Profile

Joined: Mon Apr 20, 2009 4:47 pm
Posts: 16
Post Re: Linux: Bash script to creat a custom installtion [Done]
@Dave - while i'm at it.... thank you for offering so much feedback to the community. I've read countless posts by you. Your vm-help.com web pages, new forum, and vmware.com postings has been encyclopedic for my esx hacking....

Reverenced,

Andy Slezak
CytexOne


Mon Apr 20, 2009 5:37 pm
Profile

Joined: Wed Mar 18, 2009 1:32 pm
Posts: 451
Location: Sweden
Post Re: Linux: Bash script to creat a custom installtion [Done]
Thanks for the feedback

I'll add unzip the install list it was the easy part, sorry I had forgot that
I installed when I did something ells.

Changed to N is default if you press enter and changed the order of some of the questions

About the USB , I can widening the search pattern I have for USB devices.
I use the command udevinfo to scan the devices
What's the name and model of the usb drive you are using ?

TIA

Daniel


Edit : If I remember correct I got my info from that page, I should mabe
add that to my script as a side note.

Edit2: I'm going to test the 9.04 server my self see what happens

Edit3: Tested on a 9.04 server minimal vm installtion. Found some bugs and fixed them.

_________________
Dovie'andi se tovya sagain,



Mon Apr 20, 2009 11:28 pm
Profile WWW

Joined: Mon Apr 20, 2009 4:47 pm
Posts: 16
Post Re: Linux: Bash script to creat a custom installtion [Done]
Awesome - I have some more boxes to make in the next week or so. I will post the results. Thanks for the fast turn around time on the fix!!


Wed Apr 22, 2009 5:00 pm
Profile

Joined: Wed Mar 18, 2009 1:32 pm
Posts: 451
Location: Sweden
Post Re: Linux: Bash script to create a custom installation [Done]
@aslezak

I think the USB problem you had was due to the a binary was removed from 9.04 I guess.
I changed so the script will use the main binary, will work in both 8.x and 9.x of ubuntu and I guess
other dists too.

Depends of it uses apt-get to install pkg's

_________________
Dovie'andi se tovya sagain,



Sun Apr 26, 2009 9:14 pm
Profile WWW

Joined: Tue Apr 21, 2009 12:25 pm
Posts: 33
Post Re: Linux: Bash script to create a custom installation [Updated]
I run CentOS VM's, and that's where I ran this script. Worked great EXCEPT for the genisoimage call - CentOS doesn't come with that, and using the CentOS "yum" installer I was still unable to get it - and the script doesn't check for the missing required executables (at least not under CentOS?).

In any case, I ended up making a symlink to mkisofs (since they share the same command line commands) in the /usr/bin directory.

Hopefully this will help anyone else who doesn't have genisoimage on their Linux box.

This is an awesome script, I definately appreciated the community drivers being installed too, as it includes an Areca RAID adpaeter driver - which we just happened to purchase recently. So awesome, thank you so much.


Tue May 05, 2009 5:06 pm
Profile

Joined: Wed Mar 18, 2009 1:32 pm
Posts: 451
Location: Sweden
Post Re: Linux: Bash script to create a custom installation [Updated]
mauirixxx wrote:
I run CentOS VM's, and that's where I ran this script. Worked great EXCEPT for the genisoimage call - CentOS doesn't come with that, and using the CentOS "yum" installer I was still unable to get it - and the script doesn't check for the missing required executables (at least not under CentOS?).

In any case, I ended up making a symlink to mkisofs (since they share the same command line commands) in the /usr/bin directory.

Hopefully this will help anyone else who doesn't have genisoimage on their Linux box.

This is an awesome script, I definately appreciated the community drivers being installed too, as it includes an Areca RAID adpaeter driver - which we just happened to purchase recently. So awesome, thank you so much.


Cool it worked in some way in CentOS.

I used mkiso when I started but in ubuntu mkiso is a symlink to genisoimage.
I have thought of making a check for the executables, and install them if they are missing.

Then I can prob make the script more compatibility with other dist that isn't using apt-get as installation binary.

Thanks for the feedback

rgd

Daniel

_________________
Dovie'andi se tovya sagain,



Tue May 05, 2009 11:41 pm
Profile WWW

Joined: Tue Apr 21, 2009 12:25 pm
Posts: 33
Post Re: Linux: Bash script to create a custom installation [Updated]
Ok, I chose the option to have it create an iso, which I then transferred back to my client PC and burned to a CD. With the community drivers installed, it still wouldn't "see" my Areca raid controller.

After doing some more forum searching, I came across Areca drivers specifically for ESXi - but right now it seems they only support booting off a USB stick. I'm going to play with it some more today and see if I can get it loaded onto the raid array.

Now, if I include the above linked oem.tgz file, will your script see that and incorporate it? Do I need to rename it to something or? I saw from your screenshots it detects multiple community packs ... guess I need to re-read your web page :)


Wed May 06, 2009 11:30 am
Profile

Joined: Wed Mar 18, 2009 1:32 pm
Posts: 451
Location: Sweden
Post Re: Linux: Bash script to create a custom installation [Updated]
mauirixxx wrote:
Ok, I chose the option to have it create an iso, which I then transferred back to my client PC and burned to a CD. With the community drivers installed, it still wouldn't "see" my Areca raid controller.

After doing some more forum searching, I came across Areca drivers specifically for ESXi - but right now it seems they only support booting off a USB stick. I'm going to play with it some more today and see if I can get it loaded onto the raid array.

Now, if I include the above linked oem.tgz file, will your script see that and incorporate it? Do I need to rename it to something or? I saw from your screenshots it detects multiple community packs ... guess I need to re-read your web page :)


You can use any oem file, I just have 2 different for testing,

The best is to use a name that shows what just that oem file dose,
like adding support for realtech nic, but "oem.tgz" need to be in the file name. The script will rename the file and copy it to the right place.

The script works best in that way

_________________
Dovie'andi se tovya sagain,



Wed May 06, 2009 11:58 am
Profile WWW

Joined: Wed Mar 18, 2009 1:32 pm
Posts: 451
Location: Sweden
Post Re: Linux: Bash script to create a custom installation [Updated]
mauirixxx wrote:
Can I use this script to add in the oem.tgz to a usb stick install, then just manually copy the files over to a usb stick (after running syslinux to the usb stick?)


I have added the check part now so please download 2.8.

Well the script will do that part too, if you answer Y the last question in red text
it will run syslinux, copy the files to the usb stick.

But you can do that manually just answer N on the last question and
the custom files will be saved in the save folder.

_________________
Dovie'andi se tovya sagain,



Wed May 06, 2009 1:57 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 33 posts ]  Go to page 1, 2, 3, 4  Next

Who is online

Users browsing this forum: No registered users and 0 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.