hashicorp / packer-plugin-qemu

Packer plugin for QEMU Builder
https://www.packer.io/docs/builders/qemu
Mozilla Public License 2.0
58 stars 43 forks source link

new communicator types 'qemu', 'vmware' #8

Open ghost opened 3 years ago

ghost commented 3 years ago

This issue was originally opened by @shantanugadgil as hashicorp/packer#8765. It was migrated here as a result of the Packer plugin split. The original body of the issue is below.


Feature Description

I would like to request new communicator types, besides the ssh and winrm. For QEMU types of virtualization (Proxmox), it could be named "qemu" and for VMware ESXi types it could be named "vmware"

Use Case(s)

The use case is to be able to copy files into the guest VM even if the guest doesn't have SSH (or WinRM) enabled.

The way I see that can be done is that first packer copies the file onto the virtualization host and then into the guest VM using the capabilities of the virtualization software.

Of course, the QEMU Guest Agent (or VMware Tools) must be installed inside the guest VM.

NOTE: for RHEL/CentOS guests, the file operations should be enabled in the guest VM in the qemu-guest-agent config file /etc/sysconfig/qemu-ga (set the option BLACKLIST_RPC blank)

For vmtools, I haven't experimented, but I think this is always ON (? I am not sure)

This could also be possibly expanded for remote execution inside the guest VM.

jboero commented 1 year ago

I know this is pretty old but I have often thought about this one too. I may take a crack at building it myself. Should be fairly simple as we already do the boot command.