-
-
Notifications
You must be signed in to change notification settings - Fork 109
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
Register MicroVMs with systemd-machined #309
Comments
I was just trying to do this due to the upcoming systemd v257 changes:
Before v257, we would have put the DBus calls into the systemd units in the host module because they needed root privileges. Now, there's the option to do that as a user in the scripts in the generated microvm packages (in the microvm module). Would that be useful at all? Not sure what varlink makes easier, but I didn't manage to get the backwards compatible dbus interface to work: I need help figuring out the dbus calls. |
The (optional) second argument is a 32 byte array for a UUID. Furthermore, the PID passed should be the hypervisor's PID, from what I can tell, from the interface manpage (https://www.freedesktop.org/software/systemd/man/latest/org.freedesktop.machine1):
|
This would allow managing MicroVMs with
machinectl
.For more information about the interface, see
org.freedesktop.machine1(5)
.Relevant details:
RegisterMachine()
/RegisterMachineWithNetwork()
registers the caller's unit as a machine. This is what we need, since we are running one systemd unit per MicroVM. The latter also takes an array of network interfaces through which the machine is reachable. If a tap interface is configured, it makes sense to mention it here so systemd-machined would know how to reach the VM over the network.RegisterMachine
as part of the init script.RegisterMachine
also takes a UUID that ideally should match.The text was updated successfully, but these errors were encountered: