[Qemu-devel] Re: user-net -redir working?
[thread edited for brevity] > > I think that -redir really is broken: I've also been unsuccessful in > trying to make it work using an FTP server on a Windows guest, and using > the SSH server on a knoppix guest. Has anyone here ever had success with > it? It also fails on hosts with 2 different versions of Mandrake. [solution: use an IP address which isn't localhost, eg that of eth0] 3)Document this on the website as a known bug, so Google can find it. Currently, anyone using an earlier version will just think that qemu is broken. It hasn't worked since at least 0.6.1, although I can't tell you about earlier versions. > It should be google-able. At least I remember posting to > the list about 8 months ago on this exact issue, and then > posted how I fixed it. (IIRC). Unfortunately, searching for "qemu redir" or "qemu redir broken" leads mainly to copies of the manual, and to a couple of unanswered threads about people with the same problem. Can I suggest that this should be mentioned on this page: http://fabrice.bellard.free.fr/qemu/qemu-doc.html Thanks once again for your help, Richard ___ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel
[Qemu-devel] qemu ./cpu-exec.c ./monitor.c target-ppc/helper...
CVSROOT:/cvsroot/qemu Module name:qemu Branch: Changes by: Fabrice Bellard <[EMAIL PROTECTED]> 05/11/23 22:05:28 Modified files: . : cpu-exec.c monitor.c target-ppc : helper.c translate.c Log message: halt state support for ppc CVSWeb URLs: http://savannah.gnu.org/cgi-bin/viewcvs/qemu/qemu/cpu-exec.c.diff?tr1=1.63&tr2=1.64&r1=text&r2=text http://savannah.gnu.org/cgi-bin/viewcvs/qemu/qemu/monitor.c.diff?tr1=1.42&tr2=1.43&r1=text&r2=text http://savannah.gnu.org/cgi-bin/viewcvs/qemu/qemu/target-ppc/helper.c.diff?tr1=1.28&tr2=1.29&r1=text&r2=text http://savannah.gnu.org/cgi-bin/viewcvs/qemu/qemu/target-ppc/translate.c.diff?tr1=1.39&tr2=1.40&r1=text&r2=text ___ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel
[Qemu-devel] qemu/target-ppc translate.c
CVSROOT:/cvsroot/qemu Module name:qemu Branch: Changes by: Fabrice Bellard <[EMAIL PROTECTED]> 05/11/23 21:36:30 Modified files: target-ppc : translate.c Log message: avoid generating useless exceptions (Jocelyn Mayer) CVSWeb URLs: http://savannah.gnu.org/cgi-bin/viewcvs/qemu/qemu/target-ppc/translate.c.diff?tr1=1.38&tr2=1.39&r1=text&r2=text ___ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel
[Qemu-devel] qemu ./vl.h hw/openpic.c hw/ppc_chrp.c
CVSROOT:/cvsroot/qemu Module name:qemu Branch: Changes by: Fabrice Bellard <[EMAIL PROTECTED]> 05/11/23 21:13:45 Modified files: . : vl.h hw : openpic.c ppc_chrp.c Log message: openpic SMP support (Jocelyn Mayer) CVSWeb URLs: http://savannah.gnu.org/cgi-bin/viewcvs/qemu/qemu/vl.h.diff?tr1=1.93&tr2=1.94&r1=text&r2=text http://savannah.gnu.org/cgi-bin/viewcvs/qemu/qemu/hw/openpic.c.diff?tr1=1.8&tr2=1.9&r1=text&r2=text http://savannah.gnu.org/cgi-bin/viewcvs/qemu/qemu/hw/ppc_chrp.c.diff?tr1=1.19&tr2=1.20&r1=text&r2=text ___ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel
[Qemu-devel] qemu ./vl.h hw/mips_r4k.c hw/pc.c hw/ppc_chrp.c...
CVSROOT:/cvsroot/qemu Module name:qemu Branch: Changes by: Fabrice Bellard <[EMAIL PROTECTED]> 05/11/23 21:11:49 Modified files: . : vl.h hw : mips_r4k.c pc.c ppc_chrp.c ppc_prep.c serial.c sun4u.c Log message: more generic serial port (initial patch by Jocelyn Mayer) CVSWeb URLs: http://savannah.gnu.org/cgi-bin/viewcvs/qemu/qemu/vl.h.diff?tr1=1.92&tr2=1.93&r1=text&r2=text http://savannah.gnu.org/cgi-bin/viewcvs/qemu/qemu/hw/mips_r4k.c.diff?tr1=1.10&tr2=1.11&r1=text&r2=text http://savannah.gnu.org/cgi-bin/viewcvs/qemu/qemu/hw/pc.c.diff?tr1=1.47&tr2=1.48&r1=text&r2=text http://savannah.gnu.org/cgi-bin/viewcvs/qemu/qemu/hw/ppc_chrp.c.diff?tr1=1.18&tr2=1.19&r1=text&r2=text http://savannah.gnu.org/cgi-bin/viewcvs/qemu/qemu/hw/ppc_prep.c.diff?tr1=1.24&tr2=1.25&r1=text&r2=text http://savannah.gnu.org/cgi-bin/viewcvs/qemu/qemu/hw/serial.c.diff?tr1=1.10&tr2=1.11&r1=text&r2=text http://savannah.gnu.org/cgi-bin/viewcvs/qemu/qemu/hw/sun4u.c.diff?tr1=1.4&tr2=1.5&r1=text&r2=text ___ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel
[Qemu-devel] qemu TODO Changelog
CVSROOT:/cvsroot/qemu Module name:qemu Branch: Changes by: Fabrice Bellard <[EMAIL PROTECTED]> 05/11/23 21:03:04 Modified files: . : TODO Changelog Log message: update CVSWeb URLs: http://savannah.gnu.org/cgi-bin/viewcvs/qemu/qemu/TODO.diff?tr1=1.37&tr2=1.38&r1=text&r2=text http://savannah.gnu.org/cgi-bin/viewcvs/qemu/qemu/Changelog.diff?tr1=1.102&tr2=1.103&r1=text&r2=text ___ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel
[Qemu-devel] qemu cpu-exec.c
CVSROOT:/cvsroot/qemu Module name:qemu Branch: Changes by: Fabrice Bellard <[EMAIL PROTECTED]> 05/11/23 21:02:53 Modified files: . : cpu-exec.c Log message: better halted state support CVSWeb URLs: http://savannah.gnu.org/cgi-bin/viewcvs/qemu/qemu/cpu-exec.c.diff?tr1=1.62&tr2=1.63&r1=text&r2=text ___ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel
[Qemu-devel] qemu/target-i386 cpu.h helper2.c op.c
CVSROOT:/cvsroot/qemu Module name:qemu Branch: Changes by: Fabrice Bellard <[EMAIL PROTECTED]> 05/11/23 21:02:10 Modified files: target-i386: cpu.h helper2.c op.c Log message: added HF_HALTED bit CVSWeb URLs: http://savannah.gnu.org/cgi-bin/viewcvs/qemu/qemu/target-i386/cpu.h.diff?tr1=1.32&tr2=1.33&r1=text&r2=text http://savannah.gnu.org/cgi-bin/viewcvs/qemu/qemu/target-i386/helper2.c.diff?tr1=1.36&tr2=1.37&r1=text&r2=text http://savannah.gnu.org/cgi-bin/viewcvs/qemu/qemu/target-i386/op.c.diff?tr1=1.40&tr2=1.41&r1=text&r2=text ___ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel
[Qemu-devel] qemu cpu-defs.h
CVSROOT:/cvsroot/qemu Module name:qemu Branch: Changes by: Fabrice Bellard <[EMAIL PROTECTED]> 05/11/23 21:01:47 Modified files: . : cpu-defs.h Log message: better halted state support CVSWeb URLs: http://savannah.gnu.org/cgi-bin/viewcvs/qemu/qemu/cpu-defs.h.diff?tr1=1.13&tr2=1.14&r1=text&r2=text ___ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel
[Qemu-devel] qemu monitor.c
CVSROOT:/cvsroot/qemu Module name:qemu Branch: Changes by: Fabrice Bellard <[EMAIL PROTECTED]> 05/11/23 21:01:33 Modified files: . : monitor.c Log message: use HF_HALTED bit CVSWeb URLs: http://savannah.gnu.org/cgi-bin/viewcvs/qemu/qemu/monitor.c.diff?tr1=1.41&tr2=1.42&r1=text&r2=text ___ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel
[Qemu-devel] qemu/hw pc.c
CVSROOT:/cvsroot/qemu Module name:qemu Branch: Changes by: Fabrice Bellard <[EMAIL PROTECTED]> 05/11/23 21:01:23 Modified files: hw : pc.c Log message: use HF_HALTED bit CVSWeb URLs: http://savannah.gnu.org/cgi-bin/viewcvs/qemu/qemu/hw/pc.c.diff?tr1=1.46&tr2=1.47&r1=text&r2=text ___ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel
[Qemu-devel] qemu vl.c
CVSROOT:/cvsroot/qemu Module name:qemu Branch: Changes by: Fabrice Bellard <[EMAIL PROTECTED]> 05/11/23 21:01:03 Modified files: . : vl.c Log message: better SMP scheduling CVSWeb URLs: http://savannah.gnu.org/cgi-bin/viewcvs/qemu/qemu/vl.c.diff?tr1=1.147&tr2=1.148&r1=text&r2=text ___ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel
[Qemu-devel] qemu/hw apic.c
CVSROOT:/cvsroot/qemu Module name:qemu Branch: Changes by: Fabrice Bellard <[EMAIL PROTECTED]> 05/11/23 20:59:44 Modified files: hw : apic.c Log message: fummy DM_LOWPRI handling CVSWeb URLs: http://savannah.gnu.org/cgi-bin/viewcvs/qemu/qemu/hw/apic.c.diff?tr1=1.6&tr2=1.7&r1=text&r2=text ___ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel
Re: [Qemu-devel] Re: user-net -redir working? [problem located]
Richard Neill <[EMAIL PROTECTED]> wrote: > > > Re: User-net not working: > > > > > Disabling the Nagle algorithm (i.e., enabling TCP_NODELAY) or typing a > > > lot of garbage just to fill the buffer with enough data can help, > > > also. > > > > > > And IIRC, netcat has a UDP mode as well. I see no reason for this to > > > happen, but is there any chance it's using UDP by default, and you're > > > only redirecting TCP? > > > > > > Good luck! > > > > Thanks for your message. > > > > I think that -redir really is broken: I've also been unsuccessful in > > trying to make it work using an FTP server on a Windows guest, and using > > the SSH server on a knoppix guest. Has anyone here ever had success with > > it? It also fails on hosts with 2 different versions of Mandrake. > > > > Anyway, I've taken your suggestion, and run both ends with ethereal. > > Here's what I did: > > > > > > HOST (Linux); > >qemu -cdrom /dev/cdrom -boot d -user-net -redir tcp:2200::22 > > > > GUEST (Knoppix): > >Boot up, then start sshd. Verify that I can indeed do ssh > >[EMAIL PROTECTED], and that PermitRootLogin is yes in sshd_config. > > > > Then, start ethereal (on the "any" interface) > > > > > > HOST: > >Start ethereal (on the "any" interface") > >ssh -p 2200 [EMAIL PROTECTED] > > > > At this point, ssh just stalls. It's obviously waiting for something, > > but not known what. I get no output at all from it. > > > Can you try "ssh -p 2200 root@ > > I've run into this several times dealing with the -redir > function, especially since localhost resolves as 127.0.0.1. > On my Solaris host with a linux guest, the packet arriving > showed up as 127.0.0.1, which ended up with the same > behavior as you're describing. on my solaris host, the problem was that the host name was aliased to 127.0.0.1 as I use some software which automagically punts the interface to something like hostname-. So when it does a lookup for the host name, and it gets 127.0.0.1, it then all falls apart. I'm not sure how you can code around this particular problem. For those who say that the hostname shouldn't point to 127.0.0.1, that's fine. However, for my laptop, I'm constantly switching networks, and the software I use for that does it better than anything else I've ever used. (Especially for Solaris) > > --- > > > Dear Ben, > > Good guess! That's an ingenious bit of debugging, and it now works > perfectly. I suppose that now means 3 things need to be done: > > 1)Figure out *why* it doesn't work. It's definitely QEMU-specific, since > if I run 2 separate netcat processes on the host, I have no problem. I'd > be interested to know why this occurs. In particular, is it a problem > with the user-net stuff on the host, or a problem with the guest? Most likely there is some issue with the slirp code dealing with the localhost construct. I suspect that the slirp code needs to be rewriting anything that has a source destination of 127.0.0.1 and map it some way. > 2)Fix it... :-) I haven't touched the code in a couple of months. Been pretty distracted with other stuff these days. > > 3)Document this on the website as a known bug, so Google can find it. > Currently, anyone using an earlier version will just think that qemu is > broken. It hasn't worked since at least 0.6.1, although I can't tell you > about earlier versions. It should be google-able. At least I remember posting to the list about 8 months ago on this exact issue, and then posted how I fixed it. (IIRC). > I suspect that I am not up to the task of (2), so I must defer to the > experts... Yep. Probably need someone familiar with the slirp stack. Ben ___ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel
Re: [Qemu-devel] Qemu, Solaris Express (b24) install problem
Hi, I tried latest Solaris Expres (B27a) on Fedora Core 4 QEMU 7.0.2 with KQEMU. After start I got a lof of WARNING about ata1 timeouts and resets. When install meu is launched, I select 4. Solaris interactive text (console session) After answer all questions I got: ERROR: The disk you inserted is not Solaris OS CD/DVD Nice day Rudolf - PŮVODNÍ ZPRÁVA - Od: "U n d e r a c h i e v e r" <[EMAIL PROTECTED]> Komu: qemu-devel@nongnu.org Předmět: [Qemu-devel] Qemu, Solaris Express (b24) install Datum: 22.11.2005 - 20:15:35 > Hi > > I'm trying to install the latest Solaris Express (b24) > into qemu as a guest > OS; my host is linux. Kicking off with the following:- > > $ qemu -m 512 \ > -hda /home/glaw/DiskImages/SolarisExpress-b24-x86.qcow > -\ > -cdrom /home/glaw/DiskImages/sol-nv-b24-x86-v1.iso \ > -boot d > > The installation program starts, asks me about a few > things like timezone, > then after I select to manually eject CD and manually > reboot it throw up a > series of errors re. reading the cdrom and finally > bails with:- > > There were problems loading the media from /cdrom. > Solaris installation program exited. > # > > I tried to switch to auto eject CD and auto reboot: > same issue. > > I realise this is a brand new OS (it's the beta of > Solaris 11 AFAIK) but has > anyone got any idea how to get around this? > > Ta > > -- > [EMAIL PROTECTED] > U n d e r a c h i e v e r > > > > > ___ > Qemu-devel mailing list > Qemu-devel@nongnu.org > http://lists.nongnu.org/mailman/listinfo/qemu-devel > -- !TIP NA DAREK! --- HOKEJ-SQUASH-BADMINTON-KOLO-INLINE-VYZIVA --- Udelejte si radost! Usetrite cas i penize. http://www.sportobchod.cz/vanoce/ ___ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel
Re: Re: [Qemu-devel] Qemu, Solaris Express (b24) install problem
[EMAIL PROTECTED] wrote: > I tried latest Solaris Expres (B27a) on Fedora Core 4 QEMU 7.0.2 > with KQEMU. > > After start I got a lof of WARNING about ata1 timeouts and > resets. > That is probably due to qemu not handling DMA mode for Solaris. I know I've patched it with some code that Juergen Keil posted on the list a long ways back. Solaris generally installs with that DMA patch, and I think you may have to turn off acpi-enum=off at the grub prompt since the Bochs bios doesn't really speak ACPI. HTH Ben ___ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel
[Qemu-devel] 1: Generic drugs...the only way to go... [Ref:145]
You want to enlarge the power of L0VE ? Just click here and do it! check out the fo11owing price$ per d0$e* Name of product Generic /iagr@ $9.00 $1.60 Paxi1 $10.16 $5.55 Just visit our store to find best 0ffer! *prices may vary daily depending upon size, supply, and quantity ordered To unsubscribe click here! ___ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel
Re: [Qemu-devel] Re: user-net -redir working? [problem located][PATCH]
On Wed, Nov 23, 2005 at 08:33:06AM +, Mark Jonckheere wrote: > Richard Neill schreef: > > 4)lookup the mailing list archive and find out that this problem > has already been detected, diagnosed, resolved and completely ignored > more than a year ago. > And sadly, it seems it is being ignored once again. (I didn't actually get that email back in Sept 2004. It is possible that it might have missed Fabrice as well.) Fabrice really should commit this to CVS. -- Infinite complexity begets infinite beauty. Infinite precision begets infinite perfection. ___ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel
[Qemu-devel] Re: user-net -redir working? [problem located][PATCH]
Richard Neill schreef: >> Anyway, I've taken your suggestion, and run both ends with ethereal. >> Here's what I did: >> >> >> HOST (Linux); >>qemu -cdrom /dev/cdrom -boot d -user-net -redir tcp:2200::22 >> >> GUEST (Knoppix): >>Boot up, then start sshd. Verify that I can indeed do ssh >>[EMAIL PROTECTED], and that PermitRootLogin is yes in sshd_config. >> >> Then, start ethereal (on the "any" interface) >> >> >> HOST: >>Start ethereal (on the "any" interface") >>ssh -p 2200 [EMAIL PROTECTED] >> >> At this point, ssh just stalls. It's obviously waiting for something, >> but not known what. I get no output at all from it. > > > Can you try "ssh -p 2200 root@ > > I've run into this several times dealing with the -redir > function, especially since localhost resolves as 127.0.0.1. > On my Solaris host with a linux guest, the packet arriving > showed up as 127.0.0.1, which ended up with the same > behavior as you're describing. > > > --- > > > Dear Ben, > > Good guess! That's an ingenious bit of debugging, and it now works > perfectly. I suppose that now means 3 things need to be done: > > 1)Figure out *why* it doesn't work. It's definitely QEMU-specific, since > if I run 2 separate netcat processes on the host, I have no problem. I'd > be interested to know why this occurs. In particular, is it a problem > with the user-net stuff on the host, or a problem with the guest? > > 2)Fix it... :-) > > 3)Document this on the website as a known bug, so Google can find it. > Currently, anyone using an earlier version will just think that qemu is > broken. It hasn't worked since at least 0.6.1, although I can't tell you > about earlier versions. 4)lookup the mailing list archive and find out that this problem has already been detected, diagnosed, resolved and completely ignored more than a year ago. http://lists.gnu.org/archive/html/qemu-devel/2004-09/msg00188.html I still patch every new download from CVS with my personal patchfile: 8< diff -ur qemu/slirp/misc.c qemu-patched/slirp/misc.c --- qemu/slirp/misc.c Mon Sep 6 01:10:26 2004 +++ qemu-patched/slirp/misc.c Wed Sep 8 16:12:14 2004 @@ -90,13 +90,12 @@ char buff[256]; struct hostent *he; - if (gethostname(buff,256) < 0) - return; - - if ((he = gethostbyname(buff)) == NULL) - return; - - our_addr = *(struct in_addr *)he->h_addr; + if (gethostname(buff,256) == 0) + if ((he = gethostbyname(buff)) != NULL) + our_addr = *(struct in_addr *)he->h_addr; + + if (our_addr.s_addr == 0 || our_addr.s_addr == loopback_addr.s_addr) + our_addr.s_addr = special_addr.s_addr | htonl(CTL_ALIAS); } #if SIZEOF_CHAR_P == 8 diff -ur qemu/slirp/slirp.c qemu-patched/slirp/slirp.c --- qemu/slirp/slirp.c Mon Sep 6 01:10:26 2004 +++ qemu-patched/slirp/slirp.c Wed Sep 8 16:13:00 2004 @@ -144,7 +144,6 @@ m_init(); /* set default addresses */ -getouraddr(); inet_aton("127.0.0.1", &loopback_addr); if (get_dns_addr(&dns_addr) < 0) { @@ -153,6 +152,7 @@ } inet_aton(CTL_SPECIAL, &special_addr); +getouraddr(); } #define CONN_CANFSEND(so) (((so)->so_state & (SS_FCANTSENDMORE|SS_ISFCONNECTED)) == SS_ISFCONNECTED) diff -ur qemu/slirp/udp.c qemu-patched/slirp/udp.c --- qemu/slirp/udp.cTue Aug 24 23:57:12 2004 +++ qemu-patched/slirp/udp.cMon Sep 6 10:44:11 2004 @@ -314,6 +314,8 @@ saddr = *addr; if ((so->so_faddr.s_addr & htonl(0xff00)) == special_addr.s_addr) saddr.sin_addr.s_addr = so->so_faddr.s_addr; +if ((so->so_faddr.s_addr & htonl(0x00ff)) == htonl(0xff)) +saddr.sin_addr.s_addr = special_addr.s_addr | htonl(CTL_ALIAS); daddr.sin_addr = so->so_laddr; daddr.sin_port = so->so_lport; 8< The patch in misc.c and slirp.c corrects your problem, the patch in udp.c corrects the problem that UDP replies IP-broadcasts with the IP-broadcast address instead of its own. greetings, Mark. ___ Qemu-devel mailing list Qemu-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/qemu-devel