aurae-runtime / aurae

Distributed systems runtime daemon written in Rust.
https://aurae.io
Apache License 2.0
1.85k stars 91 forks source link

WIP: Audit the VM Launch Process #234

Closed jesse-peters closed 1 year ago

jesse-peters commented 1 year ago

The vm doesn't currently launch on my mac, so I have been modifying the scripts to allow for the additional architecture.

jesse-peters commented 1 year ago

Hoping someone can point me in the right direction here. I've been working on getting the VM building on my machine. I'm running on a mac, so I had to tweak a bunch of the processes to handle the different chip (There is cleanup required on all of my modifications still). I can run this now without an issue locally:

make build-container
make kernel
make initramfs
make network

I've created a new docker container that has libvirt in it, and I run make virsh-init followed by make virsh-start inside that container. I get the following error when I run this (I have modified the libvirt.xml file to match my system)

However, when I run that, I get this error in the libvirt logs:


virCgroupSetValueRaw:502 : Unable to write to '/sys/fs/cgroup/machine/qemu-1-aurae.libvirt-qemu/cgroup.procs': Operation not supported```
krisnova commented 1 year ago

I know @MalteJ and @Vincinator had worked on this originally, maybe they have some insights. I can try to replicate on my end as well.

Are you trying to run a VM hypervisor... inside a container..?

jesse-peters commented 1 year ago

The goal of this PR is to get to a point I can build aurae and run it inside of a VM for testing on my Mac M1. I've gone down a few paths here trying to find the best way to do it. I may be wildly off base though, some of this is uncharted territory for me.

At this point I'm probably pursuing it mostly because I'm stubborn and want to get it to work. I certainly appreciate any help, but also understand that running the project on an M1 like this probably isn't a major hangup for most folks here.

Hopefully this provides some context to anyone wondering whats going on with this PR.

jesse-peters commented 1 year ago

I'm going to close this PR. I'm not sure how much more work it'll be, and I can re-open it in the future once I get it worked out. I'd rather not leave the PR up for an indeterminate time.