There is another very cool feature on Linux and VirtualBox which might solve compatibilities of old softwares that require serial connections.On VirtualBox, enable Serial port and select Host Pipe, check Create Pipe and in port path textbox, type tmpcom1sock.When my Windows XP is runnning, it recognizes the COM1 and is able to communicate.The byte-streams are actually piped to tmpcom1sock (if we dont do anything, it just acts as a dummy).
If we want to forward it as a listening port (e.g, as a tcp server so remote systems are able to communicate with the COM1 via TCPIP), on Linux hosts shell type: socat UNIX-CONNECT:tmpcom1socket TCP-LISTEN. ![]() For example, from our own Linux host, we can communicate to the Hyperterminal running under Windows-XP guest via this virtual serial port by telnetting to the port: telnet localhost:8040 Voila Our Linux machine will display anything we type on Hyperminal. Reply Delete Replies Reply feitingen 5102011 4:41 AM Very interesting, Im looking forward to try this with old DOS multiplayer games Reply Delete Replies Reply Add comment Load more. While it works fine in Windows and Ubuntu Linux (with proper hackery applied) getting. UCI is a subsystemmodule intended to centralize the configuration of OpenWrt. ![]() These kernel panics display a partially kernel stack trace on your system console, but not enough to do a complete debug of the error. In order to get the complete kernel stack trace, we can get those kernel messages through the Linux serial port. Lets follow these steps to configure your Linux system and a VirtualBox machine to get those kernel messages. Step 1: Configure the Linux Boot (Grub) to send kernel messages to the Serial Port. Edit the bootgrubmenu.lst file, and add the following two lines before hiddenmenu config options. Every kernel message will be sent to the serial port after boot. Step 2: Configure VirtualBox to connect to Linux over a Serial Port. The next part is to enable the serial port on the virtual machine running on VirtualBox. Go to Serial Ports. In the Port 1 tab enable the Enable Serial Port option. Step 3: Use socat telnet commands to connect to Linux through the Serial Port. Now it is time to connect to your Linux serial port in order to catch those kernel messages. Well use the socat command to convert a Unix socket to a TCP port, and then connect to the serial port through telnet. Then, in a terminal session, execute the following socat command to convert the Unix socket stream to a TCP port stream. So, open another terminal session to execute your telnet command. If the connection is successful, then youll see an output like this. Thats it. You can start now seeing any kernel message that appears after your telnet session. Instead of using ssh because you would loose connection on a kernel panic You can use telnet to see the stack trace. Once the VM is started - Go to your local host and in a terminal type: socat UNIX-CONNECT:tmpcentos62 TCP-LISTEN:7000 Notice that tmpcentos62 is my VM (virtual Box) virtual serial port Open a new terminal and type: telnet localhost 7000 You will be asked for loginpassword; go ahead and start navigating on your VM Do all operations you want over telnet or ssh and if a kernel oops happen then it will be shown on your local terminal where telnet localhost 7000 was issued. ![]() Enjoy P.S. Which is the prettiest flag. Virtualbox Serial Port Socat How To Get TheI am showing how to get the headers for a xen kernel and for centos, if you are looking the same.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |