Re: Auto-install over network using UEFI

2023-11-23 Thread Eric Elena
On Thu, 23 Nov 2023 00:37:37 -0800 Nick Owens wrote:
> On Tue, Nov 21, 2023 at 7:03 PM Chris Narkiewicz  wrote:
> >
> > I'm experimentin with auto-install over network using linux libvirt
> > (qemu).
> >
> > I managed to load pxeboot in BIOS mode and I'm wondering if UEFI
> > is supported.
> >
> > According to this blog, I should load BOOTX64.EFI instead of pxeboot.
> >
> > https://eradman.com/posts/autoinstall-openbsd.html
> >
> > I was skeptical but tried it neverthekess and system immediately reboots 
> > after
> > probing disk:
> >
> > probing: p0 com0 mem[640K 2029M 9M 3M]
> > disk:BS->LocateHandle() returns 14
> > 
> >
> > Is it possible to net-boot installer in UEFI using QEMU?
> >
> > Cheers,
> > Chris
> >
> 
> i had some trouble getting PXE set up with dhcpd - see my mail from
> april, "dhcpd user-class and vendor-class".
> 
> i think there is also a bug in the EFI loader when run under OVMF as
> you experienced, but i never figured it out.

It works with QEMU, it took me around 2 minutes to boot a blank VM in
UEFI mode, auto-install it, reboot it and see the login prompt.

Error code 14 means "the item was not found", there is probably
something wrong with the VM/disk configuration.



Re: (video) obsd install initial boot process slowed down

2023-01-06 Thread Eric Elena
On Fri, 6 Jan 2023 11:04:46 - (UTC) Stuart Henderson wrote:
> >> On 1/4/23 01:13, Sylvain Saboua wrote:
> >>> Hi, my openbsed (encrypted) install is functionning really
> >>> well, apart from one thing, that would signal a bug or smth:
> ..
> 
> On 2023-01-05, Sylvain Saboua  wrote:
> > https://youtu.be/lzGT1TAGG1Y
> 
> So just under 30 seconds. Not super fast but I don't think it signals a bug.

When I upgraded my VPS to 7.2 it took more than 10 minutes (no kidding)
to load the kernel and reach the "entry point at..." step after typing
my passphrase, then everything was normal. I only rebooted the OS to
either (7.2) bsd.rd or (7.2) bsd, I didn't try to turn the machine off
or boot another kernel after that. It was the first time I observed
such a thing with this instance in 6 years. Dmesg below just in case,
as it is a virtual machine there could be many reasons to explain this behavior.

OpenBSD 7.2 (GENERIC) #728: Tue Sep 27 11:49:18 MDT 2022
dera...@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC
real mem = 1056813056 (1007MB)
avail mem = 1007554560 (960MB)
random: good seed from bootblocks
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.8 @ 0xf5940 (9 entries)
bios0: vendor Vultr
bios0: Vultr VC2
acpi0 at bios0: ACPI 1.0
acpi0: sleep states S3 S4 S5
acpi0: tables DSDT FACP APIC HPET WAET
acpi0: wakeup devices
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel Core Processor (Broadwell, no TSX, IBRS), 2400.56 MHz,
06-3d-02 cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3,PCLMUL,SSSE3,FMA3,CX16,PCID,SSE4.1,SSE4.2,MOVBE,POPCNT,AES,XSAVE,AVX,F16C,RDRAND,HV,NXE,RDTSCP,LONG,LAHF,ABM,FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,IBRS,IBPB,SSBD,ARAT,XSAVEOPT,MELTDOWN
cpu0: 32KB 64b/line 8-way D-cache, 32KB 64b/line 8-way I-cache, 4MB
64b/line 16-way L2 cache, 16MB 64b/line 16-way L3 cache cpu0: smt 0,
core 0, package 0 mtrr: Pentium Pro MTRR support, 8 var ranges, 88
fixed ranges cpu0: apic clock running at 1000MHz ioapic0 at mainbus0:
apid 0 pa 0xfec0, version 20, 24 pins acpihpet0 at acpi0: 1
Hz acpiprt0 at acpi0: bus 0 (PCI0)
"ACPI0006" at acpi0 not configured
acpipci0 at acpi0 PCI0
acpicmos0 at acpi0
"PNP0A06" at acpi0 not configured
"PNP0A06" at acpi0 not configured
"PNP0A06" at acpi0 not configured
"QEMU0002" at acpi0 not configured
"ACPI0010" at acpi0 not configured
acpicpu0 at acpi0: C1(@1 halt!)
cpu0: using Broadwell MDS workaround
pvbus0 at mainbus0: KVM
pvclock0 at pvbus0
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel 82441FX" rev 0x02
pcib0 at pci0 dev 1 function 0 "Intel 82371SB ISA" rev 0x00
pciide0 at pci0 dev 1 function 1 "Intel 82371SB IDE" rev 0x00: DMA,
channel 0 wired to compatibility, channel 1 wired to compatibility
pciide0: channel 0 disabled (no drives) atapiscsi0 at pciide0 channel 1
drive 0 scsibus1 at atapiscsi0: 2 targets
cd0 at scsibus1 targ 0 lun 0:  removable
cd0(pciide0:1:0): using PIO mode 4, DMA mode 2
uhci0 at pci0 dev 1 function 2 "Intel 82371SB USB" rev 0x01: apic 0 int
11 piixpm0 at pci0 dev 1 function 3 "Intel 82371AB Power" rev 0x03:
apic 0 int 9 iic0 at piixpm0
vga1 at pci0 dev 2 function 0 "Cirrus Logic CL-GD5446" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
virtio0 at pci0 dev 3 function 0 "Qumranet Virtio Network" rev 0x00
vio0 at virtio0: address 56:00:00:6e:5b:9b
virtio0: msix shared
virtio1 at pci0 dev 4 function 0 "Qumranet Virtio Storage" rev 0x00
vioblk0 at virtio1
scsibus2 at vioblk0: 1 targets
sd0 at scsibus2 targ 0 lun 0: 
sd0: 25600MB, 512 bytes/sector, 52428800 sectors
virtio1: msix shared
virtio2 at pci0 dev 5 function 0 "Qumranet Virtio Memory Balloon" rev
0x00 viomb0 at virtio2
virtio2: apic 0 int 10
virtio3 at pci0 dev 6 function 0 "Qumranet Virtio RNG" rev 0x00
viornd0 at virtio3
virtio3: apic 0 int 10
isa0 at pcib0
isadma0 at isa0
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
usb0 at uhci0: USB revision 1.0
uhub0 at usb0 configuration 1 interface 0 "Intel UHCI root hub" rev
1.00/1.00 addr 1 uhidev0 at uhub0 port 1 configuration 1 interface 0
"QEMU QEMU USB Tablet" rev 2.00/0.00 addr 2 uhidev0: iclass 3/0
ums0 at uhidev0: 3 buttons, Z dir
wsmouse1 at ums0 mux 0
vscsi0 at root
scsibus3 at vscsi0: 256 targets
softraid0 at root
scsibus4 at softraid0: 256 targets
sd1 at scsibus4 targ 1 lun 0: 
sd1: 25595MB, 512 bytes/sector, 52419503 sectors
root on sd1a (e7c50e2c7957eecd.a) swap on sd1b dump on sd1b
fd0 at fdc0 drive 1: density unknown



Re: OpenSMTPD filters and "Masquerading"

2019-10-04 Thread Eric Elena
Hi Jon,

I already described the solution I use for masquerading here 
https://marc.info/?l=openbsd-misc=154811965001823=2
Users don't need to be authenticated when your smtp server receives the initial 
email. The authenticated user is local to the smtp server, it's just a trick to 
rewrite the header.
In my case an external server from an SNS sends me a message (in fact to a 
friend), the server rewrites the from (envelope and header), changes the 
recipient to a gmail address, and forwards the message to gmail. The SNS is 
obviously not authenticated. I needed it so gmail is happy with this 
indirection flow.

Thanks,
Eric

On Fri, 4 Oct 2019 08:08:57 + (UTC) Jon Arlund wrote:
> Hi misc,
> I was delighted to see the inclusion of OpenSMTPD filters in the latest 
> snapshot.
> Knowing this has been a frequently requested feature, does someone know 
> if/how filters could be used to implement domain rewriting/masquerading of 
> the From header in the DATA section?
> I know the "senders" parameter in combination with the "masquerade" option is 
> capable of rewriting the From header for authenticated users. Unfortunately, 
> we still have legacy systems that don't support SMTP authentication but are 
> allowed to relay messages based on their IP address.
> Any information will be greatly appreciated.
> Kind regards,
> Jon



Re: smtpd - help needed tranlsating to new virtual map syntax [FIXED]

2019-01-21 Thread Eric Elena
On Mon, 21 Jan 2019 11:08:02 +0100 Gilles Chehade wrote:
> I may sound a bit harsh, but starting a thread with "this is my last try
> or I'll switch" (as if it actually matters) right before telling someone
> who wants to help you that you actually tried _nothing_ then blaming the
> code improvements for a use-case that could have never worked because it
> not only uses the wrong _documented_ mechanism but also because the code
> to make your use-case work has never existed, kinds of irritates me.
> 
> I don't get royalties on smtpd install, please install whatever software
> fits your use case, this is how proper engineering works.

First of all thank you Gilles (and all the others who contributed to
this project) for your amazing work on OpenSMTPD!

That said, there is a kind of sender rewriting mechanism in OpenSMTP.
Well, it works for me (tm) I'm not saying it's perfect, it might be an
overkill but at least it does what I want it to do. The conf is
included below (only the part for rewriting the sender
address):
o /etc/mail/smtpd.conf
listen on all tls pki my.domain auth-optional
listen on lo0 port 10030 smtps pki my.domain tag MASQ auth senders { foo = 
masq@my.domain } masquerade

table masquser  { "toto@my.domain" }
table masq-alias{ "toto@my.domain" = "t...@example.com" }

table secrets   file:/etc/mail/secrets

action masq01 mbox virtual 
action masq02 relay host smtps://masqlabel@127.0.0.1:10030 auth  
mail-from "masq@my.domain"



match tag MASQ rcpt-to  action masq01
match from any rcpt-to  action masq02



o /etc/mail/secrets
masqlabel foo:asuperpassword

When a mail is received (listen on all):
- check if it is rejected
- if not, if the email if for toto@my.domain, forward it to the very
same OpenSMTP daemon on port 10030 using the authenticated user foo and
using masq@my.domain as the MAIL-FROM in the SMTP session (enveloppe)
- when an email is received on port 10030, tag it with the label MASQ.
The authenticated user is allowed to send an email as the user
masq@my.domain. The keyword masquerade modifies the From header (the
message itself) to match the address given in the SMTP session
- at that point, the sender address is rewritten both in the SMTP
session and the headers
- if the email is for toto@my.domain and is tagged with the label MASQ,
the virtual user address is expanded to the real email address
- continue like a normal message

There is probably room for improvement but I hope this helps.



Re: Source for LENOVO parts?

2009-10-31 Thread Eric Elena
The same thing happened to me 2 months ago. Maybe this fan is not very
reliable.
Anyway, I bought mine online on the IBM France website. For Canada, it
seems you have to contact the Toronto Parts Order Centre 
https://www-304.ibm.com/shop/americas/content/home/store_IBMPublicCanada/en_CA/parts.html

Le samedi 31 octobre 2009 C  08:31 -0400, Frank Bax a C)crit :
 I have a Lenovo T60p (8744-J2U L3-CM199-07/07).
 I have been running OpenBSD on it since I purchased it (Summer 2007).
 
 The CPU fan is getting noisy and I'd like to replace it.
 
 The store where I purchased my laptop cannot order the replacement part.
 
 Can anyone suggest a supplier for this part?  I live 200km west of 
 Toronto, ON, Canada.



Re: filesystems?

2007-09-04 Thread Eric Elena
Le mardi 04 septembre 2007 C  00:23 +0200, Tonnerre LOMBARD a C)crit :
 Salut,
 
 On Mon, Sep 03, 2007 at 05:10:57PM +0200, Eric Elena wrote:
  I think fat32 is a good choice: you have nothing to install.
 
 Did you ever have to debug a deep directory structure where something
 caused all directory to become files? On a 500G disk? Fun.
 
   Tonnerre

No I didn't. Is it so fun? :)
I didn't say fat32 is a good FS but IMHO it's a FS with less constraints
than other ones. Imagine your network is down or you don't remember the
name of the driver and you need to access to the data stored on a FFS
disk from a new win box. I would say it's also fun :)
To avoid this problem, you can create a small fat partition, store all
the drivers (ext, ufs, ...) on it, and create multiple ufs/ext/..
partitions to prevent huge data loss.
But it depends on the use you will have of your disk.



Re: filesystems?

2007-09-03 Thread Eric Elena
Le lundi 03 septembre 2007 C  16:10 +0200, Jona Joachim a C)crit :
 On Mon, 3 Sep 2007 16:10:52 +0300
 Ihar Hrachyshka [EMAIL PROTECTED] wrote:
 
  2007/9/3, Tonnerre LOMBARD [EMAIL PROTECTED]:
   Salut,
  
   On Mon, Sep 03, 2007 at 08:46:37AM +0300, Ihar Hrachyshka wrote:
Also you can use ext2(3) filesystem for this purpose: BSD works
quite OK with it (though with no journal support), Linux - ow, do
you think it's not?:) - and there are some tools in the Internet
to be able to read ext2 from Windows. Don't know about writing:
you need to investigate it by yourself.
  
   The same goes for ffs/ufs
  
  Ow, please provide me with the link to Windows UFS software. I'll be
  glad to see it by myself.
 
 https://sourceforge.net/projects/ffsdrv/

But linux is not abble to write to ufs/ffs file system.
http://en.wikipedia.org/wiki/Berkeley_Fast_File_System#Implementations
I think fat32 is a good choice: you have nothing to install.



Re: Radeon X1300 mobile + WXGA - out of luck?

2007-08-30 Thread Eric Elena
Le mardi 28 aoC;t 2007 C  18:20 +0200, Joachim Schipper a C)crit :
 The following configuration works, albeit at the wrong resolution:
 http://jschipper.dynalias.net/~joachim/posts/20070828/Xorg.conf
 
 It also contains some failed attempts that might be interesting
 (ModeLine ...; Virtual 1200 800 and Option ShadowFB no).
 
   Joachim

I don't know how did you get the values for modeline option but I think
they are false:
ModeLine 1280x800 83.91 1280 1312 1624 1656 800 816 824 841
I use gtf to get (in theory :) the good values.
gtf horizontal-resolution vertical-resolution refresh
So to match 83.91:
$ gtf 1280 800 60.32 

  # 1280x800 @ 60.32 Hz (GTF) hsync: 49.94 kHz; pclk: 83.91 MHz
  Modeline 1280x800_60.32  83.91  1280 1344 1480 1680  800 801 804 828
-HSync +Vsync
The other values are very different.

You should try gtf with a refresh rate of 60Hz (refresh rate for lcd
screens). And if there is still (II) VESA(0): Not using mode
1280x800 (no mode of this name) in your log, probably your video bios
is ugly and cannot display wide resolution with vesa driver.

I'm also surprised by this warning (WW) VESA(0): remove MTRR 0 - 1000.
In my log I have (==) VESA(0): Write-combining range (0x0,0x1000) was
already clear. A problem with mtrr? I read there is a nomtrr option
(man xorg.conf), perhaps it will fix it.

Eric



Re: Radeon X1300 mobile + WXGA - out of luck?

2007-08-27 Thread Eric Elena
Le dimanche 26 aoC;t 2007 C  22:10 +0200, Joachim Schipper a C)crit :
 On Sun, Aug 26, 2007 at 06:39:13PM +0200, Joachim Schipper wrote:
  On Sun, Aug 26, 2007 at 03:38:47PM +0200, Eric Elena wrote:
   Le samedi 25 aoC;t 2007 C  22:41 +0200, Joachim Schipper a C)crit :
I just got a laptop (Acer Aspire 5100 `series') with a Radeon video card
(X1300) and a WXGA screen - 1200x800. It was a good deal, but the ATI
video card had me worried.

Am I correct in thinking that there is no way to get X to display
1200x800 (...)
 
(--) VESA(0): Virtual size is 1024x768 (pitch 1024)
   
   Have you tried to add Virtual 1200 800 in the subsection display
   (section screen)?
  
  No; I just tried to play with it, and:
  
  - without Option ShadowFB no the screen is garbled (the bottommost
part is not initialized, i.e. displays whatever was displayed there
last, and the rest of the screen is repeated in four `bands' - and you
can scroll the screen as noted below)
  - with Option ShadowFB no the screen displays correctly, but sadly
at 1024x800 (or possibly 1024x768). Moving the mouse cursor to the
edge scrolls the screen, which, I suppose, is the proper behaviour. Of
course, the display is rather slow without ShadowFB, but that's not
really a problem.
  
  Note that the shadow buffer works fine for any of the `supported' (if
  wrong) modes like 1024x800.
  
  A new log file, with your virtual line and the shadow buffer disabled,
  is available at
  http://jschipper.dynalias.net/~joachim/posts/20070825/Xorg.0.log.
  ^^
 I'm an idiot.
 
 Use
 http://jschipper.dynalias.net/~joachim/posts/20070826/Xorg.0.log, or the
 old URL (I just created that file).
 
 Sorry for the noise...
 
   Joachim

Can you send your xorg.conf?

Eric



Re: Radeon X1300 mobile + WXGA - out of luck?

2007-08-26 Thread Eric Elena
Le samedi 25 aoC;t 2007 C  22:41 +0200, Joachim Schipper a C)crit :
 Hello,
 
 I just got a laptop (Acer Aspire 5100 `series') with a Radeon video card
 (X1300) and a WXGA screen - 1200x800. It was a good deal, but the ATI
 video card had me worried.
 
 Am I correct in thinking that there is no way to get X to display
 1200x800, other than:
...
 (--) VESA(0): Virtual size is 1024x768 (pitch 1024)
...

Have you tried to add Virtual 1200 800 in the subsection display
(section screen)?

Eric



Re: Lenovo 8744-J2U - several questions

2007-08-12 Thread Eric Elena
Le jeudi 09 aoC;t 2007 C  20:59 -0400, Frank Bax a C)crit :
 I'm trying to get 1680x1050; but so far only 1280x1024 works at the moment.
 dmesg and xorg.conf were in original post, found here:
 http://permalink.gmane.org/gmane.os.openbsd.misc/127104
 Xorg.0.log is available here:
  http://www.execulink.com/~fbax/Xorg.0.log

(WW) VESA(0): Unable to estimate virtual size
(--) VESA(0): Virtual size is 1280x1024 (pitch 1280)

It seems vesa (or xorg) is not abble to do correctly its job :)
Try to add Virtual 1680 1050 (without double quotes) in the subsection
display (section screen). It worked for me, the desktop was
1680x1050.

Eric



Re: Lenovo 8744-J2U - several questions

2007-08-09 Thread Eric Elena
Le mercredi 08 aoC;t 2007 C  10:55 -0400, Frank Bax a C)crit :
 At 04:49 AM 8/7/07, Eric Elena wrote:
 
 Le lundi 06 aoC;t 2007 C  21:21 -0400, Stephan Andre' a C)crit :
   On Monday 06 August 2007 18:29:12 Matthieu Herrb wrote:
On 8/6/07, Frank Bax [EMAIL PROTECTED] wrote:
 Just got a new Lenovo 8744-J2U laptop and installed the Aug.1 
 snapshot:

 vga1 at pci1 dev 0 function 0 vendor ATI, unknown product 0x71d4 rev
 0x00
   
Oh and I forgot: this is a Mobility FireGL V5250, which is indeed not
supported by the current X.Org ati driver. It should be supported by
the new 'avivo'  driver, but this driver is not yet available for
OpenBSD.
  
   Matthieu,  I'm also looking at the Lenovo T60.  Is the avivo driver
   ready for use, and how much effort is there in incorporating it
   into Xenocara?   I'd really like a new laptop--my A31p is old.
  
   Thanks, STeve Andre'
  
 
 I tested the avivo driver running linux, it works fine with a firegl
 5200 card. There is only one trouble with DPMS: the screen displays
 something weird when it switches off then switches on.
 Running openbsd stable, I use the vesa driver but there is no problem
 here.
 
 
 Does your laptop have a wide-screen monitor like mine?

No, my t60p has a normal screen monitor.

 In T60p BIOS, there 
 is an option HV expansion which will stretch output to always fill the 
 screen.  With this option enabled, I am able to fill the monitor, but 
 images do not have proper aspect ratio; so for now I have disabled the 
 option. 

There is also this option in older thinkpad bios. I have it enabled and
as I said it works fine. What is the resolution you would like to work?

Eric



Re: Lenovo 8744-J2U - several questions

2007-08-07 Thread Eric Elena
Le lundi 06 aoC;t 2007 C  21:21 -0400, Stephan Andre' a C)crit :
 On Monday 06 August 2007 18:29:12 Matthieu Herrb wrote:
  On 8/6/07, Frank Bax [EMAIL PROTECTED] wrote:
   Just got a new Lenovo 8744-J2U laptop and installed the Aug.1 snapshot:
  
   vga1 at pci1 dev 0 function 0 vendor ATI, unknown product 0x71d4 rev
   0x00
 
  Oh and I forgot: this is a Mobility FireGL V5250, which is indeed not
  supported by the current X.Org ati driver. It should be supported by
  the new 'avivo'  driver, but this driver is not yet available for
  OpenBSD.
 
 Matthieu,  I'm also looking at the Lenovo T60.  Is the avivo driver
 ready for use, and how much effort is there in incorporating it 
 into Xenocara?   I'd really like a new laptop--my A31p is old.
 
 Thanks, STeve Andre'
 

I tested the avivo driver running linux, it works fine with a firegl
5200 card. There is only one trouble with DPMS: the screen displays
something weird when it switches off then switches on.
Running openbsd stable, I use the vesa driver but there is no problem
here.

Eric