Re: Virtualbox 3.0.0

If it doesn't fit anywhere else, drop it in here. (not to be used as a chat/nonsense section)

Moderator: Moderator Team

Re: Virtualbox 3.0.0

Postby BrentNewland » Sat Oct 08, 2011 9:40 am

hto wrote:
coldReactive wrote:I was never able to setup debugging right in Ubuntu with Virtualbox, because lack of forum users that knew how.


Not true.

1. Configure virtual COM1 port, redirect it to a socket. The command looks like this:
Code: Select all
VBoxManage modifyvm vm1 --uart1 0x3f8 4 --uartmode1 client /tmp/com1

where vm1 should be the name of VM. The list of all created VMs can be viewed with
Code: Select all
VBoxManage list vms

command.

2. Install socat package.

3. Run
Code: Select all
socat unix-listen:/tmp/com1 -

command to see debug messages on the screen, or redirect output to a file:
Code: Select all
socat unix-listen:/tmp/com1 - > com1.log

Run it each time before VirtualBox.

4. Start VM, choose ReactOS (Debug).

VirtualBox can redirect COM port directly into a file, but for some reason it did not work when I tried.


I hate to bump an old topic, but this post was a great help setting it up on Ubuntu (along with this page: http://blog.zerodev.it/index.php/2008/0 ... port-setup)

Combining the two guides, I was able to set up the serial port through the VirtualBox GUI and use "telnet localhost 7777" to get the debug output (instead of having it go to a file). All I needed was socat.
BrentNewland
 
Posts: 160
Joined: Wed Oct 05, 2011 7:32 am

Re: Virtualbox 3.0.0

Postby Haos » Sat Oct 08, 2011 9:58 pm

It would be a good idea then to update info on our wiki, especially if you find it helpful, this way it wont be lost anymore.
Haos
Test Team
 
Posts: 2954
Joined: Thu Mar 22, 2007 5:42 am

Re: Virtualbox 3.0.0

Postby BrentNewland » Sun Oct 09, 2011 1:03 am

I will see about doing that. I also had a hard time finding how to do basic debugging step by step, I wanted to update that too (to make it even easier for people like me who have never debugged anything like this before).
BrentNewland
 
Posts: 160
Joined: Wed Oct 05, 2011 7:32 am


Return to Off Topic

Who is online

Users browsing this forum: No registered users and 4 guests