Skip to content

Starting a VM with the same handle as an existing VM deletes the existing VMs files #141

@twstokes

Description

@twstokes

Tested in 0.51.0. Starting a new VM with the handle of an existing VM will delete the existing VMs files. The existing VM will continue to run.

➜  hostmgr_shortcuts hostmgr vm start xcode-16.2-macos-14.7.1-v1 --handle cat
Starting VM with handle: cat
Booted xcode-16.2-macos-14.7.1-v1 in 8 seconds
VM SSH IP Address: 192.168.64.14
➜  hostmgr_shortcuts hostmgr vm start xcode-16.2-macos-14.7.1-v1 --handle cat
Starting VM with handle: cat
“xcode-16.2-macos-14.7.1-v1.vmtemplate” couldn’t be copied to “working-vm-images” because an item with the same name already exists.

I expected to see 💻 Local | cat | 🟢 Running | 120.03 GB at the top.

➜  hostmgr git:(0.51.0) hostmgr vm list --location local
Location | Filename                   | State       |      Size
-------- | -------------------------- | ----------- | ---------
💻 Local | macos-15.2                 | 💾 Ready    | 120.03 GB
💻 Local | xcode-16.2-macos-14.7.1-v1 | 💾 Ready    | 120.03 GB
💻 Local | macos-15.2                 | 📦 Packaged |  17.47 GB
💻 Local | xcode-16.2-macos-14.7.1-v1 | 📦 Packaged |  50.33 GB

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghostmgr

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions