BC_Linux Image Source Configuration
If a driver fails to be installed and the system displays a message indicating that the dkms and kernel-headers are missing, configure the image source. The following uses BC_Linux as an example.
Procedure
- Log in to the operating environment as user root.
- Save the original .repo file as a backup file.
mv /etc/yum.repo.d/BCLinux-Base.repo /etc/yum.repo.d/BCLinux-Base.repo.bak
- On the KVM, mount the OS ISO file.
- Log in to the remote virtual console.
- Click
on the toolbar.
The virtual CD/DVD-ROM drive toolbar is displayed, as shown in Figure 4-2.
- Select Directory and click Browse.
- Select the folder where the downloaded ISO file is located.
- Click Insert in the virtual CD/DVD-ROM drive toolbar.
- Open the CLI.
- Mount the ISO file to a specified directory, for example, /mnt.
mount /dev/cdrom /mnt
- Edit the /etc/yum.repo.d/iso.repo file,
vi /etc/yum.repo.d/iso.repo
Press i to edit the file and add the following content to the file:
[base-local] name=iso baseurl=file:///mnt enable=1 gpgcheck=0
After the modification is complete, press Esc to exit editing mode and enter :wq! to save the modification and exit.
- Update the Yum source.
yum clean all
yum makecache
- View the .repo list.
yum repolist
If the following information is displayed, the local source is configured successfully: