VirtualBox localhost "Login incorrect"

0

I am new to virtual machines, Linux and amazon so please bare with me. I have installed the virtual machine according to amazon's instructions listed here.

I am able to boot in VirtualBox, but I am stuck on a sign in page that asks for:

localhost login:

rather than:

amazon login:

as I've seen others report.

Now I have not made changes to the *meta-data *file in the ISO image, so all it says is:

local-hostname: amazon

with some additional commented lines regarding 'network-interfaces' that I am unfamiliar with.

The server goes to "localhost" as a direct result of this, I guess? but I do not know the login for localhost and the users and passwords set in the user-data file do not work. If someone could point me in the right direction to set the proper network configuration or help with the credentials that would be greatly appreciated.

asked a year ago681 views
1 Answer
0

Hello,

I understand that you want to run Amazon Linux on premises and you are able to boot in VirtualBox but stuck on a sign in page that ask for hostname and login password and you didn’t make any changes to the meta-data file in the ISO image.

According to AWS documentation on how to run Amazon linux 2 on premises virtual machine you have to make changes as instructed in order to generate the seed.iso boot image you need to configure two files which are meta-data and user-data.

Steps to follow for how to successfully login in to your machine [1]:

  • You have to create a file named meta-data and edit with a text editor of your choice and then copy and paste the script given on the documentation. [1]
  • In the meta-data file you create and replace the default host-name with the name of your choice and configure network settings as required.
  • Save and close the meta-data file.
  • Create a file named user-data and copy and paste the scripted given [1] replace “plain_text_password” with password of you’re choice after save and close the file .
  • Create the sed.iso as instructed using meta-data and user-data file you created and run Command given a instructed [1].
  • Boot in VirtualBox the local-hostname will display the name you used when configuring the meta-data file.
  • For login use the password you used to create user-data file.
  • You will be able to login in to your virtual machine.

I hope the provided Information has been useful to you. If you have any other queries please do not hesitate to contact me back. I will be more than happy to help.

Have a great day ahead!

Best regards.

References:

[1] Run amazon linux on on premises using virtualBox - https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/amazon-linux-2-virtual-machine.html#amazon-linux-2-virtual-machine-prepare

AWS
answered 9 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions