Troubleshooting tips for when installed kernel hangs on boot, but not bsd.rd

2023-03-03 Thread Sandro Mancuso
Hello,

I am able to boot bsd.rd/install usb just fine.  If I drop to shell
and manually mount/chroot into the installed system, everything
_seems_ to work just fine.  Whenever I try to boot the fresh install,
the furthest I was able to get by disabling inteldrm, and items
related to either inteldrm or efifb (mostly grasping at straws) in
kernel config is the following line:

wsdisplay0 at efifb0 mux 1: console (std, vt100 emulation), using wskbd0
wsdisplay0: screen 1-5 added (std, vt100 emulation)

For reference, I have recently raised a bug here:
https://marc.info/?l=openbsd-bugs=167772063221672=2

Googling has only gotten me so far.  Having never dealt with this
before, I am at a loss as to how to even figure out what is wrong.

I am pretty sure it's a display/video driver issue and would like to
just disable anything I could to that effect since this will be a
headless system.   Any suggestions on what I can do to troubleshoot
this further?

Thanks so much in advance,
/SM



Re: Questions about man gcc-local

2023-03-03 Thread Theo de Raadt
"Stanislav Syekirin" wrote:

> > The people on clang architectures need to know that the gcc systems
> > are
> > different, that different decisions have been made. Education is way
> > more important than consistancy.
> 
> I'm all for being educated about differences between architectures. I
> think the current manual pages don't achieve it in this particular
> regard. They don't, as far as I see, mention anywhere that there even
> *are* gcc systems as opposed to clang systems. I've only learned about
> it from this mailing list and from blog entries by Frederic Cambus.

Well, now you know.

> > This manual page is not hurting you.
> 
> It does cause confusion (e.g. I see no way to find out from the manual
> pages on which platforms the GNU assembler is part of the system and
> on which platforms it is not; removing the man pages for certain
> platforms might not be the solution, but the problem is real).

And you are no longer confused.



Re: Questions about man gcc-local

2023-03-03 Thread Stanislav Syekirin
The people on clang architectures need to know that the gcc systems 
are
different, that different decisions have been made. Education is 
way

more important than consistancy.


I'm all for being educated about differences between architectures. I 
think the current manual pages don't achieve it in this particular 
regard. They don't, as far as I see, mention anywhere that there even 
*are* gcc systems as opposed to clang systems. I've only learned about 
it from this mailing list and from blog entries by Frederic Cambus.



This manual page is not hurting you.


It does cause confusion (e.g. I see no way to find out from the manual 
pages on which platforms the GNU assembler is part of the system and 
on which platforms it is not; removing the man pages for certain 
platforms might not be the solution, but the problem is real).


Regards
Stanislav


On Fr, 03 Mär 2023 09:43:16 -0700
 Theo de Raadt  wrote:

And I think you are INCORRECT.

The #1 reason to make a manual page visible is for learning.

The people on clang architectures need to know that the gcc systems 
are
different, that different decisions have been made.  Education is 
way

more important than consistancy.

"Stanislav Syekirin" wrote:


I agree. I would expect man pages for as(1), gcc(1), gcc-local(1)
etc. to be present if as and gcc are present, and absent if they are
absent. Or, alternatively, gcc-local(1) should document which
platforms use gcc and which don't.

Regards
Stanislav

On Do, 2 Mär 2023 22:47:08 +
 Jason McIntyre  wrote:

> i don;t think we should be installing gcc-local(1) on any archs
> where
> gcc isnt happening:
> $ uname -a
> OpenBSD manila.kerhand.co.uk 7.2 GENERIC.MP#22 amd64
> $ man gcc
> man: No entry for gcc in the manual.
> jmc
> 







Does OpenBSD 7.2 PF support SITT (stateless NAT64)?

2023-03-03 Thread Gabor LENCSE

Dear All,

Does OpenBSD 7.2 PF support *SIIT* (RFC 7915, also called stateless NAT64)?

If yes, how can I set it?

I tried to set it similarly to stateful NAT64, but specifying "no 
state". However, it resulted in error messages:


p095# pfctl -f /etc/pf-set-siit
/etc/pf-set-siit:20: nat-to and rdr-to require keep state
/etc/pf-set-siit:20: skipping rule due to errors
/etc/pf-set-siit:20: rule expands to no valid combination
pfctl: Syntax error in config file: pf rules not loaded
p095# cat /etc/pf-set-siit
#   $OpenBSD: pf.conf,v 1.55 2017/12/03 20:40:04 sthen Exp $
#
# See pf.conf(5) and /etc/examples/pf.conf

set skip on lo

block return    # block stateless traffic
pass    # establish keep-state

# By default, do not permit remote connections to X11
block return in on ! lo0 proto tcp to port 6000:6010

# Port build user does not need network
block return out log proto {tcp udp} user _pbuild

# Set stateful NAT64 here
set skip on bge0 # protect ssh
set limit states 100 # 1M
set timeout interval 3600 # one hour
pass in on ix0 inet6 from any to 64:ff9b::/96 af-to inet from 198.19.0.1 
*no state*


Previously, I used the same content of the pf.conf file for setting 
*stateful NAT64*, but without the ending "no state". (Stateful NAT64 
worked correctly with OpenBSD 7.1, form which I upgraded to 7.2.)


Thank you very much for your help in advance!

Best regards,

Gábor





Re: Robot poetry about OpenBSD

2023-03-03 Thread Peter N. M. Hansteen
Here is an article about the poem and other things, witt some context - 

ChatGPT opines on IPv6 procastination, waxes lyrical over 

OpenBSD 
https://medium.com/@peter.hansteen/chatgpt-opines-on-ipv6-procastination-waxes-lyrical-over-openbsd-122d16986fd5
 or
https://bsdly.blogspot.com/2023/03/chatgpt-opines-on-ipv6-procastination.html

trackerless: https://nxdomain.no/~peter/chatgpt_on_ipv6_and_openbsd_poetry.html 
#chatgpd #ipv6 #procrastination #OpenBSD #poetry

All the best.
Peter

-- 
Peter N. M. Hansteen, member of the first RFC 1149 implementation team
https://bsdly.blogspot.com/ https://www.bsdly.net/ https://www.nuug.no/
"Remember to set the evil bit on all malicious network traffic"
delilah spamd[29949]: 85.152.224.147: disconnected after 42673 seconds.



Re: BSD and kubernetes

2023-03-03 Thread Stanislav Syekirin
Depends of what kind of integration. I've seen a post about running 
Kubernetes under VMM: 
https://www.h-i-r.net/2023/02/running-kubernetes-cluster-with-openbsd.html. 
Maybe it does what you need.


Regards


On Sa, 4 Mär 2023 02:33:25 +0800
 Ken Young  wrote:

Hello,

I am a BSD user and also a user of kubernetes.
It seems the BSD community has no much interest in docker/k8s 
integration.

Is it true? and why?

Thanks.




BSD and kubernetes

2023-03-03 Thread Ken Young
Hello,

I am a BSD user and also a user of kubernetes.
It seems the BSD community has no much interest in docker/k8s integration.
Is it true? and why?

Thanks.


Robot poetry about OpenBSD

2023-03-03 Thread Daniele B.
Peter N. M. Hansteen :

> So let us raise a toast, to OpenBSD

Waving flag:
https://5md.at/l/tshirt

Please let me know
- who could eventually be the bsd shark ie. "the cloud"
- and if next logo will be a toast

Good weekend everyone!




Re: Recent changes in the FAQ.

2023-03-03 Thread Pascal Deveaux
Thank you

73 de Pascal


Re: Questions about man gcc-local

2023-03-03 Thread Theo de Raadt
And I think you are INCORRECT.

The #1 reason to make a manual page visible is for learning.

The people on clang architectures need to know that the gcc systems are
different, that different decisions have been made.  Education is way
more important than consistancy.

This manual page is not hurting you.

"Stanislav Syekirin" wrote:

> I agree. I would expect man pages for as(1), gcc(1), gcc-local(1)
> etc. to be present if as and gcc are present, and absent if they are
> absent. Or, alternatively, gcc-local(1) should document which
> platforms use gcc and which don't.
> 
> Regards
> Stanislav
> 
> On Do, 2 Mär 2023 22:47:08 +
>  Jason McIntyre  wrote:
> 
> > i don;t think we should be installing gcc-local(1) on any archs
> > where
> > gcc isnt happening:
> > $ uname -a
> > OpenBSD manila.kerhand.co.uk 7.2 GENERIC.MP#22 amd64
> > $ man gcc
> > man: No entry for gcc in the manual.
> > jmc
> > 
> 



Re: Questions about man gcc-local

2023-03-03 Thread Stanislav Syekirin
I agree. I would expect man pages for as(1), gcc(1), gcc-local(1) etc. 
to be present if as and gcc are present, and absent if they are 
absent. Or, alternatively, gcc-local(1) should document which 
platforms use gcc and which don't.


Regards
Stanislav

On Do, 2 Mär 2023 22:47:08 +
 Jason McIntyre  wrote:



i don;t think we should be installing gcc-local(1) on any archs 
where

gcc isnt happening:

$ uname -a
OpenBSD manila.kerhand.co.uk 7.2 GENERIC.MP#22 amd64
$ man gcc
man: No entry for gcc in the manual.

jmc





Re: Questions about man gcc-local

2023-03-03 Thread Theo de Raadt
"Stanislav Syekirin" wrote:

> On Do, 2 Mär 2023 22:22:51 - (UTC)
>  Stuart Henderson  wrote:
>  > Archs which still use gcc in base do have the gcc(1) manual,
>e.g. >sparc64
> > 
> 
> Thanks for the answer. However,
> https://man.openbsd.org/OpenBSD-7.2/sparc64/gcc is empty as well. I,
> sadly, don't have an actual sparc64 machine so don't know what happens
> there.

You are asking for conflicting things, and you don't even realize it.

Fixing all the Xr's and manaul page delivery to be 100% perfect is a can
of worms not worth opening.

It is perfect enough.



Re: Questions about man gcc-local

2023-03-03 Thread Stanislav Syekirin



On Do, 2 Mär 2023 22:22:51 - (UTC)
 Stuart Henderson  wrote:
 
Archs which still use gcc in base do have the gcc(1) manual, e.g. 
sparc64





Thanks for the answer. However, 
https://man.openbsd.org/OpenBSD-7.2/sparc64/gcc is empty as well. I, 
sadly, don't have an actual sparc64 machine so don't know what happens 
there.


Regards
Stanislav



Re: Recent changes in the FAQ.

2023-03-03 Thread Brian Conway
On Fri, Mar 3, 2023, at 9:09 AM, Pascal Deveaux wrote:
> I want to install OpenBSD with full disk encryption.
>
> Why these recent changes in the FAQ in the section "Full Disk Encryption":
>
> -old-
> "if you use GPT for UEFI booting, do: # fdisk -iy -g -b 960 sd0"
>
> -new-
> "if you use GPT for UEFI booting, do: # fdisk -gy -b 532480 sd0"

This is the commit (prior to the www update) and rationale:

https://marc.info/?l=openbsd-cvs=166843427315447

Brian Conway
RCE Software, LLC



Re: openbsd get really hot/warm

2023-03-03 Thread Digua Dong
Well, I have the same issue on Lenovo V15 G2 laptop...
When compiling something while doing other stuff like watching video,
it will sometimes get 90 degC.
I'm on -current, and without hyperthreading.
When I invoke apm, it cannot detect battery and AC adapter.

Actually, I have had this problem for a long time, but I'm lazy.
Now, someone need help, so I want to make some exploration.

I remembered the obsdfreqd by Solene%
https://dataswamp.org/~solene/2022-03-21-openbsd-cool-frequency.html
It is available in 7.2.
I set the temperature to 60 and do some heavy load like before, it works fine.

I think this may be helpful to you too


digua

On Thu, Mar 02, 2023 at 06:43:02PM +0100, l...@netc.fr wrote:
> hello
> 
> unfortunately since a week I was wondering about something :
> 
> on two old hp elitebook, it looks like under win7 and linux/LMDE, that at a 
> general glance everything looks correct
> 
> but on openbsd, something happens, even if CPU is not high : it's a huge 
> overheating, with fans going almost everytime in the high speed, and lower 
> case of the laptop, almost burning (in a way it's really warm, impossible to 
> get it a minute on laps)
> 
> I saw the same problem on an asus laptop.
> 
> is there anyway to know where it come from?
> 
> 
> openbsd v7.1
> 
> 
> under win7 and linux (lmde5), this problem doesnt happens. It's really 
> strange.
> thak you for ideas



Recent changes in the FAQ.

2023-03-03 Thread Pascal Deveaux
I want to install OpenBSD with full disk encryption.

Why these recent changes in the FAQ in the section "Full Disk Encryption":

-old-
"if you use GPT for UEFI booting, do: # fdisk -iy -g -b 960 sd0"

-new-
"if you use GPT for UEFI booting, do: # fdisk -gy -b 532480 sd0"

Pascal


Robot poetry about OpenBSD

2023-03-03 Thread Peter N. M. Hansteen
I decided to test the robot that's been in the news lately -

PNMH: write a poem about OpenBSD

ChatGPT:

In a world of code and bytes,
Where hackers lurk in endless nights,
There shines a system, strong and bright,
A fortress of security, with OpenBSD in sight.

Like a lighthouse on a stormy shore,
It guards the network from cyber war,
With firewalls, cryptography, and more,
It stands tall, unyielding, forevermore.

In its heart, a philosophy,
Of code that's clean and free,
No backdoors, no secret keys,
Just trust and transparency.

>From humble beginnings, it arose,
A gift to the world, from the chosen few,
A beacon of hope, for those who oppose,
The tyranny of those who seek to control.

So let us raise a toast, to OpenBSD,
A shining example of what can be,
When we dare to dream, and we dare to be free,
For a better tomorrow, for you and for me.

(preserved as https://nxdomain.no/~peter/chatgpt_poem_about_openbsd.txt)

All the best,
Peter

-- 
Peter N. M. Hansteen, member of the first RFC 1149 implementation team
https://bsdly.blogspot.com/ https://www.bsdly.net/ https://www.nuug.no/
"Remember to set the evil bit on all malicious network traffic"
delilah spamd[29949]: 85.152.224.147: disconnected after 42673 seconds.



Some questions about lyrics

2023-03-03 Thread Digua Dong
I have some questions while listening the songs,
but I can't find the answer
(These questions have stayed on my machine for 3 weeks
and I finally want to ask it out)

5.4: "Our favorite hacks"
what is " BGE changes to speed up the stack"

4.5: "Games"
what is A.C.P.I and A.M.L
I don't think it is the Advanced Configuration and Power Interface', right?

6.2: "A 3 line diff"
where is the original resource such as mail or revision?


digua