The Virtual Machine vm-ware installed linux deletes the NIC and how to restore it
Source: Internet
Author: User
The Virtual Machine (vm-ware) installed linux deletes the NIC. For details about how to restore the NIC-Linux general technology-Linux programming and kernel information, see the following. The Virtual Machine vm-ware installed linux deletes the NIC and how to restore it
After using vmware to boot linux, we often find that the NIC driver cannot be installed, which is depressing. Many people will keep up with each other and try every means to install their own NIC Driver. In the past, the devices in vmware were basically virtual devices, and the network card used amd pcnet Nic. If the driver is used, you do not need to search for it online. In/lib/modules/$ (uname-r)/build/drivers/net, pcnet32.c is used. Compile it into a module. (Or you can compile it in menuconfig to save trouble .)
Go to the/lib/modules/$ (uname-r)/build/drivers/net directory,
Start Compilation: gcc-DMODULE-d1_kernel _-O6-c pcnet32.c-I/lib/modules/$ (uname-r) /build/include-include/lib/modules/$ (uname-r)/build/include/linux/modversions. h
Install the kernel after compilation: insmod pcnet32.o or install-m 644 pcnet32.o/lib/modules/$ (uname-r)/build/net.
However, after compilation
The following error occurs in insmod pcnet32.o:
Unresolved symbol mii_link_ OK _R59a901a8
Unresolved symbol mii_ethtool_sset_R7218f2d
Unresolved symbol mii_check_media_R34a8f4e6
Unresolved symbol mii_nway_restart_R9d2565b5
Unresolved symbol mii_ethtool_gset_R1115992a1
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.