A method for triggering reconfiguration of a virtual machine in a cloud computing environment, the method being performed by a resource controller configured to control resource allocation to the virtual machine in the cloud computing environment, and comprising: receiving a reconfiguration request from an application being executed on the virtual machine in the cloud computing environment, the reconfiguration request indicating a desired resource allocation for the virtual machine, wherein: - the application determines the desired resource allocation based on knowledge about its own upcoming execution, - the reconfiguration request has been generated on the basis of a current local-level resource allocation determined for the virtual machine by querying an operating system in which the application is executed, and - the reconfiguration request has further been generated on the basis of a current cloud-level resource allocation determined for the virtual machine by querying a virtual machine configuration database configured to store information about resources allocated to virtual machines in the cloud computing environment; sending a reconfiguration response to the application, the reconfiguration response including a reconfiguration offer indicating a possible resource allocation for the virtual machine; receiving a reconfiguration acknowledgement from the application indicating acceptance of the reconfiguration offer; and triggering reconfiguration of the virtual machine so as to allocate resources to the virtual machine according to the accepted reconfiguration offer. receiving a reconfiguration request from an application being executed on the virtual machine in the cloud computing environment, the reconfiguration request indicating a desired resource allocation for the virtual machine, wherein: - the application determines the desired resource allocation based on knowledge about its own upcoming execution, - the reconfiguration request has been generated on the basis of a current local-level resource allocation determined for the virtual machine by querying an operating system in which the application is executed, and - the reconfiguration request has further been generated on the basis of a current cloud-level resource allocation determined for the virtual machine by querying a virtual machine configuration database configured to store information about resources allocated to virtual machines in the cloud computing environment; - the application determines the desired resource allocation based on knowledge about its own upcoming execution, - the reconfiguration request has been generated on the basis of a current local-level resource allocation determined for the virtual machine by querying an operating system in which the application is executed, and - the reconfiguration request has further been generated on the basis of a current cloud-level resource allocation determined for the virtual machine by querying a virtual machine configuration database configured to store information about resources allocated to virtual machines in the cloud computing environment; sending a reconfiguration response to the application, the reconfiguration response including a reconfiguration offer indicating a possible resource allocation for the virtual machine; receiving a reconfiguration acknowledgement from the application indicating acceptance of the reconfiguration offer; and triggering reconfiguration of the virtual machine so as to allocate resources to the virtual machine according to the accepted reconfiguration offer.