I've created a vagrant box with homestead. A couple of question

44 views
Skip to first unread message

Francisco Santos

unread,
Jul 31, 2015, 11:18:45 AM7/31/15
to Vagrant
Greetings, I've downloaded a vagrant box, following the documentation to set up for a single project.
I've moved the code to the proper place, everything cool. But I have a couple of question
NOTE: I plan to export this VM and use it as a "moving server" - so it's set up in a private network

  • Does root have a password? I can't login through any other way other than being in the same machine and using "vagrant ssh". How should I configure admin accounts?
  • How can I get phpAdmin configured and running - so I can migrate my previous DB and data (from the development environment)
Thanks for your time.
Cheers!

Alvaro Miranda Aguilera

unread,
Jul 31, 2015, 9:24:32 PM7/31/15
to vagra...@googlegroups.com
Hello Francisco

vagrant should have sudo access so you can do

vagrant ssh
sudo su -

and that will leave you as root

then you can chance root password and add/remore/change any other user detail


as for phpAdmin, that is a php app, so I assume you can install
webserver+php and then just drop phpadmin on the www document root and
use it.

If at any point in time in the future you will like to automate that,
or create your very own base box, have a look at packer (packer.io)

Thanks!
Alvaro.
> --
> This mailing list is governed under the HashiCorp Community Guidelines -
> https://www.hashicorp.com/community-guidelines.html. Behavior in violation
> of those guidelines may result in your removal from this mailing list.
>
> GitHub Issues: https://github.com/mitchellh/vagrant/issues
> IRC: #vagrant on Freenode
> ---
> You received this message because you are subscribed to the Google Groups
> "Vagrant" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to vagrant-up+...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/vagrant-up/03128823-7b91-473d-9a30-66d40bf00fe1%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Francisco Santos

unread,
Aug 2, 2015, 6:44:44 PM8/2/15
to Vagrant
This is rather strange but, the first Vagrant box I created showed up in Virtual Box menu when the app was opened. I even tried to log in through there.
I ended up changing and destroying that box and recreated a second one following the "single project setup" from the documentation. The difference is, this time it doesn't show up in Virtual Box menu... thus I cannot go to settings and export that VM to .ova

Do you have any idea what could be causing this? How might I get VB to recognise the VM?

Alvaro Miranda Aguilera

unread,
Aug 2, 2015, 6:46:49 PM8/2/15
to vagra...@googlegroups.com
Are you on windows?

If yes,m that may be caused for how HOME user is defined

if you open a CMD, or bash session, or you change users, it will end
with different HOME directories

try to run Virtualbox from the shell/cmd you did the vagrant commands

Alvaro
> https://groups.google.com/d/msgid/vagrant-up/d589027f-02df-4eef-92eb-7a124053db6e%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages