commit 9410987ee36fcdbd603b455b507fa7316fc8ff93 parent 0d7eb1535b147dcce596dc277c831268217d0362 Author: Chris Bracken <chris@bracken.jp> Date: Wed, 26 May 2021 18:42:01 -0700 Document OpenBSD configuration under Xen Cover OpenBSD setup in a virtualized environment under the Xen hypervisor. Diffstat:
M | openbsd_install.md | | | 28 | ++++++++++++++++++++++++++++ |
1 file changed, 28 insertions(+), 0 deletions(-)
diff --git a/openbsd_install.md b/openbsd_install.md @@ -70,6 +70,34 @@ I generally leave a comment in the file along these lines: # # See /etc/examples/dhclient.conf +If we're running in a VM under the Xen hypervisor, management support is built +in to the OpenBSD kernel. It can be configured as documented in the `xen(4)` +manpage. Edit `/etc/rc.local` and insert the following: + + ostype=$(sysctl -n kern.ostype) + osrelease=$(sysctl -n kern.osrelease) + + # XenServer Tools version + hostctl attr/PVAddons/MajorVersion 6 + hostctl attr/PVAddons/MinorVersion 2 + hostctl attr/PVAddons/MicroVersion 0 + hostctl attr/PVAddons/BuildVersion 76888 + hostctl attr/PVAddons/Installed 1 + + # OS version + hostctl data/os_name "$ostype $osrelease" + hostctl data/os_uname $osrelease + hostctl data/os_distro $ostype + + # Update XenStore + hostctl data/updated 1 + +You may also need to disable the 'viridian' capability, which is enabled by +default in XenServer. We can disable that by running the following command on +one of the Xen host machines: + + xe vm-param-set uuid=<VM_UUID> platform:viridian=false + Configure basics ----------------