Click here to Skip to main content
15,891,529 members
Home / Discussions / System Admin
   

System Admin

 
GeneralRe: FREE virtualization Pin
Jassim Rahma29-Oct-11 9:04
Jassim Rahma29-Oct-11 9:04 
GeneralRe: FREE virtualization Pin
luke_g1-Nov-11 1:49
luke_g1-Nov-11 1:49 
GeneralRe: FREE virtualization Pin
Darendo21-Nov-11 2:23
Darendo21-Nov-11 2:23 
AnswerRe: FREE virtualization Pin
ezarf1-Nov-11 2:40
ezarf1-Nov-11 2:40 
GeneralRe: FREE virtualization Pin
Eric Whitmore1-Nov-11 3:42
Eric Whitmore1-Nov-11 3:42 
AnswerRe: FREE virtualization Pin
jeb011-Nov-11 3:44
jeb011-Nov-11 3:44 
GeneralRe: FREE virtualization Pin
Jassim Rahma1-Nov-11 4:28
Jassim Rahma1-Nov-11 4:28 
GeneralRe: FREE virtualization Pin
Mike Poz1-Nov-11 11:36
Mike Poz1-Nov-11 11:36 
From the VirtualBox help file:

3.9. Serial ports
VirtualBox fully supports virtual serial ports in a virtual machine in an easy-to-use manner.[16]

Ever since the original IBM PC, personal computers have been equipped with one or two serial ports (also called COM ports by DOS and Windows). Serial ports were commonly used with modems, and some computer mice used to be connected to serial ports before USB became commonplace.

While serial ports are no longer as ubiquitous as they used to be, there are still some important uses left for them. For example, serial ports can be used to set up a primitive network over a null-modem cable, in case Ethernet is not available. Also, serial ports are indispensable for system programmers needing to do kernel debugging, since kernel debugging software usually interacts with developers over a serial port. With virtual serial ports, system programmers can do kernel debugging on a virtual machine instead of needing a real computer to connect to.

If a virtual serial port is enabled, the guest operating system sees a standard 16550A compatible UART device. Both receiving and transmitting data is supported. How this virtual serial port is then connected to the host is configurable, and the details depend on your host operating system.

You can use either the graphical user interface or the command-line VBoxManage tool to set up virtual serial ports. For the latter, please refer to Section 8.7, “VBoxManage modifyvm”; in that section, look for the --uart and --uartmode options.

In either case, you can configure up to two virtual serial ports per virtual machine. For each such device, you will need to determine

what kind of serial port the virtual machine should see by selecting an I/O base address and interrupt (IRQ). For these, we recommend to use the traditional values[17], which are:

COM1: I/O base 0x3F8, IRQ 4

COM2: I/O base 0x2F8, IRQ 3

COM3: I/O base 0x3E8, IRQ 4

COM4: I/O base 0x2E8, IRQ 3

Then, you will need to determine what this virtual port should be connected to. For each virtual serial port, you have the following options:

You can elect to have the virtual serial port "disconnected", which means that the guest will see the device, but it will behave as if no cable had been connected to it.

You can connect the virtual serial port to a physical serial port on your host. (On a Windows host, this will be a name like COM1; on Linux or Solaris hosts, it will be a device node like /dev/ttyS0). VirtualBox will then simply redirect all data received from and sent to the virtual serial port to the physical device.

You can tell VirtualBox to connect the virtual serial port to a software pipe on the host. This depends on your host operating system:

On a Windows host, data will be sent and received through a named pipe. The pipe name must be in the format \\.\pipe\<name> where <name> should identify the virtual machine but may be freely chosen.

For forwarding serial traffic, you can use a helper program called VMware Serial Line Gateway, available for download at http://www.l4ka.org/91.php . This tool provides a fixed server mode named pipe at \\.\pipe\vmwaredebug and connects incoming TCP connections on port 567 with the named pipe.

On a Mac, Linux or Solaris host, a local domain socket is used instead. The socket filename must be chosen such that the user running VirtualBox has sufficient privileges to create and write to it. The /tmp directory is often a good candidate.

On Linux there are various tools which can connect to a local domain socket or create one in server mode. The most flexible tool is socat and is available as part of many distributions.

In this case, you can configure whether VirtualBox should create the named pipe (or, on non-Windows hosts, the local domain socket) itself or whether VirtualBox should assume that the pipe (or socket) exists already. With the VBoxManage command-line options, this is referred to as "server" or "client" mode, respectively.

For a direct connection between two virtual machines (corresponding to a null-modem cable), simply configure one VM to create a pipe/socket and another to attach to it.

You can send the virtual serial port output to a file. This option is very useful for capturing diagnostic output from a guest. Any file may be used for this purpose, as long as the user running VirtualBox has sufficient privileges to create and write to the file.

Up to two serial ports can be configured per virtual machine, but you can pick any port numbers out of the above. However, serial ports cannot reliably share interrupts; if both ports are to be used at the same time, they must use different interrupt levels, for example COM1 and COM2, but not COM1 and COM3.
Mike Poz

GeneralRe: FREE virtualization Pin
Reelix1-Nov-11 4:39
Reelix1-Nov-11 4:39 
AnswerRe: FREE virtualization Pin
Bogdan Zamfir1-Nov-11 6:36
Bogdan Zamfir1-Nov-11 6:36 
AnswerRe: FREE virtualization Pin
wbaxter371-Nov-11 6:55
wbaxter371-Nov-11 6:55 
AnswerRe: FREE virtualization Pin
mahmood seyedkarimi1-Nov-11 8:10
mahmood seyedkarimi1-Nov-11 8:10 
GeneralRe: FREE virtualization Pin
Jassim Rahma1-Nov-11 20:55
Jassim Rahma1-Nov-11 20:55 
AnswerRe: FREE virtualization Pin
Florin Jurcovici1-Nov-11 21:44
Florin Jurcovici1-Nov-11 21:44 
QuestionSending Emails Via Microsoft Access Pin
Toby Mason-Barney19-Oct-11 0:05
Toby Mason-Barney19-Oct-11 0:05 
AnswerRe: Sending Emails Via Microsoft Access Pin
phil.o19-Oct-11 0:24
professionalphil.o19-Oct-11 0:24 
GeneralRe: Sending Emails Via Microsoft Access Pin
Toby Mason-Barney19-Oct-11 0:32
Toby Mason-Barney19-Oct-11 0:32 
GeneralRe: Sending Emails Via Microsoft Access Pin
phil.o31-Oct-11 4:07
professionalphil.o31-Oct-11 4:07 
AnswerRe: Sending Emails Via Microsoft Access Pin
ghle1-Nov-11 15:13
ghle1-Nov-11 15:13 
QuestionDesktop shutdown problem Pin
uspatel16-Oct-11 21:44
professionaluspatel16-Oct-11 21:44 
AnswerRe: Desktop shutdown problem Pin
Richard MacCutchan16-Oct-11 23:19
mveRichard MacCutchan16-Oct-11 23:19 
AnswerRe: Desktop shutdown problem Pin
Manfred Rudolf Bihy17-Oct-11 0:44
professionalManfred Rudolf Bihy17-Oct-11 0:44 
AnswerRe: Desktop shutdown problem Pin
Simon_Whale17-Oct-11 1:03
Simon_Whale17-Oct-11 1:03 
AnswerRe: Desktop shutdown problem Pin
Luc Pattyn17-Oct-11 2:09
sitebuilderLuc Pattyn17-Oct-11 2:09 
GeneralRe: Desktop shutdown problem Pin
uspatel17-Oct-11 22:33
professionaluspatel17-Oct-11 22:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.