Search code examples
centosvirtualbox

Centos8.1 on Virtual Box Yum Install Error


I am trying to install Guest Additions on Oracle VirtualBox and needed to install gcc, perl, make, etc. When doing so, I get the following error:

CentOS-8 - AppStream     0.0 B/s | 0 B 00:00
Failed to download metadata for repo 'AppStream'
Error: Failed to download metadata for repo 'AppStream'

My Host is MacOS Catalina. Any idea about how to resolve this issue?


Solution

  • I followed the following steps. (Added screenshot as well)

    1. Go to Oracle VM settings and make sure the adapter is NAT
    2. Start your machine
    3. Go to settings -> Network -> click on the settings icon in "Wired"
    • select the 3rd tab "IPv4"
    • select Method as "Manual"
    • Add the following data
    • Address = 10.0.2.3, Netmask = 255.255.255.0, gateway = 10.0.2.2, DNS = 8.8.8.8

    Note: Tenter image description herehis is because the Oracle VM default NAT is 10.0.2.2