GithubHelp home page GithubHelp logo

docker-vbox-img's Introduction

vbox-img Docker image

A Docker image that allows using vbox-img to convert virtual disk images.

No VirtualBox, VMWare, qemu-img, or vmdk-tool required.

With this image you can convert vmdk, vdi, vhd, and raw images from and to.

The goal of making this image was to enable the use case of converting a .ova file containing a monolithicSparse .vmdk file into an .ova file containing a streamOptimized .vmdk file.

Build

$ docker build -t vbox-img .

Or fetch:

$ docker pull djui/vbox-img

Usage

Convert monolithicSparse VMDK into streamOptimized VMDK

$ docker run --rm -i \
    -v $PWD/coreos_production_vmware_image.vmdk:/tmp/coreos_production_vmware_image.vmdk \
    vbox-img convert \
        --srcfilename /tmp/coreos_production_vmware_image.vmdk \
        --stdout \
        --dstformat VMDK \
        --variant Stream \
    > coreos_production_vmware_image_stream.vmdk
Converting image "/tmp/coreos_production_vmware_image.vmdk" with size 9116319744 bytes (8694MB)...

Default Usage

$ docker run --rm -it -v my_image.vmdk:/tmp/my_image.vmdk vbox-img
Oracle VM VirtualBox Disk Utility 5.0.10
(C) 2005-2015 Oracle Corporation
All rights reserved.

Usage: vbox-img
   setuuid      --filename <filename>
                [--format VDI|VMDK|VHD|...]
                [--uuid <uuid>]
                [--parentuuid <uuid>]
                [--zeroparentuuid]

   geometry     --filename <filename>
                [--format VDI|VMDK|VHD|...]
                [--clearchs]
                [--cylinders <number>]
                [--heads <number>]
                [--sectors <number>]

   convert      --srcfilename <filename>
                --dstfilename <filename>
                [--stdin]|[--stdout]
                [--srcformat VDI|VMDK|VHD|RAW|..]
                [--dstformat VDI|VMDK|VHD|RAW|..]
                [--variant Standard,Fixed,Split2G,Stream,ESX]

   info         --filename <filename>

   compact      --filename <filename>
                [--filesystemaware]

   createcache  --filename <filename>
                --size <cache size>

   createbase   --filename <filename>
                --size <size in bytes>
                [--format VDI|VMDK|VHD] (default: VDI)
                [--variant Standard,Fixed,Split2G,Stream,ESX]
                [--dataalignment <alignment in bytes>]

   repair       --filename <filename>
                [--dry-run]
                [--format VDI|VMDK|VHD] (default: autodetect)

   clearcomment --filename <filename>

   resize       --filename <filename>
                --size <new size>

docker-vbox-img's People

Contributors

djui avatar

Watchers

James Cloos avatar The Website Nursery avatar

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.