1. Technical Field
Embodiments of the present disclosure relate to virtual machine technology, and particularly to a computing device and a virtual machine accessing method of the computing device.
2. Description of Related Art
A physical machine such as a server can have a number of virtual machines (VMs) installed for providing multiple services to users. However, certain dedicated applications need to be installed in client computers to access the virtual machines, and the dedicated applications vary for different operating systems of the client computers. Therefore, it is inconvenient to access the virtual machines when the client computers are installed with different operating systems.
The disclosure is illustrated by way of example and not by way of limitation in the figures of the accompanying drawings in which like references indicate similar elements. It should be noted that references to “an” or “one” embodiment in this disclosure are not necessarily to the same embodiment, and such references mean “at least one.”
In general, the word “module”, as used herein, refers to logic embodied in computing or firmware, or to a collection of software instructions, written in a programming language, such as, Java, C, or assembly. One or more software instructions in the modules may be embedded in firmware, such as in an erasable programmable read only memory (EPROM). The modules described herein may be implemented as either software and/or computing modules and may be stored in any type of non-transitory computer-readable medium or other storage device. Some non-limiting examples of non-transitory computer-readable media include CDs, DVDs, BLU-RAY, flash memory, and hard disk drives.
In this embodiment, the computing device 10 further includes a storage system 15 and at least one processor 16. The storage system 15 can be a dedicated memory, such as an EPROM, a hard disk drive (HDD), or flash memory. In some embodiments, the storage system 15 can be an external storage device, such as an external hard disk, a storage card, or a data storage medium.
In step S301, the obtaining module 200 obtains instantaneous information of a virtual machine in the computing device 10. The instantaneous information of the virtual machine includes instantaneous image information and instantaneous sound information of the virtual machine. The instantaneous image information is used to display an instantaneous image of a screen of the virtual machine. The instantaneous sound information is used to play an instantaneous sound of the virtual machine.
In step S302, the conversion module 210 converts the instantaneous information of the virtual machine into a format supported by webpages. In one embodiment, the conversion module 210 adds tags (e.g., HTML tags) to the instantaneous information. For example, the conversion module 210 adds video tags to the instantaneous image information and adds audio tags to the instantaneous sound information. In accordance with the instantaneous image information and the video tags, an instantaneous image of the screen of the virtual machine is displayed on a webpage. In accordance with the instantaneous sound information and the audio tags, an instantaneous sound of the virtual machine is played on the webpage. In one embodiment, the conversion module 210 compresses the instantaneous information of the virtual machine before converting the instantaneous information into the format supported by webpages.
In step S303, the provision module 220 provides the converted instantaneous information of the virtual machine to the web server 14. In this embodiment, the provision module 220 provides the converted real-time image information and the converted real-time sound information of the virtual machine to the web server 14.
In step S304, the web server 14 receives a VM access request from a client computer 12 and transmits the converted instantaneous information of the virtual machine to the client computer 12 in response to the VM access request. In one embodiment, the client computer 12 submits the VM access request via the web browser. In response to the VM access request, the web server 14 transmits the converted instantaneous information to the web browser of the client computer 12.
In step S305, the client computer 12 receives the converted instantaneous information from the web server 14, and uses the web browser to display the virtual machine on a webpage according to the converted instantaneous information. In one embodiment, the webpage displays the instantaneous image of the screen of the virtual machine and plays the instantaneous sound of the virtual machine.
In one embodiment, if instantaneous information of the virtual machine received from the computing device 10 is not supported by a webpage, the client computer 12 converts the instantaneous information into a format that is supported by the webpage, and provides the converted instantaneous information to the web server 14. Therefore, other client computers 12 can access the virtual machines without installing any specialized application according to the converted instantaneous information.
Although certain inventive embodiments of the present disclosure have been specifically described, the present disclosure is not to be construed as being limited thereto. Various changes or modifications may be made to the present disclosure without departing from the scope and spirit of the present disclosure.
Number | Date | Country | Kind |
---|---|---|---|
101140189 | Oct 2012 | TW | national |