Including more than one of either iso_urls or iso_paths for a build seems to permanently add an extra CD-rom drive to a virtual machine.
It would be nice if it were possible to revert to having only a single CD-rom just prior to a build finishing up. Rarely does one _want_ more than one CD-rom apart from during a packer build.
I found the remove_cdrom
directive that was merged in #8690.
If one specifies remove_cdrom
as true, it seems that all CD-roms on the VM are removed. I only want the superfluous ones removed and not the default CD-rom that comes when creating a VMware VM.
Any chance one can reorganize remove_cdrom
to support this trinary granularity? Right now it either removes all of them or none at all.
Thanks for opening. I'm not sure when we'll get a chance to look at this, but PRs are welcome if someone from the community wants to work on it.
I suggest that the builder remove all but one CD drive by default. The alternative is to make remove_cdrom into an integer so that it can specify how many cdrom drives should be left.
I suggest that the builder remove all but one CD drive by default.
I think this is a great solution and would love to see it implemented. We typically have 1 cdrom on our template and currently have to remove the extra one that is created.
Most helpful comment
I suggest that the builder remove all but one CD drive by default. The alternative is to make remove_cdrom into an integer so that it can specify how many cdrom drives should be left.