Changes between Version 8 and Version 9 of how-to/puppet/dev-env


Ignore:
Timestamp:
Dec 4, 2012, 9:55:18 AM (7 years ago)
Author:
Jamie McClelland
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • how-to/puppet/dev-env

    v8 v9  
    1919}}}
    2020
    21 == Setting up your directory structure ==
     21== Setting up your Virtual Machine ==
    2222
    23 Be sure you have at least 2GB of space available on your disk.
     23Be sure you have at least 2GB of space available on your disk and the qemu-kvm package installed.
    2424
    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.
     25The 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].
    3926
    4027You can start your virtual image with:
     
    9279
    9380
    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