Sep. 1st, 2013

(The canonical location of this blog post is now QEMU networking notes on my web site.)

The default network settings allow the guest to connect to the Internet (via TCP and UDP but not e.g. ICMP/ping), and to the host at 10.0.2.2.

If, for example, you're running a web server locally on the host, the guest can `curl http://10.0.2.2/`. A local firewall won't necessarily prevent this because QEMU makes the guest's network request from your computer and your user account. If your web server has rewrite rules based on the HTTP Host header, try changing Host using `curl -H "Host: localhost" http://10.0.2.2/` (use -v/--verbose to make curl show request and response headers).
Read more... )

Profile

idupree

January 2014

S M T W T F S
   1234
567891011
12131415161718
19202122232425
262728293031 

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Aug. 20th, 2017 12:25 am
Powered by Dreamwidth Studios