TurnKey Linux Virtual Appliance Library

Login fails on first boot

I just installed the TK OTRS appliance in a CT on PVE. I am able to remote into it and login as root. I can alo use the same root credentials and logon to Webmin.

When trying to log into the OTRS administration with the user "admin" and the same password as root, the login is denied.

On the TK appliance info page, it says: "Credentials (passwords set at first boot)".

What am I missing?

Jeremy's picture

Firstboot scripts don't run in containers

Because OVZ containers don't have a true console the firstboot scripts can't run. (It was a problem I encountered when first building the OVZ templates prior to TKL officially supporting them). So rather than have them hang waiting for input (which you can never provide...) they run with default values in TKL OVZ templates.

So as a intermediate workaround (untill someone works out how to hack the PVE interface to allow you to preseed values from within the UI, as you can with the Hub) you need to run the first boot scripts manually when you first launch an appliance.

turnkey-init

is the command you are looking for. So login via SSH (or whatever) and run that and you'll be good to go.

FYI, not that I mind answering your question but this is documented at least in a couple of places, like the OVZ build announcement and the Virtualization notes in the Docs (which I have just expanded a little). :)

Thank you!

Thank you for your clear explanation, Jeremy.

 

FYI, not that I mind answering your question but this is documented at least in a couple of places, like the OVZ build announcement and the Virtualization notes in the Docs (which I have just expanded a little). :)

I see now. I vaguely remember seeing that typed on one of the videos, but at the time, I did not get it. The path to the information was not straight forward in the documentation, and jumping from place to place, I ended up being lost a bit. I'm still reading...

I created the New to Turnkey?  page to keep track of things as I read, and help others start.

Thank you for your help.

Jeremy's picture

No worries :)

And good on you for creating some docs. Good work! I've been meaning to do it forever, but never seem to have the time...

Jeremy's picture

A little organising in the docs...

Great work on the docs, you are a legend! :)

Hope you don't mind but I have split them up into 2 pages. One a more generic 'getting started with TKL' page with your original links and a new TKL/PVE page (with your specific PVE tips). I also reduced the weight of your 'New to Turnkey?' page (so it floats closer to the top of the docs - see here). Are you happy with that?

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)