Skip to content

Cannot specify image_guid #59

@poflynn

Description

@poflynn

It seems when I try to specify a custom image, I get this error:

There are errors in the configuration of this machine. Please fix
the following errors and try again:

SoftLayer:
* The image guid for a compute or flex image and the operating
system reference code cannot be used at the same time.
Please use only one of the following options in the provider
section:

config.vm.provider :softlayer do |sl|
  sl.image_guid = "AAAAAAAA-BBBB-CCCC-DDDD-EEEEEEEEEEEE"
end

config.vm.provider :softlayer do |sl|
  sl.operating_system = "UBUNTU_LATEST"
end

I am not specifying an OS in my Vagrantfile. When I comment out my image_guid, and use an OS name instead, it works fine. I got the image GUID from the SL CLI tool. A small excerpt from my VagrantFile is below, let me know if it is too small.

    config.vm.provider :softlayer do |provider, override|
        override.vm.box = 'SoftLayer'  
        provider.box_url = 'http://xxxxx/softlayer/box/1.0/box-1.0.box'    
        provider.username = "xxxxx"
        provider.ssh_key  = "xxxxx"
        provider.api_key  = "xxxxx"
        provider.image_guid = "xxxxx"
        provider.datacenter = $vmdatacenter
        provider.domain = "xxxxx.com"
        provider.hostname = $vmhostname
        provider.api_timeout = 420
        provider.post_install = "https://xxxxx.com/repos/SoftLayer/softlayerPostInstall.sh"
        override.ssh.private_key_path = "~/.ssh/xxxxx.pem"
        override.ssh.pty = true
    end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions