Annotation of wikisrc/tutorials/how_to_set_up_a_xen_dom0.mdwn, revision 1.3

1.3     ! wiki        1: [[!meta title="How to set up a Xen Dom0 running NetBSD 6.1"]]
        !             2: 
1.2       jnemeth     3: Here's how to install and get a dom0 running in the simplest way.
                      4: It's not as simple as it could be, but it's pretty fast compared
                      5: to older methods. We hope to fix the system installer for NetBSD
                      6: 7.0 so it can all be done from there.
1.1       riz         7: 
                      8: STEPS:
                      9: 
1.2       jnemeth    10: 1) boot a 6.1 install image.  I'm booting the CD-ROM image,
                     11: NetBSD-6.1-amd64.iso .
1.1       riz        12: 
1.2       jnemeth    13: 2) Perform a normal amd64 install.  At the end of the install,
                     14: there is a "configure additional items as needed" menu.  Choose
                     15: "e", "Enable installation of binary packages". (This requires that
                     16: the network be available)
1.1       riz        17: 
                     18: 3) reboot the newly installed system, and log in as root.
                     19: 
1.2       jnemeth    20: 4) Install the Xen binary packages using pkgin (assuming the network
                     21: is configured):
1.1       riz        22: 
                     23:     # pkgin install xentools41
                     24:     <answer Y when asked to install dependencies>
                     25: 
                     26:     # pkgin install xenkernel41
                     27:     <answer Y>
                     28: 
                     29: 5) install a dom0 netbsd kernel that Xen can load:
                     30: 
                     31:     cd / && ftp http://ftp.netbsd.org/pub/NetBSD/NetBSD-6.1/amd64/binary/kernel/netbsd-XEN3_DOM0.gz
                     32: 
                     33: 6) Edit /boot.cfg to add Xen Dom0 as an option at boot time
                     34: 
                     35: Add the following line:
                     36: 
                     37:     menu=Boot Xen:load /netbsd-XEN3_DOM0.gz console=pc; multiboot /usr/pkg/xen41-kernel/xen.gz dom0_mem=512M
                     38: 
1.2       jnemeth    39: (you may also want to increase the default timeout from 5sec to
                     40: 30sec to make choosing "Xen" easier)
1.1       riz        41: 
                     42: 7) Copy the boot scripts from /usr/pkg/share/examples/rc.d :
                     43: 
                     44:     # cp /usr/pkg/share/examples/rc.d/xen* /etc/rc.d
                     45: 
1.2       jnemeth    46: (The default *should* be to install these files when installing a
                     47: pkg, but it isn't yet.  )
1.1       riz        48: 
1.2       jnemeth    49: 8) edit /etc/rc.conf and add the following lines:
1.1       riz        50: 
1.2       jnemeth    51:     xencommons=YES
1.1       riz        52:     xend=YES
                     53: 
1.2       jnemeth    54: 9) reboot and choose "Boot Xen" from the menu.  (You can make it
                     55: the default by editing /boot.cfg)
1.1       riz        56: 
                     57: 10) demonstrate you're running a dom0 by doing "xm list" at a root prompt.

CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb