GithubHelp home page GithubHelp logo

sanduhrs / packer-arch Goto Github PK

View Code? Open in Web Editor NEW

This project forked from elasticdog/packer-arch

0.0 2.0 0.0 508 KB

packer.io template for building an Arch Linux base box

License: ISC License

Shell 100.00%

packer-arch's Introduction

Packer Arch

Packer Arch is a bare bones Packer template and installation script that can be used to generate a Vagrant base box for Arch Linux. The template works with both the default VirtualBox provider as well as the VMware provider.

Overview

My goal was to roughly duplicate the attributes from a DigitalOcean Arch Linux droplet:

  • 64-bit
  • 20 GB disk
  • 512 MB memory
  • Only a single /root partition (ext4)
  • No swap
  • Includes the base and base-devel package groups
  • OpenSSH is also installed and enabled on boot

The installation script follows the official installation guide pretty closely, with a few tweaks to ensure functionality within a VM. Beyond that, the only customizations to the machine are related to the vagrant user and the steps recommended for any base box.

Usage

VirtualBox Provider

Assuming that you already have Packer, VirtualBox, and Vagrant installed, you should be good to clone this repo and go:

$ git clone https://github.com/elasticdog/packer-arch.git
$ cd packer-arch/
$ packer build -only=virtualbox-iso arch-template.json

Then you can import the generated box into Vagrant:

$ vagrant box add arch packer_arch_virtualbox.box

VMware Provider

Assuming that you already have Packer, VMware Fusion (or VMware Workstation), and Vagrant with the VMware provider installed, you should be good to clone this repo and go:

$ git clone https://github.com/elasticdog/packer-arch.git
$ cd packer-arch/
$ packer build -only=vmware-iso arch-template.json

Then you can import the generated box into Vagrant:

$ vagrant box add arch packer_arch_vmware.box

Known Issues

VMware Tools

The official VMware Tools do not currently support Arch Linux, and the Open Virtual Machine Tools (open-vm-tools) require extensive patching in order to compile correctly with a Linux 3.11 series kernel. So for the time being, I have not included support for the tools.

No tools means that the shared folder feature will not work, and when you run vagrant up to launch a VM based on the VMware box, you will see the following error message:

The HGFS kernel module was not found on the running virtual machine. This must be installed for shared folders to work properly. Please install the VMware tools within the guest and try again. Note that the VMware tools installation will succeed even if HGFS fails to properly install. Carefully read the output of the VMware tools installation to verify the HGFS kernel modules were installed properly.

Note that this issue does not apply to VirtualBox, as their official guest additions work just fine.

Vagrant Provisioners

The box purposefully does not include Puppet or Chef for automatic Vagrant provisioning. My intention was to duplicate a DigitalOcean VPS and furthermore use the VM for testing Ansible playbooks for configuration management.

License

Packer Arch is provided under the terms of the ISC License.

Copyright ยฉ 2013โ€“2014, Aaron Bull Schaefer.

packer-arch's People

Contributors

aespinosa avatar dbehnke avatar dmpeters avatar elasticdog avatar ido avatar tonyskn avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.