QEMU Guest hat 尚未初始化顯示 | Ubuntu 21.10 ARM64

QEMU Guest hat 尚未初始化顯示 | Ubuntu 21.10 ARM64

實際上,我在 Windows 10 上使用 qemu 建立 Ubuntu arm64 映像時遇到了問題。我使用 packer 建立 qemu VM,它工作正常,但在輸入啟動參數後它仍然掛起。

啟動 Packer 後,我收到 Popup qemu Display 並顯示以下錯誤:

-> Guest has not initialied the display (yet) <-

我嘗試了一些用於顯示設定的 Quemu 參數,但它仍然不起作用,希望尋求幫助。

My Packer Version : 1.7.8
Ubuntu Version : 21.10 live server arm64 | 20.04 live server arm64 (test both)
qemu version : 6.2

我的打包機配置:

source "qemu" "ubuntu-server" {
  boot_command           = ["<esc><wait>", "<esc><wait>", "<enter><wait>", "/install/vmlinuz<wait>", " initrd=/install/initrd.gz", " auto-install/enable=true", " debconf/priority=critical", " preseed/url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg<wait>", " -- <wait>", "<enter><wait>"]
  http_directory         = "../config/http"
  iso_checksum           = "${UBUNTU_ISO_CHECKSUM}"
  iso_urls               = ["${UBUNTU_ISO_NAME}"]
  output_directory       = "output/live-server"
  shutdown_command       = "sudo shutdown -P now"
  disk_size              = "60000"
  format                 = "qcow2"
  ssh_handshake_attempts = "20"
  ssh_password           = "XXXX"
  ssh_pty                = "true"
  ssh_timeout            = "245m"
  ssh_username           = "XXXXX"
  vm_name                = "${VM_NAME}"
  net_device             = "virtio-net"
  disk_interface         = "virtio"
  boot_wait              = "15s"
  headless               = "false"
  cpus                   = 4
  memory                 = 8192
  qemu_binary            = "qemu-system-arm.exe"
  qemuargs = [
    [ "-machine", "virt" ],
    [ "-device", "virtio-gpu-pci" ],
    [ "-boot", "strict=off" ],
    [ "-cpu", "max" ],
    [ "-m", "8192M" ],    
    [ "-smp", "4" ],
    [ "-device", "qemu-xhci" ],
    [ "-display", "sdl" ],
    [ "-vga", "std" ]
  ]
}

相關內容