{ "info": { "author": "Damian Zaremba", "author_email": "damian@damianzaremba.co.uk", "bugtrack_url": null, "classifiers": [], "description": "VIBootstrap\n===========\n\nVirtual Image Bootstrapping Tool.\n\nDesigned to build an image from nothing (IE via netboot/kickstart), strip it down and re-package it for different targets.\n\nCreated due to the huge amount of manual work involved in re-packaging images for new versions of things.\n\nExpected setup\n--------------\n\nRequirements:\n\n* Hardware virtualization support\n* 64bit host (if you want to build 64bit images)\n* Standard qemu setup (default NAT'd network)\n\nPackages installed:\n\n* python-libvirt\n* qemu\n* qemu-system\n* qemu-kvm\n* libvirt-bin\n* bridge-utils\n* libguestfs-tools\n\nValidate the install:\n\n damian@Capricorn:~$ virsh -c qemu:///system net-list\n Name State Autostart\n -----------------------------------------\n default active yes \n\nWorkflow\n--------\n\n* virt-install the machine\n* serve up a ks file based off the template\n* run the scripts\n* shutdown the machine\n* virt-prep the machine\n* undefine it\n* save the image\n* run qemu-img convert against the image for all desired formats\n\nExample:\n\n >> cat ubuntu-base.conf\n distro: ubuntu\n release: saucy\n target: server\n arch: x86_64\n source: http://mirror.bytemark.co.uk/%(distro)/dists/%(release)/main/installer-%(arch)/\n\n packages:\n - ubuntu-minimal\n - openssh-server\n - salt-minion\n - puppet\n\n post-scripts:\n - ../scripts/bootup-generic.sh\n\n images:\n - vmdk\n - vdi\n - qcow2\n - raw\n\n >> cat ubuntu-13.10-i386.conf\n include('ubuntu-base.conf')\n release: saucy\n target: server\n arch: i386\n\n >> ls ./ubuntu/\n - bootup-generic.sh\n - ubuntu-base.conf\n - ubuntu-13.10-i386.conf\n - ubuntu-12.10-i386.conf\n \n >> vibootstrap --host=qemu:///system --settings=ubuntu/ubuntu-13.10-i386.conf\n Setting up qemu box\n Installing\n - Progress via callbacks -\n Post scripts\n Shutdown\n Virt prep\n Undefine\n Converting images\n qemu-img convert -O vmdk ubuntu-13.10-i386.raw ubuntu-13.10-i386.vmdk\n qemu-img convert -O vdi ubuntu-13.10-i386.raw ubuntu-13.10-i386.vdi\n qemu-img convert -O qcow2 ubuntu-13.10-i386.raw ubuntu-13.10-i386.qcow2\n qemu-img convert -O raw ubuntu-13.10-i386.raw ubuntu-13.10-i386.raw\n Artifacts:\n - ubuntu-13.10-i386.raw\n - ubuntu-13.10-i386.vmdk\n - ubuntu-13.10-i386.vdi\n - ubuntu-13.10-i386.qcow2", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://packages.python.org/vibootstrap", "keywords": "example documentation tutorial", "license": "WTFPL", "maintainer": null, "maintainer_email": null, "name": "vibootstrap", "package_url": "https://pypi.org/project/vibootstrap/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/vibootstrap/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://packages.python.org/vibootstrap" }, "release_url": "https://pypi.org/project/vibootstrap/0.0.2/", "requires_dist": null, "requires_python": null, "summary": "A simple kickstart based virtual image bootstrapping tool", "version": "0.0.2" }, "last_serial": 992253, "releases": { "0.0.2": [] }, "urls": [] }