Unable to Resolve DNS on Redhat

Lucky Tham
Lucky Tham used Ask the Experts™
on
Hi,

I need to transfer the python script to the redhat 7.5 on virtualbox.

i've done the following:-

vb_setting1.jpg
Error

vb_setting2.jpg
Thanks
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2016

Commented:
same response for your other question
In virtualbox what is the network adapter type for this vm?
When you setup redhat did you configure the network settings to also include your gateway ip address? Are you on the same subnet as your host machine?
Lucky ThamFreelancer

Author

Commented:
I didn't do anything at all just to ensure that it can ping Google first and my network subnet like 192.168.1.0/24 when my redhat added a NAT Network adapter without issue.

After that I connect my fortinet vpn client thr IPSec and still can ping and resolve my private cloud thr hostname.

Next day I do the same thing like connect to my iPad 4G network to my Hp laptop wifi.

Can ping and resolved on my hp laptop even being connected to vpn.

The guest os redhat from virtualbox on nat can ping 8.8.8.8 but not able to resolve now.

Why yesterday can and today can't without changing anything?

Thanks.
Top Expert 2007

Commented:
the error messages show that mount point or dir is not there, create then mount or you can mount to /mnt
Why Diversity in Tech Matters

Kesha Williams, certified professional and software developer, explores the imbalance of diversity in the world of technology -- especially when it comes to hiring women. She showcases ways she's making a difference through the Colors of STEM program.

nociSoftware Engineer
Distinguished Expert 2018

Commented:
Is the vbox tooling inside the same version as the vbox you are using to run this VM in?

Besides the ~/share is a non existent directory, do mkdir ~/share first.
~ is replaced by the shell with the login directory of the logged on user.
Lucky ThamFreelancer

Author

Commented:
what is vbox tooling? how to confirm this?

can't create dir!

redhat_7.jpg
nociSoftware Engineer
Distinguished Expert 2018

Commented:
a read only filesystem is indicative of errors in the filesystem.

Was it read only from booting the system or did that start later...
if it was writable during boot you need to reboot first.  (the boot system will attempt an fsck).
If it was read only from booting, then try fsck -f /  and then reboot.
Lucky ThamFreelancer

Author

Commented:
it was running and can resolve the hostname but i don't know what went wrong after performing yum update.

error running fsck -f /

redhat_8_fsck.jpg
Top Expert 2007

Commented:
Is your sustem in sigle user mode?

What who -i returns?
nociSoftware Engineer
Distinguished Expert 2018

Commented:
vboxfs is a filesystem type that is alien to linux, it is provided for in vbox tooling (virtualbox guest additions) to help smooth out the working of some "stuff" between a guest OS and the host running it. And the driver inside the guest must be matched to the service provided by virtualbox.
xbox tooling is installed  by mounting a "CD-ROM" image and running some install script.

try fsck -f /dev/sda1  (or what ever the device / is mounted on).  
mount   #will tell you this.
Lucky ThamFreelancer

Author

Commented:
I don't understand. How to check tat for you? Thanks.
Lucky ThamFreelancer

Author

Commented:
redhat_8_fsck1.jpg
nociSoftware Engineer
Distinguished Expert 2018

Commented:
for xfs filesystem try:

xfs_repair /dev/sda1 as indicated.
Lucky ThamFreelancer

Author

Commented:
done. will restart it? What should i do after restarted? Thanks


redhat_8_fsck2.jpg
nociSoftware Engineer
Distinguished Expert 2018

Commented:
first you can check the lost+found folder for what is there...
(you may need to check contents of files) if those are harmless files... (not critical config files or programs) then yes reboot.
and recover them afterwards.
If those files can be recognized as critical files you may need to resote an image or reinstall the system.
Lucky ThamFreelancer

Author

Commented:
How to check the lost and found folder? Thanks.
nociSoftware Engineer
Distinguished Expert 2018

Commented:
ls -l /lost+found

and use less on the files in there?
less will warn if files are binary.
Lucky ThamFreelancer

Author

Commented:
Thanks. Will try again later.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial