packer-templates

Packer templates for Vagrant base boxes

Github星跟蹤圖

packer-templates

Travis

Packer templates for Vagrant base boxes

Usage

Clone the repository:

$ git clone https://github.com/kaorimatz/packer-templates && cd packer-templates

Build a machine image from the template in the repository:

$ packer build -only=virtualbox-iso archlinux-x86_64.json

Add the built box to Vagrant:

$ vagrant box add archlinux-x86_64 archlinux-x86_64-virtualbox.box

Configuration

You can configure each template to match your requirements by setting the following user variables.

User Variable, Default Value, Description
---------------------, ---------------, ----------------------------------------------------------------------------------------
compression_level, 6, Documentation
cpus, 1, Number of CPUs
disk_size, 40000, Documentation
headless, Documentation
memory, 512, Memory size in MB
mirror, A URL of the mirror where the ISO image is available

Example

Build an uncompressed Arch Linux vagrant box with a 4GB hard disk using the VirtualBox provider:

$ packer build -only=virtualbox-iso -var compression_level=0 -var disk_size=4000 archlinux-x86_64.json

Pre-built Boxes

You can also use the pre-built boxes hosted on Atlas.

$ vagrant box add kaorimatz/archlinux-x86_64

主要指標

概覽
名稱與所有者kaorimatz/packer-templates
主編程語言Shell
編程語言Ruby (語言數: 2)
平台
許可證MIT License
所有者活动
創建於2013-11-18 16:30:43
推送於2020-09-13 08:31:54
最后一次提交2018-06-16 17:11:06
發布數0
用户参与
星數494
關注者數24
派生數244
提交數448
已啟用問題?
問題數15
打開的問題數12
拉請求數18
打開的拉請求數9
關閉的拉請求數10
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?