Use Serial Port in virtualbox Virtual Machine

Source: Internet
Author: User

 

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.