Qemu networking - what's the secret?

Yesterday I installed qemu with kqemu, and Win98 as the guest OS. Everything went as described in the wiki page and other docs, and it boots with no problems. W98 gets ip address 10.0.2.15, and I can access the host i.e. Arch on 10.0.2.2. However, as I understand it, this default setup should also give W98 internet access, but it doesn't.
Now before I go messing with tun/tap and the qemu-ifup script, can anyone tell me anything about this? Should the guest be networked by default? Have I missed something? :?

tomk wrote:
Yesterday I installed qemu with kqemu, and Win98 as the guest OS. Everything went as described in the wiki page and other docs, and it boots with no problems. W98 gets ip address 10.0.2.15, and I can access the host i.e. Arch on 10.0.2.2. However, as I understand it, this default setup should also give W98 internet access, but it doesn't.
Now before I go messing with tun/tap and the qemu-ifup script, can anyone tell me anything about this? Should the guest be networked by default? Have I missed something? :?
Before I begin: the user-net enabled internet access here without problems, but note that only regular tcp and udp stuff works, so no pings.
Ok, with the tuntap method, you need to know some stuff about networking to make it work.
First, here is my qemu-ifup script:
#!/bin/sh
if [ "$2" = "" ]; then
sudo "$0" "$1" "x" || exit 1
else
ifconfig $1 192.168.50.2 up || exit 1
/etc/rc.d/dhcpd restart || exit 1
fi
Of course, for this to work you have to add a sudo nopasswd rule. You may also need dhcp to be configured properly if you don't want to set W98's network settings manually. Then you have to add a nat rule to enable internet access from the virtual machine:
iptables -t nat -A POSTROUTING -s 192.168.50.0/24 -o ppp0 -j MASQUERADE
assuming ppp0 is your internet interface. Then just enable ip forwarding and you're done:
echo 1 > /proc/sys/net/ipv4/ip_forward

Similar Messages

  • What is the secret not to include the iPhone 5 in the comparison !

    what is the secret not to include the iPhone 5 in the comparison !
    http://www.apple.com/iphone/compare/

    The iPhone 5 is no longer in production. To obtain specs for it, try looking at a third party reseller or cellular phone company site (or even amazon).

  • Re: (forte-users) Ok, what's the "secret" for setting serverside envi

    Dear Robinson,
    It seems to be that you have 2 ways of solving the problem:
    1) restart forte after setting the environment variables
    2) write a little application which sets the required variables, using
    the task.part.OperatingSystem.SetEnv(name,value) method.
    If you have to chage the variables rarely, then it`s easier to restart forte,
    otherwise I would suggest to use the SetEnv function...
    Best Regards,
    Tamas Deak
    "Robinson, Richard" wrote:
    Subject says it all.
    We have a bunch of environment variables that are used by the server side
    objects. What I want to do is change the value of some of the variables
    prior to running my application in Forte Development IDE (3.0.G.2). I've
    tried to set the environment variables via NT's registry, but it appears
    that at execution time the variables take on the value of whatever they are
    for the node manager.
    Most IDE's I've worked with before have a way to specify environment
    variables right in the tool. Forte doesn't appear to have that capability -
    say it ain't so!
    Any clues?
    For the archives, go to: http://lists.sageit.com/forte-users and use
    the login: forte and the password: archive. To unsubscribe, send in a new
    email the word: 'Unsubscribe' to: [email protected]
    Tamas Deak
    Lufthansa Systems Hungary
    (forte developer)
    2-6 Mazsa ter, Budapest, 1107, HUNGARY
    (36-1) 4312 973
    [email protected]
    [email protected][email protected]-

    Richard,
    There is no way of changing the environment variable once the Node
    Manager is up. You will have to shutdown the node manager and then restart
    it to have the new environment variables take effect. Sorry, there is no
    secret way of doing this that I know of.
    But you can set the variables on you development machine and run you
    application without distributing. This way the partition will be running in
    your client machine and not the server.
    Another way we have also got around this is by having a special
    environment variable on the client side that opens a admin screen when you
    run you application. This admin screen will allow you to change the
    environment variables and then set them on the server partition. You will
    have to do come coding on the server to make this happen but if you are
    using a framework then it should be easy. We call this developer reconnect
    facility. It only can be activated by the special client side environment
    variable. I comes in very handy when we are development and want to change
    the database on the server partition.
    Hope this help.
    ka
    Kamran Amin
    Framework, Inc.
    303 South Broadway
    Tarrytown, NY 10591
    (914) 631-2322x121
    [email protected]
    http://www.frameworkinc.com/
    -----Original Message-----
    From: Robinson, Richard [mailto:[email protected]]
    Sent: Thursday, November 04, 1999 7:23 AM
    To: [email protected]
    Subject: (forte-users) Ok, what's the "secret" for setting server side
    environment varia bles when running in the Forte Development
    Environment?
    Subject says it all.
    We have a bunch of environment variables that are used by the server side
    objects. What I want to do is change the value of some of the variables
    prior to running my application in Forte Development IDE (3.0.G.2). I've
    tried to set the environment variables via NT's registry, but it appears
    that at execution time the variables take on the value of whatever they are
    for the node manager.
    Most IDE's I've worked with before have a way to specify environment
    variables right in the tool. Forte doesn't appear to have that capability -
    say it ain't so!
    Any clues?
    For the archives, go to: http://lists.sageit.com/forte-users and use
    the login: forte and the password: archive. To unsubscribe, send in a new
    email the word: 'Unsubscribe' to: [email protected]

  • What is the secret to creating 3D interactive objects?

    Recently, I touched a "squishy" 3D object on a game on an iPad, and now I am wondering: What are these objects and what is the secret to creating them? I am interested in adding some inheritance to my current 2d sprite objects in Visual Studio.
    When I begin programming for iPhone and iPad, will such objects be standard graphics components?

    The printer is an HP Photosmart C6280 all in one and it is connected by a USB wire. The HP devices show up on the dock but I can't seem to print from there.
    Thanks

  • What's the secret to creating realistic gold text?

    I've been using Illustrator for years, but I'm relatively new to simulating gold effects. I'm currently designing a sign for a developer. Unfortunately, the budget doesn't allow us to use hand painted gold lettering so we'll need to create this using a wide format, high-resolution CMYK ink jet printer. I don't have too much trouble with creating gold logos and geometric shapes, but getting the type to look realistic is a little daunting.
    So with that in mind, what's the secret to creating a realistic gold text? What's the best gradation angle to use. Should I mix angles for logo, backgrounds, and text or try to keep it all about the same?
    Thanks!

    No such thing. All metals consist of 70% to 99% environment reflection blended with the absorbtion color, hence the trick to "realistic" metal shading is capturing the reflections and light, not working with arbitrary angles or whatever. It simply needs to follow the curvature of the text, that's the whole trick.
    Mylenium

  • Settings...what is the secret

    i have had a heck of a time generating HD clips that will play in QT on my own computer without "staggering,"
    i can down load an HD movie trailer from apple (armored) that is bigger (1920x912 vs 1780x720), in millions and at 24 fps (mine is 30). the trailer plays, as far as i can tell, flawlessly. both in H.264.
    what is the secret? what are they doing that i am not?

    tom, that is what i think too, but darned if i can figure out what. spent about two hours on the phone with FCE product specialists at Apple that last two days, and they weren't ready to guarantee clean running. one suspected underperforming hard drives. what really distresses me is that i can see some of this staggering inside of FCE where it shouldn't happen.
    i took an exported clip to another machine at a local connecting point store and the staggering still happened, suggesting that it was embedded in the clip somehow. i can scrub the clip in QT using the right arrow key held down and all the frames appear to be there, but when running, every approximately four seconds, it staggers.
    i created a separate boot drive with a fresh install of leopard and put only my video card drivers and FCE on it. disconnected everything except the firewire to the camcorder and the USB for the keyboard to try to isolate the environment. it still happened. before i even put the video drivers in, i played the exported clip. every four seconds i got a horizontal distortion that moved from the bottom of the clip to the top. after i installed the video drivers, this became the stagger.
    tomorrow i am going to a retail store with my camcorder to capture the same clip there and see if there is any difference. i don't believe it is the camera as i can hook it up with HDMI to a HDTV and it plays fine. i suppose there could be a firewire problem in the camcorder.
    i am stumped and frustrated.
    Message was edited by: Forrest Jerome1

  • What is the secret to operating my HP printer with my i mac

    What is the secret to operating my HP printer with my i mac. I can't get it to function properly. I think I have to go somewhere other than the HP icon.

    The printer is an HP Photosmart C6280 all in one and it is connected by a USB wire. The HP devices show up on the dock but I can't seem to print from there.
    Thanks

  • TS3899 I was hacked and had to change my yahoo password.  I cannot get my iPhone or iPad to accept my new password.  Am not receiving emails on either device.  I had no problem changing my password on my computer.  What is the secret?

    I was hacked and had to change my yahoo passwrd.  I cannot get my iPhone or iPad to accept my new password so I cannot receive messages on either.  I had not problem changing my password on my apple computer.  Please help!  What is the secret?

    Delete the account on your phone & iPad. Then set them up again.

  • HT1533 I have tried a hundred times pressing or holding the d key at power up and nothing happens ! What is the secret ?

    I have tried a hundred times pressing or holding the d key at power up and nothing happens ! What is the secret ?

    At the top of this page is a link to the startup key combinations.
    Learn about Startup key combinations for Intel-based Macs

  • HT2731 What is the secret code being asked when buying an apps?

    What is the secret code being asked when buying an apps?

    Your CVV? The 3 digit number on back of your CC. 4 digits if using AmEx.

  • TS3992 I am trying to do an icloud backup from my computer.  I have been unable to do a backup from a wifi as I keep getting message that backup could not be done.  What is  the secret to doing it from my computer?

    I am trying to do an iCloud backup from my computer.  I have been unable to do a backup from a wifi as I keep getting message that it cannot be completed.  What is the secret to doing this from my computer, with my iphone plugged into same?

    How are you trying to do it from your computer?  Try plugging it into your charger while connected to wifi, then either lock the screen and wait (it should backup up ever 24 hours) or go to Settings>iCloud>Storage & Backup and tap Back Up Now.

  • 4s iphone will not recognize Yahoo or juno only gmail what is the secret also what is the I cloud nonsense about?

    First I never used an apple product in my life.. so I would appreciate assistance that recognized that issue.
    Just go 4S iphone but first only using on WiFi
    my android and XP stuff and even vista works fine.. so this is not a WIFf issue.
    I am only able to set up Gmail
    Yahoo does not work or Iphone will not pick it up.. and I went to an apple web page that had information
    that I tried to load on the Iphone but Iphone will STILL not recognize Yahoo.
    The dumb thing keeps saying my password is wrong... Funny I have not problem using the same
    password on with my DESK top Xp and it WORKS>  so it is not a password issue.
    Same **** thing with JUNO.
    I tried using POP.JUNO.COM and 110 and SMTP.JUNO.COM 587
    and still the 4S Iphone refuses to work.
    Yahoo too used IMAP.MAIL.Yahoo.com  993 SMTP..MAIL.YAHOO.COM 465
    Still nothing........?
    On web this seems to be a big problem....
    What is the secret handshake I need to know to get operational????
    I have spend days on the web and found no answers.

    Anyone? Has anyone had experience with this problem? I've reset the extending Airport and reapplied the settings and still have the same problem.

  • I cleared the cache and my site does not update!  What's the secret?

    I cleared the cache and my site does not update! What's the secret? I created a second website and bought a domain name. You can get to the site by it's mac name or the purchased domain name. I linked the domain name and with my server and it works. The site comes up wither way. BUT, either way, I cannot get my changes to appear. I had realized that my links were not working because I had placed them within the header. So, I moved the links out of the header, republished, and now the new pages (with links in body of website) will not load. Here are the two ways to get to see the site. Both show the old way (links in header). What is up with me not being able to see the changes in either Firefox or Safari?
    http://www.frankysoldiesbutgoodies.com/
    http://web.mac.com/musbegin/iWeb/OldiesButGoodies/OldiesButGoodies.html
    Thanks,
    musicalbeginnings

    hello mccormick.lee, please try downloading the full setup file for the current firefox version from https://www.mozilla.org/firefox/all/ and install it on top of your current installation.

  • What's the secret to reverb?

    I have spent many many many nights trying to learn, understand, experiment with, and master REVERB. but more specifically, phyiscally placing a sound coming from a stereo field with physical depth... if someone closed their eyes and heard it, it would sound as if it were coming from somewhere near them, rather than being able to understand the reverb is false.
    here is a test i did a few days ago, mimicing this clip from john williams on jurassic park:
    http://www.bedrock-studios.com/clarinet.mp3
    and my attempt to copy it:
    http://www.bedrock-studios.com/clarinettest.mp3
    its just not quite there! it still sounds false! when i hear it, it doesnt sound like im standing in the room with that instrument... it sounds so dull...
    engineers, tell me your secrets! what do you do with the sample down the line to get it in that room!!!??? do you do a low cut? where in the chain? more than 1 reverb? 20% to this? 55% to that? PLEASE TELL ME! HELP ME TO UNDERSTAND! TEACH A MAN TO FISH!
    here's another example from the green mile:
    http://www.bedrock-studios.com/greenmile.mp3
    that instrument is truly in that room... it has presence and a distance between you and it. its so physical the space it occupies. SURELY there's a way to very closely mimic this effect... what am I missing? what are your secrets! i want my instruments to sound as if they are TRULY recorded live in that room... rather than sloppily muddied in with a reverb effect...
    cheers!

    Hi Chris thanks for this post. It is something that I have been struggling with wrapping my brain around as well.
    I would like to add a supplemental/complimentary question (no thread-jacking, I swear it on Steve's CEOness):
    What's the secret to Delay?
    Because of this thread, Band On The Run and I had a great discussion. I'll let him fill you in on his half of the conversation if he cares to, but I would like to lay my ideas at the feet of the forum elite so they can pick it up and say, "This is nice," or just kick it aside.
    Here goes:
    I contend that mixing instruments with an imaginary room space (and a complimentary reverb) in mind, an instrument would need to have some delay to help solidify it's position in that imaginary room (who doesn't though?). The easiest way I can see this happening is by putting three different, but complimentary delays on three different busses and routing most, if not all, tracks through them.
    The first delay would represent the "Back Wall," and to some extent the floor and ceiling. This delay would probably be the most present of the delays in the mix and should have the characteristics of your imaginary back wall. For this example, I'm going to say it's a brick wall.
    The second delay, I'll call the "Left Wall" (from the listener's/mixer's perspective) and will be panned all the way to the left. Here's where things get interesting. Let's say for fun's sake that this imaginary wall is treated somehow. So it's reflections are going to be darker then the "Back Wall." You'd want to pick a delay that reflects (no pun intended) that treatment.
    And finally the third delay. I'll call it Steve...I mean the "Right Wall." Let's imagine that it's covered in a thick curtain or something. So we'd need to pick a delay that has that characteristic.
    I suggest that if an instrument in this imaginary space is a good distance behind the singer (traditionally the forefront of the mix) and to the left of said singer (from the mixer's perspective), you'd send a lower (maybe higher? This is all speculation at this point) amount of that track to the "Back Wall," a higher amount of "Left Wall," and very little to the "Right Wall."
    I would suggest using the same amount of "Left Wall" and "Right Wall" for the singer (dead center). Although very low levels of both.
    I know that there are some flaws in this idea, namely that the closer to a wall an instrument is, the faster the slap back occurs and this system doesn't have the ability to account for that or that too much delay can quickly muddy up a mix. But I think there is some merit with this concept, and I wouldn't mind some feed back.
    Thanks for your time.
    X

  • Need to send data across network, what is the dataStructure for my data?

    using JXTA, i want to send file or messages among the peers.
    the data should contain the ACK

    Hello Dear Programmer Look please I need to know what is the data transfer Structure is to say make sent a sample Data structure
    to cross throughout Network
    to be compile in Java
    My Regard
    Alfonso Franco
    [email protected]

Maybe you are looking for

  • My computer can no longer see my ipod mini.

    I bought my ipod about 2 weeks ago. 3 days ago i found that whenever i plugged it in to the computer, itunes would start up, it would start syncing with the ipod and then i would get the "blue screen of death" from windows and my system would restart

  • Adding Amount field in BSEG table and display it single line item?

    hi experts,        I am doing credit / debit form now my requirement is                                            According to BELNR , GJAHR,BUKRS i want to find credit amount for this selection cretiria.                      so i want to add all th

  • How to configure extended network via ethernet

    i have a airport extreme and i need to connect my airport express using ethernet cable. what should be the configs in the airport extreme to get this done? thank you. mauro

  • Publishing to Facebook Wall difficulty

    I am new to Mac and do not really have any expertise. When I selected a photo to publish to my Facebook Wall the upload began but a message appeared which reads: This operation couldn't be completed. (NSURLErrorDomain error-1.) The uploading rotating

  • Photoshop CS 6 photomerge panorama NO AUTOMATIC FILLING OPTION?

    Hello, I use to work with PSElements 11 but now consider changing to CS6 since PSE11 photomerge does only use maximum of 3GB memory, means I can not merge more than maximum 3 pictures at the time. I tried CS6 which , however, does it properly. But it