Open Roxyrob opened 4 years ago
Hi again! This is odd -- we do have code to clean up the floppies, and if you set the env var PACKER_LOG=1
I would expect you to see the logline "Error unregistering floppy:" followed by the error message being bubbled up from Virtualbox.
Hi @SwampDragons, you're right for virtualbox-iso, I'm wrong as in a new build keep_registered indeed removed iso and floppy:
but virtualbox-vm, starting from "attach_snapshot": "base", seems to remove floppy in the log, but floppy is here in "target_snapshot", used as base for the next build steps. Also vm in current state was with floppy ejected but has floppy controller:
Overview of the Issue
virtualbox-iso
andvirtualbox-vm
do not remove floppy drive and/or temporary floppy image on thekeep_registered
This mostly is an issue using these vm/snapshot as starting point (e.g. attach_snapshot) for subsequent templates.
Below an example of VirtualBox Storage definition for a vm after packer
keep_registered
invirtualbox-iso
orvirtualbox-vm
Reproduction Steps
Packer version
Simplified Packer Buildfile
### virtualbox-iso
### virtualbox-vm
Operating system and Environment details
Linux CentOS7 kernel 3.10.0-1062.12.1.el7 arch x86_64
Log Fragments and crash.log files
No issue visible in the log since the build works well (apart from VirtualBox vm/snapshot Storage having Floppy Drive and attached inaccessible image).