CN110968852B - Virtual machine password management method, system, equipment and computer storage medium - Google Patents

Virtual machine password management method, system, equipment and computer storage medium Download PDF

Info

Publication number
CN110968852B
CN110968852B CN201911329502.8A CN201911329502A CN110968852B CN 110968852 B CN110968852 B CN 110968852B CN 201911329502 A CN201911329502 A CN 201911329502A CN 110968852 B CN110968852 B CN 110968852B
Authority
CN
China
Prior art keywords
virtual machine
password
target
disk
service component
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911329502.8A
Other languages
Chinese (zh)
Other versions
CN110968852A (en
Inventor
傅开庭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sangfor Technologies Co Ltd
Original Assignee
Sangfor Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sangfor Technologies Co Ltd filed Critical Sangfor Technologies Co Ltd
Priority to CN201911329502.8A priority Critical patent/CN110968852B/en
Publication of CN110968852A publication Critical patent/CN110968852A/en
Application granted granted Critical
Publication of CN110968852B publication Critical patent/CN110968852B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/45Structures or tools for the administration of authentication

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Storage Device Security (AREA)

Abstract

The application discloses a virtual machine password management method, a system, equipment and a computer storage medium, which are used for acquiring a target password; adding the target password to a disk of the target virtual machine; calling a password reset service component stored in a disk, and directly setting a target password as a new password of the target virtual machine; the password resetting service component is a service program type component. According to the method and the device, the target password is added to the disk of the target virtual machine, the password reset service component stored in the disk is called, the target password is directly set to be the new password of the target virtual machine, the new password is set for the target virtual machine under the condition that the old password is not needed to be known, the password reset service component is the component of the service program type, the component of the service program type has the highest operation authority, the administrator is not needed to give the authority to set the new password for the target virtual machine, and the password setting efficiency of the virtual machine is improved.

Description

Virtual machine password management method, system, equipment and computer storage medium
Technical Field
The present application relates to the field of virtual machine technologies, and in particular, to a method, a system, a device, and a computer storage medium for managing virtual machine passwords.
Background
In the application process of the virtual machine, in order to ensure that other users cannot use the virtual machine, the owner sets the password for the virtual machine, so that when the password of the virtual machine needs to be changed or reset, whether the old password is correct or not needs to be verified, and the password change or the password reset can be carried out after the old password is correct, so that the efficiency is low.
In summary, how to improve the password management efficiency of the virtual machine is a problem to be solved urgently by those skilled in the art.
Disclosure of Invention
The application aims to provide a virtual machine password management method which can solve the technical problem of improving the password management efficiency of a virtual machine to a certain extent. The application also provides a virtual machine password management system, a device and a computer readable storage medium.
In order to achieve the above purpose, the present application provides the following technical solutions:
a virtual machine password management method, comprising:
acquiring a target password;
adding the target password to a disk of a target virtual machine;
calling a password resetting service component stored in the disk, and directly setting the target password as a new password of the target virtual machine;
wherein the password reset service component is a service program type component.
Preferably, the adding the target password to the disk of the target virtual machine includes:
if the target virtual machine is in a shutdown state, taking a magnetic disk of the target virtual machine as an auxiliary disk of another virtual machine;
sending the target password to the other virtual machine;
controlling the other virtual machine to store the target password to the disk;
and the other virtual machine is a virtual machine in a starting state.
Preferably, the invoking a password reset service component stored in the disk, and directly setting the target password as the new password of the target virtual machine includes:
setting the password reset service component to be started along with system starting;
and controlling the target virtual machine to be restarted so as to directly set the target password as a new password of the target virtual machine through the password resetting service component.
Preferably, before the disk of the target virtual machine is used as an auxiliary disk of another virtual machine, the method further includes:
creating a temporary virtual machine, and taking the temporary virtual machine as the other virtual machine;
after the controlling the another virtual machine to save the target password to the disk, the method further includes:
and controlling the other virtual machine to be shut down.
Preferably, the adding the target password to the disk of the target virtual machine includes:
and if the target virtual machine is in a starting state, adding the target password to a disk of the target virtual machine through a virtual tunnel.
Preferably, the invoking a password reset service component stored in the disk, and directly setting the target password as a new password of the target virtual machine includes:
calling the password resetting service component to acquire a target function in the target virtual machine;
calling the target function, and setting the target password as a new password of the target virtual machine;
wherein, the target function is a function for directly setting a new password.
Preferably, before the invoking the password reset service component stored in the disk, the method further includes:
loading a registry file of the target virtual machine through the disk;
adding the password reset service component to the registry file.
A virtual machine password management system, comprising:
the first acquisition module is used for acquiring a target password;
the first adding module is used for adding the target password to a disk of a target virtual machine;
the first setting module is used for calling a password resetting service component stored in the disk and directly setting the target password as a new password of the target virtual machine;
wherein the password reset service component is a service program type component.
A virtual machine password management apparatus, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the virtual secret code management method as described in any one of the above when the computer program is executed.
A computer readable storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of the virtual machine secret management method according to any one of the preceding claims.
The application provides a virtual machine password management method, which includes the steps of obtaining a target password; adding the target password to a disk of the target virtual machine; calling a password reset service component stored in a disk, and directly setting a target password as a new password of the target virtual machine; the password resetting service component is a service program type component. According to the method and the device, the target password is added to the disk of the target virtual machine, the password reset service component stored in the disk is called, the target password is directly set to be the new password of the target virtual machine, the new password is set for the target virtual machine under the condition that the old password is not needed to be known, the password reset service component is the component of the service program type, the component of the service program type has the highest operation authority, the administrator is not needed to give the authority to set the new password for the target virtual machine, and the password setting efficiency of the virtual machine is improved. The virtual machine password management system, the virtual machine password management equipment and the computer readable storage medium solve the corresponding technical problems.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a first flowchart of a method for managing virtual secret codes according to an embodiment of the present disclosure;
FIG. 2 is a second flowchart of a method for managing virtual secret codes according to an embodiment of the present application;
fig. 3 is a third flowchart of a virtual machine secret management method according to an embodiment of the present disclosure;
FIG. 4 is a schematic diagram of an application scenario structure;
FIG. 5 is a block diagram illustrating a virtual secret code management system according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a virtual secret code management device according to an embodiment of the present application;
fig. 7 is another schematic structural diagram of a virtual secret code management device according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, fig. 1 is a first flowchart of a virtual secret management method according to an embodiment of the present application.
The virtual machine secret code management method provided by the embodiment of the application can comprise the following steps:
step S101: and acquiring a target password.
In practical application, the target password may be obtained first, and the target password is a new password to be set by the target virtual machine.
It should be noted that the manner of obtaining the target password and the type of the target password may be determined according to actual needs. For example, a target password transmitted by the user client may be received, and in this process, the information transmitted by the user client may include identification information of the target virtual machine and the target password, so that the target virtual machine may be determined according to the identification information of the target virtual machine.
Step S102: and adding the target password to the disk of the target virtual machine.
In practical applications, after the target password is obtained, in order to enable the target password to function, the target password needs to be added to a disk of the target virtual machine, specifically, the target password may be added to a storage area in the disk for placing password information, and the like.
Step S103: calling a password resetting service component stored in a disk, and directly setting a target password as a new password of the target virtual machine; the password resetting service component is a service program type component.
In practical application, after the target password is added into the disk of the target virtual machine, the password resetting service component stored in the disk can be called, the target password is directly set as a new password of the target virtual machine, namely, the target password is directly set as the new password of the target virtual machine under the condition that an old password is not needed to be known; the password setting of the target virtual machine is completed under the conditions that the old password is not required to be known and the authorized operation of an administrator is not required, the influence of the old password and the authorized operation of the administrator on the password setting of the target virtual machine is avoided, and the password management efficiency is improved.
It should be noted that an execution main body of the virtual machine password management method provided by the present application may be determined flexibly according to actual needs, for example, the virtual machine password management method provided by the present application may be applied to a HCI (Hyper-Converged Infrastructure) platform and the like, the Hyper-Converged Infrastructure referred by the present application refers to that a same set of unit devices not only has resources and technologies such as computation, network, storage, and server virtualization, but also includes elements such as backup software, snapshot technology, data de-duplication, and online data compression, and multiple sets of unit devices may be aggregated through a network to implement modular seamless lateral expansion (scale-out), so as to form a unified resource pool.
The application provides a virtual machine password management method, which includes the steps of obtaining a target password; adding the target password to a disk of the target virtual machine; calling a password resetting service component stored in a disk, and directly setting a target password as a new password of the target virtual machine; the password resetting service component is a service program type component. According to the method and the device, the target password is added to the disk of the target virtual machine, the password resetting service component stored in the disk is called, the target password is directly set to be the new password of the target virtual machine, the new password is set for the target virtual machine under the condition that the old password is not needed to be known, and the password resetting service component is the service program type component which has the highest operation permission, so that the new password can be set for the target virtual machine without giving permission to an administrator, and the password setting efficiency of the virtual machine is improved.
Referring to fig. 2, fig. 2 is a second flowchart of a virtual secret management method according to an embodiment of the present disclosure.
The virtual machine secret code management method provided by the embodiment of the application can comprise the following steps:
step S201: and acquiring a target password.
Step S202: and if the target virtual machine is in a shutdown state, taking the disk of the target virtual machine as an auxiliary disk of another virtual machine.
Step S203: and sending the target password to another virtual machine.
Step S204: controlling another virtual machine to store the target password to a disk; and the other virtual machine is a virtual machine in a starting state.
In practical application, in the process of adding a target password to a disk of a target virtual machine, the target virtual machine may be in a shutdown state, and at this time, an operation instruction cannot be issued to the target virtual machine to write the target password to the disk of the target virtual machine, and in order to solve the problem, the target password may be written to the disk of the target virtual machine by means of the virtual machine in a startup state, for example, the disk of the target virtual machine is used as an auxiliary disk of another virtual machine; sending the target password to another virtual machine; controlling another virtual machine to store the target password to a disk; and the other virtual machine is a virtual machine in a starting state.
Step S205: the password reset service component is set to start with system startup.
Step S206: controlling the target virtual machine to restart so as to directly set the target password as a new password of the target virtual machine through the password resetting service component; the password resetting service component is a service program type component.
In practical application, because the target virtual machine is in a shutdown state, at this time, if the target password is written into the disk of the target virtual machine, the target virtual machine cannot be controlled to set the target password as the new password, and in order to solve the problem, in the process of calling the password resetting service component stored in the disk and directly setting the target password as the new password of the target virtual machine, the password resetting service component can be set to be started along with the system startup; and controlling the target virtual machine to be restarted, so that after the target virtual machine is restarted, the password resetting service component is started to enter a working state, and the target password is directly set as a new password of the target virtual machine.
In the virtual machine code management method provided by the embodiment of the application, in order to facilitate management and control of another virtual machine, before a magnetic disk of a target virtual machine is used as an auxiliary disk of another virtual machine, a temporary virtual machine can be created, and the temporary virtual machine is used as another virtual machine; correspondingly, after the other virtual machine is controlled to store the target password to the disk, the other virtual machine can be controlled to be powered off. That is, in practical application, a temporary virtual machine can be created to operate the disk of the target virtual machine, so that the work of other virtual machines is not damaged, and the work stability of other virtual machines is ensured.
According to the virtual machine password management method provided by the embodiment of the application, in the process of adding the target password to the disk of the target virtual machine, if the target virtual machine is in the starting state, the target password is added to the disk of the target virtual machine through the virtual tunnel. That is, when the target virtual machine is in the boot state, the target password may be directly added to the disk of the target virtual machine through the virtual tunnel.
In practical application, in the process of calling the password resetting service component stored in the disk and directly setting the target password as the new password of the target virtual machine, the password resetting service component can be called to obtain a target function in the target virtual machine; calling a target function, and setting a target password as a new password of the target virtual machine; wherein, the target function is a function for directly setting a new password.
It should be noted that the setting process of the password is controlled by the function, taking the password setting process of setting a new password after verifying an old password as an example, a function of verifying the old password and a function of setting the new password are set in the virtual machine, and the function of setting the new password can be applied only when the function of verifying the old password passes through, that is, the setting process of the password can be controlled by setting the application sequence of the functions; therefore, in practical application, a function of the new password can be directly set as an objective function, and the objective function is directly hooked to the password resetting service component, so that under the control of the password resetting service component, the objective function can directly function, the objective password is directly set as the new password of the target virtual machine, and the like. In a specific Application scenario, the type of the target function may be an API (Application Programming Interface) function.
Referring to fig. 3, fig. 3 is a third flowchart of a virtual secret code management method according to an embodiment of the present application.
The virtual machine secret code management method provided by the embodiment of the application can comprise the following steps:
step S301: and loading the registry file of the target virtual machine through a magnetic disk.
Step S302: add the password reset service component to the registry file.
In practical application, in order to ensure that the password resetting service component can normally play a role, a registry file of a target virtual machine can be loaded through a disk; and then adding the password resetting service component to the registry file.
Step S303: and acquiring a target password.
Step S304: and adding the target password to the disk of the target virtual machine.
Step S305: calling a password reset service component stored in a disk, and directly setting a target password as a new password of the target virtual machine; the password resetting service component is a service program type component.
For the description of the corresponding steps in this embodiment, please refer to the above embodiments, which are not described herein again.
For convenience of understanding, the virtual secret code management method provided by the present application is described by taking the application scenario shown in fig. 4 as an example. In fig. 4, the virtual machine 1 and the virtual machine 2 respectively connected to the host are included, and when the virtual machine password management method provided by the present application is applied to the application scenario shown in fig. 4, the method may include the following steps:
after a user triggers a user password configuration resetting request, the host judges whether the virtual machine 1 is started or not;
if the virtual machine 1 is shut down, the host pulls up the temporary virtual machine 2 and loads the disk of the virtual machine 1 as an auxiliary disk of the virtual machine 2;
the virtual machine 2 acquires user password configuration information and a service program ResetUserPWDSvr.exe for replacing user password reset from the host;
the virtual machine 2 stores the user password configuration information and the service program ResetUserPWDSvr.exe to a disk of the virtual machine 1;
the virtual machine 2 loads a registry file on an original system volume of the virtual machine 1 and injects a service component ResetUserPWDSvr reset by the proxy password;
the virtual machine 2 informs the host computer that the injection of the reset password service is successful and shuts down;
the host pulls up the virtual machine 1 and controls the virtual machine 1 to start up;
before the virtual machine 1 is started to enter a system, a service program ResetUserPWDSvr.exe for replacing a user password is started;
resetuserpwdsvr.exe obtains user password configuration information, and calls a system to provide an API function for setting a new password, wherein the API function can set the new password of the user without knowing the old password;
the user can log in the system of the virtual machine 1 by inputting a new password.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a virtual secret code management system according to an embodiment of the present disclosure.
The virtual secret code management system provided by the embodiment of the application can include:
a first obtaining module 101, configured to obtain a target password;
a first adding module 102, configured to add the target password to a disk of the target virtual machine;
the first setting module 103 is configured to call a password reset service component stored in a disk, and directly set a target password as a new password of a target virtual machine;
the password resetting service component is a service program type component.
In an embodiment of the present invention, a virtual machine password management system, a first adding module may include:
the first setting unit is used for taking a magnetic disk of the target virtual machine as an auxiliary disk of another virtual machine if the target virtual machine is in a shutdown state;
a first sending unit, configured to send the target password to another virtual machine;
the first control unit is used for controlling the other virtual machine to store the target password to the disk; and the other virtual machine is a virtual machine in a starting state.
In an embodiment of the present application, a virtual machine password management system, a first setting module may include:
the second setting unit is used for setting the password resetting service component to be started along with the system starting;
and the second control unit is used for controlling the target virtual machine to restart so as to directly set the target password as the new password of the target virtual machine through the password resetting service component.
The virtual machine secret code management system provided by the embodiment of the application can further include:
the first creating module is used for creating a temporary virtual machine before the first setting submodule takes the magnetic disk of the target virtual machine as an auxiliary disk of another virtual machine, and taking the temporary virtual machine as the other virtual machine;
and the third control unit is used for controlling the other virtual machine to be shut down after the first control unit controls the other virtual machine to store the target password to the disk.
In an embodiment of the present application, a virtual machine password management system, a first adding module may include:
and the first adding unit is used for adding the target password to the disk of the target virtual machine through the virtual tunnel if the target virtual machine is in the starting state.
In an embodiment of the present application, a virtual machine password management system, a first setting module may include:
the first calling unit is used for calling the password resetting service component and acquiring a target function in the target virtual machine;
the second calling unit is used for calling the target function and setting the target password as a new password of the target virtual machine;
wherein, the target function is a function for directly setting a new password.
The virtual machine secret code management system provided by the embodiment of the application can further include:
the first loading module is used for loading the registry file of the target virtual machine through the disk before the first setting module calls the password resetting service component stored in the disk;
and the second adding module is used for adding the password resetting service component into the registry file.
The application also provides a virtual machine password management device and a computer readable storage medium, which have the corresponding effects of the virtual machine password management method provided by the embodiment of the application. Referring to fig. 6, fig. 6 is a schematic structural diagram of a virtual secret code management apparatus according to an embodiment of the present disclosure.
The virtual secret code management device provided by the embodiment of the application comprises a memory 201 and a processor 202, wherein a computer program is stored in the memory 201, and the processor 202 implements the following steps when executing the computer program:
acquiring a target password;
adding the target password to a disk of the target virtual machine;
calling a password resetting service component stored in a disk, and directly setting a target password as a new password of the target virtual machine;
the password resetting service component is a service program type component.
The virtual secret code management device provided by the embodiment of the application comprises a memory 201 and a processor 202, wherein a computer program is stored in the memory 201, and the processor 202 implements the following steps when executing the computer program: if the target virtual machine is in a shutdown state, taking a magnetic disk of the target virtual machine as an auxiliary disk of another virtual machine; sending the target password to another virtual machine; controlling another virtual machine to store the target password to a disk; and the other virtual machine is a virtual machine in a starting state.
The virtual secret code management device provided by the embodiment of the application comprises a memory 201 and a processor 202, wherein a computer program is stored in the memory 201, and the processor 202 implements the following steps when executing the computer program: setting the password resetting service component to be started along with system starting; and controlling the target virtual machine to restart so as to directly set the target password as the new password of the target virtual machine through the password resetting service component.
The virtual secret code management device provided by the embodiment of the application comprises a memory 201 and a processor 202, wherein a computer program is stored in the memory 201, and the processor 202 executes the computer program to realize the following steps: before the disk of the target virtual machine is used as an auxiliary disk of another virtual machine, a temporary virtual machine is created, and the temporary virtual machine is used as the other virtual machine; and controlling another virtual machine to be powered off after the target password is stored to the disk by the other virtual machine.
The virtual secret code management device provided by the embodiment of the application comprises a memory 201 and a processor 202, wherein a computer program is stored in the memory 201, and the processor 202 executes the computer program to realize the following steps: and if the target virtual machine is in the starting state, adding the target password to the disk of the target virtual machine through the virtual tunnel.
The virtual secret code management device provided by the embodiment of the application comprises a memory 201 and a processor 202, wherein a computer program is stored in the memory 201, and the processor 202 executes the computer program to realize the following steps: calling a password resetting service component to obtain a target function in the target virtual machine; calling a target function, and setting a target password as a new password of the target virtual machine; wherein, the target function is a function for directly setting a new password.
The virtual secret code management device provided by the embodiment of the application comprises a memory 201 and a processor 202, wherein a computer program is stored in the memory 201, and the processor 202 executes the computer program to realize the following steps: loading a registry file of a target virtual machine through a disk before calling a password reset service component stored in the disk; a password reset service component is added to the registry file.
Referring to fig. 7, another virtual secret code management apparatus provided in the embodiment of the present application may further include: an input port 203 connected to the processor 202, for transmitting externally input commands to the processor 202; a display unit 204 connected to the processor 202, for displaying the processing result of the processor 202 to the outside; and the communication module 205 is connected with the processor 202 and is used for realizing the communication between the virtual secret code management device and the outside. The display unit 204 may be a display panel, a laser scanning display, or the like; the communication method adopted by the communication module 205 includes, but is not limited to, mobile high definition link technology (HML), Universal Serial Bus (USB), High Definition Multimedia Interface (HDMI), and wireless connection: wireless fidelity (WiFi), bluetooth communication, bluetooth low energy (low) communication, ieee802.11s based communication.
A computer-readable storage medium provided in an embodiment of the present application stores a computer program, and when executed by a processor, the computer program implements the following steps:
acquiring a target password;
adding the target password to a disk of the target virtual machine;
calling a password reset service component stored in a disk, and directly setting a target password as a new password of the target virtual machine;
the password resetting service component is a service program type component.
A computer-readable storage medium provided in an embodiment of the present application stores a computer program, and when executed by a processor, the computer program implements the following steps: if the target virtual machine is in a shutdown state, taking a magnetic disk of the target virtual machine as an auxiliary disk of another virtual machine; sending the target password to another virtual machine; controlling another virtual machine to store the target password to a disk; and the other virtual machine is a virtual machine in a starting state.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps: setting the password resetting service component to be started along with the system starting; and controlling the target virtual machine to restart so as to directly set the target password as the new password of the target virtual machine through the password resetting service component.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps: before the magnetic disk of the target virtual machine is used as an auxiliary disk of another virtual machine, a temporary virtual machine is created, and the temporary virtual machine is used as the other virtual machine; and controlling another virtual machine to be powered off after the target password is stored to the disk by the other virtual machine.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps: and if the target virtual machine is in the starting state, adding the target password to the disk of the target virtual machine through the virtual tunnel.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps: calling a password resetting service component to obtain a target function in the target virtual machine; calling a target function, and setting a target password as a new password of the target virtual machine; wherein, the target function is a function for directly setting a new password.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps: loading a registry file of a target virtual machine through a disk before calling a password reset service component stored in the disk; a password reset service component is added to the registry file.
The computer-readable storage media to which this application relates include Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage media known in the art.
For a description of a relevant part in the virtual machine password management system, the virtual machine password management apparatus, and the computer readable storage medium provided in the embodiments of the present application, reference is made to detailed descriptions of a corresponding part in a virtual machine password management method provided in the embodiments of the present application, and details are not repeated here. In addition, parts of the above technical solutions provided in the embodiments of the present application, which are consistent with the implementation principles of corresponding technical solutions in the prior art, are not described in detail so as to avoid redundant description.
It is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (7)

1. A method for virtual machine password management, comprising:
acquiring a target password;
adding the target password to a disk of a target virtual machine;
calling a password resetting service component stored in the disk, and directly setting the target password as a new password of the target virtual machine;
wherein the password reset service component is a service program type component;
wherein, adding the target password to the disk of the target virtual machine includes:
if the target virtual machine is in a shutdown state, taking a magnetic disk of the target virtual machine as an auxiliary disk of another virtual machine;
sending the target password to the other virtual machine;
controlling the other virtual machine to store the target password to the disk;
the other virtual machine is a virtual machine in a starting state;
before the magnetic disk of the target virtual machine is used as an auxiliary disk of another virtual machine, the method further includes:
creating a temporary virtual machine, and taking the temporary virtual machine as the other virtual machine;
after the controlling the another virtual machine to save the target password to the disk, the method further includes:
controlling the other virtual machine to shut down;
wherein, adding the target password to the disk of the target virtual machine includes:
and if the target virtual machine is in a starting state, adding the target password to a disk of the target virtual machine through a virtual tunnel.
2. The method of claim 1, wherein the invoking a password reset service component stored in the disk to directly set the target password as a new password for the target virtual machine comprises:
setting the password reset service component to be started along with system starting;
and controlling the target virtual machine to restart so as to directly set the target password as a new password of the target virtual machine through the password resetting service component.
3. The method of claim 1, wherein the invoking a password reset service component stored in the disk to directly set the target password as a new password for the target virtual machine comprises:
calling the password resetting service component to acquire a target function in the target virtual machine;
calling the target function, and setting the target password as a new password of the target virtual machine;
wherein, the target function is a function for directly setting a new password.
4. The method of any of claims 1 to 3, wherein prior to invoking the password reset service component stored in the disk, further comprising:
loading the registry file of the target virtual machine through the disk;
adding the password reset service component to the registry file.
5. A virtual machine password management system, comprising:
the first acquisition module is used for acquiring a target password;
the first adding module is used for adding the target password to a disk of a target virtual machine;
the first setting module is used for calling a password resetting service component stored in the disk and directly setting the target password as a new password of the target virtual machine;
wherein the password reset service component is a service program type component;
wherein the first adding module comprises:
a first setting unit, configured to, if the target virtual machine is in a shutdown state, use a disk of the target virtual machine as an auxiliary disk of another virtual machine;
a first sending unit, configured to send the target password to the other virtual machine;
the first control unit is used for controlling the other virtual machine to store the target password to the disk; the other virtual machine is a virtual machine in a starting state;
wherein, still include:
a first creating module, configured to create a temporary virtual machine before the first setting unit uses the disk of the target virtual machine as an auxiliary disk of another virtual machine, and use the temporary virtual machine as the another virtual machine;
a third control unit, configured to control the other virtual machine to shut down after the first control unit controls the other virtual machine to store the target password to the disk;
wherein the first adding module comprises:
and the first adding unit is used for adding the target password to the disk of the target virtual machine through a virtual tunnel if the target virtual machine is in a starting state.
6. A virtual machine password management apparatus, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the virtual secret code management method of any one of claims 1 to 4 when executing said computer program.
7. A computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, carries out the steps of the virtual secret management method according to any one of claims 1 to 4.
CN201911329502.8A 2019-12-20 2019-12-20 Virtual machine password management method, system, equipment and computer storage medium Active CN110968852B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911329502.8A CN110968852B (en) 2019-12-20 2019-12-20 Virtual machine password management method, system, equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911329502.8A CN110968852B (en) 2019-12-20 2019-12-20 Virtual machine password management method, system, equipment and computer storage medium

Publications (2)

Publication Number Publication Date
CN110968852A CN110968852A (en) 2020-04-07
CN110968852B true CN110968852B (en) 2022-09-30

Family

ID=70035612

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911329502.8A Active CN110968852B (en) 2019-12-20 2019-12-20 Virtual machine password management method, system, equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN110968852B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112783609A (en) * 2021-01-30 2021-05-11 浪潮云信息技术股份公司 Method for automatically resetting password for virtual machine on ESXI (electronic service organization) host

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105468433A (en) * 2015-11-19 2016-04-06 北京北信源软件股份有限公司 Method and system for acquiring disc data of virtual machines
CN107577516A (en) * 2017-07-28 2018-01-12 华为技术有限公司 Virtual machine password remapping method, device and system
CN110532761A (en) * 2019-08-16 2019-12-03 苏州浪潮智能科技有限公司 A kind of method and device updating virtual machine password

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9094210B2 (en) * 2009-10-26 2015-07-28 Citrix Systems, Inc. Systems and methods to secure a virtual appliance
CN110471744B (en) * 2019-08-20 2021-11-30 北京首都在线科技股份有限公司 Password modification method, device, equipment and computer readable storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105468433A (en) * 2015-11-19 2016-04-06 北京北信源软件股份有限公司 Method and system for acquiring disc data of virtual machines
CN107577516A (en) * 2017-07-28 2018-01-12 华为技术有限公司 Virtual machine password remapping method, device and system
CN110532761A (en) * 2019-08-16 2019-12-03 苏州浪潮智能科技有限公司 A kind of method and device updating virtual machine password

Also Published As

Publication number Publication date
CN110968852A (en) 2020-04-07

Similar Documents

Publication Publication Date Title
US10117253B2 (en) Mobile terminal and resource management method of mobile terminal
US10423572B2 (en) Performing live updates to file system volumes
CN103617380B (en) Application program authority dynamic control method and system
JP4736370B2 (en) Hosting environment construction method and computer system
CN109960517B (en) Method, device and system for manufacturing mirror image file and storage medium
EP2631795A1 (en) Terminal and method for assigning permission to application
TW201428508A (en) Remote backup system and remote backup method thereof
US10235048B2 (en) Data processing method and smart device
CN104350466A (en) Virtual machine image write leasing
CN110442426B (en) Password resetting method, device and storage medium
WO2016062146A1 (en) Serial number information update method, device and terminal
CN108132832B (en) Application program starting method and device
CN110968852B (en) Virtual machine password management method, system, equipment and computer storage medium
US10606632B2 (en) Preventing interruption during virtual machine reboot
JP2011150499A (en) Thin client system, thin client terminal, and thin client program
KR102035093B1 (en) Method for printing out restricted printing file under virtual desktop infra and virtualization system adopting the same
JP6065791B2 (en) Control program and information processing terminal
CN111090851B (en) Method and device for resetting virtual machine authentication information, host machine and storage medium
CN115576626A (en) Method, device and storage medium for safe mounting and dismounting of USB (Universal Serial bus) device
CN110673930B (en) Virtual machine migration method, virtualization device, storage medium and device
CN112463228A (en) Storage pool hybrid deployment method and device
CN112667444A (en) System upgrading method, storage medium and terminal equipment
CN114138344B (en) System verification method and terminal
CN109542588B (en) Method and device for managing virtual equipment in cloud environment
US20240028691A1 (en) Capability-restricted system control

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant