While playing around with my new bare metal Oracle VM Server, I found out that Oracle VM Server is quite picky when it comes to network interface card (NIC) drivers. It is not uncommon that a Oracle VM Server meant as test / development server is not build from server spec hardware. Most motherboards come with a build-in NIC based on a Realtek chipset. It can easily happen that after the initial installation, the network simply doesn’t work in the Dom0. The r8169 kernel module will simple not work.
Luckily is not that hard to get it to work, by simply compiling your own drivers. There is an excellent thread on the OTN forum about this. Basically it boils down to installing the Kernel headers, glibc and its headers and the compiler in dom0 to compile your NIC driver. First you’ll have to get your NIC driver. In my case, for my Realtek 8111E, I could simply get the source from Realtek.
Now to get the prerequisites. In this blog post I assume a X86_64 platform. I’m using Oracle VM Server 2.2.1, meaning that my NIC should at least be supported by Oracle Enterprise Linux 5 Update 3.
- Download the OEL5.3 X64 DVD ISO from the eDelivery portal.
- Mount the iso
- Copy from the Server directory the following RPMs to an USB stick:
- From the Oracle VM Server installation disc, get the following RPMs from the Server directory:
- Mount the USB stick in your Dom0 (mount /dev/<<device>> /mnt/<folder>)
- Install the RPMs mentioned above, in the same order as above with rpm -Uvh <<package>>
- Compile your driver, and follow the instructions given by the manufacture’s readme.
You can blacklist the old driver (if necessary), by putting it into /etc/modprobe.d/blacklist . After loading the new driver module, and restarting the network interface, you should be ready to go!