e845 FreeBSD netboot via NFS without PXE,BOOTP etc - 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 July 17th, 2012, 08:34
Ringo Ringo is offline
Junior Member
 
Join Date: Jul 2012
Posts: 4
Thanks: 2
Thanked 0 Times in 0 Posts
Default FreeBSD netboot via NFS without PXE,BOOTP etc

Is it possible to load FreeBSD over NFS but without using pxe, bootp?

I know, in Linux you can create initramfs with some options, and then you can boot kernel with nfsroot option and this initramfs and you can work. Is there similiar thing in FreeBSD?
Reply With Quote
  #2  
Old July 17th, 2012, 13:27
wblock@'s Avatar
wblock@ wblock@ is online now
Moderator
 
Join Date: Sep 2009
Location: Milky Way galaxy
Posts: 7,850
Thanks: 444
Thanked 1,828 Times in 1,494 Posts
Default

You'll have to load the kernel from local media, but otherwise it would be the same as a PXE boot. Just out of curiosity, why?
Reply With Quote
  #3  
Old July 17th, 2012, 15:02
Ringo Ringo is offline
Junior Member
 
Join Date: Jul 2012
Posts: 4
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by wblock@ View Post
You'll have to load the kernel from local media, but otherwise it would be the same as a PXE boot. Just out of curiosity, why?
For my work. I work on five different systems from day to day. They are connected to the Internet.
My plan is simple: I'm making bootable usb-stick with kernel, setting up nfs-server at home and, at my office, I'm booting to my own OS using USB stick and NFS-share, without modifying anything on PC.
Reply With Quote
  #4  
Old July 18th, 2012, 04:11
Ringo Ringo is offline
Junior Member
 
Join Date: Jul 2012
Posts: 4
Thanks: 2
Thanked 0 Times in 0 Posts
Default

So,anybody knows how to do it?
Reply With Quote
  #5  
Old July 18th, 2012, 06:54
wblock@'s Avatar
wblock@ wblock@ is online now
Moderator
 
Join Date: Sep 2009
Location: Milky Way galaxy
Posts: 7,850
Thanks: 444
Thanked 1,828 Times in 1,494 Posts
Default

Off the top of my head, create a FreeBSD bootable memory stick and set vfs.root.mountfrom= to the NFS filesystem. But NFS is not something that should be exposed to the net at large.

Another way would be to boot a full FreeBSD system locally and then use security/openvpn to connect to the remote system, then NFS-mount the user's home directory.
Reply With Quote
The Following User Says Thank You to wblock@ For This Useful Post:
Ringo (July 19th, 2012)
  #6  
Old July 19th, 2012, 06:09
Ringo Ringo is offline
Junior Member
 
Join Date: Jul 2012
Posts: 4
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by wblock@ View Post
But NFS is not something that should be exposed to the net at large.
Thank you for advice, but my nfs-share is opened for few ip-s or it doesn't matter?
Reply With Quote
  #7  
Old July 19th, 2012, 11:02
wblock@'s Avatar
wblock@ wblock@ is online now
Moderator
 
Join Date: Sep 2009
Location: Milky Way galaxy
Posts: 7,850
Thanks: 444
Thanked 1,828 Times in 1,494 Posts
Default

I would still want to use OpenVPN or at least an ssh(1) tunnel for encryption.
Reply With Quote
The Following User Says Thank You to wblock@ For This Useful Post:
Ringo (July 24th, 2012)
Reply

Tags
netboot, nfs

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
[Solved] BOOTP Issue with rtl8169 on v6.2 Vizard Web & Network Services 3 June 8th, 2012 16:18
bruteforce attacks bootp gpatrick Firewalls 1 June 2nd, 2012 18:18
DHClient Bootp Broadcast Flag Option NOYB Networking 0 March 26th, 2012 08:54
[Solved] BOOTP/DHCP rule ? stevejones Firewalls 7 January 24th, 2010 03:12


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


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