Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PACKER_LOG=1 packer build .
- 2022/01/04 16:26:36 [INFO] Packer version: 1.7.8 [go1.17.2 linux amd64]
- 2022/01/04 16:26:36 [TRACE] discovering plugins in /usr/bin
- 2022/01/04 16:26:36 [TRACE] discovering plugins in /home/alteredtech/.config/packer/plugins
- 2022/01/04 16:26:36 [TRACE] discovering plugins in .
- 2022/01/04 16:26:36 [INFO] PACKER_CONFIG env var not set; checking the default config file path
- 2022/01/04 16:26:36 [INFO] PACKER_CONFIG env var set; attempting to open config file: /home/alteredtech/.packerconfig
- 2022/01/04 16:26:36 [WARN] Config file doesn't exist: /home/alteredtech/.packerconfig
- 2022/01/04 16:26:36 [INFO] Setting cache directory: /home/alteredtech/.cache/packer
- 2022/01/04 16:26:36 [TRACE] validateValue: not active for proxmox_node, so skipping
- 2022/01/04 16:26:36 [TRACE] validateValue: not active for proxmox_api_token, so skipping
- 2022/01/04 16:26:36 [TRACE] validateValue: not active for ssh_info, so skipping
- 2022/01/04 16:26:36 [TRACE] validateValue: not active for preseed_file, so skipping
- 2022/01/04 16:26:36 [TRACE] validateValue: not active for proxmox_host, so skipping
- 2022/01/04 16:26:36 [TRACE] validateValue: not active for template_description, so skipping
- 2022/01/04 16:26:36 [TRACE] validateValue: not active for locale, so skipping
- 2022/01/04 16:26:36 [TRACE] validateValue: not active for sockets, so skipping
- 2022/01/04 16:26:36 [TRACE] validateValue: not active for disk_size, so skipping
- 2022/01/04 16:26:36 [TRACE] validateValue: not active for ansible_play, so skipping
- 2022/01/04 16:26:36 [TRACE] validateValue: not active for iso, so skipping
- 2022/01/04 16:26:36 [TRACE] validateValue: not active for iso_checksum, so skipping
- 2022/01/04 16:26:36 [TRACE] validateValue: not active for hostname, so skipping
- 2022/01/04 16:26:36 [TRACE] validateValue: not active for cores, so skipping
- 2022/01/04 16:26:36 [TRACE] validateValue: not active for memory, so skipping
- 2022/01/04 16:26:36 [TRACE] validateValue: not active for datastore, so skipping
- 2022/01/04 16:26:36 [TRACE] validateValue: not active for datastore_type, so skipping
- 2022/01/04 16:26:36 [TRACE] validateValue: not active for bridge_name, so skipping
- 2022/01/04 16:26:36 [TRACE] validateValue: not active for proxmox_api_user, so skipping
- 2022/01/04 16:26:36 [TRACE] validateValue: not active for proxmox_api_token_name, so skipping
- 2022/01/04 16:26:36 [TRACE] validateValue: not active for template_name, so skipping
- 2022/01/04 16:26:36 [TRACE] validateValue: not active for vmid, so skipping
- 2022/01/04 16:26:36 [TRACE] Starting internal plugin packer-builder-proxmox
- 2022/01/04 16:26:36 Starting plugin: /usr/bin/packer []string{"/usr/bin/packer", "plugin", "packer-builder-proxmox"}
- 2022/01/04 16:26:36 Waiting for RPC address for: /usr/bin/packer
- 2022/01/04 16:26:36 packer-builder-proxmox plugin: [INFO] Packer version: 1.7.8 [go1.17.2 linux amd64]
- 2022/01/04 16:26:36 packer-builder-proxmox plugin: [INFO] PACKER_CONFIG env var not set; checking the default config file path
- 2022/01/04 16:26:36 packer-builder-proxmox plugin: [INFO] PACKER_CONFIG env var set; attempting to open config file: /home/alteredtech/.packerconfig
- 2022/01/04 16:26:36 packer-builder-proxmox plugin: [WARN] Config file doesn't exist: /home/alteredtech/.packerconfig
- 2022/01/04 16:26:36 packer-builder-proxmox plugin: [INFO] Setting cache directory: /home/alteredtech/.cache/packer
- 2022/01/04 16:26:36 packer-builder-proxmox plugin: args: []string{"packer-builder-proxmox"}
- 2022/01/04 16:26:36 packer-builder-proxmox plugin: Plugin address: unix /tmp/packer-plugin3256203526
- 2022/01/04 16:26:36 packer-builder-proxmox plugin: Waiting for connection...
- 2022/01/04 16:26:36 Received unix RPC address for /usr/bin/packer: addr is /tmp/packer-plugin3256203526
- 2022/01/04 16:26:36 packer-builder-proxmox plugin: Serving a plugin connection...
- 2022/01/04 16:26:36 packer-builder-proxmox plugin: CPU type not set, using default 'kvm64'
- 2022/01/04 16:26:36 packer-builder-proxmox plugin: SCSI controller not set, using default 'lsi'
- 2022/01/04 16:26:36 [TRACE] Starting internal plugin packer-provisioner-ansible
- 2022/01/04 16:26:36 Starting plugin: /usr/bin/packer []string{"/usr/bin/packer", "plugin", "packer-provisioner-ansible"}
- 2022/01/04 16:26:36 Waiting for RPC address for: /usr/bin/packer
- 2022/01/04 16:26:37 packer-provisioner-ansible plugin: [INFO] Packer version: 1.7.8 [go1.17.2 linux amd64]
- 2022/01/04 16:26:37 packer-provisioner-ansible plugin: [INFO] PACKER_CONFIG env var not set; checking the default config file path
- 2022/01/04 16:26:37 packer-provisioner-ansible plugin: [INFO] PACKER_CONFIG env var set; attempting to open config file: /home/alteredtech/.packerconfig
- 2022/01/04 16:26:37 packer-provisioner-ansible plugin: [WARN] Config file doesn't exist: /home/alteredtech/.packerconfig
- 2022/01/04 16:26:37 packer-provisioner-ansible plugin: [INFO] Setting cache directory: /home/alteredtech/.cache/packer
- 2022/01/04 16:26:37 packer-provisioner-ansible plugin: args: []string{"packer-provisioner-ansible"}
- 2022/01/04 16:26:37 packer-provisioner-ansible plugin: Plugin address: unix /tmp/packer-plugin1311860752
- 2022/01/04 16:26:37 packer-provisioner-ansible plugin: Waiting for connection...
- 2022/01/04 16:26:37 Received unix RPC address for /usr/bin/packer: addr is /tmp/packer-plugin1311860752
- 2022/01/04 16:26:37 packer-provisioner-ansible plugin: Serving a plugin connection...
- 2022/01/04 16:26:37 packer-provisioner-ansible plugin: ansible-playbook version: 2.12.1
- 2022/01/04 16:26:37 Build debug mode: false
- 2022/01/04 16:26:37 Force build: false
- 2022/01/04 16:26:37 On error:
- 2022/01/04 16:26:37 Waiting on builds to complete...
- 2022/01/04 16:26:37 Starting build run: proxmox.ubuntu-2004
- 2022/01/04 16:26:37 Running builder:
- 2022/01/04 16:26:37 [INFO] (telemetry) Starting builder proxmox.ubuntu-2004
- proxmox.ubuntu-2004: output will be in this color.
- 2022/01/04 16:26:37 packer-builder-proxmox plugin: using token auth
- 2022/01/04 16:26:37 packer-builder-proxmox plugin: No URLs were provided to Step Download. Continuing...
- ==> proxmox.ubuntu-2004: Creating VM
- ==> proxmox.ubuntu-2004: Starting VM
- 2022/01/04 16:26:41 packer-builder-proxmox plugin: Found available port: 8698 on IP: 0.0.0.0
- ==> proxmox.ubuntu-2004: Starting HTTP server on port 8698
- ==> proxmox.ubuntu-2004: Waiting 5s for boot
- ==> proxmox.ubuntu-2004: Typing the boot command
- 2022/01/04 16:26:46 packer-builder-proxmox plugin: [INFO] Waiting 1s
- 2022/01/04 16:26:47 packer-builder-proxmox plugin: [INFO] Waiting 1s
- 2022/01/04 16:26:48 packer-builder-proxmox plugin: [INFO] Waiting 1s
- 2022/01/04 16:26:50 packer-builder-proxmox plugin: [INFO] Waiting 1s
- 2022/01/04 16:26:51 packer-builder-proxmox plugin: [INFO] Waiting 1s
- 2022/01/04 16:26:52 packer-builder-proxmox plugin: [INFO] Waiting 1s
- 2022/01/04 16:26:54 packer-builder-proxmox plugin: [INFO] Waiting 1s
- 2022/01/04 16:26:55 packer-builder-proxmox plugin: [INFO] Waiting 1s
- 2022/01/04 16:26:56 packer-builder-proxmox plugin: [INFO] Waiting 1s
- 2022/01/04 16:26:58 packer-builder-proxmox plugin: [INFO] Waiting 1s
- 2022/01/04 16:27:02 packer-builder-proxmox plugin: [DEBUG] Unable to get address during connection step: 500 QEMU guest agent is not running
- 2022/01/04 16:27:02 packer-builder-proxmox plugin: [INFO] Waiting for SSH, up to timeout: 1h30m0s
- ==> proxmox.ubuntu-2004: Waiting for SSH to become available...
- 2022/01/04 16:27:05 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
- 2022/01/04 16:27:13 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
- 2022/01/04 16:27:21 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
- 2022/01/04 16:27:29 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
- 2022/01/04 16:27:37 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
- 2022/01/04 16:27:45 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
- 2022/01/04 16:27:53 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
- 2022/01/04 16:28:01 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
- 2022/01/04 16:28:09 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
- 2022/01/04 16:28:17 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
- 2022/01/04 16:28:25 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
- 2022/01/04 16:28:33 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
- 2022/01/04 16:28:41 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
- 2022/01/04 16:28:49 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
- 2022/01/04 16:28:57 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
- 2022/01/04 16:29:05 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
- 2022/01/04 16:29:13 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
- 2022/01/04 16:29:21 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
- 2022/01/04 16:29:29 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
- 2022/01/04 16:29:37 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
- 2022/01/04 16:29:45 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
- 2022/01/04 16:29:53 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
- 2022/01/04 16:30:01 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
- 2022/01/04 16:30:09 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
- 2022/01/04 16:30:17 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
- 2022/01/04 16:30:25 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
- 2022/01/04 16:30:33 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
- 2022/01/04 16:30:41 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
- 2022/01/04 16:30:49 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
- 2022/01/04 16:30:57 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
- 2022/01/04 16:31:05 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
- 2022/01/04 16:31:13 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
- 2022/01/04 16:31:21 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
- 2022/01/04 16:31:29 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
- 2022/01/04 16:31:37 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
- 2022/01/04 16:31:45 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
- 2022/01/04 16:31:53 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
- 2022/01/04 16:32:02 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
- 2022/01/04 16:32:10 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
- 2022/01/04 16:32:18 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
- 2022/01/04 16:32:26 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
- 2022/01/04 16:32:34 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
- 2022/01/04 16:32:42 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
- 2022/01/04 16:32:50 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
- 2022/01/04 16:32:58 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
- 2022/01/04 16:33:06 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
- 2022/01/04 16:33:14 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
- 2022/01/04 16:33:22 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
- 2022/01/04 16:33:30 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
- 2022/01/04 16:33:38 packer-builder-proxmox plugin: [DEBUG] Error getting SSH address: 500 QEMU guest agent is not running
- 2022/01/04 16:33:43 packer-builder-proxmox plugin: [INFO] Attempting SSH connection to 10.0.2.199:22...
- 2022/01/04 16:33:43 packer-builder-proxmox plugin: [DEBUG] reconnecting to TCP connection for SSH
- 2022/01/04 16:33:43 packer-builder-proxmox plugin: [DEBUG] handshaking with SSH
- 2022/01/04 16:33:43 packer-builder-proxmox plugin: [DEBUG] handshake complete!
- 2022/01/04 16:33:43 packer-builder-proxmox plugin: [INFO] no local agent socket, will not connect agent
- ==> proxmox.ubuntu-2004: Connected to SSH!
- 2022/01/04 16:33:43 packer-builder-proxmox plugin: Running the provision hook
- 2022/01/04 16:33:43 [INFO] (telemetry) Starting provisioner ansible
- 2022/01/04 16:33:43 packer-provisioner-ansible plugin: ansible-playbook version: 2.12.1
- ==> proxmox.ubuntu-2004: Provisioning with Ansible...
- proxmox.ubuntu-2004: Using ssh keys from Packer communicator...
- proxmox.ubuntu-2004: Not using Proxy adapter for Ansible run:
- proxmox.ubuntu-2004: Using ssh keys from Packer communicator...
- 2022/01/04 16:33:43 packer-provisioner-ansible plugin: Creating inventory file for Ansible run...
- ==> proxmox.ubuntu-2004: Executing Ansible: ansible-playbook -e packer_build_name="ubuntu-2004" -e packer_builder_type=proxmox -e packer_http_addr=10.0.2.57:8698 --ssh-extra-args '-o IdentitiesOnly=yes' -v --extra-vars ansible_python_interpreter=/usr/bin/python -e ansible_ssh_private_key_file=/tmp/ansible-key4158079046 -i /tmp/packer-provisioner-ansible1476003741 /home/alteredtech/Coding/infrastructure/packer/ubuntu-20.04/playbook/packer-ubuntu-20-04.yml
- proxmox.ubuntu-2004: Using /home/alteredtech/Coding/infrastructure/packer/ubuntu-20.04/playbook/ansible.cfg as config file
- proxmox.ubuntu-2004:
- proxmox.ubuntu-2004: PLAY [Provision Image] *********************************************************
- proxmox.ubuntu-2004:
- proxmox.ubuntu-2004: TASK [Gathering Facts] *********************************************************
- proxmox.ubuntu-2004: fatal: [default]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: Warning: Permanently added '10.0.2.199' (ED25519) to the list of known hosts.\r\nLoad key \"/tmp/ansible-key4158079046\": invalid format\r\npacker@10.0.2.199: Permission denied (publickey,password).", "unreachable": true}
- proxmox.ubuntu-2004:
- proxmox.ubuntu-2004: PLAY RECAP *********************************************************************
- proxmox.ubuntu-2004: default : ok=0 changed=0 unreachable=1 failed=0 skipped=0 rescued=0 ignored=0
- proxmox.ubuntu-2004:
- 2022/01/04 16:33:44 [INFO] (telemetry) ending ansible
- ==> proxmox.ubuntu-2004: Provisioning step had errors: Running the cleanup provisioner, if present...
- ==> proxmox.ubuntu-2004: Stopping VM
- ==> proxmox.ubuntu-2004: Deleting VM
- 2022/01/04 16:33:48 [INFO] (telemetry) ending proxmox.ubuntu-2004
- ==> Wait completed after 7 minutes 10 seconds
- 2022/01/04 16:33:48 machine readable: error-count []string{"1"}
- ==> Some builds didn't complete successfully and had errors:
- 2022/01/04 16:33:48 machine readable: proxmox.ubuntu-2004,error []string{"Error executing Ansible: Non-zero exit status: exit status 4"}
- ==> Builds finished but no artifacts were created.
- 2022/01/04 16:33:48 [INFO] (telemetry) Finalizing.
- Build 'proxmox.ubuntu-2004' errored after 7 minutes 10 seconds: Error executing Ansible: Non-zero exit status: exit status 4
- ==> Wait completed after 7 minutes 10 seconds
- ==> Some builds didn't complete successfully and had errors:
- --> proxmox.ubuntu-2004: Error executing Ansible: Non-zero exit status: exit status 4
- ==> Builds finished but no artifacts were created.
- 2022/01/04 16:33:48 waiting for all plugin processes to complete...
- 2022/01/04 16:33:48 /usr/bin/packer: plugin process exited
- 2022/01/04 16:33:48 /usr/bin/packer: plugin process exited
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement