Page 1 of 1
curl fails
Posted: 1. Mar 2013, 17:58
by APUser
Host: Windows Server 2012 180 day trial
Guest: Any Linux 32 or 64 bit
Problem:
Using curl does not work. Wget works, but curl does not.
Result of a basic curl command for google's home page.
Code: Select all
curl: (56) Recv failure: Connection reset by peer
I'm using a bridged adapter.
Re: curl fails
Posted: 2. Mar 2013, 02:01
by noteirak
if wget works, it means that everything is working as it should. Most likely, your usage of the curl parameters is not good. But since you do not give the command you ran, there is no way to tell.
If you feel the issue is actually related to Virtualbox, please read the
Minimum information needed for assistance post and attach as zip file the VM log file aswell as the vboxmanage output.
Re: curl fails
Posted: 3. Mar 2013, 05:28
by APUser
noteirak wrote:if wget works, it means that everything is working as it should. Most likely, your usage of the curl parameters is not good. But since you do not give the command you ran, there is no way to tell.
If you feel the issue is actually related to Virtualbox, please read the
Minimum information needed for assistance post and attach as zip file the VM log file aswell as the vboxmanage output.
I'm sorry, I couldn't post the curl command, it was complaining about not being able to post URLs due to the age of my account regardless of how much of the URL I stripped out.
The curl command I initially tried was:
I've used the same command with no issue on other non-virtual installs.
When that failed I tried with Google's homepage with
Code: Select all
curl -L http://www.google.com -o file.html
As I said, wget works. I don't have access to the machine or its VMs until Wednesday at the earliest.
Re: curl fails
Posted: 6. Mar 2013, 20:09
by APUser
noteirak wrote:if wget works, it means that everything is working as it should. Most likely, your usage of the curl parameters is not good. But since you do not give the command you ran, there is no way to tell.
If you feel the issue is actually related to Virtualbox, please read the
Minimum information needed for assistance post and attach as zip file the VM log file aswell as the vboxmanage output.
[/quote]
Ok, my procedure
1. Start the VM
2. At the login screen ctrl+alt+f1 to drop to TTY
3. Login to TTY
4. following commands
Code: Select all
clear
ifconfig
clear
curl -L -O http://krahs-emag.com/testbed/xmlhttp.txt
I then exited the TTY and used ctrl+alt+f7 to go back to login screen and shut down the VM from there.
Result is the screenshot, and the log is attached.
(I deleted the log prior to starting the VM so this should be nothing but what I said above)

- Screenshot
- ubuntu_curl_fail.png (26.71 KiB) Viewed 23140 times
Re: curl fails
Posted: 7. Mar 2013, 22:35
by noteirak
Well there is no reason this should fail if wget works...
Maybe others have a clue about this.
Re: curl fails
Posted: 7. Mar 2013, 22:38
by Perryg
Firewall rules?
Re: curl fails
Posted: 9. Mar 2013, 04:25
by APUser
Perryg wrote:Firewall rules?
Firewall is disabled on the host and guest, and other linux machines (real) on the same network can use curl just fine.
Re: curl fails
Posted: 9. Mar 2013, 12:23
by noteirak
Did you already try to delete and recreate the VM?
Re: curl fails
Posted: 21. Mar 2013, 16:03
by APUser
noteirak wrote:Did you already try to delete and recreate the VM?
This is on all Linux VMs including a new test one.
Re: curl fails
Posted: 22. Mar 2013, 00:41
by noteirak
Then I am afraid I am totally out of ideas on this one, except that I still believe the issue lies somewhere in your network, but not in Virtualbox.
Re: curl fails
Posted: 27. Mar 2013, 16:25
by APUser
noteirak wrote:Then I am afraid I am totally out of ideas on this one, except that I still believe the issue lies somewhere in your network, but not in Virtualbox.
I will set up a Linux guest at home over the weekend. I will turn the firewall off on my host machine, and I will have my router forward everything to the host.
I'll report back then.