Skip to content

Commit

Permalink
switch disk interface to virtio-scsi
Browse files Browse the repository at this point in the history
virtio-block seems somehow broken (in combination with virtio-net)
  • Loading branch information
korli committed Sep 16, 2024
1 parent 44c899a commit ed146d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions haiku.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ source "qemu" "qemu" {
net_device = "virtio-net"

disk_compression = true
disk_interface = "virtio"
disk_interface = "virtio-scsi"
disk_size = var.disk_size
format = "qcow2"

Expand All @@ -118,7 +118,7 @@ source "qemu" "qemu" {
"<down><down><down><down><down><down><down><down><down><down><down><down><down><down><down><down><down><down><down><down><down><down><down><down><down><enter><wait5s>",
"echo \"PermitRootLogin yes\" >> /system/settings/ssh/sshd_config<enter>",
"passwd<enter>${var.root_password}<enter>${var.root_password}<enter>",
"mkfs -t bfs -q /dev/disk/virtual/virtio_block/0/raw HaikuRunner<enter>",
"mkfs -t bfs -q /dev/disk/scsi/2/0/0/raw HaikuRunner<enter>",
"mountvolume HaikuRunner<enter>",
"Installer<enter><wait2s>",
"<enter><wait3s>",
Expand Down

0 comments on commit ed146d8

Please sign in to comment.