includeos / vmrunner

Utility for booting IncludeOS binaries
Apache License 2.0
4 stars 10 forks source link

Unable to boot disks from read only file systems #34

Open MagnusS opened 1 month ago

MagnusS commented 1 month ago

When booting an iso from a read-only nix location, qemu fails with:

<vm> qemu-system-x86_64: Could not open 'grub.iso': Read-only file system

The iso is attached using the parameter -drive file=grub.iso,format=raw,if=ide,media=disk

Changing media manually to media=cdrom boots the image.

MagnusS commented 1 month ago

Currently it's not possible to specify other media-types with vm.boot(): https://github.com/includeos/vmrunner/blob/master/vmrunner/vmrunner.py#L1027

And only disk is supported in the schema: https://github.com/includeos/vmrunner/blob/master/vmrunner/vm.schema.json#L59