Thanks but I should have asked the question more specifically. I did go 
through the initial docs, but in the examples I found that there isn't a 
case where only provision section can exist. From what I understand the 
builders is a must as the doc also says. So what is the best way to achieve 
this
1. I have a raw image that has centos on it.
2. I need to install say docker engine, and maybe few more apps.

The examples that I have seen all seem to say start from ISO. Also, when I 
start from ISO, my packer errors out saying waiting for SSH connection

On Friday, August 24, 2018 at 12:22:56 AM UTC-7, Rickard von Essen wrote:
>
> 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] <javascript:>> 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] <javascript:>.
>> 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/b324223a-bb0b-4688-9d53-50432b3b8442%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to