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

address hard coded max size of hyper-v machine disk #105

Closed
whyzdev opened this issue Sep 27, 2016 · 8 comments
Closed

address hard coded max size of hyper-v machine disk #105

whyzdev opened this issue Sep 27, 2016 · 8 comments

Comments

@whyzdev
Copy link

whyzdev commented Sep 27, 2016

Expected behavior

  • The max size of MobyLinux.vhdx is expected to be configurable during installation and reset.
  • User may want to grow/shrink the vhdx and docker host partition in Docker settings, on best possible effort basis.

Actual behavior

Currently the max size of MobyLinux.vhdx is hard coded to 60GB in MobyLinux.ps1. As workaround, user may change MobyLinux.ps1 the size and reset in Docker settings for the change to take effect after re-initialization. (Other possible workaround without losing data may involve using powershell to resize the vhdx, and then somehow rooting into the host OS (Alpine?) and resize the partition.)

Information

e.g. Windows 10

Steps to reproduce the behavior

See the actual behavior above.

Thanks!

@rn
Copy link
Contributor

rn commented Sep 27, 2016

Hi @whyzdev thanks for your suggestion. This is one of the features on our roadmap, but we don't have an ETA for it yet.

The VHDX is dynamically sized, so it only grows when in use. There is a potential way to shrink it once files are deleted, but we haven't implemented/tested it yet.

/cc @dgageot

@whyzdev
Copy link
Author

whyzdev commented Sep 29, 2016

yep, dynamical growth of vhdx and vm partition currently works till the preset maximum size is reached. When vhdx is manually resized larger, the vm partition also need manual resize.

@Renkas
Copy link

Renkas commented Oct 31, 2017

any update on this? How to increase the Hyper-V image size (and partition in it)?

@ghost
Copy link

ghost commented Nov 10, 2017

Why this param so dirty ? May be put it into settings ?

image

@pgayvallet
Copy link

Available on latest edge, should be shipped in 18.03 stable.

@jonathanperret
Copy link

Unfortunately, the max size is limited to 256GB. As surprising as this may seem, I'm currently working on a scenario where I'd like to devote most of a 512GB SSD to Docker for Windows. And this is not a production workload, just a developer machine so I feel this should be within the scope of the product.

May I respectfully suggest that this slider should allow choosing a disk size as large as the host disk? The VHDX format apparently supports disks up to 64 TB so this should not be an issue.

Fortunately, directly resizing the VHDX in Hyper-V manager (while the VM is shut down) lets one work around the issue, since the VM seems to happily extend its filesystem to the new size upon boot.

Unfortunately, if you do this (resize the disk past 256GB) the Advanced settings panel becomes unusable because everytime you click Apply, it thinks you have reduced the disk size and wants to destroy the disk. I needed to change the RAM allocation and ended up hand-editing %USERPROFILE%\AppData\Roaming\Docker\settings.json.

@jasonbivins
Copy link

@jonathanperret Can you please submit your request as a new issue ?

image

@docker-robott
Copy link
Collaborator

Closed issues are locked after 30 days of inactivity.
This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows.
/lifecycle locked

@docker docker locked and limited conversation to collaborators Jun 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants