摘要
在一个平台上利用KVM虚拟机可以运行多个操作系统,有效地利用硬件资源。串口是一个独享设备,如何让多个虚拟机都能够使用串口设备,文中提出了一种串口转发器的设计和实现方法。该方法实现了通过一个串口设备连接、调试多个虚拟机的功能。该方法利用管道通信和输入/输出重定向机制使得多个KVM虚拟机可通过一个物理串口进行通信,每个KVM虚拟机通信时都能独享这个串口设备,实际应用表明这种方法使用方便、通信性能可靠。未来在高性能服务器上将更多地使用KVM虚拟机运行多个操作系统,使用该串口转发器可方便地解决调试多个虚拟机系统的问题。
In order to effectively use hardware resources,it can run multiple operating system on one platform. A serial port is a exclusive equipment, how to make multiple virtual machine use one serial device, a design and implementation method of the serial forwarder is proposed in this paper. The method uses pipe communication and input/output redirection mechanism to make multiple KVM virtual ma- chines communicate via a physical serial port,and each KVM virtual machine can use the serial devices exclusively in the communica- tion. Practical application shows that this method is easy to use,and reliable in the communication. In the future,there are more operating system in the high-performance server via KVM. This method easily solves the problem of debugging multiple virtual machine.
出处
《计算机技术与发展》
2012年第2期241-244,共4页
Computer Technology and Development
基金
成都理工大学与诺基亚西门子网络通信公司合作支持项目(HD0090)
关键词
KVM
虚拟机
串口转发
KVM
virtual machine
serial forwarder