mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Fix partition sizes to allow the building of systemvmtemplate, and fix ambiguous redirect fix.
83 lines
2.4 KiB
JSON
83 lines
2.4 KiB
JSON
{
|
|
"_license": "Apache License 2.0",
|
|
"description": "CloudStack SystemVM template",
|
|
"provisioners": [
|
|
{
|
|
"type": "shell",
|
|
"execute_command": "echo 'cloud'|sudo -S bash '{{.Path}}'",
|
|
"scripts": [
|
|
"scripts/apt_upgrade.sh",
|
|
"scripts/configure_grub.sh",
|
|
"scripts/configure_locale.sh",
|
|
"scripts/configure_networking.sh",
|
|
"scripts/configure_acpid.sh",
|
|
"scripts/install_systemvm_packages.sh",
|
|
"scripts/configure_conntrack.sh",
|
|
"../cloud_scripts_shar_archive.sh",
|
|
"scripts/configure_systemvm_services.sh",
|
|
"scripts/authorized_keys.sh",
|
|
"scripts/configure_persistent_config.sh",
|
|
"scripts/configure_login.sh",
|
|
"scripts/cleanup.sh",
|
|
"scripts/finalize.sh"
|
|
]
|
|
}
|
|
],
|
|
"builders": [
|
|
{
|
|
"type": "qemu",
|
|
"accelerator": "kvm",
|
|
"headless": true,
|
|
"qemuargs": [
|
|
[ "-m", "512M" ],
|
|
[ "-smp", "cpus=1,maxcpus=1,cores=1" ]
|
|
],
|
|
"disk_size": 2000,
|
|
"format": "qcow2",
|
|
|
|
"disk_interface": "virtio",
|
|
"net_device": "virtio-net",
|
|
|
|
"iso_url": "https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-9.5.0-amd64-netinst.iso",
|
|
"iso_checksum": "efe75000c066506326c74a97257163b3050d656a5be8708a6826b0f810208d0a58f413c446de09919c580de8fac6d0a47774534725dd9fdd00c94859e370f373",
|
|
"iso_checksum_type": "sha512",
|
|
|
|
"vm_name": "systemvmtemplate",
|
|
"output_directory": "../dist",
|
|
|
|
"http_directory": "http",
|
|
"http_port_min": 10082,
|
|
"http_port_max": 10089,
|
|
|
|
"ssh_host_port_min": 2222,
|
|
"ssh_host_port_max": 2229,
|
|
|
|
"ssh_username": "cloud",
|
|
"ssh_password": "cloud",
|
|
"ssh_port": 22,
|
|
"ssh_wait_timeout": "30m",
|
|
|
|
"boot_wait": "10s",
|
|
"boot_command": [
|
|
"<esc><wait>",
|
|
"install <wait>",
|
|
" preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg <wait>",
|
|
" debian-installer=en_US <wait>",
|
|
" auto <wait>",
|
|
" locale=en_US <wait>",
|
|
" kbd-chooser/method=us <wait>",
|
|
" netcfg/get_hostname=systemvm <wait>",
|
|
" netcfg/get_domain=apache.org <wait>",
|
|
" fb=false <wait>",
|
|
" debconf/frontend=noninteractive <wait>",
|
|
" console-setup/ask_detect=false <wait>",
|
|
" console-keymaps-at/keymap=us <wait>",
|
|
" keyboard-configuration/xkb-keymap=us <wait>",
|
|
"<enter><wait>"
|
|
],
|
|
|
|
"shutdown_command": "sudo halt -p"
|
|
}
|
|
]
|
|
}
|