Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin exited before we could connect #88

Open
s4mur4i opened this issue Aug 2, 2017 · 0 comments
Open

Plugin exited before we could connect #88

s4mur4i opened this issue Aug 2, 2017 · 0 comments

Comments

@s4mur4i
Copy link

s4mur4i commented Aug 2, 2017

Hy,

I am trying to install the plugin on one of our systems, but I am missing something.
When running the build:

./bin/packer build --only=edge-xenserver -debug -on-error=ask /tmp/packer.json
Failed to initialize build 'edge-xenserver': error initializing builder 'xenserver-iso': plugin exited before we could connect
Debug mode enabled. Builds will not be parallelized.
edge-xenserver output will be in this color.


==> Builds finished but no artifacts were created.

I cannot get any further information or error on what the issue is :(
After building from source I see the files there:

bash-4.3# ls -l bin/
total 88808
-rwxr-xr-x    1 root     root       3175268 Aug  2 12:15 gox
-rwxr-xr-x    1 root     root      54773371 Aug  2 12:16 packer
-rwxr-xr-x    1 root     root      16530287 Aug  2 12:16 packer-builder-xenserver-iso
-rwxr-xr-x    1 root     root      16453197 Aug  2 12:16 packer-builder-xenserver-xva
bash-4.3# ./bin/packer-builder-xenserver-iso
panic: Please do not execute plugins directly. Packer will execute these for you.
goroutine 1 [running]:
main.main()
	/go/src/github.com/xenserver/packer-builder-xenserver/plugin/builder-xenserver-iso/main.go:11 +0x9e

The config is very basic:

{
      "name": "xenserver",
      "type": "xenserver-iso",
      "iso_url": "/tmp/cd.iso",
      "iso_checksum": "769474248a3897f4865817446f9a4a53",
      "iso_checksum_type": "md5",
      "ssh_username": "{{user `user_name`}}",
      "ssh_password": "{{user `user_password`}}",
      "ssh_timeout": "15m",
      "remote_host": "xen.example.com",
      "remote_username": "root",
      "remote_password": "root",
      "vm_name": "xen-latest",
      "output_directory": "output",
      "format": "vdi",
      "vm_memory": "2049",
      "floppy_files": [
        "preseed-xen.cfg"
      ],
      "disk_size": 8000,
      "boot_wait": "15s",
      "boot_command": [
        "<enter><wait>",
        "<f6><esc>",
        "<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
        "<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
        "<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
        "<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
        "<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
        "<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
        "<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
        "<bs><bs><bs><bs><bs><bs><bs><bs><bs><bs>",
        "<bs><bs><bs>",
        "/install/vmlinuz ",
        "auto=true priority=critical ",
        "preseed/file=/floppy/preseed-virtualbox.cfg ",
        "net.ifnames=0 biosdevname=0 ",
        "netcfg/get_hostname=xen ",
        "netcfg/get_domain=xen ",
        "initrd=/install/initrd.gz -- <enter>"
      ]
    },

Some values are bogus, just showing what values are. I tried with adding bogus remote_host, or invalid user/pass, but error does not change. When logging into xenserver the values are correct.

Thank you for any help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant