How install DilOS to a NetBSD Xen-4.6 Dom0
Dilos-2.0.1.63 on a NetBSD Xen4.11 DOM0 works fine and this document is now purely historical.
You can install with 1G memory now as well.
This guide assumes you are already familiar with The XEN Project and describes how to work around an Illumos bug with newer versions of Xen where the old PV drivers fail to load correctly resulting in a system hang. Until this is fixed, it's possible to work around the problem by hard-setting the platform detected type to 0 which effectively disables the DilOS Xen PV drivers.
Step-by-step guide
- Allocate the disk space. I allocated 10 gig and after installation and some development packages I've got 14% space used.
- Allocate memory. You need around 3 gig for installation. Once installed you can reduce this to 1 gig - you could probably go as low as 512 but I've not tried.
- Configure a remote connection to the console. I used VNC to achieve this. If you use Windows, I recommend Tiger VNC.
- Fire up the guest and connect to it.
- STOP THE BOOT PROCESS BY PRESSING ESCAPE
- Enter boot -kvd
- Enter platform_type/w 0
- Enter :c
- Finish the installation process as normal.
- Shut down the guest and reconfigure it to boot off the new disk image and not the ISO.
- Follow Steps 4-8 again.
- Login as root and use nano to edit /etc/system
- Add set platform_type=0
- Save. You can now shutdown and startup the guest without interaction.
Sample config
name = 'dilos'
builder = 'hvm'
memory = 3078
vcpus = 2
serial = 'pty'
vif = [ 'mac=fa:00:00:00:00:01,bridge=bridge0' ]
boot = 'dc'
disk = [
'/dev/mapper/vg0-dilos,,hda',
'/images/dilos.iso,,hdc,cdrom'
]
vnc = 1 # Setup a VNC server to connect to the console
vncdisplay = 3 # Bind to port 5903
vnclisten = "192.168.0.1" # Dom0 IP address
vncpasswd = "" # you should set this
Related articles