CN105260217A - Method of password external reset of linux virtual machine - Google Patents
Method of password external reset of linux virtual machine Download PDFInfo
- Publication number
- CN105260217A CN105260217A CN201510747195.0A CN201510747195A CN105260217A CN 105260217 A CN105260217 A CN 105260217A CN 201510747195 A CN201510747195 A CN 201510747195A CN 105260217 A CN105260217 A CN 105260217A
- Authority
- CN
- China
- Prior art keywords
- virtual machine
- password
- linux
- resets
- catalogue
- 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.)
- Pending
Links
Landscapes
- Stored Programmes (AREA)
Abstract
The invention relates to the field of cloud computing management, in particular to a method of password external reset of a linux virtual machine. The method comprises the steps of firstly setting a user name and a password for one linux virtual machine; then performing backup on a passwd file, a shadow file and a group file; then, entering the background contents of a host machine where the linux virtual machine is located; mounting a root file in the virtual machine to an mnt content; entering the mounted content, replacing three files in an etc content with the back-up passwd file, the shadow file and the group file; finally resetting the virtual machine, and completing the password reset of the virtual machine. The method provided by the invention has the advantages that third-party tools do not need to be installed, the method is simple and quick, has universality, and can be used for all password reset of an linux operating system, personal data of users in an original operating system are not damaged, and the method is used for the password reset of the linux virtual machine.
Description
Technical field
The present invention relates to cloud computing management domain, refer to that a kind of outside resets the method for linux virtual machine password especially.
Background technology
Under cloud computing environment, virtual machine is widely used, and the maintenance requirement for virtual machine is more and more higher, and owing to forgetting Password for client, needing to reset Linux virtual machine password is the difficult problem that O&M often runs into, and generally runs into this situation, has following solution:
1, third party's instrument is adopted to crack virtual machine password, as carry WinPE.
2, refitting VME operating system.
There is following drawback in said method:
1, adopt third party's instrument to crack virtual machine password, operate cumbersome, the time is relatively more of a specified duration, there is not versatility;
2, VME operating system of resetting can cause user data loss, inadvisable.
Summary of the invention
The technical matters that the present invention solves is to provide a kind of outside to reset the method for linux virtual machine password, solve the deficiency that classic method exists, without the need to installing third party's instrument, simple and fast, there is versatility, can use for (SuSE) Linux OS, not damage original operating system users personal data, for cloud platform O&M provides a kind of practicable solution.
The technical scheme that the present invention solves the problems of the technologies described above is:
Comprise the steps:
Step 1: look for a linux virtual machine, set user name and password;
Step 2: backup passwd, shadow, group file;
Step 3: enter Linux virtual machine place host catalogue;
Step 4: by virtual machine C dish file mount to mnt catalogue;
Step 5: enter mount directory, replaces lower three files of etc catalogue by passwd, shadow, group file of backup;
Step 6: restart virtual machine, completes virtual machine password and resets.
Described passwd, under/etc/ catalogue, is linux customer data base, and territory wherein gives other information of user name, encrypted ones and user;
Described shadow is the shadow password file of linux in the system of having installed shadow (shadow) password software;
Described group is the information that linux stores relevant local user group.
Described host, refers to the physical node creating virtual machine place.
Described etc catalogue, is specifically designed to the configuration file depositing linux system.
Described mnt is the abbreviation of mount, the catalogue of mounting CD-ROM drive, USB device, block device, after loading, can have more the catalogue of relevant device in mnt.
Described replacement, refers to the password password recovery of Linux virtual machine being become former setting.
Method of the present invention is without the need to installing third party's instrument, simple and fast; There is versatility, can use for (SuSE) Linux OS; Do not damage original operating system users personal data.
Accompanying drawing explanation
Below in conjunction with accompanying drawing, the present invention is further described:
Fig. 1 is process flow diagram of the present invention;
Embodiment
Embodiments of the present invention have multiple, and will be that example illustrates wherein a kind of implementation method based on KVM virtualization implementation here, as shown in Figure 1, specific implementation process be as follows for process flow diagram
1, look for a linux virtual machine, set user name and password, as root/root;
2, passwd, shadow, group file is backed up;
3, Linux virtual machine place host catalogue is entered
#cd/instances/work/admin/i-A1D93C99/
4, by virtual machine C dish file mount to mnt catalogue
#/opt/qemu1.2/bin/qemu-nbd-c/dev/nbd0emi-507A3AF8_snap.qcow2
#ntfs-3g/dev/nbd0p1/mnt/i-A1D93C99/ // attention, if linux2008 and win7 operating system, nbd0p1 will make nbd0p2 into
#cd/mnt/i-A1D93C99/|ll
5, enter mount directory, passwd, shadow, group file of backup is replaced lower three files of etc catalogue
#cppasswd/etc/passwd
#cpshadow/etc/shadow
#cpgroup/etc/group
6, restart virtual machine, complete virtual machine password and reset
#virshcreatelibvirt.xml。
Claims (10)
1. the outside method resetting linux virtual machine password, is characterized in that: comprise the steps:
Step 1: look for a linux virtual machine, set user name and password;
Step 2: backup passwd, shadow, group file;
Step 3: enter Linux virtual machine place host catalogue;
Step 4: by virtual machine C dish file mount to mnt catalogue;
Step 5: enter mount directory, replaces lower three files of etc catalogue by passwd, shadow, group file of backup;
Step 6: restart virtual machine, completes virtual machine password and resets.
2. a kind of outside according to claim 1 resets the method for linux virtual machine password, it is characterized in that: described passwd, under/etc/ catalogue, be linux customer data base, territory wherein gives other information of user name, encrypted ones and user;
Described shadow is the shadow password file of linux in the system of having installed shadow (shadow) password software;
Described group is the information that linux stores relevant local user group.
3. a kind of outside according to claim 1 resets the method for linux virtual machine password, it is characterized in that: described host, refers to the physical node creating virtual machine place.
4. a kind of outside according to claim 2 resets the method for linux virtual machine password, it is characterized in that: described host, refers to the physical node creating virtual machine place.
5. a kind of outside according to any one of Claims 1-4 resets the method for linux virtual machine password, it is characterized in that: described etc catalogue, is specifically designed to the configuration file depositing linux system.
6. a kind of outside according to any one of Claims 1-4 resets the method for linux virtual machine password, it is characterized in that: described mnt is the abbreviation of mount, the catalogue of mounting CD-ROM drive, USB device, block device, after loading, can have more the catalogue of relevant device in mnt.
7. a kind of outside according to claim 5 resets the method for linux virtual machine password, it is characterized in that: described mnt is the abbreviation of mount, and the catalogue of mounting CD-ROM drive, USB device, block device, after loading, can have more the catalogue of relevant device in mnt.
8. a kind of outside according to any one of Claims 1-4 resets the method for linux virtual machine password, it is characterized in that: described replacement, refers to the password password recovery of Linux virtual machine being become former setting.
9. a kind of outside according to claim 5 resets the method for linux virtual machine password, it is characterized in that: described replacement, refers to the password password recovery of Linux virtual machine being become former setting.
10. a kind of outside according to claim 6 resets the method for linux virtual machine password, it is characterized in that: described replacement, refers to the password password recovery of Linux virtual machine being become former setting.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510747195.0A CN105260217A (en) | 2015-11-03 | 2015-11-03 | Method of password external reset of linux virtual machine |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510747195.0A CN105260217A (en) | 2015-11-03 | 2015-11-03 | Method of password external reset of linux virtual machine |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105260217A true CN105260217A (en) | 2016-01-20 |
Family
ID=55099920
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510747195.0A Pending CN105260217A (en) | 2015-11-03 | 2015-11-03 | Method of password external reset of linux virtual machine |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105260217A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107577516A (en) * | 2017-07-28 | 2018-01-12 | 华为技术有限公司 | Virtual machine password remapping method, device and system |
CN108829490A (en) * | 2018-04-13 | 2018-11-16 | 广东睿江云计算股份有限公司 | A kind of method of cloud platform resetting KVM virtualization platform Linux virtual machine password |
CN108984230A (en) * | 2018-07-25 | 2018-12-11 | 郑州云海信息技术有限公司 | A kind of password remapping method and system based on Linux |
CN109002344A (en) * | 2018-06-12 | 2018-12-14 | 广东睿江云计算股份有限公司 | A kind of method of cloud management platform resetting KVM virtual machine password |
CN111639329A (en) * | 2020-06-01 | 2020-09-08 | 山东汇贸电子口岸有限公司 | Method and device for updating password of virtual machine |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101674291A (en) * | 2008-09-09 | 2010-03-17 | 英业达股份有限公司 | Network service system and method for remotely installing document thereof |
CN101944043A (en) * | 2010-09-27 | 2011-01-12 | 公安部第三研究所 | File access method of Linux virtual machine disk under Windows platform |
US20110202765A1 (en) * | 2010-02-17 | 2011-08-18 | Microsoft Corporation | Securely move virtual machines between host servers |
US20120054744A1 (en) * | 2010-05-10 | 2012-03-01 | Manbinder Pal Singh | Redirection of Information from Secure Virtual Machines to Unsecure Virtual Machines |
CN103473064A (en) * | 2013-09-18 | 2013-12-25 | 国云科技股份有限公司 | Method for monitoring use conditions of magnetic disk of virtual machine in host machine |
CN104424431A (en) * | 2013-08-30 | 2015-03-18 | 腾讯科技(深圳)有限公司 | Method and device for resetting virtual machine user login password |
-
2015
- 2015-11-03 CN CN201510747195.0A patent/CN105260217A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101674291A (en) * | 2008-09-09 | 2010-03-17 | 英业达股份有限公司 | Network service system and method for remotely installing document thereof |
US20110202765A1 (en) * | 2010-02-17 | 2011-08-18 | Microsoft Corporation | Securely move virtual machines between host servers |
US20120054744A1 (en) * | 2010-05-10 | 2012-03-01 | Manbinder Pal Singh | Redirection of Information from Secure Virtual Machines to Unsecure Virtual Machines |
CN101944043A (en) * | 2010-09-27 | 2011-01-12 | 公安部第三研究所 | File access method of Linux virtual machine disk under Windows platform |
CN104424431A (en) * | 2013-08-30 | 2015-03-18 | 腾讯科技(深圳)有限公司 | Method and device for resetting virtual machine user login password |
CN103473064A (en) * | 2013-09-18 | 2013-12-25 | 国云科技股份有限公司 | Method for monitoring use conditions of magnetic disk of virtual machine in host machine |
Non-Patent Citations (1)
Title |
---|
龙华,谢剑明: "《嵌入式Linux基础与实训教程》", 30 September 2015 * |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107577516A (en) * | 2017-07-28 | 2018-01-12 | 华为技术有限公司 | Virtual machine password remapping method, device and system |
CN107577516B (en) * | 2017-07-28 | 2020-08-14 | 华为技术有限公司 | Virtual machine password resetting method, device and system |
US11714669B2 (en) | 2017-07-28 | 2023-08-01 | Huawei Cloud Computing Technologies Co., Ltd. | Virtual machine password reset method, apparatus, and system |
CN108829490A (en) * | 2018-04-13 | 2018-11-16 | 广东睿江云计算股份有限公司 | A kind of method of cloud platform resetting KVM virtualization platform Linux virtual machine password |
CN109002344A (en) * | 2018-06-12 | 2018-12-14 | 广东睿江云计算股份有限公司 | A kind of method of cloud management platform resetting KVM virtual machine password |
CN109002344B (en) * | 2018-06-12 | 2021-01-15 | 广东睿江云计算股份有限公司 | Method for resetting KVM (keyboard video mouse) virtual machine password by cloud management platform |
CN108984230A (en) * | 2018-07-25 | 2018-12-11 | 郑州云海信息技术有限公司 | A kind of password remapping method and system based on Linux |
CN108984230B (en) * | 2018-07-25 | 2021-04-09 | 郑州云海信息技术有限公司 | Linux-based password resetting method and system |
CN111639329A (en) * | 2020-06-01 | 2020-09-08 | 山东汇贸电子口岸有限公司 | Method and device for updating password of virtual machine |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9304752B2 (en) | Software deployment in a distributed virtual machine environment | |
CN105260217A (en) | Method of password external reset of linux virtual machine | |
US9606876B2 (en) | Back up and recovery in virtual machine environments | |
US9652178B2 (en) | Systems and methods for protecting virtual machine data | |
US8880934B2 (en) | Method and system for co-existence of live migration protocols and cluster server failover protocols | |
US9542406B1 (en) | Verifying data consistency | |
US10061665B2 (en) | Preserving management services with self-contained metadata through the disaster recovery life cycle | |
JP6516730B2 (en) | Method and apparatus for backing up and restoring applications | |
US10747585B2 (en) | Methods and apparatus to perform data migration in a distributed environment | |
CN102937909B (en) | A kind of method of disposing and upgrading linux system | |
US10353619B1 (en) | Systems and methods for applying storage lifecycle policies to backups | |
US8595192B1 (en) | Systems and methods for providing high availability to instance-bound databases | |
US20150040125A1 (en) | Allowing management of a virtual machine by multiple cloud providers | |
US10169027B2 (en) | Upgrade of an operating system of a virtual machine | |
CN103747095A (en) | Virtual desktop system and method | |
CN105389495A (en) | Method for externally resetting password of windows virtual machine | |
US10332182B2 (en) | Automatic application layer suggestion | |
US9244668B1 (en) | Systems and methods for synchronizing mobile computing platforms | |
US10268466B2 (en) | Software installer with built-in hypervisor | |
CN104461757A (en) | Method and device for restoring virtual machines | |
US8776044B1 (en) | Systems and methods for providing computer cluster policies for implementation in computer cluster environments | |
CN105573671A (en) | Method for acquiring corresponding disk file of virtual machine disk | |
US20160020963A1 (en) | Consolidating Cross Product Contextual Help | |
US9372638B1 (en) | Systems and methods for backing up virtual machine data | |
US9390185B2 (en) | Command lines |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20160120 |