Unable to Resolve DNS on Redhat

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
Lucky ThamFreelancerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David Johnson, CD, MVPRetiredCommented:
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 ThamFreelancerAuthor 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.
omarfaridCommented:
the error messages show that mount point or dir is not there, create then mount or you can mount to /mnt
OWASP Proactive Controls

Learn the most important control and control categories that every architect and developer should include in their projects.

nociSoftware EngineerCommented:
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 ThamFreelancerAuthor Commented:
what is vbox tooling? how to confirm this?

can't create dir!

redhat_7.jpg
nociSoftware EngineerCommented:
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 ThamFreelancerAuthor 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
omarfaridCommented:
Is your sustem in sigle user mode?

What who -i returns?
nociSoftware EngineerCommented:
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 ThamFreelancerAuthor Commented:
I don't understand. How to check tat for you? Thanks.
Lucky ThamFreelancerAuthor Commented:
redhat_8_fsck1.jpg
nociSoftware EngineerCommented:
for xfs filesystem try:

xfs_repair /dev/sda1 as indicated.
Lucky ThamFreelancerAuthor Commented:
done. will restart it? What should i do after restarted? Thanks


redhat_8_fsck2.jpg
nociSoftware EngineerCommented:
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 ThamFreelancerAuthor Commented:
How to check the lost and found folder? Thanks.
nociSoftware EngineerCommented:
ls -l /lost+found

and use less on the files in there?
less will warn if files are binary.
Lucky ThamFreelancerAuthor Commented:
Thanks. Will try again later.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Redhat

From novice to tech pro — start learning today.