Skip to content

Commit a7077a8

Browse files
committed
change packer template files to support arm64
1 parent 8f406e7 commit a7077a8

File tree

2 files changed

+53
-18
lines changed

2 files changed

+53
-18
lines changed

tools/appliance/systemvmtemplate/template-base_aarch64-target_aarch64.json

Lines changed: 27 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
{
55
"accelerator": "kvm",
66
"boot_command": [
7-
"<esc><wait>",
8-
"install <wait>",
9-
"preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg <wait>",
7+
"c<wait>",
8+
"linux /install.a64/vmlinuz <wait>",
9+
"preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed_aarch64.cfg <wait>",
1010
"debian-installer=en_US.UTF-8 <wait>",
1111
"auto <wait>",
1212
"language=en locale=en_US.UTF-8 <wait>",
@@ -19,31 +19,49 @@
1919
"debconf/frontend=noninteractive <wait>",
2020
"console-setup/ask_detect=false <wait>",
2121
"console-keymaps-at/keymap=us <wait>",
22-
"<enter><wait>"
22+
"---",
23+
"<enter><wait>",
24+
"initrd /install.a64/initrd.gz",
25+
"<enter><wait>",
26+
"boot<enter><wait>"
2327
],
24-
"boot_wait": "5s",
28+
"boot_wait": "180s",
2529
"disk_interface": "virtio",
30+
"cdrom_interface": "virtio-scsi",
2631
"disk_size": "5000M",
2732
"format": "qcow2",
2833
"headless": true,
2934
"http_directory": "http",
30-
"iso_checksum": "sha512:224cd98011b9184e49f858a46096c6ff4894adff8945ce89b194541afdfd93b73b4666b0705234bd4dff42c0a914fdb6037dd0982efb5813e8a553d8e92e6f51",
31-
"iso_url": "https://cdimage.debian.org/debian-cd/11.6.0/amd64/iso-cd/debian-11.6.0-amd64-netinst.iso",
35+
"iso_checksum": "sha512:7b575eb212aba8921c314dc3b0fb29e6fc54c931013cad6764f10a26d9363c257f027a45d96bb750e48638ea4a1f223ab86ccc024d3e983853420fcde54ac999",
36+
"iso_url": "https://cdimage.debian.org/debian-cd/11.6.0/arm64/iso-cd/debian-11.6.0-arm64-netinst.iso",
3237
"net_device": "virtio-net",
3338
"output_directory": "../dist",
39+
"qemu_binary": "qemu-system-aarch64",
3440
"qemuargs": [
3541
[
3642
"-m",
3743
"500M"
3844
],
45+
[
46+
"-machine",
47+
"virt"
48+
],
49+
[
50+
"-cpu",
51+
"host"
52+
],
3953
[
4054
"-smp",
4155
"1"
42-
]
56+
],
57+
[ "-pflash", "/usr/share/AAVMF/AAVMF_CODE.fd" ],
58+
[ "-monitor", "none" ],
59+
[ "-enable-kvm" ],
60+
[ "-boot", "strict=off" ]
4361
],
4462
"shutdown_command": "sudo halt -p",
4563
"ssh_password": "cloud",
46-
"ssh_timeout": "30m",
64+
"ssh_timeout": "120m",
4765
"ssh_username": "cloud",
4866
"type": "qemu",
4967
"vm_name": "systemvmtemplate"

tools/appliance/systemvmtemplate/template-base_x86_64-target_aarch64.json

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
{
55
"accelerator": "kvm",
66
"boot_command": [
7-
"<esc><wait>",
8-
"install <wait>",
9-
"preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg <wait>",
7+
"c<wait>",
8+
"linux /install.a64/vmlinuz <wait>",
9+
"preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed_aarch64.cfg <wait>",
1010
"debian-installer=en_US.UTF-8 <wait>",
1111
"auto <wait>",
1212
"language=en locale=en_US.UTF-8 <wait>",
@@ -19,31 +19,48 @@
1919
"debconf/frontend=noninteractive <wait>",
2020
"console-setup/ask_detect=false <wait>",
2121
"console-keymaps-at/keymap=us <wait>",
22-
"<enter><wait>"
22+
"---",
23+
"<enter><wait>",
24+
"initrd /install.a64/initrd.gz",
25+
"<enter><wait>",
26+
"boot<enter><wait>"
2327
],
24-
"boot_wait": "5s",
28+
"boot_wait": "60s",
2529
"disk_interface": "virtio",
30+
"cdrom_interface": "virtio-scsi",
2631
"disk_size": "5000M",
2732
"format": "qcow2",
2833
"headless": true,
2934
"http_directory": "http",
30-
"iso_checksum": "sha512:224cd98011b9184e49f858a46096c6ff4894adff8945ce89b194541afdfd93b73b4666b0705234bd4dff42c0a914fdb6037dd0982efb5813e8a553d8e92e6f51",
31-
"iso_url": "https://cdimage.debian.org/debian-cd/11.6.0/amd64/iso-cd/debian-11.6.0-amd64-netinst.iso",
35+
"iso_checksum": "sha512:7b575eb212aba8921c314dc3b0fb29e6fc54c931013cad6764f10a26d9363c257f027a45d96bb750e48638ea4a1f223ab86ccc024d3e983853420fcde54ac999",
36+
"iso_url": "https://cdimage.debian.org/debian-cd/11.6.0/arm64/iso-cd/debian-11.6.0-arm64-netinst.iso",
3237
"net_device": "virtio-net",
3338
"output_directory": "../dist",
39+
"qemu_binary": "qemu-system-aarch64",
3440
"qemuargs": [
3541
[
3642
"-m",
3743
"500M"
3844
],
45+
[
46+
"-machine",
47+
"virt"
48+
],
49+
[
50+
"-cpu",
51+
"cortex-a57"
52+
],
3953
[
4054
"-smp",
4155
"1"
42-
]
56+
],
57+
[ "-pflash", "/usr/share/AAVMF/AAVMF_CODE.fd" ],
58+
[ "-monitor", "none" ],
59+
[ "-boot", "strict=off" ]
4360
],
4461
"shutdown_command": "sudo halt -p",
4562
"ssh_password": "cloud",
46-
"ssh_timeout": "30m",
63+
"ssh_timeout": "120m",
4764
"ssh_username": "cloud",
4865
"type": "qemu",
4966
"vm_name": "systemvmtemplate"

0 commit comments

Comments
 (0)