-2

Image: Centos 8

Downloaded from osboxes

Goal: Installation of any package for example openssh server

error: attached screenshot

I have checked the following solutions centos yum

But did not really help me in any respect.

I am stuck and surprised i am not sure what can be done. I have been researching on this issue for a while now.

Please help

Regards

s

berndbausch
  • 973
  • 7
  • 11
sudlo
  • 1
  • 2
  • 1
    Welcome to Serverfault! Try not to post pictures of text. The error message is `could not resolve host mirrorlist.centos.org`, which you could have added to your question in text form. You could also have accessed the server using SSH and simply copy-pasted your commands and their output. – berndbausch Feb 21 '21 at 03:07
  • 1
    The error means that name resolution of your Centos server doesn't work correctly; either no DNS servers are configured, or they are incorrect. – berndbausch Feb 21 '21 at 03:11
  • @berndbausch unfortunately i am unable to ssh to this server i have checked the network it is a bridge network .. – sudlo Feb 21 '21 at 03:13
  • Could it be that the same problem that prevents you from accessing the server also prevents the server from accessing DNS servers or mirrorlist.centos.org? – berndbausch Feb 21 '21 at 03:15
  • @berndbausch yes i feel the same i have done everything what i can think off – sudlo Feb 21 '21 at 03:22
  • 2
    I can only help if I know how the virtual machine is connected to the network. Please describe your setup. Which VM hypervisor do you use? Does the VM have an IP address? Is this IP address in the same subnet as the virtual machine host's? Can you ping to the VM or from the VM? – berndbausch Feb 21 '21 at 03:28
  • @berndbausch Set up : this is a vm hosted vmworkstation. it has got a bridged network. I am unable to ping the machine. – sudlo Feb 22 '21 at 03:35
  • How did the VM get its IP address? Is the IP address in the same subnet as the hypervisor host's? To be honest, I have no idea how to troubleshoot VMware Workstation, but it is clear that the VM's network connection is the problem here. – berndbausch Feb 22 '21 at 05:55

1 Answers1

0

Your VM's network settings are most likely incorrect as DNS lookups don't work and you can't connect to the VM in question. Verify that your box's configuration is correct.

fuero
  • 9,413
  • 1
  • 35
  • 40