From 49f07fbac515dbb64ad7ca136e759ec46a2aa3f7 Mon Sep 17 00:00:00 2001 From: Vyacheslav Kvasnitsky Date: Sat, 11 Apr 2015 01:14:31 +0100 Subject: [PATCH 1/2] Added parallels-iso builder --- template.json | 45 +++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 43 insertions(+), 2 deletions(-) diff --git a/template.json b/template.json index 3bf4279..ab23cf1 100644 --- a/template.json +++ b/template.json @@ -6,6 +6,47 @@ "iso_url": "http://releases.ubuntu.com/14.04/ubuntu-14.04.1-server-amd64.iso" }, "builders": [ + { + "vm_name": "dashbrew-ubuntu-14.04-amd64", + "type": "parallels-iso", + "guest_os_type": "ubuntu", + "headless": true, + "http_directory": "http", + "iso_url": "{{ user `iso_url` }}", + "iso_checksum": "{{ user `iso_checksum` }}", + "iso_checksum_type": "sha1", + "ssh_username": "{{ user `ssh_username` }}", + "ssh_password": "{{ user `ssh_password` }}", + "ssh_wait_timeout": "10000s", + "parallels_tools_flavor": "lin", + "boot_command": [ + "", + "/install/vmlinuz auto", + " console-setup/ask_detect=false", + " console-setup/layoutcode=us", + " console-setup/modelcode=pc105", + " debconf/frontend=noninteractive", + " debian-installer=en_US", + " fb=false", + " initrd=/install/initrd.gz", + " kbd-chooser/method=us", + " keyboard-configuration/layout=USA", + " keyboard-configuration/variant=USA", + " locale=en_US", + " netcfg/get_domain=vm", + " netcfg/get_hostname=vagrant", + " noapic" , + " preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg", + " -- ", + "" + ], + "shutdown_command": "echo 'vagrant'|sudo -S shutdown -P now", + "prlctl": [ + ["set", "{{.Name}}", "--memsize", "1024"], + ["set", "{{.Name}}", "--cpus", "2"], + ["set", "{{.Name}}", "--size", "10140"] + ] + }, { "vm_name": "dashbrew-ubuntu-14.04-amd64", "type": "vmware-iso", @@ -85,7 +126,7 @@ "ssh_password": "{{user `ssh_password`}}", "ssh_port": 22, "ssh_wait_timeout": "10000s", - "shutdown_command": "echo '{{user `ssh_username`}}' | sudo -S shutdown -P now", + "shutdown_command": "echo '{{user `ssh_username`}}' | sudo -S shutdown -P now", "virtualbox_version_file": ".vbox_version", "vboxmanage": [ [ @@ -153,4 +194,4 @@ ] } ] -} \ No newline at end of file +} From 770749cf2d2a521645ac4090a84c7e909011efee Mon Sep 17 00:00:00 2001 From: Vyacheslav Kvasnitsky Date: Sat, 11 Apr 2015 01:16:17 +0100 Subject: [PATCH 2/2] Updated Ubuntu to 14.04.2 --- template.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/template.json b/template.json index ab23cf1..3f62d04 100644 --- a/template.json +++ b/template.json @@ -2,8 +2,8 @@ "variables": { "ssh_username": "vagrant", "ssh_password": "vagrant", - "iso_checksum": "401c5f6666fe2879ac3a9a3247b487723410cf88", - "iso_url": "http://releases.ubuntu.com/14.04/ubuntu-14.04.1-server-amd64.iso" + "iso_checksum": "3bfa6eac84d527380d0cc52db9092cde127f161e", + "iso_url": "http://releases.ubuntu.com/14.04/ubuntu-14.04.2-server-amd64.iso" }, "builders": [ {