Open ashislamba123 opened 4 years ago
Try to download the iso and point out the iso location in json file.
Thanks @abuarbaz. Do you or anyone have a sample json file for assistance. I am not a technical person and have joined this forum to understand how does DevOps works. Any inputs would be much appreciated?
Analyzed this further and found that it is primarily due to me being behind my company proxy. Tried running the command from home and this time around it throws a different error.
$ packer build -only=virtualbox-iso application-server.json
virtualbox-iso output will be in this color.
==> virtualbox-iso: Retrieving Guest additions
==> virtualbox-iso: Trying C:\Program Files\Oracle\VirtualBox/VBoxGuestAdditions.iso
==> virtualbox-iso: Trying file://C:/Program%20Files/Oracle/VirtualBox/VBoxGuestAdditions.iso
==> virtualbox-iso: file://C:/Program%20Files/Oracle/VirtualBox/VBoxGuestAdditions.iso => C:\Users\707021\devops\packer-templates\packer_cache\afa7695602909b267b26b23c8aefe12db6ee78b2.iso
==> virtualbox-iso: Retrieving ISO
==> virtualbox-iso: Trying http://releases.ubuntu.com/trusty/ubuntu-14.04.6-server-amd64.iso
==> virtualbox-iso: Trying http://releases.ubuntu.com/trusty/ubuntu-14.04.6-server-amd64.iso?checksum=sha256%3Ab17d7c1e9d0321ad5810ba77b69aef43f0f29a5422b08120e6ee0576c4527c0e
==> virtualbox-iso: http://releases.ubuntu.com/trusty/ubuntu-14.04.6-server-amd64.iso?checksum=sha256%3Ab17d7c1e9d0321ad5810ba77b69aef43f0f29a5422b08120e6ee0576c4527c0e => C:\Users\707021\devops\packer-templates\packer_cache\cb7251d790ae3476b18f0bf135a6f38d8d0367bd.iso
==> virtualbox-iso: Starting HTTP server on port 8734
==> virtualbox-iso: Creating virtual machine...
==> virtualbox-iso: Creating hard drive...
==> virtualbox-iso: Creating forwarded port mapping for communicator (SSH, WinRM, etc) (host port 4377)
==> virtualbox-iso: Executing custom VBoxManage commands...
virtualbox-iso: Executing: modifyvm ubuntu-14.04.6-server-amd64 --memory 1024
virtualbox-iso: Executing: modifyvm ubuntu-14.04.6-server-amd64 --cpus 2
==> virtualbox-iso: Starting the virtual machine...
==> virtualbox-iso: Error starting VM: VBoxManage error: VBoxManage.exe: error: The virtual machine 'ubuntu-14.04.6-server-amd64' has terminated unexpectedly during startup with exit code 1 (0x1). More details may be available in 'C:\Users\707021\VirtualBox VMs\ubuntu-14.04.6-server-amd64\Logs\VBoxHardening.log'
==> virtualbox-iso: VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component MachineWrap, interface IMachine
==> virtualbox-iso: Deregistering and deleting VM...
==> virtualbox-iso: Deleting output directory...
Build 'virtualbox-iso' errored: Error starting VM: VBoxManage error: VBoxManage.exe: error: The virtual machine 'ubuntu-14.04.6-server-amd64' has terminated unexpectedly during startup with exit code 1 (0x1). More details may be available in 'C:\Users\707021\VirtualBox VMs\ubuntu-14.04.6-server-amd64\Logs\VBoxHardening.log'
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component MachineWrap, interface IMachine
==> Some builds didn't complete successfully and had errors:
--> virtualbox-iso: Error starting VM: VBoxManage error: VBoxManage.exe: error: The virtual machine 'ubuntu-14.04.6-server-amd64' has terminated unexpectedly during startup with exit code 1 (0x1). More details may be available in 'C:\Users\707021\VirtualBox VMs\ubuntu-14.04.6-server-amd64\Logs\VBoxHardening.log'
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component MachineWrap, interface IMachine
Seems like another software on my system is not allowing virtual box to start up correctly.
Hi Team, I am getting the following error while building the box with packer.
Alternatively, I was bale to download the iso file manually and have it on my local machine. Can i enable packer to refer the ISO file directly for its build?