summaryrefslogblamecommitdiffstats
path: root/README.md
blob: 6c43078efc386deaa1fd50bd897f4eec3c020848 (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 should always be included using packer's '-var-file' option. The root password is expected to be specified as the ROOTPW environment variable!

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

Same with debug output:

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 generate the disk image as '/