nwsetup-tui
process:
No media devices detected
This error typically occurs when deploying the ISO onto a virtual machine that was created using an OVA template.
Screenshot of the Error Message:
To resolve this issue, update the scripts /usr/bin/bootstrap
and /usr/bin/nwsetup-tui
on the host where the failure is occurring. Follow the steps below to modify the necessary code:
Edit /usr/bin/bootstrap
:
Open the file /usr/bin/bootstrap
using a text editor like vi
:
vi /usr/bin/bootstrap
Update the following lines of code:
Previous Code:
cp -a "$mountPoint/Packages/"* "$NW_REPO_LOCAL_BASE/" local blockDeviceDetect=$(blkid | grep '"OEMDRV"\|"CentOS 7 x86_64"') local blockDeviceCount=$(blkid | grep -c '"OEMDRV"\|"CentOS 7 x86_64"') elif [[ "${blockDeviceDetect}" == *"CentOS 7 x86_64"* ]]; then
Workaround:
cp -a "$mountPoint/Minimal/Packages/"* "$NW_REPO_LOCAL_BASE/" local blockDeviceDetect=$(blkid | grep '"OEMDRV"\|"AlmaLinux-8-9-x86_64-dvd"') local blockDeviceCount=$(blkid | grep -c '"OEMDRV"\|"AlmaLinux-8-9-x86_64-dvd"') elif [[ "${blockDeviceDetect}" == *"AlmaLinux-8-9-x86_64-dvd"* ]]; then
2. Edit /usr/bin/nwsetup-tui
:
Open the file /usr/bin/nwsetup-tui
using a text editor like vi
:
vi /usr/bin/nwsetup-tui
Update the following lines of code:
Previous Code:
if [ "$(blkid | grep -ci '"OEMDRV"\|"CentOS')" -gt 0 ]; then
Workaround:
if [ "$(blkid | grep -ci '"OEMDRV"\|"Alma')" -gt 0 ]; then
nwsetup-tui
command to continue the deployment process.