1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Install 9.0 release via PXE

Discussion in 'Installing and Upgrading FreeBSD' started by lory, Jan 23, 2012.

  1. lory

    lory New Member

    Messages:
    3
    Likes Received:
    0
    I have pxe install server with syslinux. Works fine for both i386 and amd64 FreeBSD 8.2 with that conf.

    Code:
    label fb82
      menu label FreeBSD 8.2
      linux memdisk
      initrd [url]http://1.200.0.1/images/fb82.iso[/url]
      append iso raw nfsroot=1.200.0.1:/data/tftpboot/freebsd/8.2
    
    label fb82_64
      menu label FreeBSD 8.2 64-bit
      linux memdisk
      initrd [url]http://1.200.0.1/images/fb82_64.iso[/url]
      append iso raw nfsroot=1.200.0.1:/data/tftpboot/freebsd/64/8.2
    
    FreeBSD 9.0 amd64 can't boot.
     
  2. rhlampe

    rhlampe New Member

    Messages:
    3
    Likes Received:
    0
    I'm having the same issue.

    It stops at:

    Code:
    Trying to mount root from cd9660:/dev/iso9660/FREEBSD_INSTALL [ro]...
    mountroot: waiting for device /dev/iso9660/FREEBSD_INSTALL ...
    Mounting from cd9660:/dev/iso9660/FREEBSD_INSTALL failed with error 19.
    
    Loader variables:
      vfs.root.mountfrom=cd9660:/dev/iso9660/FREEBSD_INSTALL
      vfs.root.mountfrom.options=ro
    
    Manual root filesystem specification:
      <fstype>:<device> [options]
        Mount <device> using filesystem <fstype>
        and with the specified (optional) option list.
    
       eg. ufs:/dev/da0s1a
           zfs:tank
           cd9660:/dev/acd0 ro
             (which is equivalent to: mount -t cd9660 -o ro /dev/acd0 /)
    
      ?             List valid disk boot devices
      .             Yield 1 second (for background tasks)
      <empty line>  Abort manual input
    
    mountroot> ?   
    
    List of GEOM managed disk devices:
      ada0
    
    mountroot>      
    
    Anyone have any ideas?
     
  3. honza801

    honza801 New Member

    Messages:
    10
    Likes Received:
    0
    I'm experiencing the same problem.
     
  4. SirDice

    SirDice Moderator Staff Member Moderator

    Messages:
    17,392
    Likes Received:
    7
  5. honza801

    honza801 New Member

    Messages:
    10
    Likes Received:
    0
    This article is about creating nfs root and bootstrapping for pxe boot. I'm trying to use the FreeBSD 9.0 installation ISO image (FreeBSD-9.0-RELEASE-amd64-bootonly.iso) to install freebsd FreeBSD via pxe.
     
  6. SirDice

    SirDice Moderator Staff Member Moderator

    Messages:
    17,392
    Likes Received:
    7
    I didn't say you should use it literally, I said there are some pointers.

    Besides, it's a jumpserver. Jumpservers are used to PXE boot a machine and run an installer.
     
  7. honza801

    honza801 New Member

    Messages:
    10
    Likes Received:
    0
    Actually, the document does not mention booting from *-bootonly CD.

    The point is, that this pxe configuration works (sysinstall menu appears after boot)
    Code:
    label freebsd82
      menu label FreeBSD amd64
      kernel memdisk
      initrd images/FreeBSD-8.2-RELEASE-amd64-bootonly.iso
      append iso raw
    
    and this does not (ending with error above)
    Code:
    label freebsd90
      menu label FreeBSD amd64
      kernel memdisk
      initrd images/FreeBSD-9.0-RELEASE-amd64-bootonly.iso
      append iso raw
    
    Supposing this procedure was supported in 8.2, I think this a bug in the 9.0 *-bootonly installation media.
     
  8. bunnylover

    bunnylover New Member

    Messages:
    2
    Likes Received:
    0
  9. wblock@

    wblock@ Administrator Staff Member Administrator Moderator Developer

    Messages:
    11,209
    Likes Received:
    15
    Just tried it in VirtualBox. It gets to "Building the boot loader arguments", shows the spinner slash, and then stops with the CPU at 100%.
     
  10. lory

    lory New Member

    Messages:
    3
    Likes Received:
    0
    It tries to mountroot from CD, maybe 'nfsroot' doesn't read.
     
  11. valuequest

    valuequest New Member

    Messages:
    21
    Likes Received:
    0
    In my case passing the 'bigraw' option instead of the 'raw' option to memdisk does not seem make any difference... with both options I get the same stop that rhlampe posted above.

    Is there perhaps some option that needs be entered at the loader command line?
     
  12. da1

    da1 Member

    Messages:
    757
    Likes Received:
    0
  13. lory

    lory New Member

    Messages:
    3
    Likes Received:
    0
  14. honza801

    honza801 New Member

    Messages:
    10
    Likes Received:
    0
    You can simply configure several different groups for the hosts in DHCP config.
     
  15. honza801

    honza801 New Member

    Messages:
    10
    Likes Received:
    0
  16. honza801

    honza801 New Member

    Messages:
    10
    Likes Received:
    0
    The "bigraw" option ain't working for me.
     
  17. rhlampe

    rhlampe New Member

    Messages:
    3
    Likes Received:
    0
    Booting the mfsBSD ISO from syslinux works great!
     
  18. Schorschi

    Schorschi New Member

    Messages:
    2
    Likes Received:
    0
    Same issue for me as well

    Even after I added the following to loader.conf...

    echo 'vfs.root.mountfrom="ufs:/dev/md0"' >> /tmp/img/boot/loader.conf

    Where /tmp/img is path to my /dev/md0 disk image I later zip and use with PXE Linux based PXE/SysLinux/TFTP.

    When the failure to find the /dev/md0 device as vfs.root.mountfrom returns error 19, and drops to the 'OK' prompt. Listing the available boot devices, md0 does not exist.
     
  19. brd@

    brd@ Administrator Staff Member Administrator Moderator Developer

    Messages:
    284
    Likes Received:
    0
  20. maitre

    maitre New Member

    Messages:
    1
    Likes Received:
    0
    I can't even believe this ISO approach isn't the standard for most of you; once you go PXE, you simply do not go back to NFS!

    That said, thanks to all who tried to help out with this issue. It took a lot of refined searching to finally find the solution to this, but this blog post seemed to do it for me:

    http://zewaren.net/site/?q=node/82

    (The basic idea being, fetch a stock mfsBSD ISO, build a smallish 32MB disk image, and copy the boot/root bits over. Then, importantly, you boot the image via MemDisk using the parameters: "harddisk raw".)
     
  21. fdge

    fdge New Member

    Messages:
    3
    Likes Received:
    0
    Having to jump through so many hoops to PXE install is the main reason I am not experimenting more with FreeBSD.