Changes between Version 8 and Version 9 of how-to/puppet/dev-env
- Timestamp:
- Dec 4, 2012, 2:55:18 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
how-to/puppet/dev-env
v8 v9 19 19 }}} 20 20 21 == Setting up your directory structure ==21 == Setting up your Virtual Machine == 22 22 23 Be sure you have at least 2GB of space available on your disk .23 Be sure you have at least 2GB of space available on your disk and the qemu-kvm package installed. 24 24 25 Here's a sample directory layout: 26 27 * confdir - put the MFPL git repo here (e.g. `git clone gitosis@git.mayfirst.org/mfpl/puppet confdir`) 28 29 * images - download [/special/roach.qcow.gz roach.qcow.gz] into your images directory. Don't gunzip right away! Instead, make a backup copy (so you don't have to re-download it if you mess it up), then gunzip it. [0] 30 {{{ 31 cp roach.qcow.gz roach.qcow.bak.gz; gunzip roach.qcow.gz 32 }}} 33 34 * modules - this is where I git checkout puppet modules from other puppet developers before adding them to our repository. 35 36 == Launching your virtual image == 37 38 Be sure you have the qemu-kvm package installed. 25 The Debian Wiki has [http://wiki.debian.org/QEMU#Installation useful directions for installing Debian on a KVM image]. Or, to get going even faster, you can [http://people.debian.org/~aurel32/qemu/ download pre-build Debian stable images]. 39 26 40 27 You can start your virtual image with: … … 92 79 93 80 94 === Using a copy-on-write image === 95 Alternately, one can create a copy-on-write image to save only the changes made when working with a "base" image. The syntax is: 96 {{{ 97 qemu-img create -b <path to base image> -f <image format> <path to copy-on-write image> 98 }}} 99 For the roach image, this would be: 100 {{{ 101 qemu-img create -b images/roach.qcow -f qcow2 images/roach-changes.qcow2 102 }}} 103 Then one would use "images/roach-changes.qcow2" as the value of the -hda parameter when starting the virtual image. 81