gns3-registry/packer/tinycore-linux/tinycore-linux.json
2015-10-07 09:33:56 +02:00

52 lines
1.5 KiB
JSON

{
"variables": {
"tc_iso_url": null,
"tc_iso_checksum": null
},
"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": "tinycore-linux",
"disk_interface": "ide",
"disk_size": 50,
"net_device": "e1000",
"http_directory": "http",
"boot_wait": "10s",
"boot_command": [
"mc user=gns3<enter><wait10><wait10><wait10>",
"sudo passwd gns3<enter>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/post_setup.sh"
}
]
}