CN106557354B - Method for setting attribute parameters of private image and computer equipment - Google Patents
Method for setting attribute parameters of private image and computer equipment Download PDFInfo
- Publication number
- CN106557354B CN106557354B CN201611014963.2A CN201611014963A CN106557354B CN 106557354 B CN106557354 B CN 106557354B CN 201611014963 A CN201611014963 A CN 201611014963A CN 106557354 B CN106557354 B CN 106557354B
- Authority
- CN
- China
- Prior art keywords
- virtual machine
- registry
- private
- computer device
- image
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/45595—Network integration; Enabling network access in virtual machine instances
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
本申请涉及IT技术领域,尤其涉及公有云领域中私有镜像的属性参数的设置方法及计算机设备。在本申请提供的技术方案中,计算机设备获取所述私有镜像中的注册表文件路径;所述计算机设备根据所述注册表文件路径配置所述私有镜像中的虚拟机自动登录注册表和虚拟机开机自动启动脚本注册表。通过本申请提供的技术方案,用户不需要手动操作就可以修改私有镜像的属性信息,减少用户繁琐的手动配置、提高了用户体验。
The present application relates to the field of IT technologies, and in particular, to a method and a computer device for setting attribute parameters of a private image in the public cloud field. In the technical solution provided by this application, a computer device obtains a registry file path in the private image; the computer device configures the virtual machine in the private image to automatically log in to the registry and virtual machine according to the registry file path Automatically start the script registry at boot. With the technical solution provided by the present application, the user can modify the attribute information of the private image without manual operation, which reduces the cumbersome manual configuration of the user and improves the user experience.
Description
技术领域technical field
本申请涉及IT技术领域,尤其涉及公有云技术领域中私有镜像的属性参数的设置方法及计算机设备。The present application relates to the field of IT technology, and in particular, to a method and a computer device for setting attribute parameters of a private image in the field of public cloud technology.
背景技术Background technique
虚拟化技术是云计算领域的关键技术之一,可将物理机的物理资源虚拟成多个虚拟机(Virtual Machine,VM),物理资源被虚拟化平台以虚拟资源池的形式提供给各个虚拟机,不同的虚拟机可以分配给不同的用户,虚拟机之间共享物理资源。Virtualization technology is one of the key technologies in the field of cloud computing. It can virtualize the physical resources of a physical machine into multiple virtual machines (Virtual Machines, VMs). The physical resources are provided to each virtual machine by the virtualization platform in the form of a virtual resource pool. , different virtual machines can be assigned to different users, and physical resources are shared among virtual machines.
虚拟机可以视为通过软件模拟的具有完整硬件系统功能的、并运行在一个完全隔离环境中的完整计算机系统。虚拟机镜像是一个包含了软件及必要配置的云服务器模版。虚拟机镜像至少包含操作系统,还可以包含应用软件如数据库软件。A virtual machine can be regarded as a complete computer system with complete hardware system functions simulated by software and running in a completely isolated environment. A virtual machine image is a cloud server template that includes software and necessary configurations. A virtual machine image contains at least an operating system, and may also contain application software such as database software.
在公有云技术领域,虚拟机镜像可分为公共镜像和私有镜像两种。公共镜像是系统提供的默认镜像,是由云平台官方提供标准操作系统的公共基础镜像,对所有用户可见。而私有镜像则是用户创建的镜像,是基于云服务器或系统盘备份创建的个人镜像,仅用户自身可见;私有镜像可以包括标准操作系统、预安装的公共应用环境和用户的私有应用等。在具体应用中,用户可以使用公共镜像或者私有镜像申请弹性云服务器,也可以通过已有的云服务器创建私有镜像。In the field of public cloud technology, virtual machine images can be divided into two types: public images and private images. The public image is the default image provided by the system. It is the public basic image of the standard operating system officially provided by the cloud platform and is visible to all users. Private images are images created by users. They are personal images created based on cloud server or system disk backups, and are only visible to users themselves. Private images can include standard operating systems, pre-installed public application environments, and users' private applications. In specific applications, users can apply for an elastic cloud server using a public image or a private image, or create a private image from an existing cloud server.
在公有云场景下,公有云平台通过克隆方式或镜像导入方式生成私有镜像,使用该私有镜像创建虚拟机、并分配给用户使用。在创建虚拟机的过程中,或者用户通过公有云平台导入自己的私有镜像的过程中,用户不能提前对私有镜像的属性参数进行配置,如设置私有镜像的原始密码等。如果用户忘记了私有镜像的原始密码,则用户无法登录使用该私有镜像所创建的虚拟机。In the public cloud scenario, the public cloud platform generates a private image through cloning or image import, and uses the private image to create a virtual machine and assign it to users. During the process of creating a virtual machine, or when a user imports his own private image through the public cloud platform, the user cannot configure the property parameters of the private image in advance, such as setting the original password of the private image. If the user forgets the original password of the private image, the user cannot log in to the virtual machine created using the private image.
由于不能提前对虚拟机的属性参数进行配置,现有技术无法满足公有云技术领域下实际业务中用户的个性化需求,比如用户在不同生产环境下不同安全性的要求等。Since the attribute parameters of the virtual machine cannot be configured in advance, the existing technology cannot meet the individual requirements of users in actual services in the field of public cloud technology, such as different security requirements of users in different production environments.
发明内容SUMMARY OF THE INVENTION
本申请描述的实施例提供了公有云中私有镜像的属性参数的设置方法及计算机设备,以提高用户体验。The embodiments described in this application provide a method and a computer device for setting attribute parameters of a private image in a public cloud, so as to improve user experience.
一方面,本申请提供了公有云中私有镜像的属性参数的设置方法,包括:计算机设备获取所述私有镜像中的注册表文件路径;On the one hand, the present application provides a method for setting attribute parameters of a private image in a public cloud, including: obtaining a registry file path in the private image by a computer device;
所述计算机设备根据所述注册表文件路径修改所述私有镜像中的虚拟机自动登录注册表和虚拟机开机自动启动脚本注册表。The computer device modifies, according to the registry file path, the virtual machine automatic login registry and the virtual machine automatic startup script registry in the private image.
在一种可能的方式中,所述计算机设备获取所述私有镜像中的虚拟机系统文件,备份所述虚拟机系统文件,并对所述虚拟机系统文件执行清除操作。In a possible manner, the computer device acquires the virtual machine system file in the private image, backs up the virtual machine system file, and performs a clearing operation on the virtual machine system file.
在又一种可能的方式中,所述计算机设备修改所述私有镜像中的关闭事件跟踪程序注册表,使得使用所述私有镜像创建的虚拟机在启动后不显示关闭事件跟踪程序的对话框。In yet another possible manner, the computer device modifies the shutdown event tracker registry in the private image, so that the virtual machine created by using the private image does not display a dialog box for shutdown event tracker after startup.
在另一种可能的方式中,所述计算机设备根据所述注册表文件路径修改所述私有镜像中的虚拟机自动登录注册表和虚拟机开机自动启动脚本注册表之后,所述方法还包括:所述计算机设备根据修改后的私有镜像创建虚拟机。In another possible manner, after the computer device modifies the virtual machine automatic login registry and the virtual machine startup automatic startup script registry in the private image according to the registry file path, the method further includes: The computer device creates a virtual machine based on the modified private image.
在另一种可能的方式中,所述计算机设备获取所述私有镜像中的注册表文件路径之前,所述方法还包括:所述计算机设备将所述私有镜像作为临时数据盘挂载在临时主机上;所述计算机设备根据所述注册表文件路径修改所述私有镜像中的虚拟机自动登录注册表和虚拟机开机自动启动脚本注册表之后,所述方法还包括:所述计算机设备卸载所述临时主机的所述临时数据盘,并将所述临时数据盘作为系统盘挂载到所述私有镜像对应的虚拟机上。In another possible manner, before the computer device acquires the registry file path in the private image, the method further includes: the computer device mounts the private image as a temporary data disk on a temporary host After the computer device modifies the virtual machine automatic login registry and the virtual machine startup automatic startup script registry in the private image according to the registry file path, the method further includes: the computer device uninstalls the the temporary data disk of the temporary host, and mount the temporary data disk on the virtual machine corresponding to the private image as a system disk.
另一方面,本申请提供了一种计算机设备,包括获取模块和处理模块:On the other hand, the present application provides a computer device, including an acquisition module and a processing module:
所述获取模块用于获取私有镜像中的注册表文件路径;The obtaining module is used to obtain the registry file path in the private image;
所述处理模块用于根据所述注册表文件路径修改所述私有镜像中的虚拟机自动登录注册表和虚拟机开机自动启动脚本注册表。The processing module is configured to modify the virtual machine automatic login registry and the virtual machine automatic startup script registry in the private image according to the registry file path.
在一种可能的方式中,所述获取模块进一步用于获取所述私有镜像中的虚拟机系统文件;所述处理模块进一步用于备份所述虚拟机系统文件,并对所述虚拟机系统文件执行清除操作。In a possible manner, the obtaining module is further configured to obtain the virtual machine system file in the private image; the processing module is further configured to back up the virtual machine system file, and perform a backup of the virtual machine system file Perform a cleanup operation.
在又一种可能的方式中,所述处理模块进一步用于修改所述私有镜像中的关闭事件跟踪程序注册表。In another possible manner, the processing module is further configured to modify the shutdown event tracker registry in the private image.
在另一种可能的方式中,所述计算机设备还包括虚拟机创建模块,用于根据修改后的私有镜像创建虚拟机。In another possible manner, the computer device further includes a virtual machine creation module for creating a virtual machine according to the modified private image.
在另一种可能的方式中,所述计算机设备还包括虚拟机控制模块,用于在所述获取模块获取所述私有镜像中的注册表文件路径之前,将所述私有镜像作为临时数据盘挂载在临时主机上;所述虚拟机控制模块进一步用于在所述处理模块根据所述注册表文件路径修改所述私有镜像中的虚拟机自动登录注册表和虚拟机开机自动启动脚本注册表之后,卸载所述临时主机上的所述临时数据盘,并将所述临时数据盘作为系统盘挂载到所述私有镜像对应的虚拟机上。In another possible manner, the computer device further includes a virtual machine control module, configured to mount the private image as a temporary data disk before the acquisition module acquires the registry file path in the private image is loaded on the temporary host; the virtual machine control module is further configured to, after the processing module modifies the virtual machine automatic login registry and virtual machine startup script registry in the private image according to the registry file path , uninstall the temporary data disk on the temporary host, and mount the temporary data disk on the virtual machine corresponding to the private image as a system disk.
另一方面,本申请提供了一种计算机设备,所述计算机设备包括至少一处理器和至少一存储器,所述至少一个存储器用于存储计算机程序,所述至少一个处理器执行所述计算机程序后使得所述计算机设备执行本申请所记载的方法。In another aspect, the present application provides a computer device, the computer device includes at least one processor and at least one memory, the at least one memory is used to store a computer program, after the at least one processor executes the computer program The computer device is caused to execute the method described in this application.
另一方面,本申请一种计算机存储介质,所述计算机存储介质上储存为计算机软件指令,所述计算机软件指令运行后使计算机执行本申请所记载的方法。On the other hand, the present application provides a computer storage medium, wherein computer software instructions are stored on the computer storage medium, and after the computer software instructions are executed, the computer executes the method described in the present application.
相较于现有技术,本申请实施例所提供的技术方案,通过计算机设备执行脚本程序,用户可以在离线状态下对私有镜像的属性参数进行修改,从而满足实际业务中用户的个性化需求,提高了用户体验。Compared with the prior art, in the technical solutions provided by the embodiments of the present application, by executing a script program on a computer device, the user can modify the attribute parameters of the private image in an offline state, thereby meeting the personalized needs of the user in the actual business, Improved user experience.
附图说明Description of drawings
为说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍。显而易见地,下面附图中反映的仅仅是本申请的一部分实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得本申请的其他实施方式。而所有这些实施例或实施方式都在本申请的保护范围之内。In order to illustrate the embodiments of the present application or the technical solutions in the prior art, the accompanying drawings that are required to be used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the following drawings reflect only a part of the embodiments of the present application. For those of ordinary skill in the art, other embodiments of the present application can also be obtained according to these drawings without any creative effort. . And all these embodiments or implementations are within the protection scope of the present application.
图1为实现本申请实施例的一种可能的系统结构示意图;1 is a schematic diagram of a possible system structure for implementing an embodiment of the present application;
图2为为本申请实施例提供的计算机设备示意图;2 is a schematic diagram of a computer device provided in an embodiment of the present application;
图3为本申请实施例提供的修改私有镜像的虚拟机登录密码的方法流程示意图;3 is a schematic flowchart of a method for modifying a virtual machine login password of a private image provided by an embodiment of the present application;
图4为本申请实施例提供的一种计算机设备的结构示意图。FIG. 4 is a schematic structural diagram of a computer device according to an embodiment of the present application.
具体实施方式Detailed ways
下面将结合附图,对本申请实施例中的技术方案进行描述。显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有付出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the protection scope of the present application.
本申请实施例描述的网络架构以及业务场景是为了说明本申请实施例的技术方案,并不构成对于本申请实施例提供的技术方案的限定,本领域普通技术人员可知,随着网络架构的演变和新业务场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。The network architecture and service scenarios described in the embodiments of the present application are to illustrate the technical solutions of the embodiments of the present application, and do not constitute limitations on the technical solutions provided by the embodiments of the present application. With the emergence of new business scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
如图1所示,本申请提供了一种云服务系统的系统架构示意图,用户操作客户端106通过网络104接入云服务,登录虚拟机。该云服务系统包括主机102。As shown in FIG. 1 , the present application provides a schematic diagram of a system architecture of a cloud service system. A user operates a client 106 to access a cloud service through a network 104 and log in to a virtual machine. The cloud service system includes a host 102 .
客户端106:用户通过该客户端106连接到云服务系统,用户可以通过客户端106申请开通云服务业务、申请虚拟机、以及申请重置虚拟机OS登录密码等业务。该客户端106可以基于各种类型的平台,包括但不限于Web Portal、IOS、安卓、Linux以及Windows平台等。该客户端106可以安装在用户设备上,本申请所涉及到的用户设备可以包括各种具有通信功能的手持设备、车载设备、可穿戴设备、计算设备或连接到各类网络的处理设备,以及各种形式移动台(Mobile station,简称MS),终端(terminal),终端设备(TerminalEquipment)等。为方便描述,本申请中,上面提到的设备统称为用户设备。Client 106: The user connects to the cloud service system through the client 106, and the user can apply for services such as activating cloud service services, applying for virtual machines, and resetting virtual machine OS login passwords through the client 106. The client 106 may be based on various types of platforms, including but not limited to Web Portal, IOS, Android, Linux, and Windows platforms. The client 106 may be installed on user equipment, and the user equipment involved in this application may include various handheld devices with communication functions, vehicle-mounted devices, wearable devices, computing devices or processing devices connected to various networks, and Various forms of mobile station (Mobile station, MS for short), terminal (terminal), terminal equipment (TerminalEquipment) and so on. For the convenience of description, in this application, the devices mentioned above are collectively referred to as user equipment.
主机102:可以为各种类型的物理服务器,用于提供物理资源。主机102上运行有虚拟机监视器(Virtual Machine Monitor,VMM)1020。VMM 1020是位于操作系统和硬件1022之间的代码。使用虚拟机技术后,硬件1022被分割成多个虚拟机(Virtual Machine,VM),如图1中的VM1、VM2、VM3……VMn。虚拟机是模拟出来的一台虚拟的计算机,也即逻辑上的一台计算机。VMM 1020可以隔离并且管理上层运行的多个虚拟机,仲裁它们对底层硬件的访问,并为每个虚拟机虚拟一套独立于实际硬件的虚拟硬件环境,如处理器、内存、I/O设备等。Host 102: It can be various types of physical servers for providing physical resources. A virtual machine monitor (Virtual Machine Monitor, VMM) 1020 runs on the host 102 . VMM 1020 is code that sits between the operating system and hardware 1022. After using the virtual machine technology, the hardware 1022 is divided into a plurality of virtual machines (Virtual Machine, VM), such as VM1, VM2, VM3, . . . VMn in FIG. 1 . A virtual machine is a simulated virtual computer, that is, a logical computer.
图2所示为本申请实施例提供的计算机设备示意图。计算机设备200包括至少一个处理器201,通信总线202,至少一个存储器203以及至少一个通信接口204。FIG. 2 is a schematic diagram of a computer device according to an embodiment of the present application.
处理器201可以是一个通用中央处理器(CPU)、微处理器、特定应用集成电路(application-specific integrated circuit,ASIC),或一个或多个用于控制本申请方案程序执行的集成电路。The
通信总线202可包括一通路,在上述组件之间传输信息。所述通信接口204,可以是使用任何收发器一类的装置,用于与其他设备或通信网络之间的通信。这里的通信网络可以是以太网,无线接入网(Radio Access Network,RAN),无线局域网(Wireless LocalArea Networks,WLAN)等。The communication bus 202 may include a path to transfer information between the components described above. The
存储器203可以是只读存储器(read-only memory,ROM)、可存储静态信息和指令的静态存储设备、随机存取存储器(random access memory,RAM)、或者可存储信息和指令的动态存储设备,也可以是电可擦可编程只读存储器(Electrically ErasableProgrammable Read-Only Memory,EEPROM)、只读光盘(Compact Disc Read-Only Memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。存储器203可以是独立存在,通过通信总线202与处理器201相连接;存储器203也可以和处理器201集成在一起。The
上述存储器203可用于存储执行本申请方案的应用程序代码;处理器201可用于执行存储器203中存储的应用程序代码。The above-mentioned
作为具体实现的一种实施例,计算机设备200可以包括多个处理器,例如图2中的处理器201和处理器208。这些处理器中的每一个都可以是单核(single-CPU)处理器,也可以是多核(multi-CPU)处理器。每个处理器本身,如处理器201可以包括一个或多个CPU,例如CPU0和CPU1。As an example of specific implementation, the
计算机设备200还可以包括输出设备205和输入设备206。输出设备205和处理器201通信,可以以多种方式来显示信息。输出设备205可以是液晶显示器(liquid crystaldisplay,LCD)、发光二级管(light emitting diode,LED)显示设备、阴极射线管(cathoderay tube,CRT)显示设备、或投影仪(projector)等。输入设备206和处理器201通信,可以以多种方式接收用户的输入。输入设备206可以是鼠标、键盘、触摸屏设备或传感设备等。
计算机设备200可以是通用计算机设备、或者专用计算机设备。在具体实现中,计算机设备200可以是台式机、便携式电脑、网络服务器、掌上电脑(Personal DigitalAssistant,PDA)、移动手机、平板电脑、无线终端设备、通信设备、或嵌入式设备等。本申请实施例不限定计算机设备200的类型。
需要说明的是,图2所示的计算机设备200仅仅是给出了云服务系统中各部分的可能的硬件实现方式,根据系统各部分功能的不同或者变化,可以对计算机设备的硬件组件进行增删,以使得与系统各部分的功能进行匹配。It should be noted that the
在用户使用虚拟机的过程中,用户可以手动修改注册表项来修改虚拟机的属性参数。以用户修改虚拟机的默认登录密码为例,用户可以进行如下操作:During the process of using the virtual machine, the user can manually modify the registry key to modify the attribute parameters of the virtual machine. Taking the user modifying the default login password of the virtual machine as an example, the user can perform the following operations:
1)手动展开“HKEY_LOCAL_MACHINE>SOFTWARE>Microsoft>Windows NT>CurrentVersion>Winlogon”以显示“Winlogon”下所有的注册表项,修改“DefaultPassword”的值、并将“AutoAdminLogon”修改为1;1) Manually expand "HKEY_LOCAL_MACHINE>SOFTWARE>Microsoft>Windows NT>CurrentVersion>Winlogon" to display all registry keys under "Winlogon", modify the value of "DefaultPassword", and modify "AutoAdminLogon" to 1;
2)手动展开“HKEY_LOCAL_MACHINE>SOFTWARE>Microsoft>Windows>CurrentVersion>Run”以显示“Run”下所有的注册表项,双击“(Default)”弹出对话框后在数值数据项中输入“C:\setpass.vbs”。2) Manually expand "HKEY_LOCAL_MACHINE>SOFTWARE>Microsoft>Windows>CurrentVersion>Run" to display all registry keys under "Run", double-click "(Default)" to pop up a dialog box and enter "C:\setpass" in the value data item .vbs".
通过上面的操作,用户人为配置了虚拟机的默认登录密码,可以用该虚拟机作为镜像模板创建其他新的虚拟机,从而实现在该新创建的虚拟机中使用自定义的登录密码。当然类似地,用户也可以通过找到虚拟机的其他属性参数对应的注册表项来修改相应的属性参数的值。Through the above operations, the user manually configures the default login password of the virtual machine, and can use the virtual machine as an image template to create other new virtual machines, so as to use the customized login password in the newly created virtual machine. Of course, similarly, the user can also modify the values of the corresponding attribute parameters by finding the registry entries corresponding to other attribute parameters of the virtual machine.
在具体实现过程中,用户也可以不需要手动操作,而是通过脚本程序修改私有镜像的属性信息如虚拟机登录密码;从而在用该虚拟机作为私有镜像创建新的虚拟机后,用户就可以使用设定的登录密码登录该新创建的虚拟机。下面结合图3,对修改私有镜像的虚拟机登录密码的实施例进行详细描述。In the specific implementation process, the user can also modify the attribute information of the private image such as the virtual machine login password through a script program without manual operation; thus, after using the virtual machine as a private image to create a new virtual machine, the user can Log in to the newly created virtual machine using the set login password. The embodiment of modifying the virtual machine login password of the private image will be described in detail below with reference to FIG. 3 .
步骤301:计算机设备获取私有镜像中的系统密码文件和注册表文件路径。Step 301: The computer device obtains the path of the system password file and the registry file in the private image.
在步骤301的实现中,计算机设备可以先根据挂载私有镜像的目录即“$rootPath”来识别挂载私有镜像的操作系统类型。若挂载目录是“$rootPath/Windows/”,则说明该虚拟机使用的是Windows系统;若挂载目录是“$rootPath/root/”,则说明该虚拟机使用的是Linux操作系统。In the implementation of
以Windows系统为例,系统密码文件路径是"$rootPath/Windows/System32/config/SAM",注册表文件路径是"$rootPath/Windows/System32/config/SOFTWARE"。为描述方便,本申请中的“Windows/System32/config/”可以用“$configPath/”来表示,而“Windows/System32/config/SOFTWARE”则可以用“$systemSoftwarePath”来表示。Taking the Windows system as an example, the system password file path is "$rootPath/Windows/System32/config/SAM", and the registry file path is "$rootPath/Windows/System32/config/SOFTWARE". For the convenience of description, "Windows/System32/config/" in this application may be represented by "$configPath/", and "Windows/System32/config/SOFTWARE" may be represented by "$systemSoftwarePath".
步骤302:计算机设备先备份上述系统密码文件,然后对系统密码文件执行密码清除操作。Step 302: The computer device first backs up the system password file, and then performs a password clearing operation on the system password file.
具体以Windows系统为例,计算机设备先备份"$rootPath/Windows/System32/config/"目录下的系统密码文件如SAM文件,然后利用chntpw操作将该SAM文件Administrator用户的密码清空。如下为实现步骤302的示例伪代码:Taking the Windows system as an example, the computer device first backs up the system password file in the "$rootPath/Windows/System32/config/" directory, such as the SAM file, and then uses the chntpw operation to clear the password of the Administrator user in the SAM file. The following is an example pseudocode for implementing step 302:
cp-f$rootPath/$configPath/SAM$rootPath/$configPath/SAM_BAKcp -f $rootPath/$configPath/SAM$rootPath/$configPath/SAM_BAK
chntpw-u Administrator$rootPath/$configPath/SAM<<EOFchntpw -u Administrator $rootPath/$configPath/SAM<<EOF
>1>1
>y>y
>EOF>EOF
需要说明的是,该步骤302中计算机设备备份系统密码文件是为了安全考虑,一旦本实施例中修改私有镜像的虚拟机登录密码的操作未成功,还可以恢复到之前的状态。。It should be noted that in
步骤303:计算机设备修改私有镜像中的虚拟机自动登录注册表和虚拟机开机自动启动脚本注册表。Step 303: The computer device modifies the virtual machine automatic login registry and the virtual machine automatic startup script registry in the private image.
以Windows系统为例,虚拟机自动登录注册表的示例如下:Taking the Windows system as an example, the example of the virtual machine automatically logging in to the registry is as follows:
Windows Registry Editor Version 5.00Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\Winlogon]NT\CurrentVersion\Winlogon]
"AutoAdminLogon"="1""AutoAdminLogon"="1"
"DefaultUserName"="Administrator""DefaultUserName"="Administrator"
"DefaultPassword"="""DefaultPassword"=""
以Windows系统为例的虚拟机开机自动启动脚本注册表的示例如下:An example of the script registry that automatically starts the virtual machine when the Windows system is started is as follows:
Windows Registry Editor Version 5.00Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run][HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
"InitScript"="c:\\setpass.vbs""InitScript"="c:\\setpass.vbs"
步骤303中计算机设备可以使用如下示例的伪代码修改虚拟机自动登录注册表:In
reged-I$rootPath/$systemSoftwarePath HKEY_LOCAL_MACHINE\\SOFTWARE/opt/reged -I$rootPath/$systemSoftwarePath HKEY_LOCAL_MACHINE\\SOFTWARE/opt/
ecs_scripts/winlogon.reg–Cecs_scripts/winlogon.reg–C
该步骤303中,计算机设备可以使用如下示例的伪代码修改虚拟机开机自动启动脚本注册表:In
reged-I$rootPath/$systemSoftwarePath HKEY_LOCAL_MACHINE\\SOFTWARE/opt/reged -I$rootPath/$systemSoftwarePath HKEY_LOCAL_MACHINE\\SOFTWARE/opt/
ecs_scripts/runsetpass.reg–Cecs_scripts/runsetpass.reg–C
步骤304:计算机设备修改私有镜像中的关闭事件跟踪程序注册表,使得虚拟机在启动后不显示关闭事件跟踪程序的对话框。Step 304: The computer device modifies the shutdown event tracker registry in the private image, so that the virtual machine does not display a dialog box for shutdown event tracker after startup.
以Windows系统为例的关闭事件跟踪程序注册表的示例如下:An example of closing the event tracker registry on a Windows system is as follows:
Windows Registry Editor Version 5.00Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Reliability][HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\Reliability]
"ShutdownReasonOn"=dword:00000000"ShutdownReasonOn"=dword:00000000
在步骤304中,计算机设备可以使用如下示例的伪代码修改关闭事件跟踪程序注册表:In
reged-I$rootPath/$systemSoftwarePath HKEY_LOCAL_MACHINE\\SOFTWARE/opt/reged -I$rootPath/$systemSoftwarePath HKEY_LOCAL_MACHINE\\SOFTWARE/opt/
ecs_scripts/reliability.reg–Cecs_scripts/reliability.reg–C
步骤304中通过修改私有镜像中的关闭事件跟踪程序注册表,可以减少对虚拟机的自动登录流程的影响,提高用户体验。In
需要说明的是,在上述步骤302之前,计算机设备还可以对私有镜像进行检测,判断该私有镜像的虚拟机登录密码是否已经被修改过。如该私有镜像的虚拟机登录密码已经被修改过了,则该计算机设备不对该虚拟机的虚拟机登录密码进行修改;只在该私有镜像的虚拟机登录密码未被修改过的情况下,计算机设备才执行上述图3所示的修改私有镜像的虚拟机登录密码的实施例。例如,计算机设备可以利用reged命令将SOFTWARE注册表文件中的自动运行程序注册键导出后,来判断该私有镜像的虚拟机登录密码是否已经被修改过。假如该自动运行程序注册键中同时包含"setpass.vbs"和"InitScript",则该虚拟机的私有镜像是已经做过了"InitScript"="C:\\setpass.vbs"配置的私有镜像。具体实现伪代码示例如下:It should be noted that, before the
使用本申请图3所示的上述实施例,通过计算机设备执行脚本程序,用户可以在离线状态下对私有镜像的属性参数进行修改,从而可以满足实际业务中用户的个性化需求,比如用户在不同生产环境下不同安全性的要求,提高了用户体验。Using the above-mentioned embodiment shown in FIG. 3 of the present application, by executing the script program on the computer device, the user can modify the attribute parameters of the private image in an offline state, so as to meet the personalized needs of the user in the actual business. Different security requirements in the production environment improve the user experience.
比如用户通过克隆方式创建私有镜像或用户通过公有云平台导入自己的私有镜像时,用户无需手动去配置私有镜像的属性参数,就可以直接在使用该私有镜像创建虚拟机时完成虚拟机初始登录密码的注入。以基于XEN虚拟化的公有云平台下的Windows虚拟机为例,用户在通过公有云界面创建虚拟机时可以自定义初始的登录密码,该登录密码通过云计算管理平台OpenStack的接口发送给虚拟化管理平台,由虚拟化管理平台在计算节点代理(Computing Node Agent,CNA)上将Windows系统磁盘的镜像文件挂载在Domain0上、并识别出SAM文件和SOFTWARE注册表所在的目录,虚拟化管理平台将开机启动的脚本文件setpass.vbs和密码配置文件passwd.inf复制到私有镜像(即Windows系统磁盘的镜像文件)的挂载目录下,即Windows系统的C盘根目录下,同时虚拟化管理平台修改挂在该挂载目录下的Windows系统磁盘的镜像文件的属性参数。这样虚拟机启动后就可以触发执行开机自动启动脚本setpass.vbs,实现对私有镜像的属性参数如虚拟机登录密码的设置,然后清理上述密码配置文件passwd.inf和开机自动启动脚本setpass.vbs,并还原注册表以实现对开启启动脚本注册表和自动登录注册表设置的清理,从而恢复现场环境、重启虚拟机,将一个干净的虚拟机登录窗口呈现给用户。For example, when a user creates a private image by cloning or imports his own private image through a public cloud platform, the user can directly complete the initial login password of the virtual machine when using the private image to create a virtual machine without manually configuring the property parameters of the private image. injection. Taking the Windows virtual machine under the public cloud platform based on XEN virtualization as an example, the user can customize the initial login password when creating a virtual machine through the public cloud interface, and the login password is sent to the virtual machine through the interface of the cloud computing management platform OpenStack. Management platform, the virtualization management platform mounts the image file of the Windows system disk on Domain0 on the computing node agent (Computing Node Agent, CNA), and identifies the directory where the SAM file and the SOFTWARE registry are located, the virtualization management platform Copy the startup script file setpass.vbs and the password configuration file passwd.inf to the mount directory of the private image (that is, the image file of the Windows system disk), that is, the root directory of the C drive of the Windows system, and the virtualization management platform Modify the attribute parameters of the image file of the Windows system disk mounted in the mount directory. In this way, after the virtual machine is started, it can trigger the execution of the boot auto-start script setpass.vbs, realize the setting of the property parameters of the private image such as the virtual machine login password, and then clean up the above-mentioned password configuration file passwd.inf and boot auto-start script setpass.vbs, And restore the registry to realize the cleaning of the startup script registry and the automatic login registry settings, so as to restore the on-site environment, restart the virtual machine, and present a clean virtual machine login window to the user.
另一方面,在用户使用公有云虚拟机的场景中,如果用户忘记了虚拟机管理员密码,也可以通过本申请图3所示的上述实施例实现对虚拟机的登录密码进行重新设置。计算机设备先将用户的私有镜像通过镜像服务管理平台导入到公有云平台,并在以此私有镜像创建虚拟机实例之前将虚拟机的系统镜像文件作为临时数据盘挂载在预先准备的临时主机上。仍以Windows虚拟机为例,用户可以先准备一台临时Linux虚拟机作为上述临时主机以备用,并通过如下操作重新设置虚拟机的登录密码:On the other hand, in the scenario where the user uses a public cloud virtual machine, if the user forgets the virtual machine administrator password, the login password of the virtual machine can also be reset by the above-mentioned embodiment shown in FIG. 3 of the present application. The computer device first imports the user's private image to the public cloud platform through the image service management platform, and mounts the virtual machine's system image file as a temporary data disk on a pre-prepared temporary host before creating a virtual machine instance from this private image. . Still taking a Windows virtual machine as an example, you can prepare a temporary Linux virtual machine as the above temporary host for backup, and reset the login password of the virtual machine by performing the following operations:
1)修改Windows虚拟机的安全组规则,如关闭“TCP”协议项的3389端口,以防止其他IP地址访问该虚拟机;1) Modify the security group rules of the Windows virtual machine, such as closing port 3389 of the "TCP" protocol item, to prevent other IP addresses from accessing the virtual machine;
2)关闭Windows虚拟机,卸载该Windows虚拟机的系统盘作为Windows虚拟机的私有镜像,并将该系统盘作为临时数据盘挂载到预先准备的临时Linux虚拟机上;2) close the Windows virtual machine, unload the system disk of the Windows virtual machine as the private image of the Windows virtual machine, and mount the system disk on the temporary Linux virtual machine prepared in advance as a temporary data disk;
3)远程登录该临时Linux虚拟机,安装上述挂载的临时数据盘,如临时数据盘中支持NTFS文件系统的软件包和修改windows注册表的工具;3) Remotely log in to the temporary Linux virtual machine, and install the above-mentioned temporary data disk, such as a software package that supports the NTFS file system and a tool for modifying the Windows registry in the temporary data disk;
4)执行修改Windows虚拟机登录密码的脚本;清除Windows虚拟机的原始登录密码;4) Execute the script for modifying the login password of the Windows virtual machine; clear the original login password of the Windows virtual machine;
5)在线卸载临时Linux虚拟机的临时数据盘即原Windows虚拟机的系统盘,并将该临时数据盘即Windows虚拟机的系统盘重新挂载回原Windows虚拟机上;5) Unload the temporary data disk of the temporary Linux virtual machine online, that is, the system disk of the original Windows virtual machine, and remount the temporary data disk, that is, the system disk of the Windows virtual machine, back on the original Windows virtual machine;
6)开启原Windows虚拟机,并恢复上述1)中被修改的安全规则,如开放“TCP”协议项的3389端口。6) Open the original Windows virtual machine, and restore the security rules modified in 1) above, such as opening port 3389 of the "TCP" protocol item.
本申请上述实施例仅以设置虚拟机的登录密码为例,虚拟机的其他属性参数也可以通过类似的方式来设置。比如在setpass.vbs脚本中增加设置机器名和IP地址的操作本发明上述实施例也可以用于配置私有镜像中的机器名、IP地址信息等。具体如下:The above embodiments of the present application only take setting the login password of the virtual machine as an example, and other attribute parameters of the virtual machine can also be set in a similar manner. For example, the operation of setting the machine name and the IP address is added to the setpass.vbs script. The above embodiments of the present invention can also be used to configure the machine name and IP address information in the private image. details as follows:
1)在用私有镜像创建虚拟机之前,可以将私有镜像挂载到Domain0上,并在底层通过离线配置的方式自动登录,将开机自动启动脚本写到注册表中,同时根据用户自己设定的虚拟机登录密码、机器名和IP地址等属性参数之一或其组合通过OpenStack的接口传递下来,生成相应的自定义配置文件如passwd.inf、network.inf、hostname.inf等;并将这些自定义配置文件注入到Windows系统的根目录即“$rootPath”下。1) Before using the private image to create a virtual machine, you can mount the private image to Domain0, and automatically log in through offline configuration at the bottom layer, write the boot-up automatic startup script into the registry, and at the same time according to the user's own settings One or a combination of attribute parameters such as virtual machine login password, machine name, and IP address is passed down through the OpenStack interface, and corresponding custom configuration files such as passwd.inf, network.inf, hostname.inf, etc. are generated; and these custom The configuration file is injected into the root directory of the Windows system, namely "$rootPath".
2)虚拟机启动自动登录后,即触发执行开机自动启动脚本setpass.vbs,从中读取自定义配置文件passwd.inf、network.inf、hostname.inf等以进行虚拟机属性参数的配置。2) After the virtual machine starts automatic login, it triggers the execution of the automatic startup script setpass.vbs, and reads the custom configuration files passwd.inf, network.inf, hostname.inf, etc. to configure the virtual machine attribute parameters.
3)删除上述自定义配置文件和setpass.vbs脚本,并还原注册表。3) Delete the above custom configuration file and setpass.vbs script, and restore the registry.
如图4所示,为本申请实施例提供的一种计算机设备400的结构示意图,该计算机设备400包括获取模块402和处理模块404。其中:As shown in FIG. 4 , which is a schematic structural diagram of a computer device 400 provided in an embodiment of the present application, the computer device 400 includes an
获取模块402用于获取私有镜像中的注册表文件路径;The obtaining
处理模块404则用于根据上述注册表文件路径修改上述私有镜像中的虚拟机自动登录注册表和虚拟机开机自动启动脚本注册表。The
通过图4所示的计算机设备,用户无需手动操作即可设置私有镜像的属性参数的。以修改私有镜像中的虚拟机登录密码为例,处理模块404可以使用本申请图3所示的实施例中的方法来实现。在具体实现中,因存在修改私有镜像的虚拟机登录密码的操作未成功的情况,为安全考虑,本申请的计算机设备400中的获取模块402还可以进一步用于获取上述私有镜像中的虚拟机系统文件,由处理模块404对该虚拟机系统文件用于备份、并执行清除操作。With the computer device shown in FIG. 4 , the user can set the attribute parameters of the private image without manual operation. Taking the modification of the virtual machine login password in the private image as an example, the
为减少对虚拟机的自动登录流程的影响,提高用户体验,计算机设备400中的处理模块404还可以修改私有镜像中的关闭事件跟踪程序注册表,使得虚拟机在启动后不显示关闭事件跟踪程序的对话框。In order to reduce the impact on the automatic login process of the virtual machine and improve the user experience, the
本申请的计算机设备400还可以包括虚拟机创建模块406,用于根据修改后的私有镜像创建虚拟机。这样当用户在使用通过克隆方式创建的私有镜像或通过公有云平台导入自己的私有镜像来创建虚拟机时,使用本申请的计算机设备400,用户无需手动去配置私有镜像的属性参数,就可以直接在创建虚拟机时完成属性参数的设置,如虚拟机初始登录密码的注入。并在设置完属性参数后,恢复现场环境、重启虚拟机,将一个干净的虚拟机登录窗口呈现给用户,从而提高了用户体验。The computer device 400 of the present application may further include a virtual
本申请的计算机设备400还可以包括虚拟机控制模块408。虚拟机控制模块408用于在获取模块402获取上述私有镜像中的注册表文件路径之前,将该虚拟机的系统盘作为临时数据盘挂载在临时主机上;进一步地,虚拟机控制模块408还用于在处理模块404根据注册表文件路径修改上述私有镜像中的虚拟机自动登录注册表和虚拟机开机自动启动脚本注册表之后,卸载临时主机上的临时数据盘,并将临时数据盘作为系统盘挂载到上述私有镜像对应的虚拟机上。上述虚拟机控制模块408还可以用于关闭上述私有镜像对应的虚拟机。The computer device 400 of the present application may also include a virtual
在用户使用公有云虚拟机的场景中,如果用户忘记了虚拟机管理员密码,通过上述虚拟机控制模块408的配合,计算机设备400可以通过本申请图3所示的上述实施例实现对虚拟机的属性参数如登录密码进行重新设置。In a scenario where a user uses a public cloud virtual machine, if the user forgets the password of the virtual machine administrator, through the cooperation of the virtual
需要说明的是,本申请的上述一种计算机400可以包括至少一处理器和至少一存储器,上述至少一个处理器执行上述至少一个存储器存储的计算机程序后,计算机设备400执行本申请上述实施例提供的设置虚拟机的属性参数的方法。It should be noted that the above-mentioned computer 400 of the present application may include at least one processor and at least one memory. After the at least one processor executes the computer program stored in the at least one memory, the computer device 400 executes the computer program provided by the above embodiments of the present application. The method of setting the property parameters of the virtual machine.
本申请实施例还提供了一种计算机存储介质,用于储存计算机软件指令,其包含用于执行本申请上述方法实施例所设计的程序。通过执行存储的程序,可以实现本申请提供的设置虚拟机的属性参数的方法。The embodiments of the present application further provide a computer storage medium for storing computer software instructions, which include the programs designed for executing the above method embodiments of the present application. By executing the stored program, the method for setting attribute parameters of a virtual machine provided by the present application can be implemented.
尽管在此结合各实施例对本申请进行了描述,然而,在实施所要求保护的本申请过程中,本领域技术人员通过查看所述附图、公开内容、以及所附权利要求书,可理解并实现所述公开实施例的其他变化。在权利要求中,“包括”(comprising)一词不排除其他组成部分或步骤,“一”或“一个”不排除多个的情况。单个处理器或其他单元可以实现权利要求中列举的若干项功能。相互不同的从属权利要求中记载了某些措施,但这并不表示这些措施不能组合起来产生良好的效果。Although the application is described herein in conjunction with the various embodiments, those skilled in the art will understand and understand from a review of the drawings, the disclosure, and the appended claims in practicing the claimed application. Other variations of the disclosed embodiments are implemented. In the claims, the word "comprising" does not exclude other components or steps, and "a" or "an" does not exclude a plurality. A single processor or other unit may fulfill the functions of several items recited in the claims. The mere fact that certain measures are recited in mutually different dependent claims does not indicate that these measures cannot be combined to advantage.
本领域技术人员应明白,本申请的实施例可提供为方法、装置(设备)、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。计算机程序存储/分布在合适的介质中,与其它硬件一起提供或作为硬件的一部分,也可以采用其他分布形式,如通过Internet或其它有线或无线电信系统。It should be understood by those skilled in the art that the embodiments of the present application may be provided as a method, an apparatus (apparatus), or a computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein. The computer program is stored/distributed in a suitable medium, provided with or as part of other hardware, or may take other forms of distribution, such as over the Internet or other wired or wireless telecommunication systems.
本申请是参照本申请实施例的方法、装置(设备)和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to the flowcharts and/or block diagrams of the methods, apparatuses (devices) and computer program products of the embodiments of the present application. It will be understood that each process and/or block in the flowchart illustrations and/or block diagrams, and combinations of processes and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to the processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing device to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing device produce Means for implementing the functions specified in a flow or flow of a flowchart and/or a block or blocks of a block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, the instructions The apparatus implements the functions specified in the flow or flow of the flowcharts and/or the block or blocks of the block diagrams.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing device to cause a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process such that The instructions provide steps for implementing the functions specified in the flow or blocks of the flowcharts and/or the block or blocks of the block diagrams.
尽管结合具体特征及其实施例对本申请进行了描述,显而易见的,在不脱离本申请的精神和范围的情况下,可对其进行各种修改和组合。相应地,本说明书和附图仅仅是所附权利要求所界定的本申请的示例性说明,且视为已覆盖本申请范围内的任意和所有修改、变化、组合或等同物。显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。Although the application has been described in conjunction with specific features and embodiments thereof, it will be apparent that various modifications and combinations can be made therein without departing from the spirit and scope of the application. Accordingly, this specification and drawings are merely exemplary illustrations of the application as defined by the appended claims, and are deemed to cover any and all modifications, variations, combinations or equivalents within the scope of this application. Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201611014963.2A CN106557354B (en) | 2016-11-17 | 2016-11-17 | Method for setting attribute parameters of private image and computer equipment |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201611014963.2A CN106557354B (en) | 2016-11-17 | 2016-11-17 | Method for setting attribute parameters of private image and computer equipment |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN106557354A CN106557354A (en) | 2017-04-05 |
| CN106557354B true CN106557354B (en) | 2020-12-25 |
Family
ID=58444857
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201611014963.2A Active CN106557354B (en) | 2016-11-17 | 2016-11-17 | Method for setting attribute parameters of private image and computer equipment |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN106557354B (en) |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109684028B (en) * | 2017-10-18 | 2024-04-12 | 中兴通讯股份有限公司 | Method, device and equipment for separating operating system from user data |
| CN109445709B (en) * | 2018-11-05 | 2022-09-20 | 郑州云海信息技术有限公司 | Method and device for managing storage resources in virtualization system |
| CN113296873B (en) * | 2020-05-15 | 2024-08-06 | 阿里巴巴集团控股有限公司 | Mirror image construction method and device, terminal equipment and computer storage medium |
| CN114756368A (en) * | 2022-04-19 | 2022-07-15 | 国汽大有时空科技(安庆)有限公司 | Method, system and storage medium for dynamic capacity expansion based on cloud server execution machine |
Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101414274A (en) * | 2007-10-18 | 2009-04-22 | 上海广联电子有限公司 | Method for rapidly recovering picking machine system |
| US7996414B2 (en) * | 2008-02-29 | 2011-08-09 | International Business Machines Corporation | Method and system for separating file system metadata from other metadata in virtual machine image format |
| CN102402446A (en) * | 2011-11-22 | 2012-04-04 | 成都市华为赛门铁克科技有限公司 | Application software installation method and application software installation device |
| CN102637144A (en) * | 2012-03-31 | 2012-08-15 | 奇智软件(北京)有限公司 | System fault processing method and device |
| CN103514023A (en) * | 2013-10-22 | 2014-01-15 | 中国科学院信息工程研究所 | Method and system for off-line and automatically installing software of virtual machine |
| US8839228B2 (en) * | 2010-04-21 | 2014-09-16 | Ca, Inc. | System and method for updating an offline virtual machine |
| CN104182257A (en) * | 2011-11-22 | 2014-12-03 | 华为数字技术(成都)有限公司 | Application software installation method and device |
-
2016
- 2016-11-17 CN CN201611014963.2A patent/CN106557354B/en active Active
Patent Citations (7)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101414274A (en) * | 2007-10-18 | 2009-04-22 | 上海广联电子有限公司 | Method for rapidly recovering picking machine system |
| US7996414B2 (en) * | 2008-02-29 | 2011-08-09 | International Business Machines Corporation | Method and system for separating file system metadata from other metadata in virtual machine image format |
| US8839228B2 (en) * | 2010-04-21 | 2014-09-16 | Ca, Inc. | System and method for updating an offline virtual machine |
| CN102402446A (en) * | 2011-11-22 | 2012-04-04 | 成都市华为赛门铁克科技有限公司 | Application software installation method and application software installation device |
| CN104182257A (en) * | 2011-11-22 | 2014-12-03 | 华为数字技术(成都)有限公司 | Application software installation method and device |
| CN102637144A (en) * | 2012-03-31 | 2012-08-15 | 奇智软件(北京)有限公司 | System fault processing method and device |
| CN103514023A (en) * | 2013-10-22 | 2014-01-15 | 中国科学院信息工程研究所 | Method and system for off-line and automatically installing software of virtual machine |
Also Published As
| Publication number | Publication date |
|---|---|
| CN106557354A (en) | 2017-04-05 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11405274B2 (en) | Managing virtual network functions | |
| US10419426B2 (en) | Cached credentials for offline domain join and login without local access to the domain controller | |
| US9361147B2 (en) | Guest customization | |
| US12190122B2 (en) | Remote provisioning of hosts in public clouds | |
| CN109154888B (en) | Super fusion system equipped with coordinator | |
| US9477507B2 (en) | State customization of forked virtual machines | |
| US10437617B2 (en) | Offline volume modifications | |
| CN109168328B (en) | Method, device and virtualization system for virtual machine migration | |
| US9052940B2 (en) | System for customized virtual machine for a target hypervisor by copying image file from a library, and increase file and partition size prior to booting | |
| US10303458B2 (en) | Multi-platform installer | |
| US20150178108A1 (en) | Fast Instantiation of Virtual Machines | |
| US9710292B2 (en) | Allowing management of a virtual machine by multiple cloud providers | |
| JP2022522643A (en) | Launching a secure guest using the initial program loading mechanism | |
| US20170192808A1 (en) | Self-terminating or self-shelving virtual machines and workloads | |
| CN106557354B (en) | Method for setting attribute parameters of private image and computer equipment | |
| US10409631B2 (en) | Setup of management system in a virtualization system | |
| CN111367722B (en) | Virtual machine backup method, device and equipment and readable storage medium | |
| CN112286633A (en) | Virtual machine creating method, device, equipment and storage medium based on CloudStack platform | |
| CN115499413A (en) | Method and system for configuring fixed IP addresses of virtual machines in batches based on KVM | |
| US10740021B1 (en) | Systems and methods for recovery of computing environments via a replication solution | |
| CN112994907B (en) | Network configuration method, device, storage medium and equipment of virtual machine | |
| CN115879095A (en) | Password reset method, device, computing device and computer storage medium | |
| CN119597358A (en) | Bare metal server configuration method and server |
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 | ||
| TR01 | Transfer of patent right | ||
| TR01 | Transfer of patent right |
Effective date of registration: 20220215 Address after: 550025 Huawei cloud data center, jiaoxinggong Road, Qianzhong Avenue, Gui'an New District, Guiyang City, Guizhou Province Patentee after: Huawei Cloud Computing Technologies Co.,Ltd. Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd. |