4 Replies Latest reply on Apr 23, 2015 7:03 AM by jbmurphy

    Vagrant question

    jbmurphy Lurker

      I am new to vagrant/photon.

       

      I am trying to use the following vagrant file:

       

      Vagrant.configure(2) do |config|

        config.vm.box = "vmware/photon"

        #config.vm.network "public_network", bridge: 'en0: Ethernet'

        config.vm.network "public_network", bridge: 'en1: Wi-Fi (AirPort)'

        end

       

      And the error I am receiving is :

      Vagrant attempted to execute the capability 'configure_networks'

      on the detect guest OS 'linux', but the guest doesn't

      support that capability. This capability is required for your

      configuration of Vagrant. Please either reconfigure Vagrant to

      avoid this capability or fix the issue by creating the capability.


      Is this error from a functionality/capability that you did not add to the photon image? Or am I doing something wrong on my end?

      Sorry if this question out of the scope of this forum.




        • 1. Re: Vagrant question
          jbmurphy Lurker

          I got a little further, I realized I need to add the plugin. So I ran "vagrant plugin install photon"

           

          Now I get the following error when I issue "vagrant --debug up":

           

          ERROR vagrant: Vagrant experienced an error! Details:

          ERROR vagrant: #<Vagrant::Errors::PluginLoadError: The plugins failed to load properly. The error message given is

          shown below.

           

          cannot load such file -- active_record>

          ERROR vagrant: The plugins failed to load properly. The error message given is

          shown below.

           

          cannot load such file -- active_record

          ERROR vagrant: /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant.rb:275:in `rescue in <top (required)>'

          /opt/vagrant/embedded/gems/gems/vagrant-1.7.2/lib/vagrant.rb:271:in `<top (required)>'

          /opt/vagrant/bin/../embedded/gems/gems/vagrant-1.7.2/bin/vagrant:105:in `require'

          /opt/vagrant/bin/../embedded/gems/gems/vagrant-1.7.2/bin/vagrant:105:in `<main>'

          Vagrant failed to initialize at a very early stage:

           

          The plugins failed to load properly. The error message given is

          shown below.

           

          cannot load such file -- active_record


          If I remove the plugin, then the error goes away.


          Not sure if this is helpful at all.

          • 2. Re: Vagrant question
            jbmurphy Lurker

            Okay, figured out that I needed to install:

             

            vagrant plugin install activerecord
            vagrant plugin install actionview

             

            Also hardcoded the guest:

            config.vm.guest = :photon

             

            now I get the error:

            The guest implementation explicitly specified in your Vagrantfile

            ("photon") could not be found. Please verify that the plugin is

            installed which implements this guest and that the value you

            used for `config.vm.guest` is correct.

             

            I give up!

            • 3. Re: Vagrant question
              frapposelli Enthusiast

              jbmurphy ha scritto:

               

              I got a little further, I realized I need to add the plugin. So I ran "vagrant plugin install photon"

               

               

              Vagrant uses RubyGems to distribute plugins, and the "photon" plugin is a gem that has nothing to do with Vagrant, you should uninstall it and install the correct plugin which is vagrant-guests-photon.

               

              HTH,

              Fabio

              1 person found this helpful
              • 4. Re: Vagrant question
                jbmurphy Lurker

                Thank you for the reply. No wonder it wasn't working! Not sure if you are looking for more feedback. Here is my current Vagrantfile:

                 

                Vagrant.configure(2) do |config|

                  config.vm.box = "vmware/photon"

                  config.vm.guest = :photon

                  config.vm.network "public_network", bridge: 'en0: Ethernet'

                  #config.vm.network "public_network", bridge: 'en1: Wi-Fi (AirPort)'

                  end

                 

                An here is the error I receive:

                The following SSH command responded with a non-zero exit status.

                Vagrant assumes that this means the command failed!

                 

                ifconfig   netmask

                 

                Stdout from the command:

                 

                 

                 

                Stderr from the command:

                 

                ifconfig: error: interface `netmask' does not exist


                Thanks again for your reply.