An other article about DISKLESS

2009-05-13 00:52:14来源:未知 阅读 ()

新老客户大回馈,云服务器低至5折

OpenBSD diskless
      The final target for an OpenBSD install on the net4521 is a
CompactFlash
card.
      However during development it would be inefficient to
      continually update the image, plus CF has a limited number of
      writes per sector.  A better solution is to boot over the
      network.
   
   
      The network boot sequence is documented in
      diskless(8) which is a good starting point.  However the
      process described there is geared towards booting Unix servers,
      booting on Intel machines is potentially a bit different:
   
   
  • The network card loads a built in PXE loader
  • The PXE loader gets an IP address and boot loader from DHCP
  • The boot loader downloads the OpenBSD kernel via TFTP
  • The kernel boots and mounts its root and swap on NFS
       
    From that point the system boots as usual.
        Firmware and the Boot Loader
       
          i386 compatible PCs have a very primitive firmware, the BIOS,
          which usually doesn't support advanced features like network
          booting.  However Intel developed a proprietary booting solution
          called PXE.  Some network cards come with a PXE loader in ROM
          and those cards can boot an operating system from the network.
          Naturally, the Soekris also supports PXE and so will load the
          boot loader from the network
       
       
          Since version 3.5 OpenBSD has come with a PXE boot loader called
          
    pxeboot
    .
          Prior to that you needed a third party boot loader like
    grub
    , an
    older version
    of this page
          describes how to use it.
       
        pxeboot
       
          In order to find an operating system's boot loader the PXE
          loader consults a DHCP server.  The DHCP server must be
          configured to not only give out an IP address but also the boot
          loader.  This is done simply by adding a "filename" option to
    dhcpd.conf
    :
       
              shared-network WIRED-NET {
          option domain-name-servers 192.168.1.1;
          subnet 192.168.1.0 netmask 255.255.255.0 {
            option routers 192.168.1.1;

    标签:

    版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com
    特别注意:本站所有转载文章言论不代表本站观点,本站所提供的摄影照片,插画,设计作品,如需使用,请与原作者联系,版权归原作者所有

  • 上一篇:How does PXE booting work?

    下一篇:通过com口来管理OpenBSD