-
-
Save kshpytsya/de12303e70fea73659f4ae7a040ca60b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vsphere-iso: output will be in this color. | |
2020-09-16T23:15:10+03:00: ==> vsphere-iso: Retrieving ISO | |
2020-09-16T23:15:10+03:00: ==> vsphere-iso: Trying http://cdimage.ubuntu.com/releases/18.04.5/release/ubuntu-18.04.5-server-amd64.iso | |
2020-09-16T23:15:10+03:00: ==> vsphere-iso: Trying http://cdimage.ubuntu.com/releases/18.04.5/release/ubuntu-18.04.5-server-amd64.iso?checksum=sha256%3A8c5fc24894394035402f66f3824beb7234b757dd2b5531379cb310cedfdf0996 | |
ver-amd64.iso 951.00 MiB / 951.00 MiB [=========================================================] 100.00% 1m30s | |
2020-09-16T23:16:44+03:00: ==> vsphere-iso: http://cdimage.ubuntu.com/releases/18.04.5/release/ubuntu-18.04.5-server-amd64.iso?checksum=sha256%3A8c5fc24894394035402f66f3824beb7234b757dd2b5531379cb310cedfdf0996 => /tmp/base-vm-image--vsphere--test-dc--ubuntu18--8ps8yyjg/packer_cache/a37af95ab12e665ba168128cde2f3662740b21a2.iso | |
2020-09-16T23:16:45+03:00: ==> vsphere-iso: Uploading a37af95ab12e665ba168128cde2f3662740b21a2.iso to packer_cache/a37af95ab12e665ba168128cde2f3662740b21a2.iso | |
2020-09-16T23:16:46+03:00: ==> vsphere-iso: File already uploaded; continuing | |
2020-09-16T23:16:47+03:00: ==> vsphere-iso: Creating VM... | |
2020-09-16T23:16:52+03:00: ==> vsphere-iso: Customizing hardware... | |
2020-09-16T23:16:53+03:00: ==> vsphere-iso: Mounting ISO images... | |
2020-09-16T23:16:57+03:00: ==> vsphere-iso: Adding configuration parameters... | |
2020-09-16T23:16:57+03:00: ==> vsphere-iso: Creating floppy disk... | |
2020-09-16T23:16:57+03:00: vsphere-iso: Copying files flatly from floppy_files | |
2020-09-16T23:16:57+03:00: vsphere-iso: Copying file: preseed.cfg | |
2020-09-16T23:16:57+03:00: vsphere-iso: Done copying files from floppy_files | |
2020-09-16T23:16:57+03:00: vsphere-iso: Collecting paths from floppy_dirs | |
2020-09-16T23:16:57+03:00: vsphere-iso: Resulting paths from floppy_dirs : [] | |
2020-09-16T23:16:57+03:00: vsphere-iso: Done copying paths from floppy_dirs | |
2020-09-16T23:16:57+03:00: ==> vsphere-iso: Uploading created floppy image | |
2020-09-16T23:17:02+03:00: ==> vsphere-iso: Adding generated Floppy... | |
2020-09-16T23:17:03+03:00: ==> vsphere-iso: Set boot order... | |
2020-09-16T23:17:05+03:00: ==> vsphere-iso: Power on VM... | |
2020-09-16T23:17:07+03:00: ==> vsphere-iso: Waiting 10s for boot... | |
2020-09-16T23:17:17+03:00: ==> vsphere-iso: Typing boot command... | |
2020-09-16T23:18:20+03:00: ==> vsphere-iso: Waiting for IP... | |
2020-09-16T23:24:15+03:00: ==> vsphere-iso: IP address: 10.11.0.54 | |
2020-09-16T23:24:15+03:00: ==> vsphere-iso: Using ssh communicator to connect: 10.11.0.54 | |
2020-09-16T23:24:15+03:00: ==> vsphere-iso: Waiting for SSH to become available... | |
2020-09-16T23:24:17+03:00: ==> vsphere-iso: Connected to SSH! | |
2020-09-16T23:24:17+03:00: ==> vsphere-iso: Provisioning with shell script: /tmp/packer-shell414931904 | |
2020-09-16T23:24:20+03:00: ==> vsphere-iso: Provisioning step had errors: Running the cleanup provisioner, if present... | |
2020-09-16T23:24:20+03:00: ==> vsphere-iso: Power off VM... | |
2020-09-16T23:24:21+03:00: ==> vsphere-iso: Deleting Floppy image ... | |
2020-09-16T23:24:22+03:00: ==> vsphere-iso: Destroying VM... | |
2020-09-16T23:24:24+03:00: Build 'vsphere-iso' errored after 9 minutes 16 seconds: Script exited with non-zero exit status: 1.Allowed exit codes are: [0] | |
==> Wait completed after 9 minutes 16 seconds | |
==> Some builds didn't complete successfully and had errors: | |
--> vsphere-iso: Script exited with non-zero exit status: 1.Allowed exit codes are: [0] | |
==> Builds finished but no artifacts were created. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"builders": [ | |
{ | |
"CPUs": 1, | |
"RAM": 1024, | |
"RAM_reserve_all": true, | |
"boot_command": [ | |
"<enter><wait><f6><wait><esc><wait>", | |
"<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", | |
" initrd=/install/initrd.gz", | |
" priority=critical", | |
" locale=en_US", | |
" preseed/file=/media/preseed.cfg", | |
"<enter>" | |
], | |
"boot_order": "disk,cdrom", | |
"convert_to_template": "true", | |
"datacenter": "***redacted***", | |
"datastore": "datastore1", | |
"disk_controller_type": "pvscsi", | |
"floppy_files": [ | |
"preseed.cfg" | |
], | |
"folder": "Templates", | |
"guest_os_type": "ubuntu64Guest", | |
"host": "10.11.0.10", | |
"insecure_connection": "true", | |
"iso_checksum": "sha256:8c5fc24894394035402f66f3824beb7234b757dd2b5531379cb310cedfdf0996", | |
"iso_urls": "http://cdimage.ubuntu.com/releases/18.04.5/release/ubuntu-18.04.5-server-amd64.iso", | |
"network_adapters": [ | |
{ | |
"network": "VM Network", | |
"network_card": "vmxnet3" | |
} | |
], | |
"password": "***redacted***", | |
"ssh_password": "***redacted***", | |
"ssh_username": "ubuntu", | |
"storage": [ | |
{ | |
"disk_size": 10240, | |
"disk_thin_provisioned": true | |
} | |
], | |
"type": "vsphere-iso", | |
"username": "Administrator@vsphere.local", | |
"vcenter_server": "10.11.0.11", | |
"vm_name": "ubuntu18-{{ user `hash` }}" | |
} | |
], | |
"variables": { | |
"hash": "c63f4d4199adf8ab88e58ca549fdf99e20386ab6" | |
}, | |
"provisioners": [ | |
{ | |
"inline": [ | |
"false" | |
], | |
"type": "shell" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment