« Return to Thread: OpenBSD as Xen domU

Re: OpenBSD as Xen domU

by NetOne - Doichin Dokov :: Rate this Message:

Reply to Author | View in Thread

ropers NAPISA:

> On 07/02/2008, NetOne - Doichin Dokov <root@...> wrote:
>  
>> NetOne - Doichin Dokov NAPISA:
>>    
>>> I'm trying to use Christopher's work, but I get the following errors
>>> when i try to make depend a xenU kernel:
>>> (...)
>>> 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...
>>    
>
> Yes. The port is i386 and sadly it never got much traction within the
> OpenBSD project, which --this is just my hunch-- may have led
> Christoph to unfortunately focus on other stuff instead of keeping
> current a port that the project seems to be lukewarm for at best. I'm
> not sure what OpenBSD version the currently available revision of the
> port targets -- possibly 4.0 or 4.1. If you want to go anywhere with
> this it would probably be best to google Christoph Egger's email
> address (it's out there). He can give you the real deal straight from
> the horse's mouth. If you use Christoph's port, I would be very
> interested in hearing about it. -- Maybe others, too. Maybe you could
> post to misc@?
>
> Thanks and regards,
> --ropers
>  
Yup, I have successfully compiled the XENU kernel, I neither now which
version it is, but it's 8 months old, I believe it was based on -current.
The bad thing is that - when I try to run it with Xen, i get this:
[root@dom0 xen]# xm create -c /etc/xen/net1-obsd.xm
Using config file "/etc/xen/net1-obsd.xm".
Error: (22, 'Invalid argument')

As far as I went with googling info about this error, it's something PAE
related - my Xen dom0 is PAE enabled I think (I'm not very much into
linux, but i have HIGHMEM_64G defined, also PAE is present in
/proc/cpuinfo).
Seems like the OpenBSD XENU kernel is not (or the vice versa - dom0 is
non-PAE, and the OpenBSD kernel is PAE-enabled). In FreeBSD, there's a
PAE option in the kernel config, but I don't find such one in the
OpenBSD configs (I did not have enough time to investigate this, though,
so I might have overlooked it).

I'm using Xen 3.0.x, and my net1-obsd.xm config is:
=================
name = "net1-obsd"
memory = "256"
disk = [ 'phy:/dev/mirror/fc1,sda1,w' ]
vif = [ 'mac=00:16:3e:1b:04:c9, bridge=xenbr0' ]
vnc=1
vncunused=1
vcpus=2
kernel = "/boot/openbsd-xenu"
extra =
"boot_verbose,boot_single,vfs.root.mountfrom=ufs:/dev/md0,kern.hz=100"
on_reboot   = 'restart'
on_crash    = 'restart'
==============

Maybe it's best to contact Christoph directly, but I don't know if he
still works on this project (the ng repository seems dead for the last 8
months), and I don't want to annoy him if not needed, so if anyone has
any ideas how to proceed with this, I would be grateful to receive their
opinion & knowledge.

Kind regards,
Doichin

 « Return to Thread: OpenBSD as Xen domU