rohityadavcloud commented on code in PR #9437:
URL: https://github.com/apache/cloudstack/pull/9437#discussion_r1689159278


##########
tools/appliance/systemvmtemplate/template-base_x86_64-target_aarch64.json:
##########
@@ -0,0 +1,91 @@
+{
+  "_license": "Apache License 2.0",
+  "builders": [
+    {
+      "boot_command": [
+        "c<wait>",
+        "linux /install.a64/vmlinuz <wait>",
+        "preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed_aarch64.cfg 
<wait>",
+        "debian-installer=en_US.UTF-8 <wait>",
+        "auto <wait>",
+        "language=en locale=en_US.UTF-8 <wait>",
+        "kbd-chooser/method=us <wait>",
+        "keyboard-configuration/xkb-keymap=us <wait>",
+        "netcfg/get_hostname=systemvm <wait>",
+        "netcfg/get_domain=apache.org <wait>",
+        "country=IN keymap=us <wait>",
+        "fb=false <wait>",
+        "debconf/frontend=noninteractive <wait>",
+        "console-setup/ask_detect=false <wait>",
+        "console-keymaps-at/keymap=us <wait>",
+       "---",
+        "<enter><wait>",
+       "initrd /install.a64/initrd.gz",
+       "<enter><wait>",
+       "boot<enter><wait>"
+      ],
+      "boot_wait": "60s",
+      "disk_interface": "virtio",
+      "cdrom_interface": "virtio-scsi",
+      "disk_size": "5000M",
+      "format": "qcow2",
+      "headless": true,
+      "http_directory": "http",
+      "iso_checksum": 
"sha512:4980197fa30646a43df2672d98500a182d6636422e39e809d986551356f4d24b1ffab6d745331369b27f2e9a5326f020ba141df5772ac2c6328c08cce73de7e8",
+      "iso_url": 
"https://cdimage.debian.org/mirror/cdimage/archive/11.10.0/arm64/iso-cd/debian-11.10.0-arm64-netinst.iso";,
+      "net_device": "virtio-net",
+      "output_directory": "../dist",
+      "qemu_binary": "qemu-system-aarch64",

Review Comment:
   @StepBee had you tested aarch64 systemvmtemplate build on x86_64 host? I'm 
trying to automate this with a Jenkins build and getting this:
   ```
   10:56:47 2024/07/24 10:56:47 packer-builder-qemu plugin: Executing 
/usr/bin/qemu-system-aarch64: []string{"-netdev", 
"user,id=user.0,hostfwd=tcp::2680-:22", "-machine", "virt", "-cpu", 
"cortex-a72", "-pflash", "/usr/share/AAVMF/AAVMF_CODE.fd", "-boot", 
"strict=off", "-drive", 
"file=../dist/systemvmtemplate,if=virtio,cache=writeback,discard=ignore,format=qcow2",
 "-drive", 
"file=/var/lib/jenkins/.cache/packer/f625f9a7fa1737d7bc5cd5e20e9ca14107ead36b.iso,if=none,index=0,id=cdrom0,media=cdrom",
 "-name", "systemvmtemplate", "-m", "500M", "-smp", "1", "-monitor", "none", 
"-vnc", "127.0.0.1:95", "-device", "virtio-net,netdev=user.0", "-device", 
"virtio-scsi-pci,id=scsi0", "-device", "virtio-scsi-device", "-device", 
"scsi-cd,drive=cdrom0"}
   10:56:47 2024/07/24 10:56:47 packer-builder-qemu plugin: Started Qemu. Pid: 
125333
   10:56:47 2024/07/24 10:56:47 packer-builder-qemu plugin: Qemu stderr: 
WARNING: Image format was not specified for '/usr/share/AAVMF/AAVMF_CODE.fd' 
and probing guessed raw.
   10:56:47 2024/07/24 10:56:47 packer-builder-qemu plugin: Qemu stderr:        
  Automatically detecting the format is dangerous for raw images, write 
operations on block 0 will be restricted.
   10:56:47 2024/07/24 10:56:47 packer-builder-qemu plugin: Qemu stderr:        
  Specify the 'raw' format explicitly to remove the restrictions.
   10:56:47 2024/07/24 10:56:47 packer-builder-qemu plugin: Qemu stderr: 
qemu-system-aarch64: Initialization of device cfi.pflash01 failed: Could not 
reopen file: Permission denied
   10:56:47 ==> qemu: Error launching VM: Qemu failed to start.
   ```
   
   Host in Ubuntu 20.04 x86_64 VM (same one used to build the x86-64 
systemvmtemplates) cc @kiranchavala @NuxRo 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to