1. A method comprising: receiving a request to load a kernel extension in a kernel, wherein the request to load the kernel extension is sent by a first of a plurality of instances of an operating system, wherein the plurality of instances of the operating system are managed by a second of the plurality of the instances of the operating system, wherein the plurality of the instances of the operating system share a kernel; recording an indicator that indicates that the first of the plurality of the instances of the operating system requested to load the kernel extension, wherein the indicator is accessible only to the second of the plurality of the instances of the operating system; loading the kernel extension, wherein loading the kernel extension extends functionality of the kernel; receiving a request by the first of the plurality of the instances of the operating system to remove the functionality from the kernel; determining, based on the indicator, that the first of the plurality of the instances of the operating system requested to load the kernel extension; and removing the functionality from the kernel in response to the determining, based on the indicator, that the first of the plurality of the instances of the operating system requested to load the kernel extension.