I am trying to install Oracle 12c (for learning/studying purposes)on a VirtualBox VM. i have set up a VM with Oracle Linux 7.4 and when I setup the wireless/networking aspects during installation I decided to change the hostname from:




I'm trying to follow along with the Oracle Installation Docuemenation and I'm on the HostsFile configuration section, it states:


For example.       localhost localhost.localdomain localhost4 localhost4.localdomain4   ol7.localdomain  ol7

Set the correct hostname in the "/etc/hostname" file.



In the terminal on my VM, if I execute:


it returns


but if I cat the /etc/hosts file: localhost localhost.localdomain localhost4 localhost4.localdomain4

::1 localhost localhost.localdomain localhost6 localhost6

I tried to understanding this through googling and reading the documentation but I'm not sure how exactly I should configure my /etc/hosts file based on my hostname: OracleLinux7VM based in order to successfully install Oracle 12c. Any and all guidance would be greatly appreciated.


Simply add the following to /etc/hosts with your actual IP address:   OracleLinux7VM

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.