View unanswered posts | View active topics It is currently Wed Dec 13, 2017 6:23 pm



Reply to topic  [ 21 posts ]  Go to page Previous  1, 2, 3  Next
 ESXI 5.x Drivers Part 3: Compiling 
Author Message
Site Admin

Joined: Mon Mar 16, 2009 10:13 pm
Posts: 3880
Reply with quote
Post Re: ESXI 5.x Drivers Part 3: Compiling
ch0psu3y wrote:
I am going to try to compile the esx driver using the original source and see how it goes. I will let you know :) I will probably try creating the VIB first. Should have something tonight.

I haven't followed your entire thread, but if you have a working ESXi install (network / storage) to which you want to add a driver you can bypass creating a VIB.

Simply boot ESXi, copy the driver over and try to load it with vmkload_mod.

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


Tue Mar 26, 2013 10:51 am
Profile

Joined: Sun Mar 24, 2013 10:36 am
Posts: 20
Reply with quote
Post Re: ESXI 5.x Drivers Part 3: Compiling
Thanks Dave... RTFT ;););) I was able to load the module using vmkload_mod and ESXi was happy as a clam until I rebooted it. Upon reboot the module is forgotten.

I am using these Sun quad NICs for a CCIE lab - I am currently working with 3 of them (the most my mobo will permit :)) totally 12 ports/interfaces. I need to create individual vswitches for each NIC interface so I can add each int to a guest and then add those int's to virtual routers running in GNS3 (router emulation software).

When I run vmkload_mod, i am able to see all my of my interfaces, this is great. I create my 12 vswitches and add 1 interface to each (so painful to do thru vsphere). then I reboot. When it comes back the server doesnt have the drivers loaded so all I can do with my vswitches is remove them. If I load the drivers before removing the old vswitches, the vswitches all error out because the old vmnet32 that existed on the server before the reboot isnt there anymore. There is something unique that changes each time you use vmkload_mod and the vswitches dont like it.

We think creating a VIB for the module will load it on boot and fix this annoyance :)

FYI - great site here, very happy you guys exist !


Tue Mar 26, 2013 1:13 pm
Profile

Joined: Mon Jan 28, 2013 5:09 pm
Posts: 100
Reply with quote
Post ESXI 5.x Drivers Part 3: Compiling
You don't need a cert. I did not use one. That file can be blank. If you have access to a Windows system then you could try peet's community packaging tools. Hear it takes the guess work out of making a vib?


Tue Mar 26, 2013 4:39 pm
Profile

Joined: Sun Mar 24, 2013 10:36 am
Posts: 20
Reply with quote
Post Re: ESXI 5.x Drivers Part 3: Compiling
followed these instructions: http://www.v-front.de/p/esxi5-community ... tools.html

looked in each file suggested in the guide, compared what I had and modified as necessary. ran this
Code:
lspci -v
to get this
Code:
000:005:00.0 Bridge Bridge: Sun Microsystems Computer Corp. EBUS
         Class 0680: 108e:1000
000:005:00.1 Ethernet controller Network controller: Sun Microsystems Computer Corp. Happy Meal 10/100 Ethernet [hme]
         Class 0200: 108e:1001
that gave me the DID:VID and from there i modified as necessary.

so i tar'd up my crap and created the vib. scp'd it onto esxi and got this:

Code:
 # esxcli software vib install -v /tmp/net-sunhme-1.0.x86_64.vib --no-sig-check
 [DependencyError]
 VIB Sun_bootbank_net-sunhme_1.0's acceptance level is community, which is not compliant with the ImageProfile acceptance level partner
 To change the host acceptance level, use the 'esxcli software acceptance set' command.
 Please refer to the log file for more details.
~ # esxcli --server=192.168.1.20 software acceptance set --level=CommunitySupported
Usage: esxcli [options] {namespace}+ {cmd} [cmd options]

esxcli: error: no such option: --server
~ # esxcli software acceptance set --level=CommunitySupported                     
Host acceptance level changed to 'CommunitySupported'.
~ # esxcli software vib install -v /tmp/net-sunhme-1.0.x86_64.vib --no-sig-check
Installation Result
   Message: The update completed successfully, but the system needs to be rebooted for the changes to be effective.
   Reboot Required: true
   VIBs Installed: Sun_bootbank_net-sunhme_1.0
   VIBs Removed:
   VIBs Skipped:
~ #
~ #
~ #
~ # esxcfg-nics -l
Name    PCI           Driver      Link Speed     Duplex MAC Address       MTU    Description                   
vmnic0  0000:09:00.00 r8168       Up   100Mbps   Full   8c:89:a5:6c:e7:32 1500   Realtek Realtek 8168 Gigabit Ethernet
~ #


oops, forgot to reboot! drum roll please...

Code:
The semaphore timeout period has expired.


The time and date of this login have been sent to the system logs.

VMware offers supported, powerful system administration tools.  Please
see www.vmware.com/go/sysadmintools for details.

The ESXi Shell can be disabled by an administrative user. See the
vSphere Security documentation for more information.
~ # esxcli network nic list
Name     PCI Device     Driver  Link  Speed  Duplex  MAC Address         MTU  Description                                                     
-------  -------------  ------  ----  -----  ------  -----------------  ----  ----------------------------------------------------------------
vmnic0   0000:009:00.0  r8168   Up      100  Full    8c:89:a5:6c:e7:32  1500  Realtek Realtek 8168 Gigabit Ethernet                           
vmnic1   0000:005:00.1  sunhme  Down      0  Half    08:00:20:cc:29:35  1500  Sun Microsystems Computer Corp. Happy Meal 10/100 Ethernet [hme]
vmnic10  0000:007:01.1  sunhme  Up      100  Full    08:00:20:1c:69:ca  1500  Sun Microsystems Computer Corp. Happy Meal 10/100 Ethernet [hme]
vmnic11  0000:007:02.1  sunhme  Up      100  Full    08:00:20:dc:90:a4  1500  Sun Microsystems Computer Corp. Happy Meal 10/100 Ethernet [hme]
vmnic12  0000:007:03.1  sunhme  Up      100  Full    08:00:20:6e:32:68  1500  Sun Microsystems Computer Corp. Happy Meal 10/100 Ethernet [hme]
vmnic2   0000:005:01.1  sunhme  Down      0  Half    08:00:20:35:43:86  1500  Sun Microsystems Computer Corp. Happy Meal 10/100 Ethernet [hme]
vmnic3   0000:005:02.1  sunhme  Down      0  Half    08:00:20:e3:ee:61  1500  Sun Microsystems Computer Corp. Happy Meal 10/100 Ethernet [hme]
vmnic4   0000:005:03.1  sunhme  Down      0  Half    08:00:20:99:cf:8a  1500  Sun Microsystems Computer Corp. Happy Meal 10/100 Ethernet [hme]
vmnic5   0000:006:00.1  sunhme  Down      0  Half    08:00:20:14:c4:44  1500  Sun Microsystems Computer Corp. Happy Meal 10/100 Ethernet [hme]
vmnic6   0000:006:01.1  sunhme  Down      0  Half    08:00:20:41:e1:6f  1500  Sun Microsystems Computer Corp. Happy Meal 10/100 Ethernet [hme]
vmnic7   0000:006:02.1  sunhme  Down      0  Half    08:00:20:0a:64:b1  1500  Sun Microsystems Computer Corp. Happy Meal 10/100 Ethernet [hme]
vmnic8   0000:006:03.1  sunhme  Down      0  Half    08:00:20:bd:8b:02  1500  Sun Microsystems Computer Corp. Happy Meal 10/100 Ethernet [hme]
vmnic9   0000:007:00.1  sunhme  Up      100  Full    08:00:20:66:4a:a6  1500  Sun Microsystems Computer Corp. Happy Meal 10/100 Ethernet [hme]
~ #


and we're gravy. if we ever meet, beers are on me.

EDIT: i have attached the vib for anyone who comes across this. Please forgive my choice language in some of the files ;)


Attachments:
net-sunhme-1.0.x86_64.vib.zip [366.99 KiB]
Downloaded 187 times
Tue Mar 26, 2013 5:59 pm
Profile

Joined: Sun Mar 24, 2013 10:36 am
Posts: 20
Reply with quote
Post Re: ESXI 5.x Drivers Part 3: Compiling
Where is part 4 brother? :)


Fri Mar 29, 2013 11:18 am
Profile

Joined: Mon Jan 28, 2013 5:09 pm
Posts: 100
Reply with quote
Post ESXI 5.x Drivers Part 3: Compiling
Been on vacation. May have some time over the next few days. :)


Sat Mar 30, 2013 3:48 pm
Profile

Joined: Mon Jan 28, 2013 5:09 pm
Posts: 100
Reply with quote
Post ESXI 5.x Drivers Part 3: Compiling
Congrats by the way!


Sat Mar 30, 2013 3:48 pm
Profile

Joined: Sun Mar 24, 2013 10:36 am
Posts: 20
Reply with quote
Post Re: ESXI 5.x Drivers Part 3: Compiling
what happened to part 4? :)


Thu Apr 11, 2013 6:11 am
Profile

Joined: Mon Jan 28, 2013 5:09 pm
Posts: 100
Reply with quote
Post Re: ESXI 5.x Drivers Part 3: Compiling
I've almost got it done. There's a bit in the driver where I couldn't figure something out so I took a short cut that works fine for getting the driver going. Now I'm writing it up, I'm obsessed with getting to the bottom of the actual problem. Unfortunately I have not had much time to really get in to it. I may end up just writing up the short cut and leaving the mystery problem as an exercise to the reader ;-)


Sat Apr 13, 2013 6:39 pm
Profile

Joined: Wed Apr 24, 2013 11:56 pm
Posts: 1
Reply with quote
Post Re: ESXI 5.x Drivers Part 3: Compiling
hi
I still didnt get where to put my linux drivers of Dlink 530 TX gigabit nic befor compiling?
would u please help


Mon Apr 29, 2013 12:16 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 21 posts ]  Go to page Previous  1, 2, 3  Next

Who is online

Users browsing this forum: No registered users and 1 guest


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.