gns3-registry/packer/tinycore-linux/core-linux.json

60 lines
1.9 KiB
JSON
Raw Normal View History

2015-10-06 12:50:43 +00:00
{
2015-10-07 07:33:56 +00:00
"variables": {
2015-11-10 13:09:08 +00:00
"tc_iso_url": "http://distro.ibiblio.org/tinycorelinux/6.x/x86/archive/6.4/Core-6.4.iso",
"tc_iso_checksum": "c8e04e26de234e5528e6eac8ecb1bdda",
"vm_name": "linux-microcore-linux-6.4.img",
"setup_script": "core.sh",
"disk_size": "1000"
2015-10-07 07:33:56 +00:00
},
"builders": [
2015-10-06 12:50:43 +00:00
{
2015-10-07 07:33:56 +00:00
"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`}}",
2015-10-07 07:33:56 +00:00
"disk_interface": "ide",
"disk_size": "{{user `disk_size`}}",
2015-10-07 07:33:56 +00:00
"net_device": "e1000",
"http_directory": "http",
"boot_wait": "5s",
2015-10-07 07:33:56 +00:00
"boot_command": [
2015-10-20 13:29:23 +00:00
"mc user=gns3<enter><wait10><wait10><wait10><wait10><wait10><wait10><wait10>",
"sudo udhcpc<enter>",
2015-10-06 12:50:43 +00:00
"sudo passwd gns3<enter>gns3<enter>gns3<enter>",
"tce-load -wi openssh<enter><wait10>",
2015-10-07 07:33:56 +00:00
"cd /usr/local/etc/ssh; [ -f sshd_config.example ] && sudo cp -a sshd_config.example sshd_config; cd<enter>",
2015-10-06 12:50:43 +00:00
"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`}}"
},
2015-10-06 12:50:43 +00:00
{
"type": "shell",
"script": "scripts/post_setup.sh"
}
]
}