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

Various Fixes for Actions Taken on VMs #194

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

jacdavi
Copy link
Contributor

@jacdavi jacdavi commented Aug 30, 2024

Fixes a few bugs with the actions you can take on a booted VM

  1. Fixes an error showing in UI after successful memory snapshot
  2. Fixes miniccc not working in a VM after restoring a snapshot
  • This was caused by phenix not copying over the VM's UUID when creating the new VM with the snapshot disk. This resulted in the snapshot using the old UUID on the client, while the server expected a new value
  1. Changes file mount for a VM to return available files along with any error
  • Previously we returned early if os.Readdir returned an error, but it returns the files read up until the error as well. This change returns those files. This fixes an issue in some directories (such as/etc on an Ubuntu host) being empty. Results should now be equivalent of mounting and running ls on command line
  1. Removes reliance on ps for determining minimega's path
  • This requires the latest version of minimega where I added a new args command
  1. Fix a few other web console errors

@activeshadow activeshadow self-requested a review August 31, 2024 15:51
@activeshadow
Copy link
Collaborator

Hey @jacdavi this sounds great! I'm glad you were able to figure out the miniccc snapshot issue. I've been trying to find time to look into that.

I'll do my best (I know I say this a lot 😂) to get this and your other PRs reviewed and merged within the next week or so. I know you're already using them but they would for sure benefit the larger user base as well.

Thanks again!

@activeshadow
Copy link
Collaborator

@jacdavi I've rebased this onto the latest main branch. I'll try to do some testing ASAP and get it merged in before main gets too far ahead again... 😂

change to maintain uuid after restore
When Readdir returns an error, it may still have a list of files read up until that point.
Previously we returned early if there was an error, rather than returning those files.
This was prevalent when looking in certain directories such as "/etc" of an Ubuntu desktop.
Output should not match results of "ls -la" in mounted directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants