Depending on which virtualisation software you run, qemu/VirtualBox/VMware, etc there are builders for starting from an existing image/disk, qemu, virtualbox-ovf, or vmware-vmx for example. You might need to convert the disk you download into the appropriate format before running packer on it depending on which builder you use.
Packer will create a new copy of the image/disk, not alter the existing. Since building from an existing image can be a bit tricky I suggest that you get familiar with Packer by reading the getting started and then try out some of the builds from https://github.com/chef/bento, which all builds from an ISO. When you have gotten started, if you have any problems just send a email here. But try to provide all the files needed to run your template and example log output. On Fri, 24 Aug 2018 at 04:56, <[email protected]> wrote: > I downloaded a qcow2 centos from the internet and configured the password > using libguestfs. So far did not use packer to do these steps. For my use > case, I will always have an existing qcow2/raw/vmdk (one of the three). I > just want to install some packages inside these. Is it even possible? Like > if the VM disk already exists, packer can still inject stuff inside it? I > am following this ` > https://www.packer.io/intro/getting-started/provision.html` > <https://www.packer.io/intro/getting-started/provision.html> but not sure > from the link if this is possible > > -- > This mailing list is governed under the HashiCorp Community Guidelines - > https://www.hashicorp.com/community-guidelines.html. Behavior in > violation of those guidelines may result in your removal from this mailing > list. > > GitHub Issues: https://github.com/mitchellh/packer/issues > IRC: #packer-tool on Freenode > --- > You received this message because you are subscribed to the Google Groups > "Packer" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/packer-tool/143ae367-2021-4dc5-9cfa-cc5f1c431e3a%40googlegroups.com > <https://groups.google.com/d/msgid/packer-tool/143ae367-2021-4dc5-9cfa-cc5f1c431e3a%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list. GitHub Issues: https://github.com/mitchellh/packer/issues IRC: #packer-tool on Freenode --- You received this message because you are subscribed to the Google Groups "Packer" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/CALz9Rt_ULXCkzfa%3D-iC_XQCR7rCYpgL6EqsXOovGVLg3gBMPRw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
