[go: up one dir, main page]

CN102591671A - Method for starting application program in virtual environment - Google Patents

Method for starting application program in virtual environment Download PDF

Info

Publication number
CN102591671A
CN102591671A CN201110007651XA CN201110007651A CN102591671A CN 102591671 A CN102591671 A CN 102591671A CN 201110007651X A CN201110007651X A CN 201110007651XA CN 201110007651 A CN201110007651 A CN 201110007651A CN 102591671 A CN102591671 A CN 102591671A
Authority
CN
China
Prior art keywords
virtual machine
application program
host
address
starting
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
Application number
CN201110007651XA
Other languages
Chinese (zh)
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.)
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry Co Ltd
Original Assignee
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry 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 Hongfujin Precision Industry Shenzhen Co Ltd, Hon Hai Precision Industry Co Ltd filed Critical Hongfujin Precision Industry Shenzhen Co Ltd
Priority to CN201110007651XA priority Critical patent/CN102591671A/en
Publication of CN102591671A publication Critical patent/CN102591671A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

A method for starting an application program in a virtual environment includes the steps: receiving an enabled instruction of one application program from a user by the aid of a host operating system; acquiring operating environmental parameters of the application program; acquiring an IP (internet protocol) address of a virtual machine; enabling a host to be connected with the virtual machine; sending a starting command of the application program to a guest operating system, wherein the starting command comprises a path and execution parameters of the application program; and enabling the guest operating system to start the application program according to the starting command. According to the technical scheme, the application program can be conveniently and quickly started in the virtual environment.

Description

在虚拟环境中启动应用程序的方法Ways to start an application in a virtual environment

技术领域 technical field

本发明涉及虚拟化技术领域,特别是涉及一种在虚拟环境中启动应用程序的方法。The invention relates to the technical field of virtualization, in particular to a method for starting an application program in a virtual environment.

背景技术 Background technique

虚拟化技术允许一个平台同时运行多个操作系统,而且每一个操作系统都运行在一个虚拟机上,每一个操作系统中都有多个程序运行,这样,应用程序就可以在相互独立的空间内运行而互不影响,一方面显著提高了计算机的资源利用率,另一方面也解决了跨平台软件的兼容性问题。Virtualization technology allows a platform to run multiple operating systems at the same time, and each operating system runs on a virtual machine, and each operating system has multiple programs running, so that applications can run in independent spaces. Running without affecting each other, on the one hand, it significantly improves the resource utilization of the computer, and on the other hand, it also solves the compatibility problem of cross-platform software.

一个完整的虚拟化环境,至少包括一个主机(Host)和一个运行于主机之上的虚拟机(Virtual Machine),主机上运行的操作系统称之为主机操作系统(Host OS),虚拟机上运行的操作系统称之为客户操作系统(Guest OS)。用户要从主机操作系统启动一个需要运行在某一客户操作系统中的应用程序时,需要先从主机上启动该客户操作系统所在的虚拟机,进入客户操作系统后,再找到应用程序的路径,执行相应的程序,有必要的话还要输入执行相应程序所需的执行参数。这对用户来说,是不太便捷的,尤其在需要启动多个运行于不同客户操作系统中的应用程序时,用户不得不手动启动多个虚拟机进入多个客户操作系统,分别启动多个应用程序,这样繁琐的操作给用户带来了极大的不便,也给用户带来了较高的学习成本。A complete virtualization environment includes at least one host (Host) and a virtual machine (Virtual Machine) running on the host. The operating system running on the host is called the host operating system (Host OS). The operating system is called the guest operating system (Guest OS). When a user wants to start an application that needs to run in a certain guest operating system from the host operating system, he needs to start the virtual machine where the guest operating system is located on the host first, and then find the path of the application after entering the guest operating system. The corresponding program is executed, and if necessary, the execution parameters required for executing the corresponding program are input. This is not very convenient for the user, especially when it is necessary to start multiple applications running in different guest operating systems, the user has to manually start multiple virtual machines to enter multiple guest operating systems, and start multiple virtual machines respectively. Such cumbersome operations have brought great inconvenience to users, and also brought high learning costs to users.

发明内容 Contents of the invention

鉴于以上内容,有必要提供一种便捷的在虚拟环境中启动应用程序的方法。In view of the above, it is necessary to provide a convenient method for starting applications in a virtual environment.

根据本发明,提供一种在虚拟环境中启动应用程序的方法,所述虚拟环境包括主机及运行于主机上的虚拟机,所述主机包括主机操作系统,所述虚拟机包括客户操作系统,所述方法包括以下步骤:According to the present invention, a method for starting an application program in a virtual environment is provided, the virtual environment includes a host and a virtual machine running on the host, the host includes a host operating system, and the virtual machine includes a guest operating system, so Said method comprises the following steps:

所述主机操作系统接收用户对一应用程序的启动指令;The host operating system receives a user's start command for an application program;

获取所述应用程序的运行环境参数;Acquiring the operating environment parameters of the application program;

获取所述虚拟机的IP地址;Obtain the IP address of the virtual machine;

建立所述主机与所述虚拟机的连接;establishing a connection between the host and the virtual machine;

向所述客户操作系统发出所述应用程序的启动命令,所述启动命令包括所述应用程序的路径和执行参数;及issuing a startup command of the application program to the guest operating system, where the startup command includes the path and execution parameters of the application program; and

所述客户操作系统根据所述启动命令,启动所述应用程序。The guest operating system starts the application program according to the start command.

优选地,所述运行环境参数包括虚拟机名称、虚拟机MAC地址、客户操作系统类型、应用程序的路径和执行参数。Preferably, the operating environment parameters include virtual machine name, virtual machine MAC address, guest operating system type, application path and execution parameters.

优选地,所述方法还包括在所述主机操作系统上建立所述应用程序的快捷方式,所述快捷方式关联所述应用程序的运行环境参数。Preferably, the method further includes creating a shortcut of the application program on the host operating system, and the shortcut is associated with operating environment parameters of the application program.

进一步优选地,所述快捷方式显示为一第一图标。Further preferably, the shortcut is displayed as a first icon.

可选地,所述方法在启动所述应用程序的后的等待期间里,所述快捷方式显示为一第二图标。Optionally, during the waiting period after starting the application program in the method, the shortcut is displayed as a second icon.

可选地,所述方法在启动所述应用程序的后的等待期间里,在所述主机操作系统上显示一个进度条,所述进度条用于表示所述应用程序的启动进度。Optionally, during the waiting period after starting the application, the method displays a progress bar on the host operating system, where the progress bar is used to represent the startup progress of the application.

可选地,所述方法中的获取所述虚拟机的IP地址的步骤具体包括以下步骤:Optionally, the step of obtaining the IP address of the virtual machine in the method specifically includes the following steps:

获取所述虚拟机的名称;Obtain the name of the virtual machine;

从虚拟机IP地址映射表中获取所述虚拟机名称对应的IP地址。Obtain the IP address corresponding to the virtual machine name from the virtual machine IP address mapping table.

可选地,所述方法中的获取所述虚拟机的IP地址的步骤具体包括以下步骤:Optionally, the step of obtaining the IP address of the virtual machine in the method specifically includes the following steps:

获取所述虚拟机的MAC地址;Obtain the MAC address of the virtual machine;

使用反向地址转换协议获取所述MAC地址对应的IP地址。Obtain the IP address corresponding to the MAC address by using a reverse address translation protocol.

进一步优选地,所述方法在获取所述虚拟机的IP地址的步骤后还包括以下步骤:Further preferably, after the step of obtaining the IP address of the virtual machine, the method further includes the following steps:

获取所述虚拟机的名称;Obtain the name of the virtual machine;

将所述虚拟机的名称和IP地址写入到虚拟机IP地址映射表中。Write the name and IP address of the virtual machine into the virtual machine IP address mapping table.

可选地,所述运行环境参数存放于可扩展标记语言文件中。Optionally, the operating environment parameters are stored in an Extensible Markup Language file.

可选地,所述方法中建立所述主机与所述虚拟机的连接的步骤具体包括以下步骤:Optionally, the step of establishing the connection between the host and the virtual machine in the method specifically includes the following steps:

所述主机向所述虚拟机的IP地址发出连接请求;The host sends a connection request to the IP address of the virtual machine;

如果所述主机接收到所述虚拟机的请求响应,则与所述虚拟机建立TCP协议的连接;If the host receives the request response from the virtual machine, establish a TCP protocol connection with the virtual machine;

如果所述主机没有接收到所述虚拟机的请求响应或接收到的请求响应无效,则启动或重新启动所述虚拟机,与所述虚拟机建立TCP协议的连接。If the host does not receive the request response from the virtual machine or the received request response is invalid, start or restart the virtual machine, and establish a TCP protocol connection with the virtual machine.

与现有技术相比,上述在虚拟环境中启动应用程序的方法,可以使用户方便快捷的从一个主机操作系统中启动一个或多个需要运行在不同客户操作系统中的应用程序,而且多个属于不同操作系统的应用程序可以无干扰的同时运行在一个主机上,用户也无需识记繁琐的操作。Compared with the prior art, the above-mentioned method for starting an application program in a virtual environment can enable a user to conveniently and quickly start one or more application programs that need to run in different guest operating systems from a host operating system, and multiple Applications belonging to different operating systems can run on one host at the same time without interference, and users do not need to memorize cumbersome operations.

附图说明 Description of drawings

图1为本发明一种实施方式中的虚拟环境架构示意图。FIG. 1 is a schematic diagram of a virtual environment architecture in an embodiment of the present invention.

图2为本发明一种实施方式中的在虚拟环境中启动应用程序的架构示意图。Fig. 2 is a schematic diagram of the architecture of starting an application program in a virtual environment in an embodiment of the present invention.

图3为本发明一种实施方式中的应用程序的快捷方式关联的运行环境参数的数据结构示意图。Fig. 3 is a schematic diagram of the data structure of the running environment parameters associated with the shortcut of the application program in an embodiment of the present invention.

图4为本发明一种实施方式中的在虚拟环境中启动应用程序的方法的流程图。Fig. 4 is a flowchart of a method for starting an application in a virtual environment in an embodiment of the present invention.

具体实施方式 Detailed ways

下面结合具体实施方式和附图对本发明做进一步详细的说明。The present invention will be described in further detail below in combination with specific implementation methods and accompanying drawings.

请参阅图1,示意性的示出了根据本发明一种实施方式的虚拟环境架构,所述虚拟环境包括主机及运行于主机上的若干虚拟机,运行在主机上的操作系统称之为主机操作系统,用于管理虚拟机以及为虚拟机分配和调度主机的资源,比如CPU、内存和存储器等,在一些虚拟环境中,行使所述主机操作系统功能的系统称之为Hypervisor。运行在虚拟机上的操作系统称之为客户操作系统,由于虚拟机之间是相互独立的,所以虚拟机上的客户操作系统可以是多种类型并且互不干扰,比如虚拟机1上的客户操作系统为Windows XP,虚拟机2上的客户操作系统为Chromium,虚拟机3上的客户操作系统为ubuntu,多个虚拟机上的客户操作系统可以同时运行。Please refer to Fig. 1, which schematically shows a virtual environment architecture according to an embodiment of the present invention, the virtual environment includes a host and several virtual machines running on the host, and the operating system running on the host is called the host The operating system is used to manage the virtual machine and allocate and schedule host resources for the virtual machine, such as CPU, memory, and storage. In some virtual environments, the system that performs the function of the host operating system is called a Hypervisor. The operating system running on the virtual machine is called the guest operating system. Since the virtual machines are independent of each other, the guest operating systems on the virtual machine can be of various types without interfering with each other. For example, the guest operating system on virtual machine 1 The operating system is Windows XP, the guest operating system on virtual machine 2 is Chromium, the guest operating system on virtual machine 3 is ubuntu, and the guest operating systems on multiple virtual machines can run simultaneously.

在虚拟环境中,主机通过NAT端口映射为每一个虚拟机分配一个内部IP地址,虚拟机通过分配到的IP地址,共享使用主机的网络资源。而主机和虚拟机之间或虚拟机和虚拟机之间,可以使用TCP协议来建立连接关系,实现数据通信。In a virtual environment, the host assigns an internal IP address to each virtual machine through NAT port mapping, and the virtual machines share and use the network resources of the host through the assigned IP address. Between the host and the virtual machine or between the virtual machines, the TCP protocol can be used to establish a connection relationship and realize data communication.

请参阅图2,示意性的示出了根据本发明一种实施方式的在虚拟环境中启动应用程序的架构。用户需要运行多个应用程序,而这些应用程序拥有不同的运行环境参数,比如有的应用程序需要运行A操作系统下,有的需要运行在B操作系统下,有的还需要在运行时提供执行参数。本实施方式在所述主机操作系统上建立所述应用程序的快捷方式,所述快捷方式关联所述应用程序的运行环境参数。用户只需要在所述主机操作系统中执行所述应用程序的快捷方式,就可以启动快捷方式关联的所述应用程序。Please refer to FIG. 2 , which schematically shows a framework for starting an application program in a virtual environment according to an embodiment of the present invention. Users need to run multiple applications, and these applications have different operating environment parameters. For example, some applications need to run under the A operating system, some need to run under the B operating system, and some need to provide execution during runtime. parameter. In this embodiment, a shortcut of the application program is established on the host operating system, and the shortcut is associated with the operating environment parameters of the application program. The user only needs to execute the shortcut of the application in the host operating system to start the application associated with the shortcut.

请参阅图3,示意性的示出了根据本发明一种实施方式的应用程序的快捷方式关联的运行环境参数的数据结构。在一种实施方式中,为了给用户提供一种直观的界面,所述快捷方式显示为一第一图标。用户通过所述第一图标可以方便快速的浏览和查找要启动的应用程序。为了提供更加友好的用户体验,在另外一种实施方式中,当所述快捷方式被用户点击执行而对应的应用程序还未被启动完成的等待期间,所述快捷方式显示为一第二图标,所述第二图标用于提示用户对应的应用程序已经在启动中,以避免用户重复点击执行快捷方式。Please refer to FIG. 3 , which schematically shows a data structure of running environment parameters associated with a shortcut of an application program according to an embodiment of the present invention. In an implementation manner, in order to provide an intuitive interface for the user, the shortcut is displayed as a first icon. Through the first icon, the user can conveniently and quickly browse and find the application program to be started. In order to provide a more friendly user experience, in another implementation manner, when the shortcut is clicked and executed by the user and the corresponding application program has not been started, the shortcut is displayed as a second icon, The second icon is used to prompt the user that the corresponding application program is already being started, so as to prevent the user from repeatedly clicking and executing the shortcut.

如图3所示,所述应用程序的快捷方式关联的运行环境参数的数据结构包括第一图片路径、第二图片路径、虚拟机名称、虚拟机Mac地址、客户操作系统类型、应用程序路径以及执行参数等数据项。当然,为扩展所述应用程序的快捷方式关联的运行环境参数,该数据结构可以随需增删数据项。As shown in Figure 3, the data structure of the running environment parameters associated with the shortcut of the application program includes the first image path, the second image path, the name of the virtual machine, the Mac address of the virtual machine, the type of the guest operating system, the path of the application program, and Data items such as execution parameters. Of course, in order to expand the operating environment parameters associated with the shortcuts of the application programs, data items can be added or deleted as needed in the data structure.

请参阅图4,示意性的示出了根据本发明一种实施方式的在虚拟环境中启动应用程序的方法的流程图,所述虚拟环境包括主机及运行于主机上的虚拟机,所述主机包括主机操作系统,所述虚拟机包括客户操作系统,所述方法包括以下步骤:Please refer to FIG. 4 , which schematically shows a flowchart of a method for starting an application in a virtual environment according to an embodiment of the present invention, the virtual environment includes a host and a virtual machine running on the host, and the host A host operating system is included, the virtual machine includes a guest operating system, and the method includes the following steps:

在步骤S401中,所述主机操作系统接收用户对所述应用程序的启动指令。在一种实施方式中,启动所述应用程序的入口为位于所述主机操作系统中的快捷方式,所述快捷方式关联所述应用程序的运行环境参数。用户通过双击或其他预先设定的操作,向所述主机操作系统发出对所述应用程序的启动指令。In step S401, the host operating system receives a user's instruction to start the application. In an implementation manner, the entry for starting the application program is a shortcut located in the host operating system, and the shortcut is associated with the running environment parameters of the application program. The user sends an instruction to start the application program to the host operating system by double-clicking or other preset operations.

在步骤S402中,获取所述应用程序的运行环境参数,所述运行环境参数包括虚拟机名称、虚拟机MAC地址、客户操作系统类型、应用程序的路径和执行参数。在一种实施方式中,所述运行环境参数存放于可扩展标记语言文件中。In step S402, the running environment parameters of the application program are obtained, and the running environment parameters include the name of the virtual machine, the MAC address of the virtual machine, the type of the guest operating system, the path of the application program, and execution parameters. In one embodiment, the operating environment parameters are stored in an Extensible Markup Language file.

在步骤S403中,获取所述虚拟机的IP地址。In step S403, the IP address of the virtual machine is acquired.

在一种实施方式中,获取所述虚拟机的IP地址的步骤具体包括:获取所述虚拟机的名称;从虚拟机IP地址映射表中获取所述虚拟机名称对应的IP地址。所述主机通过NAT端口映射为每一个虚拟机分配一个内部IP地址,并将该映射关系记录到所述虚拟机IP地址映射表中。In one embodiment, the step of obtaining the IP address of the virtual machine specifically includes: obtaining the name of the virtual machine; obtaining the IP address corresponding to the name of the virtual machine from a virtual machine IP address mapping table. The host allocates an internal IP address to each virtual machine through NAT port mapping, and records the mapping relationship into the virtual machine IP address mapping table.

在另一种实施方式中,获取所述虚拟机的IP地址的步骤具体包括:获取所述虚拟机的MAC地址;使用反向地址转换协议获取所述MAC地址对应的IP地址。反向地址转换协议(RARP:Reverse Address Resolution Protocol)允许处于一个网域中的物理机器从网关服务器的ARP表或者缓存上请求其IP地址。在虚拟环境中,所述主机即为若干所述虚拟机的网关服务器。In another implementation manner, the step of obtaining the IP address of the virtual machine specifically includes: obtaining the MAC address of the virtual machine; and obtaining the IP address corresponding to the MAC address by using a reverse address translation protocol. The Reverse Address Resolution Protocol (RARP: Reverse Address Resolution Protocol) allows a physical machine in a network domain to request its IP address from the ARP table or cache of the gateway server. In a virtual environment, the host is a gateway server for several virtual machines.

为了减少系统开销,在进一步改进的实施方式中,所述方法在获取所述虚拟机的IP地址的步骤后还包括:获取所述虚拟机的名称;将所述虚拟机的名称和IP地址写入到虚拟机IP地址映射表中。In order to reduce system overhead, in a further improved implementation, after the step of obtaining the IP address of the virtual machine, the method further includes: obtaining the name of the virtual machine; writing the name and IP address of the virtual machine to into the virtual machine IP address mapping table.

在步骤S404中,建立所述主机与所述虚拟机的连接。在本实施方式中,所述主机与所述虚拟机之间使用TCP协议建立连接,TCP协议是一种可靠的、面向连接的传输控制协议。所述主机向所述虚拟机的IP地址发出连接请求,如果所述主机接收到所述虚拟机的请求响应,则与所述虚拟机建立一种TCP协议的连接,如果所述主机没有接收到所述虚拟机的请求响应或接收到的请求响应无效,则表明此时的所述虚拟机可能没有运作,或者运作中处于异常状态,无法回应所述主机发送的连接请求,在这种情况下,需要启动或重新启动所述虚拟机,再与所述虚拟机建立TCP协议的连接。In step S404, a connection between the host and the virtual machine is established. In this implementation manner, a connection is established between the host and the virtual machine using the TCP protocol, which is a reliable, connection-oriented transmission control protocol. The host sends a connection request to the IP address of the virtual machine, and if the host receives the virtual machine's request response, establishes a TCP protocol connection with the virtual machine; if the host does not receive If the request response or received request response of the virtual machine is invalid, it indicates that the virtual machine may not be operating at this time, or may be in an abnormal state during operation, and cannot respond to the connection request sent by the host. In this case , it is necessary to start or restart the virtual machine, and then establish a TCP protocol connection with the virtual machine.

在步骤S405中,向所述客户操作系统发出所述应用程序的启动命令,所述启动命令包括所述应用程序的路径和执行参数。所述应用程序的路径是指所述应用程序在所述客户操作系统中的路径。所述主机操作系统通过建立的TCP协议连接,将所述启动命令发送给所述客户操作系统。In step S405, a startup command of the application program is sent to the guest operating system, and the startup command includes the path and execution parameters of the application program. The path of the application program refers to the path of the application program in the guest operating system. The host operating system sends the startup command to the guest operating system through the established TCP protocol connection.

在步骤S406中,所述客户操作系统根据所述启动命令,启动所述应用程序。In step S406, the guest operating system starts the application program according to the start command.

在另外一种实施方式中,所述在虚拟环境中启动应用程序的方法还包括,在所述主机操作系统上建立所述应用程序的快捷方式,所述快捷方式关联所述应用程序的运行环境参数。为了给用户提供一种直观的界面,所述快捷方式显示为一第一图标。用户通过所述第一图标可以方便快速的浏览和查找要启动的应用程序。为了提供更加友好的用户体验,在另外一种实施方式中,当所述快捷方式被用户点击执行而对应的应用程序还未被启动完成的等待期间,所述快捷方式显示为一第二图标,所述第二图标用于提示用户对应的应用程序已经在启动中,以避免用户重复点击执行快捷方式。In another embodiment, the method for starting an application in a virtual environment further includes creating a shortcut of the application on the host operating system, and the shortcut is associated with the running environment of the application parameter. In order to provide an intuitive interface for the user, the shortcut is displayed as a first icon. Through the first icon, the user can conveniently and quickly browse and find the application program to be started. In order to provide a more friendly user experience, in another implementation manner, when the shortcut is clicked and executed by the user and the corresponding application program has not been started, the shortcut is displayed as a second icon, The second icon is used to prompt the user that the corresponding application program is already being started, so as to prevent the user from repeatedly clicking and executing the shortcut.

在另外一种实施方式中,所述在虚拟环境中启动应用程序的方法在启动所述应用程序的后的等待期间里,在所述主机操作系统上显示一个进度条,所述进度条用于表示所述应用程序的启动进度。In another embodiment, the method for starting an application in a virtual environment displays a progress bar on the host operating system during the waiting period after starting the application, and the progress bar is used for Indicates the startup progress of the application in question.

对本领域的技术人员来说,可以根据本发明的发明方案和发明构思结合生产的实际需要做出其他相应的改变或调整,而这些改变和调整都应属于本发明权利要求的保护范围。For those skilled in the art, other corresponding changes or adjustments can be made according to the inventive solution and inventive concept of the present invention combined with the actual needs of production, and these changes and adjustments should all belong to the protection scope of the claims of the present invention.

Claims (10)

1.一种在虚拟环境中启动应用程序的方法,所述虚拟环境包括主机及运行于主机上的虚拟机,所述主机包括主机操作系统,所述虚拟机包括客户操作系统,其特征在于:所述方法包括以下步骤:1. A method for starting an application program in a virtual environment, the virtual environment includes a host and a virtual machine running on the host, the host includes a host operating system, and the virtual machine includes a guest operating system, characterized in that: The method comprises the steps of: 所述主机操作系统接收用户对一应用程序的启动指令;The host operating system receives a user's start command for an application program; 获取所述应用程序的运行环境参数;Acquiring the operating environment parameters of the application program; 获取所述虚拟机的IP地址;Obtain the IP address of the virtual machine; 建立所述主机与所述虚拟机的连接;establishing a connection between the host and the virtual machine; 向所述客户操作系统发出所述应用程序的启动命令,所述启动命令包括所述应用程序的路径和执行参数;及issuing a startup command of the application program to the guest operating system, where the startup command includes the path and execution parameters of the application program; and 所述客户操作系统根据所述启动命令,启动所述应用程序。The guest operating system starts the application program according to the start command. 2.如权利要求1所述的在虚拟环境中启动应用程序的方法,其特征在于:所述运行环境参数包括虚拟机名称、虚拟机MAC地址、客户操作系统类型、应用程序的路径和执行参数。2. The method for starting an application program in a virtual environment as claimed in claim 1, wherein the operating environment parameters include virtual machine name, virtual machine MAC address, guest operating system type, path and execution parameters of the application program . 3.如权利要求1所述的在虚拟环境中启动应用程序的方法,其特征在于:所述方法还包括以下步骤:3. The method for starting an application program in a virtual environment as claimed in claim 1, wherein said method further comprises the following steps: 在所述主机操作系统上建立所述应用程序的快捷方式,所述快捷方式关联所述应用程序的运行环境参数。A shortcut of the application program is established on the host operating system, and the shortcut is associated with operating environment parameters of the application program. 4.如权利要求3所述的在虚拟环境中启动应用程序的方法,其特征在于:所述快捷方式显示为一第一图标。4. The method for starting an application program in a virtual environment according to claim 3, wherein the shortcut is displayed as a first icon. 5.如权利要求3所述的在虚拟环境中启动应用程序的方法,其特征在于:所述方法在启动所述应用程序的后的等待期间里,所述快捷方式显示为一第二图标。5 . The method for starting an application in a virtual environment according to claim 3 , wherein the shortcut is displayed as a second icon during the waiting period after starting the application. 5 . 6.如权利要求1所述的在虚拟环境中启动应用程序的方法,其特征在于:所述方法在启动所述应用程序的后的等待期间里,在所述主机操作系统上显示一个进度条,所述进度条用于表示所述应用程序的启动进度。6. The method for starting an application program in a virtual environment as claimed in claim 1, wherein the method displays a progress bar on the host operating system during the waiting period after starting the application program , the progress bar is used to represent the startup progress of the application. 7.如权利要求2所述的在虚拟环境中启动应用程序的方法,其特征在于:所述方法中的获取所述虚拟机的IP地址的步骤具体包括以下步骤:7. The method for starting an application program in a virtual environment as claimed in claim 2, wherein the step of obtaining the IP address of the virtual machine in the method specifically comprises the following steps: 获取所述虚拟机的名称;Obtain the name of the virtual machine; 从虚拟机IP地址映射表中获取所述虚拟机名称对应的IP地址。Obtain the IP address corresponding to the virtual machine name from the virtual machine IP address mapping table. 8.如权利要求2所述的在虚拟环境中启动应用程序的方法,其特征在于:所述方法中的获取所述虚拟机的IP地址的步骤具体包括以下步骤:8. The method for starting an application program in a virtual environment as claimed in claim 2, wherein the step of obtaining the IP address of the virtual machine in the method specifically comprises the following steps: 获取所述虚拟机的MAC地址;Obtain the MAC address of the virtual machine; 使用反向地址转换协议获取所述MAC地址对应的IP地址。Obtain the IP address corresponding to the MAC address by using a reverse address translation protocol. 9.如权利要求8所述的在虚拟环境中启动应用程序的方法,其特征在于:所述方法在获取所述虚拟机的IP地址的步骤后还包括以下步骤:9. The method for starting an application program in a virtual environment as claimed in claim 8, wherein the method further comprises the following steps after obtaining the IP address of the virtual machine: 获取所述虚拟机的名称;Obtain the name of the virtual machine; 将所述虚拟机的名称和IP地址写入到虚拟机IP地址映射表中。Write the name and IP address of the virtual machine into the virtual machine IP address mapping table. 10.如权利要求1所述的在虚拟环境中启动应用程序的方法,其特征在于:所述方法中建立所述主机与所述虚拟机的连接的步骤具体包括以下步骤:10. The method for starting an application program in a virtual environment according to claim 1, wherein the step of establishing the connection between the host and the virtual machine in the method specifically comprises the following steps: 所述主机向所述虚拟机的IP地址发出连接请求;The host sends a connection request to the IP address of the virtual machine; 如果所述主机接收到所述虚拟机的请求响应,则与所述虚拟机建立TCP协议的连接;If the host receives the request response from the virtual machine, establish a TCP protocol connection with the virtual machine; 如果所述主机没有接收到所述虚拟机的请求响应或接收到的请求响应无效,则启动或重新启动所述虚拟机,与所述虚拟机建立TCP协议的连接。If the host does not receive the request response from the virtual machine or the received request response is invalid, start or restart the virtual machine, and establish a TCP protocol connection with the virtual machine.
CN201110007651XA 2011-01-14 2011-01-14 Method for starting application program in virtual environment Pending CN102591671A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110007651XA CN102591671A (en) 2011-01-14 2011-01-14 Method for starting application program in virtual environment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110007651XA CN102591671A (en) 2011-01-14 2011-01-14 Method for starting application program in virtual environment

Publications (1)

Publication Number Publication Date
CN102591671A true CN102591671A (en) 2012-07-18

Family

ID=46480389

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110007651XA Pending CN102591671A (en) 2011-01-14 2011-01-14 Method for starting application program in virtual environment

Country Status (1)

Country Link
CN (1) CN102591671A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104035905A (en) * 2014-07-03 2014-09-10 开曼群岛威睿电通股份有限公司 Universal serial bus device and method for processing data with universal serial bus device
CN104063233A (en) * 2013-03-18 2014-09-24 联想(北京)有限公司 Method for loading HTML (hypertext markup language) execution environments, storage device and terminal device
CN104202357A (en) * 2014-08-08 2014-12-10 深信服网络科技(深圳)有限公司 Content sharing method and content sharing system
CN104536802A (en) * 2014-12-19 2015-04-22 中兴通讯股份有限公司 Method for achieving calling of applications and virtual machine
CN104683491A (en) * 2013-11-29 2015-06-03 铁道部信息技术中心 Method and system for obtaining Internet protocol addresses of virtual machines
WO2015117539A1 (en) * 2014-07-22 2015-08-13 中兴通讯股份有限公司 Method and apparatus for invoking application installed on electronic device
CN105094764A (en) * 2014-05-04 2015-11-25 中国移动通信集团公司 Electronic equipment application generation method and apparatus
CN107077577A (en) * 2016-03-25 2017-08-18 深圳前海达闼云端智能科技有限公司 A kind of application program launching method and device
CN107301076A (en) * 2017-06-28 2017-10-27 河南理工大学 A kind of computer startup processing method and system
CN110347474A (en) * 2019-05-30 2019-10-18 苏州浪潮智能科技有限公司 A kind of method and device managing virtual machine
CN115185634A (en) * 2022-06-20 2022-10-14 统信软件技术有限公司 Subsystem implementation method and computing device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1647047A (en) * 2002-04-03 2005-07-27 鲍尔凯斯特公司 Using disassociated images for computer and storage resource management
US7478173B1 (en) * 2003-12-18 2009-01-13 Wmware, Inc. Method and system for sharing a network connection in a virtual computer system
US7681134B1 (en) * 2006-04-25 2010-03-16 Parallels Software International, Inc. Seamless integration and installation of non-host application into native operating system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1647047A (en) * 2002-04-03 2005-07-27 鲍尔凯斯特公司 Using disassociated images for computer and storage resource management
US7478173B1 (en) * 2003-12-18 2009-01-13 Wmware, Inc. Method and system for sharing a network connection in a virtual computer system
US7681134B1 (en) * 2006-04-25 2010-03-16 Parallels Software International, Inc. Seamless integration and installation of non-host application into native operating system

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104063233A (en) * 2013-03-18 2014-09-24 联想(北京)有限公司 Method for loading HTML (hypertext markup language) execution environments, storage device and terminal device
CN104063233B (en) * 2013-03-18 2017-12-29 联想(北京)有限公司 Load method, storage device and the terminal device of HTML performing environments
CN104683491B (en) * 2013-11-29 2018-03-20 铁道部信息技术中心 A kind of method and system for the Internet Protocol address for obtaining virtual machine
CN104683491A (en) * 2013-11-29 2015-06-03 铁道部信息技术中心 Method and system for obtaining Internet protocol addresses of virtual machines
CN105094764B (en) * 2014-05-04 2019-01-08 中国移动通信集团公司 The generation method and device of electronic apparatus application
CN105094764A (en) * 2014-05-04 2015-11-25 中国移动通信集团公司 Electronic equipment application generation method and apparatus
US9760519B2 (en) 2014-07-03 2017-09-12 Intel Corporation USB device and method for processing data by USB device
CN104035905A (en) * 2014-07-03 2014-09-10 开曼群岛威睿电通股份有限公司 Universal serial bus device and method for processing data with universal serial bus device
CN104035905B (en) * 2014-07-03 2017-07-21 英特尔公司 The method of universal serial bus device and universal serial bus device processing data
WO2015117539A1 (en) * 2014-07-22 2015-08-13 中兴通讯股份有限公司 Method and apparatus for invoking application installed on electronic device
CN105335176A (en) * 2014-07-22 2016-02-17 中兴通讯股份有限公司 Method and apparatus for calling application installed in electronic device
CN105335176B (en) * 2014-07-22 2019-10-25 南京中兴软件有限责任公司 A kind of method and device for calling the application being installed on electronic equipment
CN104202357A (en) * 2014-08-08 2014-12-10 深信服网络科技(深圳)有限公司 Content sharing method and content sharing system
CN104536802A (en) * 2014-12-19 2015-04-22 中兴通讯股份有限公司 Method for achieving calling of applications and virtual machine
CN104536802B (en) * 2014-12-19 2021-05-04 中兴通讯股份有限公司 Method for realizing application calling and virtual machine
CN107077577A (en) * 2016-03-25 2017-08-18 深圳前海达闼云端智能科技有限公司 A kind of application program launching method and device
CN107077577B (en) * 2016-03-25 2021-10-22 深圳前海达闼云端智能科技有限公司 Application program starting method and device
CN107301076A (en) * 2017-06-28 2017-10-27 河南理工大学 A kind of computer startup processing method and system
CN110347474A (en) * 2019-05-30 2019-10-18 苏州浪潮智能科技有限公司 A kind of method and device managing virtual machine
CN115185634A (en) * 2022-06-20 2022-10-14 统信软件技术有限公司 Subsystem implementation method and computing device

Similar Documents

Publication Publication Date Title
CN102591671A (en) Method for starting application program in virtual environment
EP2344953B1 (en) Provisioning virtual resources using name resolution
US10922123B2 (en) Container migration in computing systems
JP5423401B2 (en) Information processing apparatus, information processing system, setting program transmission method, and server setting program
TW201229902A (en) Method of launching application in VM
EP3598301B1 (en) Cloud management platform, virtual machine management method, system thereof
EP3332325B1 (en) Methods, apparatus, and systems for providing access to serial ports of virtual machines in self-deployed virtual applications
CN109558212B (en) A virtualization management method, system, physical equipment and medium of physical equipment
EP2823393A1 (en) Offline provisioning of virtual machines
US20230195491A1 (en) Device emulation in remote computing environments
WO2017030607A1 (en) Systems and methods for establishing a control channel between a virtualization server and a client device
CN104683425A (en) Cluster server deployment method and device using same
US10572213B2 (en) Universal application pinning
TW201305912A (en) System and method for managing virtual machines
CN103281407A (en) IP (internet protocol) address remote management system based on Loongson cloud terminal
JP6013980B2 (en) Address assignment device and address assignment program
CN107370623A (en) A kind of method and device for realizing system installation
CN109962788B (en) Multi-controller scheduling method, device and system and computer readable storage medium
CN108847975A (en) Communication means, device, computer equipment and medium based on NFV framework
CN107357634A (en) A kind of parameter configuration management method and device
US11822676B2 (en) Determination of a minimal set of privileges to execute a workflow in a virtualized computing environment
TWI681299B (en) System and method for automatic virtual machine conversion and environment setup across heterogeneous hypervisors
US10223148B2 (en) Full virtual machine functionality
JP2015056115A (en) Virtualization control apparatus, virtualization system, virtualization method, and virtualization control program
CN118550769B (en) Method, device, equipment and medium for realizing dual-machine hot standby based on virtualization scenario

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20120718