天天看点

向VMWare虚拟机添加一个串口设备(serial port)

Shutdown the VM and add this to the vmx file and then restart the VM, if the host OS is Linux:
 
  
serial0.present = “true”
  
serial0.fileType = “device”
  
serial0.fileName = “/dev/ttyS0”
  

    
  
  

   If host is Windows:
  
  
 
  
serial0.present = “true”
  
serial0.fileType = “device”
  
serial0.fileName = "COM1"
  
  
这里的设备名称取决运行vm的主机的操作系统,所以设备名称也来自这个操作系统的命名方式。      

继续阅读