Internet access from qemu
I've got qemu 6.1 running on OpenBSD 3.7. I'm running the OpenBSD 3.7 image file which I got from free.oszoo.net.
I want to be able to access the internet from qemu.
I am now able to access the apache website on the host I have set up pf+nat for the private address of 10.0.0.2 used by qemu, but I cannot make contact with the internet.
Here is my pf ruleset, adapted from the example on page 141 of Artymiak's _Building Firewalls..._, 2nd ed.
How do I fix it to enable ip traffic between qemu and the internet?
Thanks,
Dave Feustel
---my pf ruleset-----
scrub fragment reassemble
scrub reassemble tcp
NoRouteIPs = "{ 127.0.0.0/8, 192.168.0.0/16, 172.16.0.0/12 }"
ExtIF = "xl0"ext_ad = "(xl0)"prv_ad = "10.0.0.0/24"nat_proto = "{tcp, udp, icmp}"
nat on $ExtIF inet proto $nat_proto \
from $prv_ad to any -> $ext_adblock in quick on $ExtIF from $NoRouteIPs to any
block out quick on $ExtIF from any to $NoRouteIPs
Signature · 5 lines
Tired of having to defend against Malware? You know: trojans, viruses, SPYWARE, ADWARE, KEYLOGGERS, rootkits, worms and popups. Then Switch to OpenBSD with a KDE desktop!!! ***NOW with Virtual PC OS support via QEMU!***
Dear Dave,
The list you are posting your messages to is a developer's list. It's not supposed to be a toubleshooting list for anything else than real undesired behaviour (i.e., software bugs).
If you need assistance to configure QEMU on your operating system, please visit the QEMU Users Forum:
I'm positive you'll find there experienced users willing devote much more time to assist you then the QEMU developers are able to.
Best wishes,
André
--
"The user-friendly computer is a red herring. The user-friendliness of a book just makes it easier to turn pages. There's nothing user-friendly about learning to read."
-Alan Kay
Quoted 16 lines · Dave Feustel
I've got qemu 6.1 running on OpenBSD 3.7. I'm running the OpenBSD 3.7 image file which I got from free.oszoo.net.
I want to be able to access the internet from qemu.I am now able to access the apache website on the host I have set up pf+nat for the private address of 10.0.0.2 used by qemu, but I cannot make contact with the internet.
Here is my pf ruleset, adapted from the example on page 141 of Artymiak's
_BuildingFirewalls..._, 2nd ed.
How do I fix it to enable ip traffic between qemu and the internet?Thanks,
Dave Feustel
Quoted 2 lines · André Braga
It's not supposed to be a toubleshooting list for anything else than real undesired behaviour (i.e., software bugs).
Thanks for the friendly advice - I aim to please.
Here's a real (but minor) bug -
When I boot the 3.7 openbsd image file from free.os.zoo.net on my OpenBSD 3.7 system and start qemu 6.1, everything works well *except* for the fact that the keyboard keys are not all properly mapped. In particular, I have found *no* keys which generate ":" or "#" in console mode. These missing codes make using vi hard. Also, several keys map to codes not indicated on the keys. the key marked "/" maps to "-" and the "&" key maps to "/". Other keys map to British currency symbol, etc which make me wonder if the qemu-simulated Openbsd thinks I have a European keyboard (I have a U.S. keyboard).
I deal with these errors by starting up XWindows right away. All the keycode problems seem to disappear in XWindows.
Getting qemu to run on OpenBSD was a Big Event for me. I hope to become a qemu developer after I figure out how to get the internet access issue resolved. I expect to write up some qemu how-to documents almost immediately. I will be putting them up on my website unless you have other suggestions.
Thanks again,
Dave Feustel
Signature · 5 lines
Tired of having to defend against Malware? You know: trojans, viruses, SPYWARE, ADWARE, KEYLOGGERS, rootkits, worms and popups. Then Switch to OpenBSD with a KDE desktop!!! NOW with Virtual PC OS support via QEMU!
This was fixed in the 0.7 series with the addition of keymaps support.
I don't know what's the status of the OpenBSD port of QEMU, but I know the one from FreeBSD works perfectly as long as you compile it from the ports collection. You might want to use the port tarball
(http://www.freebsd.org/cgi/cvsweb.cgi/ports/emulators/qemu/qemu.tar.gz?tarball=1)
to see what was needed to compile QEMU under FreeBSD and adapt the necessary changes to OpenBSD.
I highly recommend this, because AFAICT the 0.6 series are no longer supported.
Best wishes,
André
--
"The user-friendly computer is a red herring. The user-friendliness of a book just makes it easier to turn pages. There's nothing user-friendly about learning to read."
-Alan Kay
Quoted 30 lines · Dave Feustel
Quoted 2 lines · André Braga
It's not supposed to be a toubleshooting list for anything else than real undesired behaviour (i.e., software bugs).
Thanks for the friendly advice - I aim to please.
Here's a real (but minor) bug -When I boot the 3.7 openbsd image file from free.os.zoo.net on my OpenBSD 3.7 system and start qemu 6.1, everything works well *except* for the fact that the keyboard keys are not all properly mapped. In particular, I have found *no* keys which generate ":" or "#" in console mode. These missing codes make using vi hard. Also, several keys map to codes not indicated on the keys. the key marked "/" maps to "-" and the "&" key maps to "/". Other keys map to British currency symbol, etc which make me wonder if the qemu-simulated Openbsd thinks I have a European keyboard (I have a
U.S. keyboard).I deal with these errors by starting up XWindows right away. All the keycode problems seem to disappear in XWindows.
Getting qemu to run on OpenBSD was a Big Event for me. I hope to become a qemu developer after I figure out how to get the internet access issue resolved. I expect to write up some qemu how-to documents almost immediately. I will be putting them up on my website unless you have other suggestions.
Thanks again,
Dave Feustel
Quoted 1 line · André Braga
This was fixed in the 0.7 series with the addition of keymaps support.
qemu 0.7.1 (or .2) is included in OpenBSD 3.8, but I have not got a cdrom copy of 3.8 yet, so I am making do with 3.7 and .6.1 for the time being. Physical booting from cdrom is broken in the OpenBSD port of qemu 0.6.1, but booting from an iso image works.
Quoted 4 lines
I don't know what's the status of the OpenBSD port of QEMU, but I know the one from FreeBSD works perfectly as long as you compile it from the ports collection. You might want to use the port tarball
(http://www.freebsd.org/cgi/cvsweb.cgi/ports/emulators/qemu/qemu.tar.gz?tarball=1)
I tried building the qemu source code from the qemu site on OpenBSD, but the make stopped because, among other issues, there is no libutils.h on my system. I googled a bit but did not find the file. I was informed via email that libutils.h is a "linux thingie". I haven't gone any further with the qemu build since. I have been instead concentrating on learning how to use qemu. The internet access problem is hopefully my last hurdle. Then I start working on some how-to's and maybe get serious about building qemu at home.
Quoted 4 lines
to see what was needed to compile QEMU under FreeBSD and adapt the necessary changes to OpenBSD.
I highly recommend this, because AFAICT the 0.6 series are no longer supported.
I want to get qemu to compile on OpenBSD so I can keep up with the latest version.
Thanks,
Dave
Quoted 2 lines
Best wishes,
André
Signature · 5 lines
Tired of having to defend against Malware? You know: trojans, viruses, SPYWARE, ADWARE, KEYLOGGERS, rootkits, worms and popups. Then Switch to OpenBSD with a KDE desktop!!! NOW with Virtual PC OS support via QEMU!
Quoted 1 line · Dave Feustel
start qemu 6.1,
That's your first mistake. You're unlikely to get any particularly helpful answers if you're still using such an old version of qemu. There have been an awful lot of bugs fixed since 0.6.1
Paul
Quoted 4 lines · Paul Brook
Quoted 1 line · Dave Feustel
start qemu 6.1,
That's your first mistake.
That was not a mistake; that was (and still is) a start until I can upgrade to OpenBSD 3.8 and its relatively current version of qemu. I have started porting open
source software directly to my computer to get around
the 6-month upgrade cycle of OpenBSD. Some projects
KDE especially, are just too big for me to tackle. But
Qemu and QT are well within my capabilities. I expect
to get real busy with qemu since I have a long, long, *long* held interest in simulators. Qemu is going to be a big
part of my life since it will make easy trying out on OpenBSD all those Linux distros that come with each issue of Linux Format, etc. I may even come up with some interesting enhancements
to qemu. We'll see in time.
Quoted 3 lines
You're unlikely to get any particularly helpful
answers if you're still using such an old version of qemu. There have been an awful lot of bugs fixed since 0.6.1
Glad to hear it! I really want to upgrade, I just can't right now.
Dave
Signature · 5 lines
Tired of having to defend against Malware? You know: trojans, viruses, SPYWARE, ADWARE, KEYLOGGERS, rootkits, worms and popups. Then Switch to OpenBSD with a KDE desktop!!! NOW with Virtual PC OS support via QEMU!