Git Product home page Git Product logo

packer-builder-softlayer's People

Contributors

jamesdobson avatar leonidlm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

packer-builder-softlayer's Issues

Persistent instance?

Is it possible to keep the instance that we used to create the SoftLayer image instead of destroying it? I would like to keep it around so that I can do some troubleshooting. Is there an option that allows you to do this?

Build error

Hi,

I've followed your instructions to build the softlayer builder but I'm getting the following error.

$ go build -o ~/go/packer-builder-softlayer main.go

github.com/leonidlm/packer-builder-softlayer/builder/softlayer

builder/softlayer/builder.go:263: cannot use artifact (type *Artifact) as type packer.Artifact in return argument:
*Artifact does not implement packer.Artifact (missing State method)

Can you shed any light on that for me?

Thanks
--Maurice--

Update Packer dependencies, fix SSH and Softlayer issues and update README

Hello, I'm using IBM Cloud Bluemix / Softlayer services and I want to collaborate to make this Packer builder more usable, I make a pull request with some fixes to the package and docs updates.

I found some issues:

  • packer repo has changed and some inner packages are in diferent locations.
  • dependencies aren't vendored.
  • go ssh library is deprecated.
  • softlayer APi add METADATA block devices that breaks the capture image script.
  • README can be updated with some userful install information
  • You can add IBM, Bluemix, Softlater tags to this repo to powers the metadata.

Error on building packer softlayer on centos 7

Hi leonidlem/chulkilee/mitchellh,

I have been trying to build packer softlayer plugin on CentOS 7. I have followed below steps:

wget https://storage.googleapis.com/golang/go1.5.linux-amd64.tar.gz
tar -C /usr/local -xzf go1.5.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin
mkdir work
export GOPATH=$HOME/work
cd work/
mkdir src bin pkg

Install Bazaar and Mercurial
yum install bzr
yum install mercurial

go get -u github.com/mitchellh/gox
Next, clone this repository into $GOPATH/src/github.com/mitchellh/packer

cd $GOPATH/src/github.com/mitchellh
git clone https://github.com/mitchellh/packer.git
cd packer

[root@deskt packer]# make updatedeps

When running above command I am getting below error:
ERROR: go get failed. Your git branch may have changed; you were on master (a55d2f1).

INFO: Currently on master (a55d2f1)
[root@deskt packer]#

If I re run this above command it is working.

Then running next command.
[root@deskt packer]# make

ok github.com/mitchellh/packer/provisioner/shell-local 0.005s
2015/08/24 05:10:18 ui: Restarting Machine
2015/08/24 05:10:18 ui: Waiting for machine to restart...
2015/08/24 05:10:18 Waiting for machine to reboot with timeout: 5m0s
2015/08/24 05:10:18 Waiting for machine to become available...
2015/08/24 05:10:18 ui: Machine successfully restarted, moving on
2015/08/24 05:10:18 ui: Restarting Machine
2015/08/24 05:10:18 ui: Waiting for machine to restart...
2015/08/24 05:10:18 Waiting for machine to reboot with timeout: 5m0s
2015/08/24 05:10:18 Waiting for machine to become available...
2015/08/24 05:10:18 ui: Machine successfully restarted, moving on
2015/08/24 05:10:18 ui: Restarting Machine
2015/08/24 05:10:18 ui: WinRM terminated
2015/08/24 05:10:18 ui: Restarting Machine
2015/08/24 05:10:18 ui: Waiting for machine to restart...
2015/08/24 05:10:18 Waiting for machine to reboot with timeout: 5m0s
2015/08/24 05:10:18 Waiting for machine to become available...
2015/08/24 05:10:18 ui error: Error waiting for WinRM: Machine did not restart properly
2015/08/24 05:10:18 ui: Restarting Machine
2015/08/24 05:10:18 ui: Waiting for machine to restart...
2015/08/24 05:10:18 Waiting for machine to reboot with timeout: 1ms
2015/08/24 05:10:18 Waiting for machine to become available...
2015/08/24 05:10:18 ui error: Timeout waiting for WinRM.
2015/08/24 05:10:18 Attempting to communicator to machine with: 'powershell.exe -EncodedCommand ZQBjAGgAbwAgACIAJAB7AGUAbgB2ADoAQwBPAE0AUABVAFQARQBSAE4AQQBNAEUAfQAgAHIAZQBzAHQAYQByAHQAZQBkAC4AIgA='
2015/08/24 05:10:18 ui: WinRM terminated
2015/08/24 05:10:18 Connected to machine
2015/08/24 05:10:18 Received interrupt Cancel()
--- FAIL: TestProvision_waitForCommunicatorWithCancel (0.01s)
provisioner_test.go:285: Should have err
2015/08/24 05:10:18 Retryable error: Still waiting 1 more times...
2015/08/24 05:10:18 Communicator wait cancelled, exiting loop
2015/08/24 05:10:18 Retryable error: Still waiting 0 more times...
2015/08/24 05:10:18 Retryable error: Still waiting 1 more times...
2015/08/24 05:10:18 Retryable error: Still waiting 0 more times...
2015/08/24 05:10:18 Received interrupt Cancel()
2015/08/24 05:10:18 ui: Restarting Machine
2015/08/24 05:10:18 ui: Waiting for machine to restart...
2015/08/24 05:10:18 Waiting for machine to reboot with timeout: 5m0s
2015/08/24 05:10:18 Waiting for machine to become available...
panic: test timed out after 15s

goroutine 68 [running]:
testing.startAlarm.func1()
/usr/local/go/src/testing/testing.go:703 +0x132
created by time.goFunc
/usr/local/go/src/time/sleep.go:129 +0x3a
goroutine 1 [chan receive]:
testing.RunTests(0x8e22b0, 0xa223e0, 0xe, 0xe, 0x0)
/usr/local/go/src/testing/testing.go:562 +0x8ad
testing.(M).Run(0xc8200d3ed8, 0x2231df1)
/usr/local/go/src/testing/testing.go:494 +0x70
main.main()
github.com/mitchellh/packer/provisioner/windows-restart/_test/_testmain.go:80 +0x116
goroutine 17 [syscall, locked to thread]:
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1696 +0x1
goroutine 5 [syscall]:
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:22 +0x18
created by os/signal.init.1
/usr/local/go/src/os/signal/signal_unix.go:28 +0x37
goroutine 60 [chan receive]:
github.com/mitchellh/packer/provisioner/windows-restart.TestProvision_Cancel(0xc82007ecf0)
/root/work/src/github.com/mitchellh/packer/provisioner/windows-restart/provisioner_test.go:351 +0x3ba
testing.tRunner(0xc82007ecf0, 0xa22518)
/usr/local/go/src/testing/testing.go:456 +0x98
created by testing.RunTests
/usr/local/go/src/testing/testing.go:561 +0x86d
goroutine 83 [chan receive]:
github.com/mitchellh/packer/provisioner/windows-restart.TestProvision_Cancel.func1(0xc820100fc0, 0x0, 0x0)
/root/work/src/github.com/mitchellh/packer/provisioner/windows-restart/provisioner_test.go:336 +0x54
github.com/mitchellh/packer/provisioner/windows-restart.glob.func1.1(0xc8201251f0, 0xc820100fc0, 0xc82012bd50)
/root/work/src/github.com/mitchellh/packer/provisioner/windows-restart/provisioner.go:109 +0x56
created by github.com/mitchellh/packer/provisioner/windows-restart.glob.func1
/root/work/src/github.com/mitchellh/packer/provisioner/windows-restart/provisioner.go:111 +0x10d
goroutine 51 [chan receive]:
github.com/mitchellh/packer/provisioner/windows-restart.TestProvision_waitForRestartTimeout.func1(0xc820100c40, 0x0, 0x0)
/root/work/src/github.com/mitchellh/packer/provisioner/windows-restart/provisioner_test.go:201 +0x54
github.com/mitchellh/packer/provisioner/windows-restart.glob.func1.1(0xc820124a20, 0xc820100c40, 0xc82012ad20)
/root/work/src/github.com/mitchellh/packer/provisioner/windows-restart/provisioner.go:109 +0x56
created by github.com/mitchellh/packer/provisioner/windows-restart.glob.func1
/root/work/src/github.com/mitchellh/packer/provisioner/windows-restart/provisioner.go:111 +0x10d
goroutine 61 [select]:
github.com/mitchellh/packer/provisioner/windows-restart.glob.func1(0xc820100fc0, 0x0, 0x0)
/root/work/src/github.com/mitchellh/packer/provisioner/windows-restart/provisioner.go:119 +0x5b2
github.com/mitchellh/packer/provisioner/windows-restart.(Provisioner).Provision(0xc820100fc0, 0x7efff048cb08, 0xc820120c40, 0x7efff048cb50, 0xc820104dd0, 0x0, 0x0)
/root/work/src/github.com/mitchellh/packer/provisioner/windows-restart/provisioner.go:97 +0x352
github.com/mitchellh/packer/provisioner/windows-restart.TestProvision_Cancel.func2(0xc820124ed0, 0xc820100fc0, 0xc820120c40, 0xc820104dd0, 0xc8201292c0)
/root/work/src/github.com/mitchellh/packer/provisioner/windows-restart/provisioner_test.go:344 +0xa5
created by github.com/mitchellh/packer/provisioner/windows-restart.TestProvision_Cancel
/root/work/src/github.com/mitchellh/packer/provisioner/windows-restart/provisioner_test.go:346 +0x375
FAIL github.com/mitchellh/packer/provisioner/windows-restart 15.008s
ok github.com/mitchellh/packer/provisioner/windows-shell 0.165s
ok github.com/mitchellh/packer/template 0.005s
ok github.com/mitchellh/packer/template/interpolate 0.004s
make: *** [test] Error 1
[root@deskt packer]#

Can someone please help me to resolve this error?

Packer-builder-softlayer is not working with newer versions

Packer-builder-softlayer is not working with newer versions,

I am getting below error when i run

[root@hostname packer-builder-softlayer]# go build -o /usr/local/packer/packer-builder-softlayer main.go

github.com/leonidlm/packer-builder-softlayer/builder/softlayer

builder/softlayer/builder.go:200:28: cannot use *communicator.StepConnect literal (type communicator.StepConnect) as type "github.com/hashicorp/multistep".Step in array or slice literal:
communicator.StepConnect does not implement "github.com/hashicorp/multistep".Step (wrong type for Cleanup method)
have Cleanup("github.com/hashicorp/packer/helper/multistep".StateBag)
want Cleanup("github.com/hashicorp/multistep".StateBag)
builder/softlayer/builder.go:202:8: cannot use commHost (type func("github.com/hashicorp/multistep".StateBag) (string, error)) as type func("github.com/hashicorp/packer/helper/multistep".StateBag) (string, error) in field value
builder/softlayer/builder.go:203:13: cannot use sshConfig (type func("github.com/hashicorp/multistep".StateBag) (
"golang.org/x/crypto/ssh".ClientConfig, error)) as type func("github.com/hashicorp/packer/helper/multistep".StateBag) (
"github.com/hashicorp/packer/vendor/golang.org/x/crypto/ssh".ClientConfig, error) in field value
builder/softlayer/builder.go:205:6: cannot use new(common.StepProvision) (type *common.StepProvision) as type "github.com/hashicorp/multistep".Step in array or slice literal:
*common.StepProvision does not implement "github.com/hashicorp/multistep".Step (wrong type for Cleanup method)
have Cleanup("github.com/hashicorp/packer/helper/multistep".StateBag)
want Cleanup("github.com/hashicorp/multistep".StateBag)

Any idea?

Template path should be set dynamically

Continuing on issue from hashicorp/packer#1417

I am a little bit new to Go and not sure exactly how the structure should be, but it appears that lines 149, 180, and 222, which are pointing to json template files need to include the "src/github.com/leonidlm/packer-builder-softlayer" as part of the template path. I hard-coded it in as a workaround to my previous issue, but I don't know how my directory is meant to be structured otherwise or if I'm doing something else that's wrong. Thanks!

Failure to compile on CentOS 7: undefined packer.ConfigTemplate

Steps to get me here:

  1. fresh vagrant box running cent7
  2. install go v1.4
  3. get packer to build (0.8.6)
  4. Find and fix problem with ssh (builder/softlayer/ssh.go builder/softlayer/step_create_ssh_key.go both refer to "code.google.com/p/go.crypto/ssh". The 'right' version appears to be "golang.org/x/crypto/ssh")
  5. clone this repo
  6. run this command:
$ go build -o $GOPATH/bin main.go
# github.com/leonidlm/packer-builder-softlayer/builder/softlayer
builder/softlayer/builder.go:45: undefined: packer.ConfigTemplate
$ echo $?
2

Can't install

I tried installing the builder as per the instructions in the README but the build fails. Here is my output.

Amols-iMac:packer-builder-softlayer amol$ echo $GOPATH
/Users/amol/Documents/Development/go
Amols-iMac:packer-builder-softlayer amol$ pwd
/Users/amol/Documents/Development/go/src/github.com/leonidlm/packer-builder-softlayer
Amols-iMac:packer-builder-softlayer amol$ go build -o /usr/local/packer/packer-builder-softlayer main.go
# github.com/leonidlm/packer-builder-softlayer/builder/softlayer
builder/softlayer/builder.go:45: undefined: packer.ConfigTemplate
Amols-iMac:packer-builder-softlayer amol$ echo $?
2
Amols-iMac:packer-builder-softlayer amol$ go test ./...
# github.com/leonidlm/packer-builder-softlayer/builder/softlayer
builder/softlayer/builder.go:45: undefined: packer.ConfigTemplate
# github.com/leonidlm/packer-builder-softlayer/builder/softlayer
builder/softlayer/builder.go:45: undefined: packer.ConfigTemplate

I tried it with the Vagrantbox in case it is an environment issue but see the same error.

Amols-iMac:packer-builder-softlayer amol$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'chef/ubuntu-12.04' is up to date...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
==> default: Forwarding ports...
    default: 22 => 2222 (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
    default: Warning: Connection timeout. Retrying...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> default: Mounting shared folders...
    default: /opt/gopath/src/github.com/leonidlm/packer-builder-softlayer => /Users/amol/Documents/Development/go/src/github.com/leonidlm/packer-builder-softlayer
==> default: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> default: to force provisioning. Provisioners marked to run always will still run.

Amols-iMac:packer-builder-softlayer amol$ vagrant ssh
Welcome to Ubuntu 12.04.4 LTS (GNU/Linux 3.11.0-15-generic x86_64)

 * Documentation:  https://help.ubuntu.com/
New release '14.04.2 LTS' available.
Run 'do-release-upgrade' to upgrade to it.

Last login: Fri Jun 12 12:25:51 2015 from 10.0.2.2
vagrant@vagrant:~$ cd /opt/gopath/src/github.com/leonidlm/packer-builder-softlayer
vagrant@vagrant:/opt/gopath/src/github.com/leonidlm/packer-builder-softlayer$ go build -o /usr/local/packer/packer-builder-softlayer main.go
# github.com/leonidlm/packer-builder-softlayer/builder/softlayer
builder/softlayer/builder.go:45: undefined: packer.ConfigTemplate
vagrant@vagrant:/opt/gopath/src/github.com/leonidlm/packer-builder-softlayer$ echo $?
2

this is an abandoned project

to build this i had to

  1. checkout the 0.8.6 release of packer from my $GOPATH/src/github.com/mitchellh/packer directory, i.e.
cd ~/go/src/github.com/mitchellh/packer
git checkout f8f7b7a34c1be06058f5aca23a51247db12cdbc5
  1. replace the "code.google.com/p/gosshold/ssh" import in 'builder/softlayer/step_create_ssh_key.go' with "github.com/tobyjaffey/gosshold/ssh"

Cannot build packer-builder-softlayer (conflicts with multistep)

I cloned the repository per instructions in Readme of this repo, and tried to build.
At first, I ran into these errors:
builder/softlayer/step_create_ssh_key.go:4:2: cannot find package "code.google.com/p/gosshold/ssh" in any of:
/aspera/usr/builder/packer/go/src/code.google.com/p/gosshold/ssh (from $GOROOT)
/aspera/usr/builder/packer/gopath/src/code.google.com/p/gosshold/ssh (from $GOPATH)

builder/softlayer/builder.go:6:2: cannot find package "github.com/mitchellh/multistep" in any of:
/aspera/usr/builder/packer/go/src/github.com/mitchellh/multistep (from $GOROOT)
/aspera/usr/builder/packer/gopath/src/github.com/mitchellh/multistep (from $GOPATH)

builder/softlayer/ssh.go:7:2: cannot find package "golang.org/x/crypto/ssh" in any of:
/aspera/usr/builder/packer/go/src/golang.org/x/crypto/ssh (from $GOROOT)
/aspera/usr/builder/packer/gopath/src/golang.org/x/crypto/ssh (from $GOPATH)

But then I ran these commands:
go get github.com/mitchellh/multistep go build github.com/mitchellh/multistep go get golang.org/x/crypto/ssh go build golang.org/x/crypto/ssh

I also replaced
"code.google.com/p/gosshold/ssh" with "golang.org/x/crypto/ssh" in step_create_ssh_key.go, per instructions here: #27

However, now I'm running into this issue:
builder/softlayer/builder.go:202: cannot use commHost (type func("github.com/mitchellh/multistep".StateBag) (string, error)) as type func("github.com/mitchellh/packer/vendor/github.com/mitchellh/multistep".StateBag) (string, error) in field value

builder/softlayer/builder.go:203: cannot use sshConfig (type func("github.com/mitchellh/multistep".StateBag) (*"golang.org/x/crypto/ssh".ClientConfig, error)) as type func("github.com/mitchellh/packer/vendor/github.com/mitchellh/multistep".StateBag) (*"github.com/mitchellh/packer/vendor/golang.org/x/crypto/ssh".ClientConfig, error) in field value

builder/softlayer/builder.go:205: cannot use new(common.StepProvision) (type *common.StepProvision) as type "github.com/mitchellh/multistep".Step in array or slice literal:
*common.StepProvision does not implement "github.com/mitchellh/multistep".Step (wrong type for Cleanup method)
have Cleanup("github.com/mitchellh/packer/vendor/github.com/mitchellh/multistep".StateBag)
want Cleanup("github.com/mitchellh/multistep".StateBag)

What should i do to get builds running again?

Timeout error when trying to create image

Hi,
I'm currently encountering the following error in the image creation process with certain builds:

==> softlayer: Preparing for capturing the instance image. Image snapshot type is Flex.
==> softlayer: Waiting for an image (4397b92d-4217-4b7a-912f-da1fafd365d7) to finish it's creation...
==> softlayer: Error waiting for instance to become ACTIVE again after image creation call. Error: Timeout while waiting to for the instance to become ready

Any ideas? Thanks.

Unable to pass further softlayer options to instance creation

Your readme states:

As already stated above, a good way of reviewing the available options is by inspecting the output of the following API call:

curl https://<username>:<api_key>@api.softlayer.com/rest/v3/SoftLayer_Account/getCreateObjectOptions.json

(first off, that URL fails against softlayer. I believe the correct URL would be: https://${SL_USERNAME}:${SL_API_KEY}@api.softlayer.com/rest/v3/SoftLayer_Virtual_Guest/getCreateObjectOptions.json )

Real issue is that I don't see a way though the config or code to pass further options to SL. Specifically, I'm most interested in setting privateNetworkOnlyFlag to True. But others will be required.

panic: interface conversion: interface is nil, not string

I cloned the packer and packer-build-softlayer repositories and built using go1.3.1 linux/amd64. I tried to run packer build on a couple of samples but it fails as follows:

Sending new request to softlayer: https://xxxxx:[email protected]/rest/v3/SoftLayer_Virtual_Guest/createObject
packer-builder-softlayer: panic: interface conversion: interface is nil, not string
...
github.com/leonidlm/packer-builder-softlayer/builder/softlayer.(_stepCreateInstance).Run(0xc2080c6090, 0x7f0dca1d8830, 0xc2080ee2d0, 0x0)
github.com/leonidlm/packer-builder-softlayer/builder/softlayer/step_create_instance.go:50 +0x522
github.com/mitchellh/multistep.(_BasicRunner).Run(0xc20814e0c0, 0x7f0dca1d8830, 0xc2080ee2d0)

Is it possible to build off of another image in Softlayer?

I am currently building off of a clean platform image every time I try to run a packer build with softlayer, but I was wondering if there would be any way for me to launch an image that I have already created, and then make changes via packer. I didn't see any reference to this in the README and was wondering if it's not an option right now or just not in README?

What is the license for this code?

I can't see what license this code is released under. It would be helpful to describe this somewhere, especially for any corporate users.

Packer issue on Soft layer integration

I have installed and configured Go ( GOPATH, GOROOT configured) but still struggling to configure packer for Soft Layer. please give your insight.

Error:
[root@renbuild ~]# cd $GOPATH/src/github.com/leonidlm/packer-builder-softlayer
[root@renbuild packer-builder-softlayer]# go build -o /usr/local/packer/packer-builder-softlayer main.go
builder/softlayer/step_create_ssh_key.go:4:2: cannot find package "code.google.com/p/gosshold/ssh" in any of:
/usr/local/go/src/code.google.com/p/gosshold/ssh (from $GOROOT)
/usr/local/src/code.google.com/p/gosshold/ssh (from $GOPATH)
builder/softlayer/builder.go:6:2: cannot find package "github.com/mitchellh/multistep" in any of:
/usr/local/go/src/github.com/mitchellh/multistep (from $GOROOT)
/usr/local/src/github.com/mitchellh/multistep (from $GOPATH)
builder/softlayer/builder.go:7:2: cannot find package "github.com/mitchellh/packer/common" in any of:
/usr/local/go/src/github.com/mitchellh/packer/common (from $GOROOT)
/usr/local/src/github.com/mitchellh/packer/common (from $GOPATH)
builder/softlayer/step_create_ssh_key.go:11:2: cannot find package "github.com/mitchellh/packer/common/uuid" in any of:
/usr/local/go/src/github.com/mitchellh/packer/common/uuid (from $GOROOT)
/usr/local/src/github.com/mitchellh/packer/common/uuid (from $GOPATH)
builder/softlayer/builder.go:8:2: cannot find package "github.com/mitchellh/packer/helper/communicator" in any of:
/usr/local/go/src/github.com/mitchellh/packer/helper/communicator (from $GOROOT)
/usr/local/src/github.com/mitchellh/packer/helper/communicator (from $GOPATH)
builder/softlayer/builder.go:9:2: cannot find package "github.com/mitchellh/packer/helper/config" in any of:
/usr/local/go/src/github.com/mitchellh/packer/helper/config (from $GOROOT)
/usr/local/src/github.com/mitchellh/packer/helper/config (from $GOPATH)
builder/softlayer/builder.go:10:2: cannot find package "github.com/mitchellh/packer/packer" in any of:
/usr/local/go/src/github.com/mitchellh/packer/packer (from $GOROOT)
/usr/local/src/github.com/mitchellh/packer/packer (from $GOPATH)
main.go:5:2: cannot find package "github.com/mitchellh/packer/packer/plugin" in any of:
/usr/local/go/src/github.com/mitchellh/packer/packer/plugin (from $GOROOT)
/usr/local/src/github.com/mitchellh/packer/packer/plugin (from $GOPATH)
builder/softlayer/builder.go:11:2: cannot find package "github.com/mitchellh/packer/template/interpolate" in any of:
/usr/local/go/src/github.com/mitchellh/packer/template/interpolate (from $GOROOT)
/usr/local/src/github.com/mitchellh/packer/template/interpolate (from $GOPATH)
builder/softlayer/ssh.go:7:2: cannot find package "golang.org/x/crypto/ssh" in any of:
/usr/local/go/src/golang.org/x/crypto/ssh (from $GOROOT)
/usr/local/src/golang.org/x/crypto/ssh (from $GOPATH)
import cycle not allowed
package github.com/leonidlm/packer-builder-softlayer/builder/softlayer
imports bytes
imports errors
imports runtime
imports runtime/internal/atomic
imports runtime
[root@renbuild packer-builder-softlayer]#

How to Clone

HI
How to clone into $GOPATH/src/github.com/leonidlm/packer-builder-softlayer

Is there any command...

Attempting to build fails

I'm attempting to set up packer-builder-softlayer and get the following errors:

$ sudo go build -o /usr/local/bin/packer-builder-softlayer main.go
builder/softlayer/step_create_ssh_key.go:4:2: cannot find package "code.google.com/p/gosshold/ssh" in any of:
/usr/lib/golang/src/code.google.com/p/gosshold/ssh (from $GOROOT)
($GOPATH not set)
builder/softlayer/builder.go:6:2: cannot find package "github.com/mitchellh/multistep" in any of:
/usr/lib/golang/src/github.com/mitchellh/multistep (from $GOROOT)
($GOPATH not set)
builder/softlayer/builder.go:7:2: cannot find package "github.com/mitchellh/packer/common" in any of:
/usr/lib/golang/src/github.com/mitchellh/packer/common (from $GOROOT)
($GOPATH not set)
builder/softlayer/step_create_ssh_key.go:11:2: cannot find package "github.com/mitchellh/packer/common/uuid" in any of:
/usr/lib/golang/src/github.com/mitchellh/packer/common/uuid (from $GOROOT)
($GOPATH not set)
builder/softlayer/builder.go:8:2: cannot find package "github.com/mitchellh/packer/helper/communicator" in any of:
/usr/lib/golang/src/github.com/mitchellh/packer/helper/communicator (from $GOROOT)
($GOPATH not set)
builder/softlayer/builder.go:9:2: cannot find package "github.com/mitchellh/packer/helper/config" in any of:
/usr/lib/golang/src/github.com/mitchellh/packer/helper/config (from $GOROOT)
($GOPATH not set)
builder/softlayer/builder.go:10:2: cannot find package "github.com/mitchellh/packer/packer" in any of:
/usr/lib/golang/src/github.com/mitchellh/packer/packer (from $GOROOT)
($GOPATH not set)
main.go:5:2: cannot find package "github.com/mitchellh/packer/packer/plugin" in any of:
/usr/lib/golang/src/github.com/mitchellh/packer/packer/plugin (from $GOROOT)
($GOPATH not set)
builder/softlayer/builder.go:11:2: cannot find package "github.com/mitchellh/packer/template/interpolate" in any of:
/usr/lib/golang/src/github.com/mitchellh/packer/template/interpolate (from $GOROOT)
($GOPATH not set)
builder/softlayer/ssh.go:7:2: cannot find package "golang.org/x/crypto/ssh" in any of:
/usr/lib/golang/src/golang.org/x/crypto/ssh (from $GOROOT)
($GOPATH not set)


Some packages like sshold don't seem to be available anymore, from what I can find. What's the best way to get this setup?

I'm on Centos 6.6.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.