-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
Call for ideas vmlinuz and initrd for testing #51
Comments
I also did a bit of research on this yesterday, and alpine may be the best option. A lot of the small distros I looked at were unmaintained/out of date/not having aarch64 builds/...
https://github.com/containers/gvisor-tap-vsock/blob/main/test/fcos.go |
@cfergeau Thanks. I'm researching other options. |
I'm trying toybox but I can't boot (maybe this is successful but not shown on the console) on this library but I can be confirmed by qemu. .PHONY: initrd
initrd:
curl http://landley.net/toybox/downloads/binaries/mkroot/0.8.8/aarch64.tgz -o aarch64.tgz
tar -xvzf aarch64.tgz Use example linux code $ VMLINUZ_PATH=../../aarch64/linux-kernel INITRD_PATH=../../aarch64/initramfs.cpio.gz ./virtualization kernel command: |
I'm working on making too tiny Linux for testing them |
I came across https://blog.xpnsec.com/bring-your-own-vm-mac-edition/ which might be similar to what you are looking for. |
Maybe dropbear might be needed. |
qemu-guest-agent could be an alternative to dropbear, it can run commands, read/write files, ... It runs unauthenticated over a vsock connection. It can also run over virtio-serial, but I think https://developer.apple.com/documentation/virtualization/vzvirtioconsoleportconfiguration?language=objc would be needed for that. |
List of qemu-ga features: https://www.qemu.org/docs/master/interop/qemu-ga-ref.html |
I'm trying qemu-guest-agent to run any command but I don't know how to do it. |
Yes, that would happen over vsock.
|
If you add this:
then trying to start the toybox kernel from http://landley.net/toybox/downloads/binaries/mkroot/0.8.8/aarch64.tgz fails with |
I have a plan to add some test code. But I need to use vmlinuz and initrd to write e2e testing. So I call for ideas what files are should be used (alpine? busybox? etc).
What's want
If you have knowledge, please tell me your recommendations. Thanks 🙏
The text was updated successfully, but these errors were encountered: