You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 29, 2018. It is now read-only.
The libvirt box for vagrant-openshift require a lot of disk space:
almost 6 GiB for the initial download of the compressed box file
22 GiB for uncompressed qcow2 image in ~/.vagrant.d/boxes
22 GiB for copy of uncompressed qcow2 image in /var/lib/libvirt/images
Why is the libvirt image so large? Is there any way to make the image smaller? My laptop has a 250 GB SSD with 40 GB disk space for the root partition.
I prefer to use libvirt because I'm usually running multiple VMs at the same time. The other VMs are all managed by libvirt. Due to hardware and software restrictions it is not possible to run Virtualbox and libvirt at the same time. tl;dr only one Kernel driver can utilize a CPU's hardware virtualization feature.
The text was updated successfully, but these errors were encountered:
I'm struggling to find the work, but I remember looking into some workflow with qemu-img and/or virt-sysprep to reduce the size of the images. I'm amazed that the image you're seeing is 22GB -- IIRC the ones I was building were ~3GB. Could you post the link to the image and disk usage information for it on your system?
one possible fix(for the maintainer) to create images again:
use qemu img to rewrite the disk file. This removes the sparseness of file from file system view but retails the virtual size in the view of qemu.
qemu-img convert -O qcow2 box.img box2.img
mv box.img box_old.img
mv box2.img box.img
This worked for me.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The libvirt box for vagrant-openshift require a lot of disk space:
~/.vagrant.d/boxes
/var/lib/libvirt/images
Why is the libvirt image so large? Is there any way to make the image smaller? My laptop has a 250 GB SSD with 40 GB disk space for the root partition.
I prefer to use libvirt because I'm usually running multiple VMs at the same time. The other VMs are all managed by libvirt. Due to hardware and software restrictions it is not possible to run Virtualbox and libvirt at the same time. tl;dr only one Kernel driver can utilize a CPU's hardware virtualization feature.
The text was updated successfully, but these errors were encountered: