summaryrefslogblamecommitdiffstats
path: root/README.md
blob: 295e3b05378862a450affcce52b2deba5aa27331 (plain) (tree)
1
2
3
4
5
6
7
8
9

                              






                                                                 
        
 



                                                                                  

            
        
                                                                     

                                                                             

                              
 

                                                              
                                                                           
   
      
        

                                                                                          
   
                                                            
                                                         




















                                                                                    
        


                                                                                           

                                                                   






                                                                          
                                                                     
                                                                          










                                                                             
 


                                                                                
        
                                                                        

                                                                   
 





                                                                                    
                                                                                  
        
                                                                 
   


















                                                                                                                                                                  

Packer templates for OpenSLX

Packer-based generation of reference systems using distro's ISOs.

Dependencies

Packer => 0.12.2 Download: https://www.packer.io/downloads.html

Usage

The file 'base.json' contains default variables (VM, SSH) common to all templates, and must always be included using packer's '-var-file' option. The root password is expected to be in the ROOTPW environment variable. The installation procedure will fail without it!

Basic usage:

    ROOTPW=<password> packer build -var-file=base.json <template>

For the rest of the examples, ROOTPW is assumed to be set in the environment.

Usage: Creating base images

Example - Build Ubuntu 16.04.2 LTS template using qemu builder

    packer build -var-file=base.json -only=qemu ubuntu-16.04-amd64.json

Debug:

    PACKER_LOG=1 PACKER_LOG_FILE=/var/log/packer.log \
        packer build -debug -only=qemu -var-file=base.json ubuntu-16.04-amd64.json

A successful build process would produce a disk image under: /