A method for providing access in a device running a virtual machine supported by a hypervisor installed on top of a host operating system OS of the device, characterised by: the method being performed in a mobile device, the method providing access to a work environment in the mobile device from a lock screen presented by a personal environment of the mobile device, wherein the work environment is running in the virtual machine and the hypervisor is running within the personal environment, the method comprising: receiving at the host OS an authentication credential from a user in response to a presentation of the lock screen on a user interface UI of the mobile device; determining whether the authentication credential is valid for the personal environment and/or the work environment; enabling access only to the personal environment if the authentication credential is only valid for the personal environment; and enabling access to both the personal environment and the work environment if the authentication credential is valid for the work environment by requesting the hypervisor to transmit a virtual power-on command to a hardware emulation layer of the virtual machine, and wherein the virtual power-on command includes an indication that the user has already been authenticated such that the hardware emulation layer of the virtual machine requests a guest OS of the virtual machine to bypass a default presentation of a lock screen for the work environment. the method being performed in a mobile device, the method providing access to a work environment in the mobile device from a lock screen presented by a personal environment of the mobile device, wherein the work environment is running in the virtual machine and the hypervisor is running within the personal environment, the method comprising: receiving at the host OS an authentication credential from a user in response to a presentation of the lock screen on a user interface UI of the mobile device; determining whether the authentication credential is valid for the personal environment and/or the work environment; enabling access only to the personal environment if the authentication credential is only valid for the personal environment; and enabling access to both the personal environment and the work environment if the authentication credential is valid for the work environment by requesting the hypervisor to transmit a virtual power-on command to a hardware emulation layer of the virtual machine, and wherein the virtual power-on command includes an indication that the user has already been authenticated such that the hardware emulation layer of the virtual machine requests a guest OS of the virtual machine to bypass a default presentation of a lock screen for the work environment. receiving at the host OS an authentication credential from a user in response to a presentation of the lock screen on a user interface UI of the mobile device; determining whether the authentication credential is valid for the personal environment and/or the work environment; enabling access only to the personal environment if the authentication credential is only valid for the personal environment; and enabling access to both the personal environment and the work environment if the authentication credential is valid for the work environment by requesting the hypervisor to transmit a virtual power-on command to a hardware emulation layer of the virtual machine, and wherein the virtual power-on command includes an indication that the user has already been authenticated such that the hardware emulation layer of the virtual machine requests a guest OS of the virtual machine to bypass a default presentation of a lock screen for the work environment.