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

[UI] Ubuntu 20.04 crashes during snapshot false launch #24

Open
activeshadow opened this issue Apr 16, 2021 · 0 comments
Open

[UI] Ubuntu 20.04 crashes during snapshot false launch #24

activeshadow opened this issue Apr 16, 2021 · 0 comments
Labels
needs retesting Needs to be tested again

Comments

@activeshadow
Copy link
Collaborator


Originally created by @eric-c-wood on Thu, 25 Feb 2021 15:29:00 GMT


Describe your environment

minimega version: 2.7
Linux distro/version: Ubuntu 20.04.1 LTS/5.8.0-38-generic
Go compiler version:1.14.2
VM types:kvm
Qemu Version: 4.2.1

Describe the bug

After setting a VM's snapshot flag to false, Phenix will crash when starting the experiment. The qemu instances all get created and the VMs actually start but the running experiment page will fail to load.

To Reproduce
Steps to reproduce the behavior:

  1. Set at least one VM's snapshot flag to false
  2. Start an experiment via the Web UI

Notes
I understand that this issue is almost identical to this closed issue. https://github.com/activeshadow/phenix/issues/20 I was not sure if it was better to create a new issue or simply comment on the old closed issue. The operating system is slightly different from the old issue. If there is a preferred method for future issues, that would be good to know.

From what I can tell, here is why Phenix is crashing.

When the minimega disk info <disk path> command is issued, minimega runs qemu-img info <disk path>. With the way that qemu-img info is being ran, qemu-img returns the following error

Failed to get shared "write" lock

Here is a brief description of the issue https://bugs.launchpad.net/qemu/+bug/1721788

When qemu-img info returns an error, minimega's disk info command returns an error which causes this line to crash https://github.com/activeshadow/phenix/blob/main/src/go/internal/mm/minimega.go#L175

@activeshadow activeshadow added the needs retesting Needs to be tested again label Jul 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs retesting Needs to be tested again
Projects
None yet
Development

No branches or pull requests

1 participant