VirtualBox

source: vbox/trunk/doc/manual/en_US/dita/topics/serialports.dita@ 105134

Last change on this file since 105134 was 105134, checked in by vboxsync, 9 months ago

Docs: bugref:10705. This is a merge commit to introduce doc team's changes in the user manual dita files. The following files
are excluded from this process:

  • Files whose names satrt with "viso", "vboxmanage", "man_", "vboximg", "vboxheadless", or "user_isomakercmd-man".

And general notes about this merge are as follows:

  • For now I leave glossentry-*dita file as they are since we use different enclosing dita elements
  • in hdimagewrites.dita we have <note type="attention"> while doc team's copy has <note type="caution">. Not sure if this is significant.

For now I copy doc team's version over.

  • I have not modified our UserManual.ditamap file. This will be done in a follow up commit.

The list of commits we have merged are as follows:

r3392: 7.1 new features; add comments to some DITA topics
r3730: VBP-283: Update supported platforms; 7.0 and 7.1
r3980: 7.1: reset menu option; add note
r3992: ARM hosts; add draft topic on limitations; add container topic for ARM-based subtopics
r3993: ARM create new VM wizard: add some dummy topics
r4014: ER 34784410 DOCUMENT THE VIRTUAL MACHINE TASKBAR ICONS: port topic and icon graphics from 7.0 tree
r4026: VBP-378: status bar icons; remove any mention of task bar; ported from 7.0
r4034: Cloning a cloud VM; add draft topic
r4035: Cloning a cloud VM;typo
r4036: Cloning a cloud VM;add xref from intro topic
r4050: Reset operation; add instructions
r4051: Amend comment
r4052: Ditaval markup for images
r4056: Add ditaval markup for images
r4057: Add ditaval markup for images
r4058: Add ditaval markup for images
r4073: UI experience level: add dummy topic
r4075: Subtype: option for VM settings General tab and Create VM wizard
r4094: Cloud VM reset; add to relnotes
r4095: Reset VM; use main Machine menu, rather than right-click menu
r4099: ARM hosts; draft revisions to cover different wizard screens
r4134: Cloud VMs: file manager menu option; add comment
r4214: Settings page, Motherboard tab: Chipset option for Arm VMs; add note
r4306: Terminology checker: clear up Errors; Installation chapter
r4307: Terminology checker: clear up Errors; Config settings/GA chapters
r4308: Terminology checker: clear up Errors; Storage, networking, remote VM chapters
r4311: Terminology checker: clear up Errors: various
r4324: Prefences and settings; potential areas for change in 7.1
r4356: r160214: Monitoring cloud VM performance; add new topic
r4358: r160214: Monitoring cloud VM performance; add new topic
r4364: r160214: Monitoring cloud VM performance; redraft topic
r4374: Experience levels; update user manual topic
r4377: Experience levels; Preferences window: add note re. availability of all possible settings
r4378: Experience levels; Preferences window: add note re. availability of all possible settingsLp
r4379: Typos and add remark re. Global menu changes
r4387: Preferences, Display: some settings introduced post-7.0: font scaling and extended features
r4388: Performance monitoring: add cloud VM instances to intro para
r4389: Experience levels: selecting a level, add graphic of icon
r4391: Resource monitoring; add CLI example to show CPU usage for a cloud instance
r4395: Experience levels; apply to menu items only
r4398: Experience levels; add notes
r4401: Experience levels; remove pics of global tools menu/machine tools menu; number of menu items can vary
r4402: Experience levels; remove image files for global tools menu/machine tools menu
r4525: Experience levels: minor redraft
r4528: Typo
r4538: Experience levels: selected level applies throughout VirtualBox Manager GUI
r4543: GUI topics; add notes for required changes
r4544: VISO Creator changes
r4563: r160714: unattended guest install example; now has user-password option
r4569: Terminology: front end, not front-end
r4570: Arm wizard screens; remove, as Create VM Wizard will be very similar regardless of architecture
r4571: Arm wizard screens; remove, as Create VM Wizard will be very similar regardless of architecture
r4623: Cloud VM monitoring: Compute Instance Monitoring plugin must be enabled; add note
r4625: CPU activity icon; update, now has solid bar
r4626: GUI changes; various, from Serkan; includes new pic for soft keyboard
r4629: separate mode: add some draft topics, will need to get technical review at a later stage
r4634: GUI; various notes and updates
r4655: Typo
r4703: Arm host platform limitations; redraft and add topic to host OS section
r4724: VISO creator; add notes re. ISO import
r4725: Separate mode: edits
r4863: r161176; Python 2.x no longer supported for API
r4899: Arm host support: limitations
r4910: Create VM wizard: settings may vary x86 vs. Arm hosts
r4911: Guest OS support; add note re. supported aarch64 OSes
r4973: r161445: Remove mention of parallel port support
r5004: Cloud VM monitoring: detailed data graphs and Activity Overview
r5038: Cloud VM monitoring: export to file
r5214: r161947: Solaris non-Global zone configuration
r5215: r161947: Solaris non-Global zone configuration; typo
r5230: Glossary: fix title for I/O APIC topic
r5341: Experience levels; can be selected from welcome screen in VirtualBox Manager; need replacement pic
r5345: Experience levels; add note on Welcome screen option
r5346: Arm host limitations; unavailable System settings
r5434: r162377: shared folders; symlinks behaviour
r5565: Cloud VM list in VirtualBox Manager; show mixed VM types; screenshot from Klaus
r5627: Obfuscate UUID data in screen shot
r5628: Delete legacy cloudvm pic; use mixed VMs example
r5654: Clean up comments in source files; redraft VM activity section
r5672: 7.1 changes; add comments
r5683: 7.1 changes; add comments for Arm topics
r5687: 7.1 changes; GUI; add comments
r5703: Oracle notices; include up to date versions in preface-* topics for User Guide
r5707: r162904: Windows install directory requirements; redraft
r5781: updated GNU version from 2 to 3 as per r163272
r5812: started removal of screenshots and updating tasks VBP-807
r5818: Further updates to creating a VM VBP-807
r5822: Restructured topics and made task based VBP-807
r5824: Removed files during restructure VBP-807
r5834: Fixed formatting of note and caution VBP-807
r5836: Updated supported host OS list VBP-825
r5837: updated USB topics for VBP-823
r5842: changes as per legal request re supported guests VBP-843
r5853: Updated versions following review. VBP-825


  • Property svn:eol-style set to native
  • Property svn:keywords set to Id Revision
File size: 9.0 KB
Line 
1<?xml version='1.0' encoding='UTF-8'?>
2<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
3<topic xml:lang="en-us" id="serialports">
4 <title>Serial Ports</title>
5
6 <body>
7 <p>
8 <ph conkeyref="vbox-conkeyref-phrases/product-name"/> supports the use of virtual serial ports in a
9 virtual machine.
10 </p>
11 <p>
12 Ever since the original IBM PC, personal computers have been
13 equipped with one or two serial ports, also called COM ports by
14 DOS and Windows. Serial ports were commonly used with modems, and
15 some computer mice used to be connected to serial ports before USB
16 became commonplace.
17 </p>
18 <p>
19 While serial ports are no longer as common as they used to be,
20 there are still some important uses left for them. For example,
21 serial ports can be used to set up a primitive network over a
22 null-modem cable, in case Ethernet is not available. Also, serial
23 ports are indispensable for system programmers needing to do
24 kernel debugging, since kernel debugging software usually
25 interacts with developers over a serial port. With virtual serial
26 ports, system programmers can do kernel debugging on a virtual
27 machine instead of needing a real computer to connect to.
28 </p>
29 <p>
30 If a virtual serial port is enabled, the guest OS sees a standard
31 16550A compatible UART device. Other UART types can be configured
32 using the <userinput>VBoxManage modifyvm</userinput> command. Both
33 receiving and transmitting data is supported. How this virtual
34 serial port is then connected to the host is configurable, and the
35 details depend on your host OS.
36 </p>
37 <p>
38 You can use either the Settings tabs or the <userinput>VBoxManage</userinput> command to set
39 up virtual serial ports. For the latter, see <xref href="vboxmanage-modifyvm.dita"/> for
40 information on the <codeph>--uart</codeph>, <codeph>--uart-mode</codeph> and
41 <codeph>--uart-type</codeph> options.
42 </p>
43 <p>
44 You can configure up to four virtual serial ports per virtual
45 machine. For each device, you must set the following:
46 </p>
47 <ol>
48 <li>
49 <p><b outputclass="bold">Port Number:</b> This determines
50 the serial port that the virtual machine should see. For best
51 results, use the traditional values as follows:
52 </p>
53 <ul>
54 <li>
55 <p>
56 COM1: I/O base 0x3F8, IRQ 4
57 </p>
58 </li>
59 <li>
60 <p>
61 COM2: I/O base 0x2F8, IRQ 3
62 </p>
63 </li>
64 <li>
65 <p>
66 COM3: I/O base 0x3E8, IRQ 4
67 </p>
68 </li>
69 <li>
70 <p>
71 COM4: I/O base 0x2E8, IRQ 3
72 </p>
73 </li>
74 </ul>
75 <p>
76 You can also configure a user-defined serial port. Enter an
77 I/O base address and interrupt (IRQ).
78 </p>
79 </li>
80 <li>
81 <p><b outputclass="bold">Port Mode:</b> What the virtual
82 port is connected to. For each virtual serial port, you have
83 the following options:
84 </p>
85 <ul>
86 <li>
87 <p><b outputclass="bold">Disconnected:</b> The guest
88 will see the device, but it will behave as if no cable had
89 been connected to it.
90 </p>
91 </li>
92 <li>
93 <p><b outputclass="bold">Host Device:</b> Connects the
94 virtual serial port to a physical serial port on your
95 host. On a Windows host, this will be a name like
96 <codeph>COM1</codeph>. On Linux or Oracle Solaris hosts,
97 it will be a device node like
98 <filepath>/dev/ttyS0</filepath>. <ph conkeyref="vbox-conkeyref-phrases/product-name"/> will then
99 simply redirect all data received from and sent to the
100 virtual serial port to the physical device.
101 </p>
102 </li>
103 <li>
104 <p><b outputclass="bold">Host Pipe:</b> Configure
105 <ph conkeyref="vbox-conkeyref-phrases/product-name"/> to connect the virtual serial port to a
106 software pipe on the host. This depends on your host OS,
107 as follows:
108 </p>
109 <ul>
110 <li>
111 <p>
112 On a Windows host, data will be sent and received
113 through a named pipe. The pipe name must be in the
114 format
115 <filepath>\\.\pipe\<varname>name</varname>
116 </filepath>
117 where <varname>name</varname> should identify
118 the virtual machine but may be freely chosen.
119 </p>
120 </li>
121 <li>
122 <p>
123 On a Mac OS, Linux, or Oracle Solaris host, a local
124 domain socket is used instead. The socket filename
125 must be chosen such that the user running
126 <ph conkeyref="vbox-conkeyref-phrases/product-name"/> has sufficient privileges to create and
127 write to it. The <filepath>/tmp</filepath> directory
128 is often a good candidate.
129 </p>
130 <p>
131 On Linux there are various tools which can connect to
132 a local domain socket or create one in server mode.
133 The most flexible tool is <userinput>socat</userinput> and
134 is available as part of many distributions.
135 </p>
136 </li>
137 </ul>
138 <p> In this case, you can configure whether <ph
139 conkeyref="vbox-conkeyref-phrases/product-name"/> should create the named pipe, or
140 the local domain socket on non-Windows hosts, itself or whether <ph
141 conkeyref="vbox-conkeyref-phrases/product-name"/> should assume that the pipe or
142 socket exists already. With the <userinput>VBoxManage</userinput> command-line
143 options, this is referred to as server mode or client mode, respectively. </p>
144 <p>
145 For a direct connection between two virtual machines,
146 corresponding to a null-modem cable, simply configure one
147 VM to create a pipe or socket and another to attach to it.
148 </p>
149 </li>
150 <li>
151 <p><b outputclass="bold">Raw File:</b> Send the
152 virtual serial port output to a file. This option is very
153 useful for capturing diagnostic output from a guest. Any
154 file may be used for this purpose, as long as the user
155 running <ph conkeyref="vbox-conkeyref-phrases/product-name"/> has sufficient privileges to create
156 and write to the file.
157 </p>
158 </li>
159 <li>
160 <p><b outputclass="bold">TCP:</b> Useful for
161 forwarding serial traffic over TCP/IP, acting as a server,
162 or it can act as a TCP client connecting to other servers.
163 This option enables a remote machine to directly connect
164 to the guest's serial port using TCP.
165 </p>
166 <ul>
167 <li>
168 <p><b outputclass="bold">TCP Server:</b> Deselect
169 the <b outputclass="bold">Connect to Existing
170 Pipe/Socket</b> check box and specify the port
171 number in the
172 <b outputclass="bold">Path/Address</b> field.
173 This is typically 23 or 2023. Note that on UNIX-like
174 systems you will have to use a port a number greater
175 than 1024 for regular users.
176 </p>
177 <p>
178 The client can use software such as
179 <userinput>PuTTY</userinput> or the
180 <userinput>telnet</userinput> command line tool to access
181 the TCP Server.
182 </p>
183 </li>
184 <li>
185 <p><b outputclass="bold">TCP Client:</b> To create
186 a virtual null-modem cable over the Internet or LAN,
187 the other side can connect using TCP by specifying
188 <codeph><varname>hostname</varname>:<varname>port</varname></codeph>
189 in the <b outputclass="bold">Path/Address</b>
190 field. The TCP socket will act in client mode if you
191 select the <b outputclass="bold">Connect to Existing
192 Pipe/Socket</b> check box.
193 </p>
194 </li>
195 </ul>
196 </li>
197 </ul>
198 </li>
199 </ol>
200 <p>
201 Up to four serial ports can be configured per virtual machine, but
202 you can pick any port numbers out of the above. However, serial
203 ports cannot reliably share interrupts. If both ports are to be
204 used at the same time, they must use different interrupt levels,
205 for example COM1 and COM2, but not COM1 and COM3.
206 </p>
207 </body>
208
209</topic>
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette