I'm running different versions of our application on Sun's open source VirtualBox, is it possible to remote debug the app from the host OS with Visual Studio? The problem is that in Visual Studio when I want to attach to a remote machine I have to enter either a computer name or IP and the IP I get from within the virtual box isn't pingable from the host machine.
I'm primarily interested in debugging native code (so I can run with no authentication) but if there's a way to debug managed code too please let me know.
I should note that the host OS is Vista and the guest is XP.
Thanks to Mark I got things working, I'll note all the steps I had to take for future reference:
NAT
to Bridged Adapter
(have to power off the VM first)In the guest OS change the default security setting to Classic - local users authenticate as themselves
as described here:
Control Panel -> Administrative Tools -> Local Security Policy
Local Policies -> Security Options
Network access: Sharing and security model for local accounts
to Classic - local users authenticate as themselves
Reboot guest OS
msvsmon
can't do it by itselffirewall.cpl
To do this, open up VirtualBox, select the VM to be configured, click on Display | Remote Display. Make sure Enable Server is enabled and the Server port is set to 3389 (Figure A). If your network won't allow port 3389, you'll need to find a port that can be accessed over your internal network.
Select Configure remote debugging to configure the firewall and start the remote debugger. When configuration is complete, the Remote Debugger window appears. The remote debugger is now waiting for a connection. Use the server name and port number shown to set the remote connection configuration in Visual Studio.
It sounds like your guest setting have NAT for the netowking adapter. Go into the guest setting, choose networking and if the type of network is NAT switch it to Bridged. NAT produces an address range that is not public; whereas, bridged will give the guest OS an IP on the same subnet as the host.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With