Comments (3)
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?
from vagrant-openshift.
$ vagrant plugin install vagrant-openshift
...
$ vagrant origin-local-checkout -u tiran
...
$ cd $GOPATH/src/github.com/openshift/origin
$ vagrant origin-init --stage inst --os fedora
$ vagrant up --provider=libvirt
Bringing machine 'openshiftdev' up with 'libvirt' provider...
==> openshiftdev: Box 'fedora_inst' could not be found. Attempting to find and install...
openshiftdev: Box Provider: libvirt
openshiftdev: Box Version: >= 0
==> openshiftdev: Box file was not detected as metadata. Adding it directly...
==> openshiftdev: Adding box 'fedora_inst' (v0) for provider: libvirt
openshiftdev: Downloading: https://mirror.openshift.com/pub/vagrant/boxes/openshift3/fedora_libvirt_inst.box
openshiftdev: Progress: 3% (Rate: 6086k/s, Estimated time remaining: 0:15:10)
The vagrant up
command downloads a large compressed file (5.4 G) and extracts a 21.7 GB qcow2 image from it:
$ ls -lah ~/.vagrant.d/tmp/box022b83e2b8674afa1d877a7cdf9d2d109e3ff882
-rw-rw-r--. 1 heimes heimes 5,4G Jun 20 16:49 /home/heimes/.vagrant.d/tmp/box022b83e2b8674afa1d877a7cdf9d2d109e3ff882
$ tar -tzvf /home/heimes/.vagrant.d/tmp/box022b83e2b8674afa1d877a7cdf9d2d109e3ff882
tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.security.selinux'
-rw-rw-r-- dmcphers/dmcphers 57 2016-11-11 00:37 ./metadata.json
tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.security.selinux'
-rw-rw-r-- dmcphers/dmcphers 136 2016-11-11 00:37 ./Vagrantfile
tar: Ignoring unknown extended header keyword 'LIBARCHIVE.xattr.security.selinux'
-rw-r--r-- dmcphers/dmcphers 21666988032 2016-11-11 00:40 ./box.img
Do you need more information?
from vagrant-openshift.
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.
from vagrant-openshift.
Related Issues (20)
- `vagrant sync-origin` fails with stacktrace when no instance is up
- README should suggest `dnf install` for `vagrant-libvirt` HOT 2
- Permissions not correctly set-up for `--provider libvirt`
- Bash completion should be sourced by provisioning
- `vagrant sync-origin` fails when SSH override is busy
- Remove meta-reporting from commands run over SSH HOT 1
- vagrant origin-local-checkout does not support --branch HOT 3
- vagrant sync-origin fails with "cannot allocate memory" HOT 2
- libvirt provider hostname resolution not working HOT 1
- extended tests doesn't handle pipe correctly for focus HOT 1
- Cannot pass environment variables to extended tests HOT 1
- update docker config to do v1 pushes
- Stuck at Configuring and enabling network interfaces HOT 2
- Authentication failure HOT 5
- origin-local-checkout doesn't work with branches HOT 3
- vagrant sync-origin error HOT 2
- build in vagrant failed due to "cannot allocate memory"
- network unreachable HOT 33
- Should this repo really be archived? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vagrant-openshift.