Forum archive
Joomla Appliance is root but no password, and how do I configure NAT
Hi there i'm very new to this appliance scene (i've only spent a few hours on it) but i'm not new to vmware (we use it at work heavily) however I am a programmer by "trade", and one who uses linux barely, (mostly Windows based) so there are a couple of questions I have. I appreciate these are probably covered elsewhere but my googling collided with lots of OT info and i'm not sure how to phrase myself right, so I find myself here. :-)
so if I ask it out "loud" perhaps people can link me and get me in the right direction.
Question 1) when I installed the joomla install on a Virtual Box on a Vista x64 box I followed this tutorial fine http://www.youtube.com/watch?v=g-xXHD051eg (although since I'm running Virtual Box on Vista and the VM settings are different and or/ it's now December and that youtube is from June). Nevertheless it went fine EXCEPT when I putty to the VM i.p. address on SSH (as I would want considering I am on Win platform) it doesn't prompt me for my root password (see screen shot) I assume this is a bug or a feature since I am logging in from the host machine? Either way how do I force the root password to be asked.
Question 2) How do you manage the networking on a VM. what I mean is, if I want to host a Virtual Box on an active webserver how do I do it? I'm not sure where to start on this one: normally a bare metal apache machine has a real I.P. that you DNS all your domains to (or it's router does, and you're pump the external port 80 traffic to it). Once you're at the bare metal it's at the apache vhosts level you then assign it to actual physical disk locations EG: c\:www\domain.com or something.
Is what I want to do is say "hey mr DNS the new domain i.p. is ->this<-" and then know that I.P. is NAT'd to the VM? or what? Does that mean my bare metal needs 2 I.P. addresses? Basically I am confused, I am surely missing the elephant in the room. So can someone point to me so my thinking is front to back and not back to front?
Hi Conrad and welcome to the wonderful world of TKL! Its a very friendly community here so no fear of getting flamed!
I'm not sure about your first question. Are you using the .iso or VM image? I have only used the .isos and in my experience you are required to set a root password on install (although I haven't used Joomla). I was under the impression that on first run of the VM imagages you needed to set passwords etc too.
It sounds like you have not been required to set a password at that stage! If thats the case then I think this is a fairly important security bug. Probably not so much to IT savy ppl who understand the risks, but others having a dabble may not realise the potential danger of that behaviour (ie if the server faces the internet, anyone, anywhere could SSH in and do whatever they want as the root user)! A bit scarey really! It'd be interesting to know the steps you took when setting up/installing to see if the bug can be recreated.
As for solving it on your VM, have a look at this thread for details on setting/resetting the password. That should head you in the right direction!
As for your second question, there are a couple of answers. If you are using bridged networking (a common default), your DHCP server should give your TKL server a seperate IP (DHCP should treat it the same as a bare metal machine). Another option (if you don't want an extra IP on your network and/or wish to use the same IP but a different port) is to use a NAT'd address. Most VM software (VMware and VirtualBox at least) provide facility to port forward to VMs. You should be able to find the relevant documentation on their respective websites (I would imagine lots of info available via google too).
Good luck and hope thats of some use to you!