tomjn / vagrant-tart-ruby

Tart provider for vagrant using Ruby API
MIT License
16 stars 1 forks source link

VM creation script #8

Open tomjn opened 1 year ago

tomjn commented 1 year ago

To do this we'd need to run the tart import command and give it the vagrant box file. Currently tart doesn't have this command at the time of writing but it was added in https://github.com/cirruslabs/tart/pull/386 and should be released soon.

Previously, the plan was to copy the VM from inside the box file into Tarts VM folders with the vagrant ID and a prefix, then use tart run to start it. I've successfully cloned Tart VMs manually this way. There's also tart clone which can duplicate VMs, but this runs the risk of users manually starting box VMs and modifying them, then all subsequent VMs being broken or changed.

tomjn commented 1 year ago

Similar to the Hyper-V scripts, the shellscript should get called with the VM's intended ID as decided by vagrant as the parameter