A method for cloud management platform to reset kvm virtual machine password

A technology for resetting passwords and cloud management. It is applied in the field of resetting KVM virtual machine passwords on cloud management platforms. It can solve problems such as time-consuming, user data loss, and consumption of host system resources. It achieves simple, high-efficiency, and improved user experience Effect

CN109002344BActive Publication Date: 2021-01-15GUANGDONG EFLYCLOUD COMPUTING CO LTD
4 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Publication Date
2021-01-15

Smart Images

  • Figure 1
    Figure 1
Patent Text Reader

Abstract

The invention relates to a method for resetting the password of a KVM by a cloud management platform, comprising the following steps: the cloud management platform receives a request of a user to reset the password, and determines a KVM the password of which needs to be reset, the user name and a new password; the cloud management platform obtains the IP address of the Linux host machine where theKVM requiring password resetting is located, and connects to the Linux host machine; the cloud management platform acquires the Domain object of the KVM; the cloud management platform writes the username and new password in the form of parameters; a setUserPassword interface writes the contents of the file required to reset the password to the unix socket file and passes the contents of the fileto the KVM virtio-serial serial port apparatus; The qemu guest agent application in the KVM receives the contents of the file needed to reset the password and performs password modification operations to complete the password reset. The cloud management platform resets the password of a virtual machine without destroying the data of the user virtual machine and without restarting the virtual machine, thereby ensuring the integrity of the user data.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention relates to the technical field of virtual machines, in particular to a method for resetting the password of a KVM virtual machine on a cloud management platform. Background technique

[0002] When the user of the cloud management platform forgets the login password of the virtual machine under the account, there are usually two ways to retrieve the password, one is to reinstall the operating system of the virtual machine; the other is to use third-party tools to brute force the virtual machine password crack. However, reinstalling the virtual machine operating system will consume a lot of system resources of the host machine, which will take too long and cause the loss of user data; and the operation of using third-party tools to crack the virtual machine password is very complicated and time-consuming, no matter which one is used methods are not desirable. Contents of the invention

[0003] The purpose of the present invention is to ...

Examples

Embodiment Construction

[0020] The technical solutions of the present invention will be further described below in conjunction with the accompanying drawings and through specific implementation methods.

[0021] A kind of cloud management platform resets the method for KVM virtual machine password of this embodiment, comprises cloud management platform, KVM virtual machine and Linux host machine, such as figure 1 As shown, the cloud management platform resetting the KVM virtual machine password includes the following steps:

[0022] Step A: the cloud management platform receives the user's request to reset the password, and determines the KVM virtual machine, user name and new password that need to reset the password;

[0023] Step B: the cloud management platform obtains the IP address of the Linux host machine where the KVM virtual machine that needs to reset the password is obtained by querying the database, and connects to the Linux host machine;

[0024] Step C: the cloud management platform ob...