Skip to content

Command for cloning an existing instance #3658

Closed
@AkihiroSuda

Description

@AkihiroSuda

Description

CLI syntax

  • Option 1: limactl clone <OLDINST> <NEWINST>
  • Option 2: limactl create --name=<NEWINST> copy://<OLDINST>

I'm inclined to the latter one, but the copy:// prefix needs a bikeshedding.

Implementation

It seems to just work fine by copying the instance directory.
On APFS, clonefile(2) can be attempted by using https://pkg.go.dev/github.com/containerd/[email protected]/fs#CopyDir

Maybe vz-identifier file should be removed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/clilimactl CLI user experienceenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions