0

I created a custom openSUSE box for vagrant following the steps given in here

The host name for my box is vagrant-opensuse-131-x64 and I packaged the box using the commands

$ vagrant package --base opensuse13.1x64-vagrant --output vagrant-opensuse-131-x64.box
$ vagrant box add mybox vagrant-opensuse-131-x64.box

I then try to run the box using the commands.

$ vagrant init mybox
$ vagrant up

The vagrant box is booting up but there is a time-out when vagrant tries to establish ssh connection. I rechecked '~/.ssh/authorized_keys` file and the network connection settings are all as mentioned in the link above.

My Vagrantfile looks like this

VAGRANTFILE_API_VERSION = "2"

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
    config.vm.box = "mybox"
end

Can someone help me debug what is going wrong here?

Sanket
  • 714
  • 3
  • 12
  • 26
  • 1
    You could try enabling the GUI mode which might provide clues as to why SSH is timing out. See my answer on this SO thread: http://stackoverflow.com/questions/23690124/vagrant-up-timeout/23742373#23742373 – BrianC Oct 02 '14 at 02:49
  • Hi Brian. Thanks for this info. I enabled the GUI mode and tried to fire up the box. I realized that OS boots properly, but was waiting for logon password. When I enabled auto login, it worked like a charm. Not sure if I'm supposed to do it this way. Vagrant documentation does not specify anything about auto login. So trying to figure out the correct way. Will post here once I figure out where exactly I erred. – Sanket Oct 03 '14 at 02:29

0 Answers0