Host linux (fedora16) Virtual Machine winXP
Serial ports are frequently used by developers. we sometimes need to use windows for development. However, windows is installed in virtual machines. How do we use serial ports in virtual machines?
1. Select enable serial port in virtualbox and Host device in Port mode.
Because there are two systems but only one physical serial port, the virtual machine needs to indirectly obtain data through the serial port file of the host. The host is linux and the serial port device is/dev/ttyS0.
2. Enter/dev/ttyS0 in the port/file location column to start the VM.
3. If the virtual machine cannot be started, it is likely that the ttyS0 device has no read and write permissions (you can check the following permissions for ls-l/dev/ttyS0). Therefore, we need to modify the permissions of ttyS0, enter sudo chmod 777/dev/ttyS0 in the terminal to enable all permissions of ttyS0. Start the virtual machine, and then you can use the serial port in the Virtual Machine (winXP ).
From ZLG