Linux+ 1.2.2: Finding out about hardware
An inventory of the VM's hardware, the kernel's messages as a device appears, and PCI devices that no driver has claimed.
Before you start
The lab sets nothing up. Tasks 1 and 3 ask for findings: write them to the
files in /root/lab-answers/ that the tasks name.
Tasks
- Build a quick inventory of this VM with
lscpu,lsmem,lspci,lsusb,lshwanddmidecode. The "hardware" is the hypervisor's: write the system manufacturer thatdmidecodereports (such asQEMU) to/root/lab-answers/1. - Run
dmesg -win one terminal, then attach a USB device or a new virtual disk to the VM, and watch the kernel's messages. Not graded. - Find every PCI device without a driver, and write their slot addresses
(such as
00:00.0), one per line, to/root/lab-answers/3. If there are none, writenone.
Hints
- Minimal RHEL-family installs need
pciutilsandusbutilsforlspciandlsusb. dmidecode -t system, ordmidecode -s system-manufacturer.- A device that a driver has claimed has a
driverlink in sysfs:for d in /sys/bus/pci/devices/*; do [ -e "$d/driver" ] || lspci -s "${d##*/}"; done