Method for automatically acquiring and installing software in virtual machine

A technology for automatically acquiring and installing software, applied in the direction of program control device, program loading/starting, etc., can solve the problems of complicated software installation, achieve the effect of great convenience and reduce the risk of malicious code and virus

Inactive Publication Date: 2012-10-03
GUANGDONG ELECTRONICS IND INST
View PDF3 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0009] The technical problem solved by the present invention is to provide a method for automatically obtaining and installing software in a virtual machine, which solves the problem of introducing viruses and malicious codes into virtual machines by making a large number of virtual machine images and obtaining software to meet different business needs. Complicated software installation and other issues

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for automatically acquiring and installing software in virtual machine
  • Method for automatically acquiring and installing software in virtual machine
  • Method for automatically acquiring and installing software in virtual machine

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029] Such as figure 1 As shown, first make a virtual machine image, which contains a virtual serial port, and runs a proxy client module by default. This process can be realized by a virtual serial port defined in libvirt.xml, which is defined as follows:

[0030]

[0031]

[0032]

[0033]

[0034] A serial port is defined here, the port number is 0, which means COMM1, and it is mapped to the / dev / pts device file of the physical machine;

[0035] The serial port command processing module in the proxy client module receives the serial port command and parses its content. This program can be implemented by Java Communications API, and the code is as follows:

[0036] / **

[0037] * Initialize serial monitor

[0038] *

[0039] * throws Exception

[0040] * /

[0041] public SerialMonitor init() throws Exception

[0042] {

[0043] try {

[0044] portId = CommPortIdentifier. getPortIdentifier("COM...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to the technical field of software acquisition and installation, in particular to a method for automatically acquiring and installing software in a virtual machine. The method comprises the steps of: manufacturing a virtual machine image, arranging a virtual serial port in a default mode in the virtual machine image, and setting to run a proxy client module during starting up; sending a software installation command to the virtual serial port by a virtual machine management program; monitoring the virtual serial port by the proxy client module on the virtual machine, and receiving and analyzing a command of the serial port, wherein the command contains an acquisition address of software to be installed; if the address is valid, acquiring the software and executing silent installation by the proxy client module, otherwise, not installing. According to the method disclosed by the invention, the problems that a large quantity of virtual machine images are needed to manufacture so as to meet different service requirements, so that viruses and malicious codes are introduced to the virtual machine due to software acquisition, the software installation is complicated, and the like can be solved, and the method can be applied to the software acquisition and installation of the virtual machine.

Description

[0001] technical field [0002] The invention relates to the technical field of software acquisition and installation, in particular to a method for automatically acquiring and installing software in a virtual machine. Background technique [0003] The application of cloud computing to virtual machines is to pre-install software and make virtual machine image templates to achieve the purpose of quickly and batch-generating virtual machines. In the face of application scenarios where there are many operating systems and software, and the two can be freely matched to provide services, the number of pre-made virtual machine templates is relatively large, and the following problems will arise: [0004] One is that image expansion is inconvenient. When adding a piece of software, it may be necessary to recreate the virtual machine image that matches the number of operating systems; [0005] The second is that it takes a long time. When making an image, you need to install the co...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/445
Inventor 莫展鹏季统凯岳强
Owner GUANGDONG ELECTRONICS IND INST
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products