Changes between Version 3 and Version 4 of Documentation


Ignore:
Timestamp:
Jun 27, 2012, 1:40:32 PM (12 years ago)
Author:
Bruno Cornec
Comment:

Document VM setup

Legend:

Unmodified
Added
Removed
Modified
  • Documentation

    v3 v4  
    1313== Dealing with Virtual Machines and Virtual Environments ==
    1414
     15=== Virtual Machines ===
     16
     17In order to use a new VM (Virtual Machine) with pb, you have to follow a 3-step approach:
     181. Create an appropriate VM using pb (or not if you prefer to create it outside with your preferred tools)
     19{{{
     20pb -m os-ver-arch -i /path/to/os.ver.arch.iso newver
     21}}}
     22where you pass to the pb command the ISO image of your distribution media. If you prefer to deploy using PXE e.g. you have to use instead the qemu command directly.
     23At the end of the installation, pb makes recommendations on what minimum packages have to be present (sshd and sudo e.g.) and their minimal setup. Something that has to be done manually, at worst, before being able to launch the second phase.
     242. Set up the VM so it gets all what is needed to run pb in it:
     25{{{
     26pb -m os-ver-arch setupvm
     27}}}
     28This step will install pb inside your VM, create a dedicated account for building packages, exchange dedicated ssh keys from your own account, and setup sudo rights so the build can be made non-interactively. The first time ou call that command, it will ask you the root passwd of the VM, in order to setup up auhtentication.
     29Each time you want to re-align pb versiosn between your host and the guest, you'll have to re-run that command. The root passwd won't be asked this time, so it can be automated easily. (If you don't precise a specific VM to work on, all the the one declared in your configuration file will be updated).
     30
     313. Finally you're able to use your VM to build your software packages:
     32{{{
     33pb -m os-ver-arch sbx2vm
     34}}}
     35Note that you can specify multiple VMs separated by ','.
     36
    1537= Non upstream usage of  Project-Builder.org =
    1638