Link to home
Start Free TrialLog in
Avatar of reditsolutions
reditsolutions

asked on

uploading CentOS to Azure (no root access)

Hi, I am looking for workarounds to get a CentOS VM working on azure.
The supplier does not provide the root password, we only get an ISO that automatically installs the OS and all required software.
I have tried running it on Hyper V and then uploading the VHD to Azure. It does boot in Azure ( at least I think it does as it gets a local IP and the resource graphs shows activity), but I cannot connect to it at all (telnet or open it s web page). I have configured endpoints.

The kickstart file is accessible on the ISO, I can also attach the vhd to a Windows desktop and  get full access to the VHD.

I am wanting to edit the kickstart file to accomplish the following:
Allow telnet access
Enable XRDP (mainly so that when I need to call support they can access it).
Install walinuxagent and any other pre requisites to get it to work on Azure.
I would then run the ISO on my Hyper v and upload the resulting vhd to azure.
Alternatively, install CentOS from a Microsoft image and then somehow complete the installation by copying the contents of the ISO to a VHD (in Azure).
I am no Linux expert so I am trying to decipher the contents of the kickstart file through a lot of Googling and trial and error.
Avatar of marsilies
marsilies

Don't know Linux, but maybe use the "useradd" command in the kickstart file to create a user with root access you can log into?

http://www.linuxquestions.org/questions/linux-newbie-8/how-to-add-users-to-kickstart-config-file-707049/
http://www.linfo.org/useradd.html
ASKER CERTIFIED SOLUTION
Avatar of reditsolutions
reditsolutions

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of reditsolutions

ASKER

provided answers did not resolve issue