Startech USB to Ethernet installation

marigo

Renowned Member
Mar 7, 2014
34
3
73
Hi all,

I want to install this USB-2-Ethernet adapter on my Proxmox host.

http://www.amazon.com/StarTech-Gigabit-Ethernet-Network-USB21000S2/dp/B007U5MGDC

I need to compile the driver myself with the sources of the kernel. I am currently on this version:

================
root@proxmox-virt:/tmp/Linux# pveversion --verbose
proxmox-ve-2.6.32: 3.4-156 (running kernel: 2.6.32-39-pve)
pve-manager: 3.4-6 (running version: 3.4-6/102d4547)
pve-kernel-2.6.32-32-pve: 2.6.32-136
pve-kernel-2.6.32-39-pve: 2.6.32-156
lvm2: 2.02.98-pve4
clvm: 2.02.98-pve4
corosync-pve: 1.4.7-1
openais-pve: 1.1.4-3
libqb0: 0.11.1-2
redhat-cluster-pve: 3.2.0-2
resource-agents-pve: 3.9.2-4
fence-agents-pve: 4.0.10-2
pve-cluster: 3.0-17
qemu-server: 3.4-6
pve-firmware: 1.1-4
libpve-common-perl: 3.0-24
libpve-access-control: 3.0-16
libpve-storage-perl: 3.0-33
pve-libspice-server1: 0.12.4-3
vncterm: 1.1-8
vzctl: 4.0-1pve6
vzprocps: 2.0.11-2
vzquota: 3.1-2
pve-qemu-kvm: 2.2-10
ksm-control-daemon: 1.1-1
glusterfs-client: 3.5.2-1
=================

I have the drivers but I don't know how to accomplish the following tutorial.

a. Obtain the kernel source tree for the platform in use and build it.

I have tried to install the headers, but I get an error.

#apt-get install linux-headers-2.6.32-39
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-headers-2.6.32-39
E: Couldn't find any package by regex 'linux-headers-2.6.32-39'



Can anyone push me in the right direction?
 
apt-get install pve-headers-2.6.32-39-pve
 
apt-get install pve-headers-2.6.32-39-pve

Hi Tom,

Thank you for your quick reply. I have managed to make de needed module to support the usb->ethernet NIC.

When insmod runs it just works fine. Just now to manage to survive a reboot.
I have allready copied to /lib/modules/<u-name>/kernel/drivers/net/usb

Maybe another hint for a newbie? :)

Also I copied the smsc7500.ko to /lib/modules/`uname -r` and executed "depmod -a"
After this I could do a "modprobe smsc7500" and edited "/etc/modules" and added "smsc7500" to this file.

Everything is working as expected.

If someone need the smsc7500.ko for 2.6.32-39-pve; drop me a message.
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!