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

Unable to download ISO file #87

Open
ashislamba123 opened this issue Nov 22, 2019 · 3 comments
Open

Unable to download ISO file #87

ashislamba123 opened this issue Nov 22, 2019 · 3 comments

Comments

@ashislamba123
Copy link

ashislamba123 commented Nov 22, 2019

Hi Team, I am getting the following error while building the box with packer.

$ 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: Download failed Get http://releases.ubuntu.com/trusty/ubuntu-14.04.6-server-amd64.iso: dial tcp 91.189.88.148:80: connectex: No connection could be made because the target machine actively refused it.
==> virtualbox-iso: error downloading ISO: [Get http://releases.ubuntu.com/trusty/ubuntu-14.04.6-server-amd64.iso: dial tcp 91.189.88.148:80: connectex: No connection could be made because the target machine actively refused it.]
Build 'virtualbox-iso' errored: error downloading ISO: [Get http://releases.ubuntu.com/trusty/ubuntu-14.04.6-server-amd64.iso: dial tcp 91.189.88.148:80: connectex: No connection could be made because the target machine actively refused it.]

==> Some builds didn't complete successfully and had errors:
--> virtualbox-iso: error downloading ISO: [Get http://releases.ubuntu.com/trusty/ubuntu-14.04.6-server-amd64.iso: dial tcp 91.189.88.148:80: connectex: No connection could be made because the target machine actively refused it.]

==> Builds finished but no artifacts were created.

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?

@abuarbaz
Copy link

Try to download the iso and point out the iso location in json file.

@ashislamba123
Copy link
Author

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?

@ashislamba123
Copy link
Author

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.

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

2 participants