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

xva builder missing communicator defaults #95

Open
chqr opened this issue Dec 11, 2017 · 0 comments
Open

xva builder missing communicator defaults #95

chqr opened this issue Dec 11, 2017 · 0 comments

Comments

@chqr
Copy link

chqr commented Dec 11, 2017

The ISO builder is able to communicate with new vms over ssh with a config like the following:

 "ssh_username": "root",
 "ssh_password": "{{ user `vm_root_password` }}",
 "ssh_wait_timeout": "300s",

With the XVA builder, the same config will produce an error unknown communicator type. Setting "communicator": "ssh", fixes the issue. Unfortunately, the ssh timeout is then 0 seconds, which causes builds to fail with Timeout waiting for SSH. That can be fixed by setting ssh_timeout to a non-zero value:

 "communicator": "ssh",
 "ssh_username": "root",
 "ssh_password": "{{ user `vm_root_password` }}",
 "ssh_timeout": "300s"

Would be nice if the behavior was consistent, suspect this line needs to be added to the xva builder: https://github.com/xenserver/packer-builder-xenserver/blob/5e1f8571d678e47779a1cfed03794142d32a3b66/builder/xenserver/iso/builder.go#L70

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