-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add launch action to bootable images #83
Conversation
Adds a command to a bootable image, which tries to launch vfkit against the last disk image build. Signed-off-by: Tim deBoer <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It worked!
Had no issues launching the previous image via vfkit. So all of this LGTM. Thanks for adding it to the image list instead.
Only change is we need to update the package.json as well to remove it from container page.
@@ -18,6 +18,11 @@ | |||
"command": "bootc.image.build", | |||
"title": "Build Disk Image", | |||
"when": "ostree.bootable in imageLabelKeys" | |||
}, | |||
{ | |||
"command": "bootc.vfkit", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should also remove the previous part about it being in container page: https://github.com/containers/podman-desktop-extension-bootc/blob/b275f8ff58183aaa2c2de0fea9821f1ea070623d/package.json#L28
I gave this PR a try because the build container is cleaned up too quickly so there's no opportunity to start it from that screen. I merged it locally with #91 also included. I built a disk image successfully and then tried to launch it and it failed. This is the command it produced:
Note the virtio-blk,path specified didn't include the I looked at the code and it seems like we're passing the
The VM doesn't actually boot, but at least the vfkit invocation is correct. |
Press enter :) This unfortunately is an issue with bootc-image-builder at the moment where it is getting "stuck" on the VM load: osbuild/bootc-image-builder#105 and the screen isn't correctly refreshing. They are at the moment working on improving the kernel parameters / templating the bootc image builder so that it would work correctly. |
I tried that before reporting 😄 Didn't do anything.
OK. I can be patient. Thanks for the pointer. |
As per comments elsewhere, we would love to provide options to test or run the disk image after building, but vfkit continued to have problems for users, and we have found no stable/open-source/compatible enough alternative. I'm finally withdrawing this PR, and we can follow up with new issues if there's another option. |
What does this PR do?
Now that we clean up after a successful build, there's no way to launch vfkit on the image. This adds a command to bootable images, which tries to launch vfkit against the last disk image build.
Screenshot / video of UI
What issues does this PR fix or reference?
Fixes part of #18.
How to test this PR?
Launch the action on a bootable container that you haven't built before (it fails), then build an image and retry.