You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our official boxes and all other boxes created by Packer already contains a plain VM image inside.
But vagrant package command clones VM to template prior to packaging to the box. Actually, there is no any significant reason for this. Templates are the same as "plain" VM images except they could not be configured and started.
However, it causes a problem when we try to create a linked clone from such box - It fails because it's not possible to snapshot a VM template (it is "read-only").
So, I've decided to use only plain VMs inside boxes:
On Import action we should check the VM image type. If it is a template, then convert it to plain VM (it's extremely fast and should be done only once). This helps to keep backward compatibility - all previously created boxes will work fine.
On Export action we should clone VM to the VM, not to template
The text was updated successfully, but these errors were encountered:
Our official boxes and all other boxes created by Packer already contains a plain VM image inside.
But
vagrant package
command clones VM to template prior to packaging to the box. Actually, there is no any significant reason for this. Templates are the same as "plain" VM images except they could not be configured and started.However, it causes a problem when we try to create a linked clone from such box - It fails because it's not possible to snapshot a VM template (it is "read-only").
So, I've decided to use only plain VMs inside boxes:
Import
action we should check the VM image type. If it is a template, then convert it to plain VM (it's extremely fast and should be done only once). This helps to keep backward compatibility - all previously created boxes will work fine.Export
action we should clone VM to the VM, not to templateThe text was updated successfully, but these errors were encountered: