1fc89 Install 9.0 release via PXE - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Base System > Installing & Upgrading

Installing & Upgrading Installing and upgrading FreeBSD.

Reply
 
Thread Tools Display Modes
  #1  
Old January 23rd, 2012, 10:22
lory lory is offline
Junior Member
 
Join Date: Jan 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Install 9.0 release via PXE

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 http://1.200.0.1/images/fb82.iso
  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 http://1.200.0.1/images/fb82_64.iso
  append iso raw nfsroot=1.200.0.1:/data/tftpboot/freebsd/64/8.2
FreeBSD 9.0 amd64 can't boot.

Last edited by DutchDaemon; January 23rd, 2012 at 11:28. Reason: Proper formatting: http://forums.freebsd.org/showthread.php?t=8816
Reply With Quote
  #2  
Old January 25th, 2012, 21:41
rhlampe rhlampe is offline
Junior Member
 
Join Date: Feb 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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?
Reply With Quote
  #3  
Old February 6th, 2012, 11:05
honza801 honza801 is offline
Junior Member
 
Join Date: Jan 2011
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm experiencing the same problem.

Last edited by DutchDaemon; February 6th, 2012 at 23:10.
Reply With Quote
  #4  
Old February 6th, 2012, 11:10
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,725
Thanks: 47
Thanked 2,023 Times in 1,862 Posts
Default

It's an old article but should still contain some valid pointers.

http://www.freebsd.org/doc/en_US.ISO.../articles/pxe/
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
  #5  
Old February 6th, 2012, 11:22
honza801 honza801 is offline
Junior Member
 
Join Date: Jan 2011
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by SirDice View Post
It's an old article but should still contain some valid pointers.

http://www.freebsd.org/doc/en_US.ISO.../articles/pxe/
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.

Last edited by DutchDaemon; February 6th, 2012 at 23:11.
Reply With Quote
  #6  
Old February 7th, 2012, 08:37
SirDice's Avatar
SirDice SirDice is offline
Moderator
 
Join Date: Nov 2008
Location: Rotterdam, Netherlands
Posts: 13,725
Thanks: 47
Thanked 2,023 Times in 1,862 Posts
Default

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.
__________________
Senior UNIX Engineer at Unix Support Nederland
Experience is something you don't get until just after you need it.
Reply With Quote
  #7  
Old February 8th, 2012, 11:00
honza801 honza801 is offline
Junior Member
 
Join Date: Jan 2011
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.

Last edited by DutchDaemon; February 9th, 2012 at 04:24.
Reply With Quote
  #8  
Old February 10th, 2012, 23:16
bunnylover bunnylover is offline
Junior Member
 
Join Date: Feb 2012
Posts: 2
Thanks: 1
Thanked 1 Time in 1 Post
Default

Have any of you had any success appending "bigraw" instead of "raw"? I was having this exact problem until I changed the option to bigraw. I will say that I'm using mfsBSD, therefore probably a much smaller image than those loading a copy of the distribution CD. Just putting it out there, in case it helps someone.

http://www.syslinux.org/wiki/index.p....2C_safeint.29

Last edited by DutchDaemon; February 11th, 2012 at 06:44.
Reply With Quote
  #9  
Old February 11th, 2012, 01:57
wblock@'s Avatar
wblock@ wblock@ is online now
Moderator
 
Join Date: Sep 2009
Location: Milky Way galaxy
Posts: 7,723
Thanks: 432
Thanked 1,761 Times in 1,458 Posts
Default

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%.
Reply With Quote
  #10  
Old February 13th, 2012, 08:44
lory lory is offline
Junior Member
 
Join Date: Jan 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by bunnylover View Post
Have any of you had any success appending "bigraw" instead of "raw"? I was having this exact problem until I changed the option to bigraw. I will say that I'm using mfsBSD, therefore probably a much smaller image than those loading a copy of the distribution CD. Just putting it out there, in case it helps someone.

http://www.syslinux.org/wiki/index.p....2C_safeint.29
It tries to mountroot from CD, maybe 'nfsroot' doesn't read.

Last edited by DutchDaemon; February 13th, 2012 at 11:28.
Reply With Quote
  #11  
Old February 13th, 2012, 22:28
valuequest valuequest is offline
Junior Member
 
Join Date: May 2010
Location: United States : southeastern Virginia
Posts: 21
Thanks: 13
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by bunnylover View Post
Have any of you had any success appending "bigraw" instead of "raw"?
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?

Last edited by valuequest; February 14th, 2012 at 18:02.
Reply With Quote
  #12  
Old February 14th, 2012, 01:48
da1 da1 is online now
Member
 
Join Date: Sep 2009
Location: Berlin,DE
Posts: 659
Thanks: 24
Thanked 48 Times in 44 Posts
Default

http://stefankonarski.de/content/fre...l-installieren in german, but quite easy to understand.
Reply With Quote
  #13  
Old February 14th, 2012, 09:25
lory lory is offline
Junior Member
 
Join Date: Jan 2012
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by da1 View Post
http://stefankonarski.de/content/fre...l-installieren in german, but quite easy to understand.
Yes, but if you want to have 8.2 i386 and amd64 and 9.0 i386 and amd64 PXE boot for install.

You can only have one option root-path in DHCP server. Or every time you must change config and restart service.

Last edited by DutchDaemon; February 14th, 2012 at 11:44.
Reply With Quote
  #14  
Old February 14th, 2012, 16:43
honza801 honza801 is offline
Junior Member
 
Join Date: Jan 2011
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by lory View Post
Yes, but if you want to have 8.2 i386 and amd64 and 9.0 i386 and amd64 PXE boot for install.

You can only have one option root-path in DHCP server. Or every time you must change config and restart service.
You can simply configure several different groups for the hosts in DHCP config.

Last edited by DutchDaemon; February 14th, 2012 at 17:01.
Reply With Quote
  #15  
Old February 14th, 2012, 16:46
honza801 honza801 is offline
Junior Member
 
Join Date: Jan 2011
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by da1 View Post
http://stefankonarski.de/content/fre...l-installieren in german, but quite easy to understand.
This tutorial also uses NFS root. I'm trying to install directly from bootonly iso via PXE
Reply With Quote
  #16  
Old February 14th, 2012, 16:47
honza801 honza801 is offline
Junior Member
 
Join Date: Jan 2011
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by bunnylover View Post
Have any of you had any success appending "bigraw" instead of "raw"? I was having this exact problem until I changed the option to bigraw. I will say that I'm using mfsBSD, therefore probably a much smaller image than those loading a copy of the distribution CD. Just putting it out there, in case it helps someone.

http://www.syslinux.org/wiki/index.p....2C_safeint.29
The "bigraw" option ain't working for me.
Reply With Quote
  #17  
Old February 15th, 2012, 22:05
rhlampe rhlampe is offline
Junior Member
 
Join Date: Feb 2011
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by bunnylover View Post
I will say that I'm using mfsBSD, therefore probably a much smaller image than those loading a copy of the distribution CD. Just putting it out there, in case it helps someone.
Booting the mfsBSD ISO from syslinux works great!

Last edited by DutchDaemon; February 16th, 2012 at 02:15.
Reply With Quote
  #18  
Old February 27th, 2012, 04:06
Schorschi Schorschi is offline
Junior Member
 
Join Date: Feb 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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.

Last edited by DutchDaemon; February 27th, 2012 at 04:28. Reason: Proper formatting: http://forums.freebsd.org/showthread.php?t=8816
Reply With Quote
  #19  
Old March 23rd, 2012, 22:01
brd@'s Avatar
brd@ brd@ is offline
FreeBSD Developer
 
Join Date: Oct 2007
Location: Denver, CO, USA
Posts: 277
Thanks: 0
Thanked 50 Times in 29 Posts
Default

I have a blog entry that addresses some of this:

http://blogs.freebsdish.org/brd/2012...ing-freebsd-9/

Sorry it does not address the use of syslinux, just the native FreeBSD tools.
Reply With Quote
The Following User Says Thank You to brd@ For This Useful Post:
wblock@ (March 23rd, 2012)
  #20  
Old May 4th, 2012, 23:41
maitre maitre is offline
Junior Member
 
Join Date: May 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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".)

Last edited by DutchDaemon; May 5th, 2012 at 00:36.
Reply With Quote
  #21  
Old June 13th, 2012, 01:02
fdge fdge is offline
Junior Member
 
Join Date: Oct 2010
Posts: 3
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Having to jump through so many hoops to PXE install is the main reason I am not experimenting more with FreeBSD.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Install over PXE recus Installing & Upgrading 21 July 11th, 2012 08:37
[Solved] Installing 8.2 RELEASE shows as 8.1 RELEASE after install? jonlyb Installing & Upgrading 2 July 7th, 2011 01:23
pxe boot and exec install.cfg Tom-i Installing & Upgrading 1 July 1st, 2010 20:30
PXE boot install server electric Installing & Upgrading 4 June 2nd, 2010 19:37
FreeBSD 8.0 headless pxe install loppefaaret Installing & Upgrading 4 February 28th, 2010 20:01


All times are GMT +1. The time now is 14:14.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0