rapid7 / metasploitable3

Metasploitable3 is a VM that is built from the ground up with a large amount of security vulnerabilities.
Other
4.78k stars 1.15k forks source link

Build with github actions #584

Open incyi opened 1 year ago

incyi commented 1 year ago

Issue Description

I tried to fork this repo and build with github actions, but it did not worked. Anyone an idea if there is a workaround or maybe I did something wrong ?

See my repo: https://github.com/incyi/metasploitable3/actions/runs/4027872515/jobs/6924112049

Host System

Command Output

qemu: Done copying files from floppy_content

==> qemu: Found port for communicator (SSH, WinRM, etc): 3637. ==> qemu: Looking for available port between 5900 and 6000 on 127.0.0.1 ==> qemu: Starting VM, booting from CD-ROM ==> qemu: Overriding default Qemu arguments with qemuargs template option... ==> qemu: Error launching VM: Qemu failed to start. Please run with PACKER_LOG=1 to get more info. ==> qemu: Deleting output directory... Build 'qemu' errored after 3 minutes 39 seconds: Build was halted.

jmartin-tech commented 1 year ago

This is unlikely to be possible to build in github action as the build process interacts with full virtualization environments and needs resources more complex than actions are really best suited for.

There are also currently a couple issue with builds the first of which is #575 which needs to address that files needed during the build can no longer be obtained during the packer build process. This may be reworked the coming months to restore deployment capabilities.