Skip to content

Commit

Permalink
Merge pull request #1304 from johannwie/master
Browse files Browse the repository at this point in the history
driver/qemudriver: add support for virt machine
  • Loading branch information
jluebbe committed Dec 15, 2023
2 parents 6a2af9f + 61d5704 commit 5b6852d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions labgrid/driver/qemudriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,11 @@ def get_qemu_base_args(self):
cmd.append(
f"if=virtio,format={disk_format},file={disk_path}{disk_opts}")
boot_args.append("root=/dev/vda rootwait")
elif self.machine == "virt":
cmd.append("-drive")
cmd.append(
f"if=virtio,format={disk_format},file={disk_path}{disk_opts}")
boot_args.append("root=/dev/vda rootwait")
else:
raise NotImplementedError(
f"QEMU disk image support not implemented for machine '{self.machine}'"
Expand Down

0 comments on commit 5b6852d

Please sign in to comment.