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

Bug: Unpaused vms cause migration issues #1445

Open
mkunz7 opened this issue Feb 16, 2021 · 1 comment
Open

Bug: Unpaused vms cause migration issues #1445

mkunz7 opened this issue Feb 16, 2021 · 1 comment

Comments

@mkunz7
Copy link
Contributor

mkunz7 commented Feb 16, 2021

Describe your environment

  1. minimega version - latest
  2. Linux distro/version - ubuntu 20.04
  3. Go compiler version - 1.12.5
  4. VM types - kvm

Describe the bug
if you don't pause a vm with vm stop before you create a migration file with vm migrate, vm migrate will never finish and show completion statuses >100%. I stopped mine at 300%.

To Reproduce
Tested with a windows 10 image.

clear vm config
vm config memory 4096
vm config disk /root/windows.qcow2
vm config experiment,main
vm launch kvm windows
vm start windows
vm migrate windows /root/windows.state
vm migrate
vm migrate
vm migrate

vs

clear vm config
vm config memory 4096
vm config disk /root/windows.qcow2
vm config experiment,main
vm launch kvm windows
vm start windows
vm stop windows
vm migrate windows /root/windows.state
vm migrate

Expected behavior
vm migrate should either warn the vm is not stopped or stop it for you

@glattercj
Copy link
Contributor

@mkunz7 I'm not sure the VM being stopped is the root cause. According to the migrate src minimega sets the VM to pause before calling Migrate. I have also seen this behavior on a Windows 10 VM (up to >22,000% complete), but it's a very specific base image that always fails that way. There are other Windows 10 VMs that migrate just fine. Maybe @aherna can look into it.

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

No branches or pull requests

2 participants