-
Notifications
You must be signed in to change notification settings - Fork 72
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
Compact disk image size #100
Comments
You can find the disk image in your machine storage path (default: The disk image is a OS X virtual sparsebundle disk, which sadly is not compactable today for filesystems different from HFS+ :-( |
@johanneswuerbach actually I've found a command to compact disk image - |
@zchee @johanneswuerbach any idea why |
https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/hdiutil.1.html There are ideas how to solve that machyve/xhyve#82, but nothing concrete so far. |
@johanneswuerbach thanks for more information about. Do you know if it's to use other distro (i.e. Alpine linux) instead? I'm just looking for a way to setup my dev env with docker but having a image which can not be compacted on SSD is a deal breaker. Basically when I create a new machine it uses around 1GB for root image. After playing with docker (downloading / building images), UPDATE: I've found that there is image size parameter for docker-machine after which it won't take more size from the host. I've tested it with basic |
The sparse disk support patches on my github account work. Currently you cannot shrink the images but at least they are fine grained sparse disks. (Apple uses 8MB chunks, my version uses 4KB chunks). I am currently working on supporting qcow2 because there is already tooling for that format, but it may be a while until that works with enough performance to be usable, |
My rhfs tool allows compacting sparsebundles, without necessarily using HFS+ (though it's optimized for that case):
It would probably be better to implement real support for discard in |
Hi,
I'm sorry if these are stupid questions but I'm new to xhyve (and hyve in general). I decided to try this driver as I wanted to avoid VirtualBox overhead in default boot2docker installation.
How can I localise the disk image used by virtual machine created with
docker-machine create --driver xhyve docker
command? Can I compact the disk space so the vm will returned unused disk space to the host system?The text was updated successfully, but these errors were encountered: