2

I wonder what experience others have of running openbsd on top of vmware infrastructure.

I have a pretty regular Lighttpd+Mysql+PHP5 setup of 2 vmware guests:

-Debian7 Wheezy

-OpenBSD 5.2 (this version was choosen because some higher versions didnt even boot with kernel panic)

None of the installs have any tuning done in their guest kernels, sysctl values or lighty/mysql configs. Also I do not use memcached. Both resides on the same hardware, same disk.

What I noticed is that webpages on the obsd server are very slow. CPU usage is mostly consumed by php, would this generally mean the virtualizing openbsd does not worth it?

Anybody knows the reason behind why is it slower than the linux webserver? I know that when it comes to hardware support linux is always better than bsds, but vmware emulates some ancient hardware what's recognized by most of the systems anyway. When it comes to BSDs they are better in what they were made to do (network operations).

ewwhite
  • 197,159
  • 92
  • 443
  • 809
nixstack
  • 31
  • 1
  • 4

3 Answers3

2

With all due respect to my fellow netizens here, I don't think your question was thoroughly read by others who answered. The general assumption is to slam OpenBSD with assumptions that don't pan out in actual use conditions, when really your main piece of information was that PHP was chewing up the CPU the most. There are multiple questions that should have been asked:

  • since this situation can easily be a performance-inefficient php.ini or httpd.conf configuration, are you definitely using the same version of PHP on both platforms?

  • Which Apache were you using on each system (obsd by default in 5.2 uses it's own 1.3 security-enhanced version, but Debian would default to Apache 2.0, making your results very skewed).

  • What is your configuration of the vm's themselves in VMWare (drives, nics, etc.)?

One reason to point to the bias in the other answers is:

  • the Theo quote is 7 years old.
  • that i386 is actually the preferred version of OBSD over the AMD64 version for virtualization.
  • both actually can run well in VMWare with the OBSD5.5 and likely 5.6 (the current version).
  • there is no question of the configuration of the vm's being compared, just a judgement that it (paraphrasing) 'will probably suck'.
danno
  • 758
  • 5
  • 12
1

As far as I am aware, OpenBSD does not have good x86 virtualization support because the developers believe it compromises security. You will have better results running it on actual hardware.

This is Theo de Raadt's opinion on the subject -

x86 virtualization is about basically placing another nearly full kernel, full of new bugs, on top of a nasty x86 architecture which barely has correct page protection. Then running your operating system on the other side of this brand new pile of shit. You are absolutely deluded, if not stupid, if you think that a worldwide collection of software engineers who can't write operating systems or applications without security holes, can then turn around and suddenly write virtualization layers without security holes.

Scarletts
  • 19
  • 1
0

Lack of mindshare and optimization for OpenBSD would be my suggestion. I've never heard of anyone running OpenBSD on VMware in the past 6 years. I'd be curious as to why you're planning around OpenBSD, though.

The main issues I'd see are memory management and the (lack of) availability of the VMware guest tools for OpenBSD. I'm not sure they'll install cleanly without trouble.

Have you compared this performance to OpenBSD on bare-metal hardware?

ewwhite
  • 197,159
  • 92
  • 443
  • 809