diff --git a/builder/proxmox/common/config.go b/builder/proxmox/common/config.go index f27829ed..c22fcca1 100644 --- a/builder/proxmox/common/config.go +++ b/builder/proxmox/common/config.go @@ -140,6 +140,10 @@ func (c *Config) Prepare(upper interface{}, raws ...interface{}) ([]string, []st var errs *packersdk.MultiError var warnings []string + if c.Ctx.BuildType == "proxmox" { + warnings = append(warnings, "proxmox is deprecated, please use proxmox-iso instead") + } + // Default qemu_agent to true if c.Agent != config.TriFalse { c.Agent = config.TriTrue diff --git a/main.go b/main.go index 087e4424..7452cff9 100644 --- a/main.go +++ b/main.go @@ -16,6 +16,9 @@ import ( func main() { pps := plugin.NewSet() + // When the builder was split, the alias "proxmox" was added to Packer for the iso builder. + // Registering 'plugin.DEFAULT_NAME' does the same for the external plugin. + pps.RegisterBuilder(plugin.DEFAULT_NAME, new(proxmoxiso.Builder)) pps.RegisterBuilder("iso", new(proxmoxiso.Builder)) pps.RegisterBuilder("clone", new(proxmoxclone.Builder)) pps.SetVersion(version.PluginVersion)