Skip to content

Commit

Permalink
Work in progress support for openvswitch
Browse files Browse the repository at this point in the history
It's blocked by:
#24
  • Loading branch information
julien-duponchelle committed Oct 9, 2015
1 parent edbf138 commit c10e4e8
Show file tree
Hide file tree
Showing 5 changed files with 76 additions and 2 deletions.
9 changes: 9 additions & 0 deletions packer/tinycore-linux/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@ The only added packages are:
packer build core-linux.json
Openvswitch
''''''''''''

A build of Core with Openvswitch preinstalled.

.. code:: bash
packer build -var-file=openvswitch.json core64-linux.json
Tiny Core Linux installation
Expand Down
5 changes: 3 additions & 2 deletions packer/tinycore-linux/core-linux.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"tc_iso_url": "http://distro.ibiblio.org/tinycorelinux/6.x/x86/release/Core-6.4.iso",
"tc_iso_checksum": "c8e04e26de234e5528e6eac8ecb1bdda",
"vm_name": "linux-microcore-linux-6.4.img",
"setup_script": "core.sh"
"setup_script": "core.sh",
"disk_size": "1000"
},
"builders": [
{
Expand All @@ -19,7 +20,7 @@
"accelerator": "none",
"vm_name": "{{user `vm_name`}}",
"disk_interface": "ide",
"disk_size": 1000,
"disk_size": "{{user `disk_size`}}",
"net_device": "e1000",
"http_directory": "http",
"boot_wait": "5s",
Expand Down
58 changes: 58 additions & 0 deletions packer/tinycore-linux/core64-linux.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"variables": {
"tc_iso_url": "http://distro.ibiblio.org/tinycorelinux/6.x/x86_64/release/CorePure64-6.4.iso",
"tc_iso_checksum": "acaa6726d0f7eb7184c193cfc5cbcb6b",
"vm_name": "linux-microcore-linux-6.4.img",
"setup_script": "core.sh",
"disk_size": "1000"
},
"builders": [
{
"type": "qemu",
"iso_url": "{{user `tc_iso_url`}}",
"iso_checksum": "{{user `tc_iso_checksum`}}",
"iso_checksum_type": "md5",
"shutdown_command": "sudo poweroff",
"format": "qcow2",
"headless": false,
"ssh_username": "gns3",
"ssh_password": "gns3",
"accelerator": "none",
"vm_name": "{{user `vm_name`}}",
"disk_interface": "ide",
"disk_size": "{{user `disk_size`}}",
"net_device": "e1000",
"http_directory": "http",
"boot_wait": "5s",
"boot_command": [
"corepure64 user=gns3<enter><wait10><wait10><wait10><wait10><wait10><wait10>",
"sudo passwd gns3<enter><wait>gns3<enter>gns3<enter>",
"tce-load -wi openssh<enter><wait10>",
"cd /usr/local/etc/ssh; [ -f sshd_config_example ] && sudo cp -a sshd_config_example sshd_config; cd<enter>",
"sudo /usr/local/etc/init.d/openssh start<enter>"
]
}
],
"provisioners": [
{
"type": "shell",
"script": "scripts/hd-install.sh"
},
{
"type": "shell",
"script": "scripts/serial.sh"
},
{
"type": "shell",
"script": "scripts/packages.sh"
},
{
"type": "shell",
"script": "scripts/{{user `setup_script`}}"
},
{
"type": "shell",
"script": "scripts/post_setup.sh"
}
]
}
5 changes: 5 additions & 0 deletions packer/tinycore-linux/openvswitch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"vm_name": "openvswitch-3.16.6-tinycore64.img",
"setup_script": "openvswitch.sh",
"disk_size": "500"
}
1 change: 1 addition & 0 deletions packer/tinycore-linux/scripts/openvswitch.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
tce-load -wi openvswitch-3.16.6-tinycore64

0 comments on commit c10e4e8

Please sign in to comment.