Josh Hoppes | 1 Nov 02:02 2009
Picon

Re: What VM does OpenBSD run well under>

I've had decent luck with VirtualBox as of late, in previous versions
VirtualBox would cause problems at install time bugging out when
extracting packages.

I've never had a problem with VMware though, but my experience is
limited. I've been running it under ESXi 4.0 for a while and it's been
very stable.

Ryan McBride | 1 Nov 04:26 2009
Picon

Re: pf n00b

On Sat, Oct 31, 2009 at 03:00:41PM -0600, ghe wrote:
> I'm fresh off the boat from Debian. I love OpenBSD's attitude, and
> the documentation is even pretty decipherable, but I'm still a
> little confused by pf. I managed to build a trivial filter, but
> there are a few things I don't understand.
> 
> I read somewhere (3 books, google, the website docs, and man) that a
> longer rule takes longer to do its work. 

I can't speak for the books, and I KNOW google is full of lies, but can
you point out specifically what parts of the website docs and man page
talks about this? It should be removed.

> Why? I don't understand how pf works -- I'd expect pfctl, while it's
> munging pf.conf, to make most of the conditions into a big mask that
> could just && with the IP header and make a decision on the result. 

PF is designed to have a considerably more flexible and fine-grained
filtering mechanism, so what goes on is considerably more complicated
than just a bitwise && against the header.

> So specifying the proto and both addresses and flags shouldn't make
> much difference in efficiency. No?

Actually, under many circumstances specifying the proto and addresses
will IMPROVE the performance of the ruleset evaluation even though it
makes the individual rule evaluation slower.

The number of rules evaluated makes a lot more difference than the 
number of parameters evaluated per rule.
(Continue reading)

Chris Dukes | 1 Nov 04:29 2009

Re: What VM does OpenBSD run well under>

On Sat, Oct 31, 2009 at 05:50:57PM -0600, Theo de Raadt wrote:
> > OpenBSD 4.5+ works if "mpbios" is disabled, more info here:
> > http://scie.nti.st/2009/10/4/running-openbsd-4-5-in-kvm-on-ubuntu-linux-9-04
> 
> OpenBSD 4.5 works on 99.9% of PCs out there with mpbios enabled,
> so KVM must have a really stupid bug.

Something about the mpbios implementation on OpenBSD does not seem
right as disabling with 'bsd -c' does not have the same result as
building a kernel with mpbios0 disabled in the config.  That and
your 99.9% comment lead me to believe there is a bug in OpenBSD.
Given
1) Per mpbios.c ACPI and a useable MPBIOS appear to be mutually exclusive
2) New PCs are shipping with ACPI instead of APM
3) GENERIC with mpbios enabled breaks on 0.1% of PCs.
I'm at a bit of a loss as to why mpbios is still enabled in GENERIC.

My memory of the brief discussion on the KVM mailing list was that
KVM/QEMU emulation of one of the instructions executed by going through
the mpbios code was mishandled.  If you'd like me to find the relevant
thread and forward it on to the mpbios maintainer, I'll gladly do so.

Now to pragmatic considerations.
I understand and appreciate your mistrust of running OpenBSD under
a virtual machine emulator.
But there are folks like me that find it useful to be able to 
hold a dog and pony show for a network and cluster design on a
laptop rather than an anvil case of laptops, switches, and routers.

--

-- 
(Continue reading)

Theo de Raadt | 1 Nov 04:51 2009
Picon

Re: What VM does OpenBSD run well under>

> On Sat, Oct 31, 2009 at 05:50:57PM -0600, Theo de Raadt wrote:
> > > OpenBSD 4.5+ works if "mpbios" is disabled, more info here:
> > > http://scie.nti.st/2009/10/4/running-openbsd-4-5-in-kvm-on-ubuntu-linux-9-04
> > 
> > OpenBSD 4.5 works on 99.9% of PCs out there with mpbios enabled,
> > so KVM must have a really stupid bug.
> 
> 
> 
> Something about the mpbios implementation on OpenBSD does not seem

Wait.  We don't implement MPBIOS.

It is a table provided by a machine.

That machine is KVM.

On all real machines machine, we don't crash.

Get it?

> right as disabling with 'bsd -c' does not have the same result as
> building a kernel with mpbios0 disabled in the config.  That and
> your 99.9% comment lead me to believe there is a bug in OpenBSD.
> Given
> 1) Per mpbios.c ACPI and a useable MPBIOS appear to be mutually exclusive

That would be false.

> 2) New PCs are shipping with ACPI instead of APM
(Continue reading)

Ted Unangst | 1 Nov 05:21 2009
Picon

Re: What VM does OpenBSD run well under>

On Sat, Oct 31, 2009 at 11:29 PM, Chris Dukes <pakrat <at> pr.neotoma.org> wrote:
> I'm at a bit of a loss as to why mpbios is still enabled in GENERIC.

Because more machines work with mpbios that don't work without it than
machines that work without it but not with it.

> My memory of the brief discussion on the KVM mailing list was that
> KVM/QEMU emulation of one of the instructions executed by going through
> the mpbios code was mishandled.  If you'd like me to find the relevant
> thread and forward it on to the mpbios maintainer, I'll gladly do so.

If the KVM emulation of one the instructions is mishandled, I don't
understand how that is a bug in OpenBSD.

Jeremy Bowen | 1 Nov 05:27 2009
Picon

Segfault in Apache after upgrade to v4.6

Hi 

I've just upgraded a couple of (old-ish) servers to 4.6 and now Apache has 
started throwing intermittent segfaults on both. (dmesgs appended below)
I previously upgraded from 4.4 to 4.5 without incident.

Both of these machines have been running faultlessly for months without issue 
so something has gone wrong following the upgrade. Both machines are serving 
different web-sites so I don't believe there is anything specific to the 
php/html code on the sites.

I have the following PHP5 modules loaded in /var/www/conf/php5/*.ini 

Server 1
extension=gd.so
extension=mbstring.so
extension=mcrypt.so
extension=mysql.so
extension=pdo_mysql.so

Server2
extension=mcrypt.so
extension=mysql.so
extension=snmp.so

Assuming this is a fault in a loaded module it has to be either mcrypt or 
mysql. I suspect this is mysql as one of the sites served is basically static 
HTML without mysql and this site does not appear to cause a segfault. 

Any ideas how I can track down what is causing the problem and more 
(Continue reading)

Tomáš Bodžár | 1 Nov 08:04 2009
Picon

Re: Problems with 4.5 as a KVM guest

4.6 or -current is working fine in VirtualBox too but still some weird things :

1) X use vesa driver
2) If you switch from one console to another then your console will be
with somewhat red/brown background
3) If you reboot then during boot your OpenBSD will stop on mtrr(4)
driver. if you just shutdown your machine and then start it again then
no problem.

On Sat, Oct 31, 2009 at 8:40 PM, Chris Dukes <pakrat <at> pr.neotoma.org> wrote:
> On Sat, Oct 31, 2009 at 09:42:58AM +0100, Michiel van Baak wrote:
>>
>> I tried to upgrade my 4.5 and got the same.
>> Sorry, have no way around it for the moment. I reverted the vm back to
>> it's previous working state.
>
> GENERIC has a few things enabled that play hob with current generation KVM
> and
> QEMU.
> Stock OpenBSD 4.5 will boot after install on Virtual Box.
> From there you can build a kernel with a custom config with those things
> deconfigured.
>
> Back in July I tracked down the relevant problem pieces, but have
> since forgotten what worked and what didn't.
>
> Config files and kernels are available at
> http://ftp.linux.org.uk/~pakrat/obsd45
> At least one of the configs and kernels works with July 24th
> vintage KVM on Ubuntu Hardy with Ubuntu Intrepid kernel and libc.
(Continue reading)

Tomáš Bodžár | 1 Nov 08:22 2009
Picon

Re: What VM does OpenBSD run well under>

After reading this
http://www.openbsd.org/cgi-bin/man.cgi?query=mpbios&apropos=0&sektion=0&manpa
th=OpenBSD+Current&arch=i386&format=html
I must say that for me it means that if you have crappy HW (in this
case KVM) then you can encounter problems.

On Sun, Nov 1, 2009 at 4:29 AM, Chris Dukes <pakrat <at> pr.neotoma.org> wrote:
> On Sat, Oct 31, 2009 at 05:50:57PM -0600, Theo de Raadt wrote:
>> > OpenBSD 4.5+ works if "mpbios" is disabled, more info here:
>> >
http://scie.nti.st/2009/10/4/running-openbsd-4-5-in-kvm-on-ubuntu-linux-9-04
>>
>> OpenBSD 4.5 works on 99.9% of PCs out there with mpbios enabled,
>> so KVM must have a really stupid bug.
>
>
>
> Something about the mpbios implementation on OpenBSD does not seem
> right as disabling with 'bsd -c' does not have the same result as
> building a kernel with mpbios0 disabled in the config. B That and
> your 99.9% comment lead me to believe there is a bug in OpenBSD.
> Given
> 1) Per mpbios.c ACPI and a useable MPBIOS appear to be mutually exclusive
> 2) New PCs are shipping with ACPI instead of APM
> 3) GENERIC with mpbios enabled breaks on 0.1% of PCs.
> I'm at a bit of a loss as to why mpbios is still enabled in GENERIC.
>
>
> My memory of the brief discussion on the KVM mailing list was that
> KVM/QEMU emulation of one of the instructions executed by going through
(Continue reading)

Richard Toohey | 1 Nov 08:38 2009
Picon

Re: Segfault in Apache after upgrade to v4.6

On 1/11/2009, at 5:27 PM, Jeremy Bowen wrote:

> Hi
>
> I've just upgraded a couple of (old-ish) servers to 4.6 and now  
> Apache has
> started throwing intermittent segfaults on both. (dmesgs appended  
> below)
> I previously upgraded from 4.4 to 4.5 without incident.
>
> Both of these machines have been running faultlessly for months  
> without issue
> so something has gone wrong following the upgrade. Both machines  
> are serving
> different web-sites so I don't believe there is anything specific  
> to the
> php/html code on the sites.
>
>
> I have the following PHP5 modules loaded in /var/www/conf/php5/*.ini
>
> Server 1
> extension=gd.so
> extension=mbstring.so
> extension=mcrypt.so
> extension=mysql.so
> extension=pdo_mysql.so
>
> Server2
> extension=mcrypt.so
(Continue reading)

Garry Dolley | 1 Nov 08:54 2009

Re: Problems with 4.5 as a KVM guest

On Sat, Oct 31, 2009 at 09:42:58AM +0100, Michiel van Baak wrote:
> On 19:20, Fri 30 Oct 09, Toni Mueller wrote:
> > Thanks, John and Michiel,
> > 
> > On Thu, 29.10.2009 at 14:02:27 +0100, Michiel van Baak <michiel <at> vanbaak.info> wrote:
> > > On 12:18, Thu 29 Oct 09, Toni Mueller wrote:
> > > > I'm running kvm 85+dfsg-4~bpo5 and see the following interesting
> > > > behaviour with OpenBSD 4.6:
> > > > 
> > > > * /bsd.rd runs just fine, using the ne(4) driver, but
> > > > * /bsd (the uni-processor kernel) locks up hard during, or just
> > > >   after booting, showing "ne3: timeout" (or similar) messages
> > > >   white-on-blue in between.
> > > > 
> > > > Any ideas about what specifically to ask the "Linux folks", please?
> > > 
> > > Set the nic to e1000 in KVM
> > 
> > but this was not successful, either. I got a bunch of:
> > 
> > em0: watchdog timeout -- resetting
> > 
> > and
> > 
> > "No DHCPOFFERS received."
> 
> I tried to upgrade my 4.5 and got the same.
> Sorry, have no way around it for the moment. I reverted the vm back to
> it's previous working state.

(Continue reading)


Gmane