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

Hyper-v: "hv_balloon: Memory hot add failed" #1403

Closed
jon-walton opened this issue Apr 24, 2017 · 5 comments
Closed

Hyper-v: "hv_balloon: Memory hot add failed" #1403

jon-walton opened this issue Apr 24, 2017 · 5 comments
Labels
co/hyperv HyperV related issues lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. os/windows

Comments

@jon-walton
Copy link

jon-walton commented Apr 24, 2017

Is this a BUG REPORT or FEATURE REQUEST? (choose one): Bug Report

Minikube version (use minikube version): 0.18

Environment:

  • OS (e.g. from /etc/os-release): Windows 10 Pro build 15063.138
  • VM Driver (e.g. cat ~/.minikube/machines/minikube/config.json | grep DriverName): hyperv
  • ISO version (e.g. cat ~/.minikube/machines/minikube/config.json | grep -i ISO or minikube ssh cat /etc/VERSION): 0.18.0 (also tested on 1.0.7)
  • Install tools:
  • Others:

What happened: The hyperv virtual machine is created with memory ballooning enabled. As I add more pods to kubernetes, I expected the host OS to assign more memory to the VM. Instead, the message "hv_balloon: Memory hot add failed" is printed to the vm console. Eventually my pods / kubernetes services are killed by the OOM killer

What you expected to happen: As memory pressure increases inside the VM, I expect memory ballooning to give the VM more memory.

How to reproduce it (as minimally and precisely as possible):

  • Enable HyperV on a Windows 10 Pro build
  • Create a new external hyperv switch (call it minikube for this example)
  • minikube start --vm-driver hyperv --hyperv-virtual-switch minikube
  • deploy lots of kubernetes pods
  • monitor the vm console for "hv_balloon: Memory hot add failed", monitor the hyperv console and see the memory demand increase, memory status change to "warning" but assigned memory not increasing

Anything else do we need to know:

@r2d4 r2d4 added co/hyperv HyperV related issues os/windows labels Apr 24, 2017
@dlorenc
Copy link
Contributor

dlorenc commented Apr 24, 2017

It looks like hot add is not currently supported on Linux:
http://lxr.free-electrons.com/source/drivers/hv/hv_balloon.c#L347

Have you seen this work elsewhere?

@jon-walton
Copy link
Author

It's worked on Ubuntu since 14.04 (https://docs.microsoft.com/en-us/windows-server/virtualization/hyper-v/supported-ubuntu-virtual-machines-on-hyper-v) and centos 7. I guess the functionality is provided by additional packages?

@fejta-bot
Copy link

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Feb 26, 2018
@fejta-bot
Copy link

Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/lifecycle rotten
/remove-lifecycle stale

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Mar 28, 2018
@fejta-bot
Copy link

Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen.
Mark the issue as fresh with /remove-lifecycle rotten.

Send feedback to sig-testing, kubernetes/test-infra and/or fejta.
/close

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
co/hyperv HyperV related issues lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. os/windows
Projects
None yet
Development

No branches or pull requests

5 participants