LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to configure the serial port of my virtual machine with host machine. (http://www.linuxquestions.org/questions/linux-newbie-8/how-to-configure-the-serial-port-of-my-virtual-machine-with-host-machine-743593/)

akram 07-29-2009 02:03 AM

How to configure the serial port of my virtual machine with host machine.
 
2 Attachment(s)
Dear Friends,

I successfully installed the virtual box on my fedora 8 system, and also created a virtual machine with windows xp OS, it works nicely, I try to configure the serial port of my virtual machine and try to configure the path for the port "screen shot are attached" it gives me the error message also the "screen shot are attached" for your review.


Is kind of mistake is going on during the path setting, and how to set the path for configuring the serial port of my virtual machine so that I can use the hyper terminal tool of windows.


Thanks in advanced.


Regards,

Akram.

foodown 07-29-2009 07:09 PM

In the port/file path in your VB settings, you have "COM1/dev/ttyS0"

It should probably just be "/dev/ttyS0"

You may need to check "Create Pipe," but probably not.

akram 07-30-2009 12:21 AM

Dear foodown

My VM settings according to your guidelines are

I am selecting

1- the Port Number to dropdown menu to"COM1"
2- with Port Mode dropdown menu to "Hostpipe"
3- checked and then unchecked the "create pipe" option (in both case the error message is same, shown below),
4- Port/File Path "/dev/ttyS0", as you saying.

when I start the Virtual machine, ti shows error message as shown below,

"Failed to start the virtual machine
namedPipe#0 failed to connect to local socket /dev/ttyS0
(VERR_ACCESS_DENIED).
Unknown error creating VM (VERR_ACCESS_DENIED)
."

One thing I want to ask you, that When I was created the VM, the I add also the serial port with its default Port mode dropdown menu settings which is "Disconnected", On the creation time, My thought that I will configure it latter,

Is we can add and configure other components for Vmachine, after installation or NOT.


Regards,
Akram

foodown 07-30-2009 09:02 PM

Hmmm . . .

In the drop down, instead of "Host Pipe" select "Host Device"

Before you start VB again, as root do this:
Code:

chmod 666 /dev/ttyS0
That seems to work for me.

akram 07-31-2009 10:39 PM

Dear foodown,

Thanks, for helping me serial port of my VM is working nicely.

thanks again my friend for help.


Regards,

Akram


All times are GMT -5. The time now is 12:46 AM.