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

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

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