Re: Network and port redirection with QEMU not working with package compiled on 10.0_RC1

2024-01-03 Thread Marc Baudoin
Greg Troxel  écrit :
> 
> I really doubt reinstalling is necessary.
> 
> When you upgrade packages, make sure you have every single package from
> a consistent build - same branch, same OS version.

Which would be almost as long as reinstalling from scratch
anyway.

I've been using pkgsrc for some 25 years and I never had to do
that across system upgrades, it just works fine (well, except
this time).  Frequent revbumps make me compile anew most of what
I use anyway.

In the case of QEMU, I don't see any direct dependency which
could influence networking but I might be wrong.

> diff your /etc from unpacking the etc.tgz and xetc.tgz sets someplace
> else.  Understand the differences.   I try to minimize them if I don't
> intend them to differ.

postinstall already does most of that.  I generally just need to
manually adjust /etc/master.passwd because postinstall does not
seem to handle added users (no big deal).

> Check  your firewall configs extra carefully.

Doesn't have any.

So I'm stuck but I still have my not so old qemu-8.1.2nb1
package.


Re: Network and port redirection with QEMU not working with package compiled on 10.0_RC1

2024-01-03 Thread Greg Troxel
I really doubt reinstalling is necessary.

When you upgrade packages, make sure you have every single package from
a consistent build - same branch, same OS version.

diff your /etc from unpacking the etc.tgz and xetc.tgz sets someplace
else.  Understand the differences.   I try to minimize them if I don't
intend them to differ.

Check  your firewall configs extra carefully.


Re: Network and port redirection with QEMU not working with package compiled on 10.0_RC1

2024-01-03 Thread Marc Baudoin
Michael van Elst  écrit :
> baba...@babafou.eu.org (Marc Baudoin) writes:
> 
> >Has anybody got a working QEMU (at least network-wise) compiled
> >on NetBSD 10.0_RC[12]?
> 
> No problems here, neither with qemu-8.1.0 (2023Q3) nor qemu-8.1.3 (2023Q4):
> 
> Host:
> NetBSD tazz 10.99.10 NetBSD 10.99.10 (TAZZ) #311: Sun Dec 24 15:24:24 UTC 
> 2023  
> mlelstv@slowpoke:/scratch2/obj.amd64/scratch/netbsd-current/src/sys/arch/amd64/compile/TAZZ
>  amd64
> 
> Guest:
> NetBSD standalone 10.99.5 NetBSD 10.99.5 (GENERIC) #0: Sun Jul  9 00:01:55 
> UTC 2023  mkre...@mkrepro.netbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC 
> amd64
> 
> configured with:
> 
> -netdev user,id=n1
> -device virtio-net,netdev=n1

Thanks.  Then it must be a problem specific to my computer but I
don't know what could be the cause of this.  As it's my main
system, I'm reluctant to reinstall NetBSD from scratch (I've been
upgrading it since it was originally installed with version 7) in
order to have the least amount of downtime possible but that's
the only solution I see now...


Re: Network and port redirection with QEMU not working with package compiled on 10.0_RC1

2024-01-03 Thread Michael van Elst
baba...@babafou.eu.org (Marc Baudoin) writes:

>Has anybody got a working QEMU (at least network-wise) compiled
>on NetBSD 10.0_RC[12]?

No problems here, neither with qemu-8.1.0 (2023Q3) nor qemu-8.1.3 (2023Q4):

Host:
NetBSD tazz 10.99.10 NetBSD 10.99.10 (TAZZ) #311: Sun Dec 24 15:24:24 UTC 2023  
mlelstv@slowpoke:/scratch2/obj.amd64/scratch/netbsd-current/src/sys/arch/amd64/compile/TAZZ
 amd64

Guest:
NetBSD standalone 10.99.5 NetBSD 10.99.5 (GENERIC) #0: Sun Jul  9 00:01:55 UTC 
2023  mkre...@mkrepro.netbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64

configured with:

-netdev user,id=n1
-device virtio-net,netdev=n1



Re: Network and port redirection with QEMU not working with package compiled on 10.0_RC1

2024-01-03 Thread Marc Baudoin
Marc Baudoin  écrit :
> 
> With all the recent revbumps in pkgsrc, emulators/qemu had to be
> recompiled quite a few times in the last weeks.  In the meantime,
> I have upgraded my computer to 10.0_RC1.

I delved a little more into this problem.  Using a Debian 12
guest, the logging of dhclient is different (lines from a correct
QEMU are prefixed with <, lines from a faulty QEMU with >):

   9,10c9,10
   < DHCPDISCOVER on ens3 to 255.255.255.255 port 67 interval 5
   < DHCPOFFER of 10.0.2.15 from 10.0.2.2
   ---
   > DHCPDISCOVER on ens3 to 255.255.255.255 port 67 interval 7
   > DHCPOFFER of 10.0.2.15 from 255.255.0.10
   12,13c12,14
   < DHCPACK of 10.0.2.15 from 10.0.2.2
   < bound to 10.0.2.15 -- renewal in 42303 seconds.
   ---
   > DHCPACK of 10.0.2.15 from 255.255.0.10
   > Error: inet prefix is expected rather than "10.0.2.15/0.2.0.255".
   > bound to 10.0.2.15 -- renewal in 40924 seconds.

Any other kind of guest system has the same problem (but the
traces are more extensive with Debian) so it's a general QEMU
problem.

The last correct version of QEMU working for me is qemu-8.1.2nb1
compiled on NetBSD/amd64 9.3.  Then I upgraded to 10.0_RC1 (and
RC2 is no better) and recompiled QEMU because of several
revbumps.  qemu-8.1.2nb2 and later exhibit the problem above,
although the version of QEMU was the same at the beginning (but
8.1.3 and 8.2.0 do not work either), so I suspect the problem
lies with NetBSD 10.0 (probably a static library because behavior
should be identical between versions with a shared library).

Has anybody got a working QEMU (at least network-wise) compiled
on NetBSD 10.0_RC[12]?