Skip to content

Plugin exited before we could connect #88

Description

@s4mur4i

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

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