Install RHEL4 over HTTP or NFS in VMware using vmxnet!
After days of trying, changing, trying, editing, trying, etc. I was finally succesful in creating a driver floppy image for the vmxnet driver!!!
Here is the how-to if you are interested, (It may not be completely optimized but it worked for me).
1 - Install RHEL4 into a VM (Well, I used RHEL4 so that's what I will use)
2 - Install the vmware-tools and run vmware-tools-config.pl
3 - locate the file vmxnet.ko (something like /lib/modules/2.6.9-42.EL/misc/vmxnet.ko)
4 - perform the following steps (You can copy and paste everything between the START and END OF SHELL COMMANDS markers, but remember to put in TABS where necessary!!!):
### START OF SHELL COMMANDS
cd /tmp
mkdir vmware_drv
cd vmware_drv
mkdir -p 2.6.9-42.EL/i686 floppy
cp /lib/modules/2.6.9-42.EL/misc/vmxnet.ko 2.6.9-42.EL/i686
find 2.6.9-42.EL | cpio -o --format=crc | gzip -c -9 > floppy/modules.cgz
cat -<<!> floppy/modinfo
Version 0
vmxnet
eth
"VMware Virtual Ethernet driver."
!
# USE TABS AT THE BEGINNING OF THE 2 LAST LINES ABOVE
cat -<<!> floppy/modules.pcimap
vmxnet 0x000015ad 0x00000720 0xffffffff 0xffffffff 0x00000000 0x00000000 0x0
vmxnet 0x00001022 0x00002000 0xffffffff 0xffffffff 0x00000000 0x00000000 0x0
!
# No need for tabs in the modules.pcimap
# I am not sure if the second line is needed but it works so I left it in
cat -<<!> floppy/pci.ids
15ad VMware, Inc.
0720 VMware Virtual Ethernet driver.
!
# USE A TAB AT THE BEGINNING OF THE LAST LINE ABOVE
cat -<<!> floppy/pcitable
0x15ad 0x0720 "vmxnet" "VMware, Inc.|VMware Virtual Ethernet driver."
!
# USE TABS BETWEEN ALL THE FIELDS ABOVE!!!
cat -<<!> floppy/rhdd
Supplemental Network Drivers
!
> floppy/modules.dep
### END OF SHELL COMMANDS
5 - the contents of /tmp/vmware_drv/floppy should look something like this:
-rw-r--r-- 1 root root 57 Dec 9 21:00 modinfo
-rw-r--r-- 1 root root 6513 Dec 9 21:00 modules.cgz
-rw-r--r-- 1 root root 0 Dec 9 21:01 modules.dep
-rw-r--r-- 1 root root 182 Dec 9 21:00 modules.pcimap
-rw-r--r-- 1 root root 58 Dec 9 21:00 pci.ids
-rw-r--r-- 1 root root 70 Dec 9 21:00 pcitable
-rw-r--r-- 1 root root 29 Dec 9 21:00 rhdd
(Where the only deviation could be for modules.cgz)
*** Here are the MD5 checksums for the non-variable files:
15cdf69e567686b570e9fe377652184e modinfo
d41d8cd98f00b204e9800998ecf8427e modules.dep
33552b301d42f2bf9b511677e8f4f85e modules.pcimap
3eb03ed938f37fe799a873713840bd52 pci.ids
b05628e2077ec7d13ece6b1bdd3951b6 pcitable
4b49cecb5dcb38e870641f58d17a60ea rhdd
6 - via the VMware Server Console create and activate a new floppy image (ie. vmxnet_drv.img)
7 - type in: newfs /dev/fd0
8 - mount the floppy drive on your system
9 - copy the contents of /tmp/vmware_drv/floppy to your floppy drive
10 - unmount your floppy
Now, on the VMware host system, you will have a file called vmxnet_drv.img which you can now use as the driver disk when you install RHEL4 over NFS or HTTP
Just make sure you have your virtual machine configured to use vmxnet (Make sure the line Ethernet0.virtualDev = "vmxnet" is in the vmx file of your VM)
I hope this helps and is usefull for you. Looking forward to your responses.
Greetinx
Johan
|