Skip to content

snoozesoftware/snooze-packer

Repository files navigation

snooze-packer

Templates for creating Snooze virtual machines base images (as well as Grid'5000 compatible virtual machines base images).

Usage

git clone https://github.com/snoozesoftware/snooze-packer
cd snooze-packer
packer build <template name>

Templates

All the templates generate a virtual machine image with :

  • login : snooze (in the sudoers)
  • passwd : snooze
  • sshd allow password connections.
  • hadoop 1.2.1 preinstalled (in the hadoop user home)
  • network contextualization (see below)

Network contextualization

Ref : https://www.grid5000.fr/mediawiki/index.php/Virtual_machines_on_the_production_environment#Use_contextualization_to_configure_your_VMs

It works like the following :

  • Test for the presence of a CD in the CD drive of the VM
  • if it exists, mount the CD, test the presence of a script post-install, and run it as root
  • if not use default parameters.

Get the iso context files from here : https://github.com/snoozesoftware/snooze-context

Grid'5000

The virtual machines can be used inside Grid'5000. Make sure to give the mac address corresponding to an ip of your reserved subnet. The mac address will be translated into ip during the contextualization process.

For instance :

msimonin@fgrenoble:~$ g5k-subnets -im 
10.132.8.1	00:16:3E:84:08:01
10.132.8.2	00:16:3E:84:08:02
10.132.8.3	00:16:3E:84:08:03
[...]

In the libvirt template :

    <interface type='bridge/ethernet...'>
      <mac address='00:16:3E:84:08:02'/>

Or in the kvm arguments :

-net nic,model=virtio,macaddr=00:16:3E:84:08:02

Requirements

packer is required to generate the templates : http://www.packer.io/

About

templates for creating Snooze virtual machines base images

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages