|
1 | 1 | { |
2 | | - "min_packer_version": "1.7.1", |
| 2 | + "min_packer_version": "1.6.0", |
3 | 3 | "variables": { |
4 | | - "vm_name": "JMU Linux Mint", |
| 4 | + "vm_name": "JMU Ubuntu", |
5 | 5 | "semester": "Fa21", |
6 | | - "version": "20", |
7 | 6 |
|
8 | 7 | "build_id": "{{isotime \"2006-01-02\"}}", |
9 | 8 |
|
|
12 | 11 |
|
13 | 12 | "headless": "false", |
14 | 13 |
|
15 | | - "output_dir": "{{pwd}}/artifacts_mint", |
| 14 | + "output_dir": "{{pwd}}/{{user `vm_name`}} {{user `semester`}}.utm/Images", |
16 | 15 | "mirror_url": "http://cdimage.ubuntu.com/focal/daily-live/current", |
17 | 16 | "iso_file": "focal-desktop-arm64.iso", |
18 | 17 |
|
|
27 | 26 | "accelerator": "kvm", |
28 | 27 | "memory": 4096, |
29 | 28 | "machine_type": "virt", |
30 | | - "firmware": "/usr/share/qemu-efi-aarch64/QEMU_EFI.fd", |
31 | 29 | "qemu_binary": "qemu-system-aarch64", |
32 | 30 | "qemuargs": [ |
| 31 | + [ "-bios", "/usr/share/qemu-efi-aarch64/QEMU_EFI.fd" ], |
33 | 32 | [ "-boot", "strict=off" ], |
34 | 33 | [ "-vga", "vmware" ], |
35 | 34 | [ "-cpu", "host" ], |
|
53 | 52 | "ssh_username": "{{user `ssh_user`}}", |
54 | 53 | "ssh_password": "{{user `ssh_pass`}}", |
55 | 54 | "ssh_timeout": "100m", |
56 | | - "vm_name": "{{user `vm_name`}} {{user `semester`}}", |
| 55 | + "vm_name": "image.qcow2", |
57 | 56 | "net_device": "virtio-net", |
58 | 57 | "disk_interface": "virtio", |
59 | | - "boot_wait": "15s", |
| 58 | + "boot_wait": "25s", |
60 | 59 | "boot_command": [ |
61 | 60 | "c<wait><wait>", |
62 | 61 | "linux /casper/vmlinuz", |
|
83 | 82 | "./oem-build", |
84 | 83 | "/usr/sbin/oem-config-prepare" |
85 | 84 | ] |
86 | | - }], |
87 | | - "post-processors": [ |
88 | | - { |
89 | | - "type": "checksum", |
90 | | - "checksum_types": "sha256", |
91 | | - "output": "{{user `output_dir`}}/image-{{user `semester` | lower }}.{{.ChecksumType}}sum" |
92 | | - } |
93 | | - ] |
| 85 | + }] |
94 | 86 | } |
0 commit comments