Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show VM status in Tart list #300

Closed
tomjn opened this issue Nov 4, 2022 · 6 comments
Closed

Show VM status in Tart list #300

tomjn opened this issue Nov 4, 2022 · 6 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@tomjn
Copy link

tomjn commented Nov 4, 2022

Tart list currently displays the source and name for VMs but it doesn't indicate if the VM is currently running or not, or if the VM has been created.

For example, if I run this commands:

# Create a bare VM
tart create --linux ubuntu

But leave out the last command, I have a bare VM that has not been run, tart list should show this.

It might also be that a tart status command would be more appropriate for this, if so tart status and tart status ubuntu would be very helpful commands to have

@tomjn tomjn changed the title Show VM stat in Tart list Show VM status in Tart list Nov 4, 2022
@fkorotkov fkorotkov added the enhancement New feature or request label Nov 6, 2022
@fkorotkov
Copy link
Contributor

I guess we might be able to see if some VM files are locked to kind of figure out if a VM is running similar to

if error.localizedDescription.contains("Failed to lock auxiliary storage.") {
. @edigaryev what do you think?

@fkorotkov fkorotkov added the good first issue Good for newcomers label Nov 6, 2022
@tomjn
Copy link
Author

tomjn commented Nov 6, 2022

I spotted that, I didn't think it would be relevant though given it only runs in a VNC check, and vagrant environments are normally headless, so a more universal solution seemed appropriate

@tomjn
Copy link
Author

tomjn commented Nov 8, 2022

Of note it would be helpful to know the following states:

  • not created
  • being created ( e.g. when images are being copied etc to start up the VM for the first time )
  • running
  • not running/stopped
  • error

It might make sense to note this down in a file alongside the VM

@fkorotkov
Copy link
Contributor

Will having just running/stopped be sophisticated for the first iteration?

Just running/stopped seems doable with minimum changes to Tart. IMO the goal should be to make as less changes to Tart as possible for the first PoC for the plugin. If everything will work and the Vagrant integration will thrive in popularity, then we can work on improving the integration with more complex changes.

@tomjn
Copy link
Author

tomjn commented Nov 8, 2022 via email

@fkorotkov
Copy link
Contributor

tart get <VM NAME> is now showing whether a VM is running or not. 👌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants