LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 04-05-2010, 03:26 PM   #1
wykthorr
Member
 
Registered: Oct 2004
Location: Brasov, Romania
Distribution: Ubuntu
Posts: 38

Rep: Reputation: 15
access virtual box serial port from host


Hi everybody,

Here's the setup and what I want to achieve:

I have a ubuntu host system and a windows xp virtual box virtual machine running.
What I want is a way to communicate to the vm's serial port from the host linux system much like if the virtual machine was connected to the physical machine's serial port through a cable.

I've searched the internet quite a lot, but I'm kinda confused right now so if anybody could give me a nice solution that would be great.

Cheers,
Victor
 
Old 04-05-2010, 09:10 PM   #2
ganiutomo
LQ Newbie
 
Registered: Jun 2009
Posts: 14

Rep: Reputation: 2
Theoretically you can use tunneling, but I don't know how.

But ff what you want is networking from host to guest, you already have it. You don't need serial port to do that.
 
Old 04-05-2010, 11:42 PM   #3
mweed
Member
 
Registered: Mar 2006
Posts: 33

Rep: Reputation: 17
I have not tested this and don't have the time to do so right now, but try:

Code:
VBoxManage modifyvm <vm name or uuid> --uart1 0x3F8 4
VBoxManage modifyvm <vm name or uuid> --uartmode1 /dev/ttyS0
see VBoxManage list vms for name and uuid.

That should set COM1 to irq 4 port base 3F8 (1016 dec) and tie it into ttyS0 of the physical host.

Let us know the results.

-- Edit --

Misread your original post.. My above comments will not allow access from the host OS to the virtual machines serial port. just the physical serial port to the guest OS.

try "server" instead of specifying a device

Code:
VBoxManage modifyvm <vm> --uartmode1 server /tmp/foo
That will create a UNIX domain socket file. you can communicate with is using nc -U or by installing socat or using any application that connects to UNIX domain sockets. You will no be able to redirect stdin or out directly to the socket.

Last edited by mweed; 04-06-2010 at 12:06 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there anyway for one Virtual Server to access the main host, or another Virtual Se abefroman Linux - Security 5 01-08-2010 08:06 PM
Virtualbox winxp virtual machine just can't access serial port xmrkite Linux - Virtualization and Cloud 5 11-11-2009 10:52 PM
Redhat 5.4 virtualization - host has no serial port access rasher Linux - Virtualization and Cloud 3 10-15-2009 07:57 AM
How to configure the serial port of my virtual machine with host machine. akram Linux - Newbie 4 07-31-2009 10:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 02:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration