GithubHelp home page GithubHelp logo

Comments (3)

stevekuznetsov avatar stevekuznetsov commented on June 14, 2024

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.

tiran avatar tiran commented on June 14, 2024
$ 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.

raghavendra-talur avatar raghavendra-talur commented on June 14, 2024

one possible fix(for the maintainer) to create images again:

  1. 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
  2. mv box.img box_old.img
  3. mv box2.img box.img

This worked for me.

from vagrant-openshift.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.