Packer builder for Xenserver

50 views
Skip to first unread message

Antony Nixson

unread,
Aug 13, 2019, 5:38:16 AM8/13/19
to Packer
Hello Everyone,

I'm using packer to create images for XenServer.
I Have installed a packer builder for Xenserver (Plugin) available at: https://github.com/xenserver/packer-builder-xenserver

Please find my packer code:

{
 
"builders": [
   
{
     
"boot_command": [
       
"<esc><tab> linux inst.ks=http://192.168.4.140/ks/centos7-ks.cfg <enter>"
     
],
     
"boot_wait": "15s",
     
"format": "vdi_vhd",
     
"iso_checksum": "38d5d51d9d100fd73df031ffd6bd8b1297ce24660dc8c13a3b8b4534a4bd291c",
     
"iso_checksum_type": "sha256",
     
"iso_name": "CentOS-7-x86_64-Minimal-1810.iso",
     
"iso_sr": "NFS ISO library",
     
"output_directory": "CentOS-7-x86_64-xenserver-minimal",
     
"iso_url": "{{user `mirror`}}/7.6.1810/isos/x86_64/CentOS-7-x86_64-Minimal-1810.iso",
     
"remote_host": "192.168.XXX.XXX",
     
"remote_password": "XXXXXX",
     
"remote_username": "root",
     
"script_url": "http://192.168.4.140/ks/",
     
"http_directory": "/var/www/ks/",
     
"shutdown_command": "",
     
"sr_name": "Local storage",
     
"ssh_password": "XXXXX",
     
"ssh_username": "root",
     
"ssh_wait_timeout": "10000s",
     
"type": "xenserver-iso",
     
"vm_name": "packer-test-centos-7.6-x86_64",
     
"nfs_mount": ""
   
}
 
],
 
"variables": {
   
"mirror": "http://www.mirrorservice.org/sites/mirror.centos.org"
 
}
}




Packer build :




4_packer_build_command.png




Launch a new server:




1_launch_server.png



Console status 1:



2_console_Status.png




Console status 2:



3_console_Status.png



Console status 3 timeout:



5_timeout_issue_output.png



When i interrupt the packer build:





6_After_interrupt.png



I don't know why the above issue is happening, Kindly look into my packer code if i'm done anything wrong or if i missed something ? please let me know 

Thanks in advance,
Antonynixson


Megan Marsh

unread,
Aug 13, 2019, 12:15:44 PM8/13/19
to packe...@googlegroups.com
If you set the environment variable PACKER_LOG=1, you may get more details about what's happening.

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/9e0026de-4ba5-4dd5-a161-4fe68e859e8a%40googlegroups.com.

Alvaro Miranda Aguilera

unread,
Aug 13, 2019, 11:26:40 PM8/13/19
to packe...@googlegroups.com
if you use the same kickstart file manually without packer, the vm install and boots properly?

create a VM, and when the install windows shows

press <esc>
press <tab>
press <enter>

does this install properly ?


can you try with the example template and the kickstart to confirm the plugin and packer works properly?


alvaro

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/9e0026de-4ba5-4dd5-a161-4fe68e859e8a%40googlegroups.com.


--
Alvaro

Message has been deleted
Message has been deleted

Antony Nixson

unread,
Aug 14, 2019, 3:12:51 AM8/14/19
to Packer
Hello Megan,

Thanks for replying, yes i have set the environment variable PACKER_LOG=1, so that i can see the logs,

Thanks,
Message has been deleted

Antony Nixson

unread,
Aug 14, 2019, 3:36:53 AM8/14/19
to Packer
Hello Alvaro,

Thanks for replying, As you said i have checked my kick-start file with pxe boot, it is not working, i have to create a new kick-start file,

Yes,
press <esc>
press <tab>
type linux inst.ks=http://192.168.4.140/ks/centos7-ks.cfg
press <enter>

This installation working properly !

Had one more query,

while adding the below config parameters,

"disk_size": "40960",
"vm_memory": "8192",
"vm_vcpus": "1",


i got API error !

1.png



ErrorLog:

2019/08/14 12:52:41 [INFO] Packer version: 1.4.1
2019/08/14 12:52:41 Packer Target OS/Arch: linux amd64
2019/08/14 12:52:41 Built with Go Version: go1.12.5
2019/08/14 12:52:41 Detected home directory from env var: /root
2019/08/14 12:52:41 [DEBUG] Discovered plugin: xenserver-iso = /root/go-workspace/bin/packer-builder-xenserver-iso
2019/08/14 12:52:41 [DEBUG] Discovered plugin: xenserver-xva = /root/go-workspace/bin/packer-builder-xenserver-xva
2019/08/14 12:52:41 Using internal plugin for ncloud
2019/08/14 12:52:41 Using internal plugin for hyperone
2019/08/14 12:52:41 Using internal plugin for lxc
2019/08/14 12:52:41 Using internal plugin for amazon-instance
2019/08/14 12:52:41 Using internal plugin for hcloud
2019/08/14 12:52:41 Using internal plugin for null
2019/08/14 12:52:41 Using internal plugin for scaleway
2019/08/14 12:52:41 Using internal plugin for tencentcloud-cvm
2019/08/14 12:52:41 Using internal plugin for amazon-ebssurrogate
2019/08/14 12:52:41 Using internal plugin for googlecompute
2019/08/14 12:52:41 Using internal plugin for oracle-oci
2019/08/14 12:52:41 Using internal plugin for qemu
2019/08/14 12:52:41 Using internal plugin for virtualbox-iso
2019/08/14 12:52:41 Using internal plugin for vmware-vmx
2019/08/14 12:52:41 Using internal plugin for digitalocean
2019/08/14 12:52:41 Using internal plugin for file
2019/08/14 12:52:41 Using internal plugin for hyperv-vmcx
2019/08/14 12:52:41 Using internal plugin for linode
2019/08/14 12:52:41 Using internal plugin for lxd
2019/08/14 12:52:41 Using internal plugin for openstack
2019/08/14 12:52:41 Using internal plugin for parallels-iso
2019/08/14 12:52:41 Using internal plugin for cloudstack
2019/08/14 12:52:41 Using internal plugin for virtualbox-ovf
2019/08/14 12:52:41 Using internal plugin for docker
2019/08/14 12:52:41 Using internal plugin for oneandone
2019/08/14 12:52:41 Using internal plugin for parallels-pvm
2019/08/14 12:52:41 Using internal plugin for proxmox
2019/08/14 12:52:41 Using internal plugin for triton
2019/08/14 12:52:41 Using internal plugin for yandex
2019/08/14 12:52:41 Using internal plugin for amazon-ebsvolume
2019/08/14 12:52:41 Using internal plugin for amazon-chroot
2019/08/14 12:52:41 Using internal plugin for amazon-ebs
2019/08/14 12:52:41 Using internal plugin for azure-arm
2019/08/14 12:52:41 Using internal plugin for hyperv-iso
2019/08/14 12:52:41 Using internal plugin for oracle-classic
2019/08/14 12:52:41 Using internal plugin for profitbricks
2019/08/14 12:52:41 Using internal plugin for vagrant
2019/08/14 12:52:41 Using internal plugin for alicloud-ecs
2019/08/14 12:52:41 Using internal plugin for vmware-iso
2019/08/14 12:52:41 Using internal plugin for salt-masterless
2019/08/14 12:52:41 Using internal plugin for shell-local
2019/08/14 12:52:41 Using internal plugin for windows-restart
2019/08/14 12:52:41 Using internal plugin for ansible
2019/08/14 12:52:41 Using internal plugin for ansible-local
2019/08/14 12:52:41 Using internal plugin for converge
2019/08/14 12:52:41 Using internal plugin for chef-client
2019/08/14 12:52:41 Using internal plugin for inspec
2019/08/14 12:52:41 Using internal plugin for shell
2019/08/14 12:52:41 Using internal plugin for sleep
2019/08/14 12:52:41 Using internal plugin for breakpoint
2019/08/14 12:52:41 Using internal plugin for chef-solo
2019/08/14 12:52:41 Using internal plugin for powershell
2019/08/14 12:52:41 Using internal plugin for windows-shell
2019/08/14 12:52:41 Using internal plugin for file
2019/08/14 12:52:41 Using internal plugin for puppet-masterless
2019/08/14 12:52:41 Using internal plugin for puppet-server
2019/08/14 12:52:41 Using internal plugin for shell-local
2019/08/14 12:52:41 Using internal plugin for artifice
2019/08/14 12:52:41 Using internal plugin for compress
2019/08/14 12:52:41 Using internal plugin for docker-save
2019/08/14 12:52:41 Using internal plugin for googlecompute-export
2019/08/14 12:52:41 Using internal plugin for docker-import
2019/08/14 12:52:41 Using internal plugin for docker-tag
2019/08/14 12:52:41 Using internal plugin for manifest
2019/08/14 12:52:41 Using internal plugin for vagrant-cloud
2019/08/14 12:52:41 Using internal plugin for amazon-import
2019/08/14 12:52:41 Using internal plugin for checksum
2019/08/14 12:52:41 Using internal plugin for digitalocean-import
2019/08/14 12:52:41 Using internal plugin for vsphere-template
2019/08/14 12:52:41 Using internal plugin for vsphere
2019/08/14 12:52:41 Using internal plugin for alicloud-import
2019/08/14 12:52:41 Using internal plugin for docker-push
2019/08/14 12:52:41 Using internal plugin for googlecompute-import
2019/08/14 12:52:41 Using internal plugin for vagrant
2019/08/14 12:52:41 Detected home directory from env var: /root
2019/08/14 12:52:41 Attempting to open config file: /root/.packerconfig
2019/08/14 12:52:41 [WARN] Config file doesn't exist: /root/.packerconfig
2019/08/14 12:52:41 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[alicloud-ecs:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-alicloud-ecs amazon-chroot:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-chroot amazon-ebs:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebs amazon-ebssurrogate:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebssurrogate amazon-ebsvolume:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebsvolume amazon-instance:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-instance azure-arm:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-azure-arm cloudstack:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-cloudstack digitalocean:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-digitalocean docker:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-docker file:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-file googlecompute:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-googlecompute hcloud:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hcloud hyperone:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperone hyperv-iso:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-iso hyperv-vmcx:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-vmcx linode:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-linode lxc:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-lxc lxd:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-lxd ncloud:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-ncloud null:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-null oneandone:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oneandone openstack:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-openstack oracle-classic:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oracle-classic oracle-oci:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oracle-oci parallels-iso:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-iso parallels-pvm:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-pvm profitbricks:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-profitbricks proxmox:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-proxmox qemu:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-qemu scaleway:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-scaleway tencentcloud-cvm:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-tencentcloud-cvm triton:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-triton vagrant:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vagrant virtualbox-iso:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-iso virtualbox-ovf:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-ovf vmware-iso:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-iso vmware-vmx:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-vmx xenserver-iso:/root/go-workspace/bin/packer-builder-xenserver-iso xenserver-xva:/root/go-workspace/bin/packer-builder-xenserver-xva yandex:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-yandex] PostProcessors:map[alicloud-import:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-alicloud-import amazon-import:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-amazon-import artifice:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-artifice checksum:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-checksum compress:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-compress digitalocean-import:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-digitalocean-import docker-import:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-import docker-push:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-push docker-save:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-save docker-tag:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-tag googlecompute-export:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-googlecompute-export googlecompute-import:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-googlecompute-import manifest:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-manifest shell-local:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-shell-local vagrant:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant vagrant-cloud:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant-cloud vsphere:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere vsphere-template:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere-template] Provisioners:map[ansible:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible ansible-local:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible-local breakpoint:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-breakpoint chef-client:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-client chef-solo:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-solo converge:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-converge file:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-file inspec:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-inspec powershell:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-powershell puppet-masterless:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-masterless puppet-server:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-server salt-masterless:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-salt-masterless shell:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell shell-local:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell-local sleep:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-sleep windows-restart:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-restart windows-shell:/usr/local/packer/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-shell]}
2019/08/14 12:52:41 Detected home directory from env var: /root
2019/08/14 12:52:41 Setting cache directory: /root/go-workspace/bin/packer_cache
2019/08/14 12:52:41 Loading builder: xenserver-iso
2019/08/14 12:52:41 Creating plugin client for path: /root/go-workspace/bin/packer-builder-xenserver-iso
2019/08/14 12:52:41 Starting plugin: /root/go-workspace/bin/packer-builder-xenserver-iso []string{"/root/go-workspace/bin/packer-builder-xenserver-iso"}
2019/08/14 12:52:41 Waiting for RPC address for: /root/go-workspace/bin/packer-builder-xenserver-iso
2019/08/14 12:52:41 Detected home directory from env var: /root
2019/08/14 12:52:41 packer-builder-xenserver-iso: 2019/08/14 12:52:41 Plugin minimum port: 10000
2019/08/14 12:52:41 packer-builder-xenserver-iso: 2019/08/14 12:52:41 Plugin maximum port: 25000
2019/08/14 12:52:41 packer-builder-xenserver-iso: 2019/08/14 12:52:41 Plugin address: unix /tmp/packer-plugin951163333
2019/08/14 12:52:41 packer-builder-xenserver-iso: 2019/08/14 12:52:41 Waiting for connection...
2019/08/14 12:52:41 packer-builder-xenserver-iso: 2019/08/14 12:52:41 Serving a plugin connection...
2019/08/14 12:52:41 ui: [1;32mxenserver-iso output will be in this color. [0m
2019/08/14 12:52:41 ui: 
2019/08/14 12:52:41 Build debug mode: false
2019/08/14 12:52:41 Force build: false
2019/08/14 12:52:41 On error: 
2019/08/14 12:52:41 Preparing build: xenserver-iso
2019/08/14 12:52:41 Waiting on builds to complete...
2019/08/14 12:52:41 Starting build run: xenserver-iso
2019/08/14 12:52:41 Running builder: xenserver-iso
2019/08/14 12:52:41 [INFO] (telemetry) Starting builder xenserver-iso
2019/08/14 12:52:41 ui: [1;32m==> xenserver-iso: XAPI client session established [0m
2019/08/14 12:52:41 ui: [1;32m==> xenserver-iso: Starting HTTP server on port 8000 [0m
2019/08/14 12:52:41 packer-builder-xenserver-iso: 2019/08/14 12:52:41 No floppy files specified. Floppy disk will not be made.
2019/08/14 12:52:41 packer-builder-xenserver-iso: 2019/08/14 12:52:41 Looking for an available port between 8000 and 9000
2019/08/14 12:52:41 packer-builder-xenserver-iso: 2019/08/14 12:52:41 Trying port: 8000
2019/08/14 12:52:41 ui: [1;32m==> xenserver-iso: Step: Create Instance [0m
2019/08/14 12:52:42 ui: [1;32m==> xenserver-iso: Created instance '3cc8ed90-80d6-db92-9356-225e12a7fff8' [0m
2019/08/14 12:52:42 packer-builder-xenserver-iso: 2019/08/14 12:52:42 Skipping attach of 'floppy_vdi_uuid'
2019/08/14 12:52:42 packer-builder-xenserver-iso: 2019/08/14 12:52:42 Skipping attach of 'iso_vdi_uuid'
2019/08/14 12:52:42 packer-builder-xenserver-iso: 2019/08/14 12:52:42 Attached VDI '35cd0708-d306-457f-ae1f-85c4092f6cd4'
2019/08/14 12:52:42 ui: [1;32m==> xenserver-iso: Step: Start VM Paused [0m
2019/08/14 12:52:42 packer-builder-xenserver-iso: 2019/08/14 12:52:42 Attached VDI '4dae87e5-7af1-4549-8d16-885216601a6c'
2019/08/14 12:52:42 ui error: [1;31m==> xenserver-iso: Unable to start VM with UUID '3cc8ed90-80d6-db92-9356-225e12a7fff8': API Error: [NO_HOSTS_AVAILABLE] [0m
2019/08/14 12:52:42 packer-builder-xenserver-iso: time="2019-08-14T12:52:42+05:30" level=error msg="Encountered an API error: Failure [NO_HOSTS_AVAILABLE]"
2019/08/14 12:52:42 packer-builder-xenserver-iso: time="2019-08-14T12:52:42+05:30" level=error msg="Encountered an API error: Failure [VM_BAD_POWER_STATE OpaqueRef:7e3a5521-a210-a8f6-819a-aea7f83af698 paused, suspended, running halted]"
2019/08/14 12:52:42 packer-builder-xenserver-iso: 2019/08/14 12:52:42 Unable to force shutdown VM '3cc8ed90-80d6-db92-9356-225e12a7fff8': API Error: [VM_BAD_POWER_STATE OpaqueRef:7e3a5521-a210-a8f6-819a-aea7f83af698 paused, suspended, running halted]
2019/08/14 12:52:42 packer-builder-xenserver-iso: time="2019-08-14T12:52:42+05:30" level=error msg="Encountered an API error: Failure [VBD_NOT_UNPLUGGABLE OpaqueRef:1f42eda0-63b1-3412-3be8-e02602725b37]"
2019/08/14 12:52:42 packer-builder-xenserver-iso: 2019/08/14 12:52:42 Detached VDI '4dae87e5-7af1-4549-8d16-885216601a6c'
2019/08/14 12:52:42 packer-builder-xenserver-iso: time="2019-08-14T12:52:42+05:30" level=error msg="Encountered an API error: Failure [VBD_NOT_UNPLUGGABLE OpaqueRef:b38b9dc0-6f2b-9509-b5a5-7b93b9b74f7c]"
2019/08/14 12:52:42 ui: [1;32m==> xenserver-iso: Destroying VM [0m
2019/08/14 12:52:42 packer-builder-xenserver-iso: 2019/08/14 12:52:42 Detached VDI '35cd0708-d306-457f-ae1f-85c4092f6cd4'
2019/08/14 12:52:42 packer-builder-xenserver-iso: time="2019-08-14T12:52:42+05:30" level=error msg="Encountered an API error: Failure [VM_BAD_POWER_STATE OpaqueRef:7e3a5521-a210-a8f6-819a-aea7f83af698 paused, suspended, running halted]"
2019/08/14 12:52:43 ui: [1;32m==> xenserver-iso: Destroying VDI [0m
2019/08/14 12:52:43 ui: [1;32m==> xenserver-iso: Deleting output directory... [0m
2019/08/14 12:52:43 [INFO] (telemetry) ending xenserver-iso
2019/08/14 12:52:43 ui error: [1;31mBuild 'xenserver-iso' errored: Build was halted. [0m
2019/08/14 12:52:43 machine readable: error-count []string{"1"}
2019/08/14 12:52:43 ui error: 
==> Some builds didn't complete successfully and had errors:
2019/08/14 12:52:43 machine readable: xenserver-iso,error []string{"Build was halted."}
2019/08/14 12:52:43 ui error: --> xenserver-iso: Build was halted.
2019/08/14 12:52:43 ui: 
==> Builds finished but no artifacts were created.
2019/08/14 12:52:43 [INFO] (telemetry) Finalizing.
2019/08/14 12:52:45 [WARN] (telemetry) Error finalizing report. This is safe to ignore. Post https://checkpoint-api.hashicorp.com/v1/telemetry/packer: context deadline exceeded
2019/08/14 12:52:45 waiting for all plugin processes to complete...
2019/08/14 12:52:45 /root/go-workspace/bin/packer-builder-xenserver-iso: plugin process exited


I believe the above config parameter no longer available, tell me if i'm anything wrong,

Thanks,
Antonynixson  



Megan Marsh

unread,
Aug 15, 2019, 12:39:09 PM8/15/19
to packe...@googlegroups.com
Hi Antony.

The xenserver builder is a third party plugin so most of the core Packer maintainers don't have much experience with it. since you think there's an issue with how this plugin communicates with the xenserver API, I think this is probably a question best asked of the people who maintain the xenserver plugin, maybe through an issue on github.

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages