Diff for /wikisrc/tutorials/how_to_set_up_a_xen_dom0.mdwn between versions 1.1 and 1.2

version 1.1, 2013/05/17 22:07:57 version 1.2, 2013/05/17 23:03:58
Line 1 Line 1
 Here's how to install and get a dom0 running in the simplest way. It's not as simple as it could be, but it's pretty fast compared to older methods. We hope to fix the system installer for NetBSD 7.0 so it can all be done from there.  Here's how to install and get a dom0 running in the simplest way.
   It's not as simple as it could be, but it's pretty fast compared
   to older methods. We hope to fix the system installer for NetBSD
   7.0 so it can all be done from there.
   
 STEPS:  STEPS:
   
 1) boot a 6.1 install image.  I'm booting the CD-ROM image, NetBSD-6.1-amd64.iso .  1) boot a 6.1 install image.  I'm booting the CD-ROM image,
   NetBSD-6.1-amd64.iso .
   
 2) Perform a normal amd64 install.  At the end of the install, there is a "configure additional items as needed" menu.  Choose "e", "Enable installation of binary packages". (This requires that the network be available)  2) Perform a normal amd64 install.  At the end of the install,
   there is a "configure additional items as needed" menu.  Choose
   "e", "Enable installation of binary packages". (This requires that
   the network be available)
   
 3) reboot the newly installed system, and log in as root.  3) reboot the newly installed system, and log in as root.
   
 4) Install the Xen binary packages using pkgin (assuming the network is configured):  4) Install the Xen binary packages using pkgin (assuming the network
   is configured):
   
     # pkgin install xentools41      # pkgin install xentools41
     <answer Y when asked to install dependencies>      <answer Y when asked to install dependencies>
Line 26  Add the following line: Line 34  Add the following line:
   
     menu=Boot Xen:load /netbsd-XEN3_DOM0.gz console=pc; multiboot /usr/pkg/xen41-kernel/xen.gz dom0_mem=512M      menu=Boot Xen:load /netbsd-XEN3_DOM0.gz console=pc; multiboot /usr/pkg/xen41-kernel/xen.gz dom0_mem=512M
   
 (you may also want to increase the default timeout from 5sec to 30sec to make choosing "Xen" easier)  (you may also want to increase the default timeout from 5sec to
   30sec to make choosing "Xen" easier)
   
 7) Copy the boot scripts from /usr/pkg/share/examples/rc.d :  7) Copy the boot scripts from /usr/pkg/share/examples/rc.d :
   
     # cp /usr/pkg/share/examples/rc.d/xen* /etc/rc.d      # cp /usr/pkg/share/examples/rc.d/xen* /etc/rc.d
   
 (The default *should* be to install these files when installing a pkg, but it isn't yet.  )  (The default *should* be to install these files when installing a
   pkg, but it isn't yet.  )
   
 8) edit /etc/rc.conf and add the line:  8) edit /etc/rc.conf and add the following lines:
   
       xencommons=YES
     xend=YES      xend=YES
   
 9) reboot and choose "Boot Xen" from the menu.  (You can make it the default by editing /boot.cfg)  9) reboot and choose "Boot Xen" from the menu.  (You can make it
   the default by editing /boot.cfg)
 10) demonstrate you're running a dom0 by doing "xm list" at a root prompt.  
   
   
   
 Here's how to install and get a dom0 running in the simplest way. It's not as simple as it could be, but it's pretty fast compared to older methods. We hope to fix the system installer for NetBSD 7.0 so it can all be done from there.  
   
 STEPS:  
   
 1) boot a 6.1 install image.  I'm booting the CD-ROM image, NetBSD-6.1-amd64.iso .  
   
 2) Perform a normal amd64 install.  At the end of the install, there is a "configure additional items as needed" menu.  Choose "e", "Enable installation of binary packages". (This requires that the network be available)  
   
 3) reboot the newly installed system, and log in as root.  
   
 4) Install the Xen binary packages using pkgin (assuming the network is configured):  
   
     # pkgin install xentools41  
     <answer Y when asked to install dependencies>  
   
     # pkgin install xenkernel41  
     <answer Y>  
   
 5) install a dom0 netbsd kernel that Xen can load:  
   
     cd / && ftp http://ftp.netbsd.org/pub/NetBSD/NetBSD-6.1/amd64/binary/kernel/netbsd-XEN3_DOM0.gz  
   
 6) Edit /boot.cfg to add Xen Dom0 as an option at boot time  
   
 Add the following line:  
   
     menu=Boot Xen:load /netbsd-XEN3_DOM0.gz console=pc; multiboot /usr/pkg/xen41-kernel/xen.gz dom0_mem=512M  
   
 (you may also want to increase the default timeout from 5sec to 30sec to make choosing "Xen" easier)  
   
 7) Copy the boot scripts from /usr/pkg/share/examples/rc.d :  
   
     # cp /usr/pkg/share/examples/rc.d/xen* /etc/rc.d  
   
 (The default *should* be to install these files when installing a pkg, but it isn't yet.  )  
   
 8) edit /etc/rc.conf and add the line:  
   
     xend=YES  
   
 9) reboot and choose "Boot Xen" from the menu.  (You can make it the default by editing /boot.cfg)  
   
 10) demonstrate you're running a dom0 by doing "xm list" at a root prompt.  10) demonstrate you're running a dom0 by doing "xm list" at a root prompt.
   

Removed from v.1.1  
changed lines
  Added in v.1.2


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