Reboot, halt, poweroff called inside an lxc domain

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

Is there any possibility (using libvirt C API or whatever else) to "propagate" shutdown events (reboot, halt, power off) to a host? The API seems to lack this functionality - there exists function virConnectDomainEventRegisterAny, but the virDomainEventStoppedDetailType enum does not distinguish between these 3 different situations.

Moreover, while rebooting a machine, an additional argument can be passed to reboot() syscall, which will be used by bootloader during the startup. Ideally, when calling e.g. "reboot recovery" inside an lxc container I'd like to be informed (inside host) that "reboot" was called with "recovery" as additional argument, so I can take appropriate actions.

 

Thanks in advance.

 

Best regards,

Michal

_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users

[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux