NetOne - Doichin Dokov P=P0P?P8QP0:
ropers P=P0P?P8QP0:
You can use Christoph Egger's OpenBSD/Xen port. No need to go
HVM-only. Unfortunately, my own website is down right now and I
haven't gotten around to fixing that, but the Wayback Machine has the
relevant page:
http://web.archive.org/web/20070403174105/http://ropersonline.com/openbsd/xen/

Also, search the misc archives. This question crops up fairly
regularly. and each time most people don't seem to know of Christoph
Egger's port (and each time I then try to tell people about it again
-- if I catch the message, but I don't always do and sometimes things
fall through the cracks here).

Thanks and regards,
--ropers

On 07/02/2008, John Jackson <[EMAIL PROTECTED]> wrote:
OpenBSD as DomU works using hardware virtualization for me.  There's
the occasional lockup that I haven't looked into too much.  You can
launch vncviewer to get a console.  My working config is at the bottom.

John

On Wed, Feb 06, 2008 at 11:55:05PM +0100, Julien Cabillot wrote:
It's work but I had really bad performances with the network (timeout on
the interface re).
Dmesg: http://www.openbsd-france.org/ml/archives/msg02494.html

I found that setting the vif interface to 'model=ne2k_pci' helps with
the timeouts.

On jeu, 2008-02-07 at 00:29 +0200, NetOne - Doichin Dokov wrote:
I'm looking to replace a Linux domU with a BSD one, preferably OpenBSD. Anyone any success running stable OpenBSD (FreeBSD would also suffice)
as domU in a Xen system? If so, willing to share config / how-to /
experience?

Kind regards,
Doichin
Here's a working Xen config:
=================================================================
import os, re
arch = os.uname()[4]
if re.search('64', arch):
    arch_libdir = 'lib64'
else:
    arch_libdir = 'lib'
kernel = "/usr/lib/xen/boot/hvmloader"
builder='hvm'
memory = 256
name = "obsd"
pae=0
vif = [ 'type=ioemu, mac=00:16:3e:7d:be:ef, model=ne2k_pci' ]
disk = [ 'file:/disk/homer.disk,hda,w','file:/disk/obsd42_amd64.iso,ioemu:hdc:cdrom,r' ]
device_model = '/usr/' + arch_libdir + '/xen/bin/qemu-dm'
boot='cd'
sdl=0
vnc=1
vncviewer=0
nographic=0
stdvga=0
serial='pty'
ne2000=1
audio=0
localtime=1
================================================================
I'm trying to use Christopher's work, but I get the following errors when i try to make depend a xenU kernel:

In file included from /usr/src/openbsd-xen-sys.hg/arch/xen/i386/machdep.c:129: /usr/src/openbsd-xen-sys.hg/dev/isa/isavar.h:138:33: machine/isa_machdep.h: No such file or directory
In file included from /usr/src/openbsd-xen-sys.hg/arch/xen/i386/npx.c:66:
/usr/src/openbsd-xen-sys.hg/dev/isa/isavar.h:138:33: machine/isa_machdep.h: No such file or directory

It does complete, though. But when i try to make the kernel, I get *lots* of errors, starting with these:
/usr/src/openbsd-xen-sys.hg/arch/xen/i386/locore.s: Assembler messages:
/usr/src/openbsd-xen-sys.hg/arch/xen/i386/locore.s:334: Error: suffix or operands invalid for `push' /usr/src/openbsd-xen-sys.hg/arch/xen/i386/locore.s:335: Error: suffix or operands invalid for `popf' /usr/src/openbsd-xen-sys.hg/arch/xen/i386/locore.s:472: Error: `(((1+2)* (1<<12)))(%esi,%ecx,4)' is not a valid 64 bit base/index expression /usr/src/openbsd-xen-sys.hg/arch/xen/i386/locore.s:479: Error: `(%ebx)' is not a valid 64 bit base/index expression /usr/src/openbsd-xen-sys.hg/arch/xen/i386/locore.s:485: Error: `(0x00000001|0x00000002)(%edx)' is not a valid 64 bit base/index expression /usr/src/openbsd-xen-sys.hg/arch/xen/i386/locore.s:486: Error: `(%ebx)' is not a valid 64 bit base/index expression /usr/src/openbsd-xen-sys.hg/arch/xen/i386/locore.s:491: Error: `(%ebx)' is not a valid 64 bit base/index expression /usr/src/openbsd-xen-sys.hg/arch/xen/i386/locore.s:501: Error: `(%ebx)' is not a valid 64 bit base/index expression /usr/src/openbsd-xen-sys.hg/arch/xen/i386/locore.s:506: Error: `(%ebx)' is not a valid 64 bit base/index expression /usr/src/openbsd-xen-sys.hg/arch/xen/i386/locore.s:515: Error: `(((0)* (1<<12))+832*4)(%esi)' is not a valid 64 bit base/index expression
....
(and many more not in this file only, but also in vector.s, spl.s, mutex.S)

Anyone any hints? Is it meant to be run on -current (I see the last changes in the hg are from 8 months ago, but...)? Or do I need to compile it under an i386 kernel (I'm currently trying with an amd64 one)?
# uname -a
OpenBSD border2.net1.cc 4.2 GENERIC.MP#1 amd64

Any help MUCH appreciated!

Kind regards,
Doichin

Guess that counts for cross-compilings, so the answer is yes - i need an i386 kernel to compile this. Sorry for the fuzz...

Reply via email to