Jump to content

Info about Netboot


  • Please log in to reply
6 replies to this topic

#1
Aigors

Aigors

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 556 posts
  • Gender:Male
  • Location:Italy
  • Interests:RC Model, pc, networking, mechanic electronic

Hi mates, i'have a project in my mind, could be possibile start installation of any hackinstosh using pxe or ipxe network booting?
i dont know how to work the boot mechanism of usb stick for mavericks install, can someone point me to any docs in with is explained howto boot process works? 

 

Many thanks  



#2
smx

smx

    InsanelyMac Protégé

  • Members
  • Pip
  • 33 posts
  • Gender:Male
  • Location:Italy

Nice idea! I was thinking about the same thing.

The Server version of OS X can deploy images

http://www.techrepub...for-deployment/

 

bootpd is their all in one netboot server. Unfortunately it uses proprietary protocols

https://developer.ap...8/bootpd.8.html

 

 

It is also a NetBoot server implementing Apple-proprietary NetBoot

 

This sounds bad.

 

But also, if you look at the boot methods, you can see it uses TFTP and NFS, which is standard, or even HTTP.

 

 

After downloading the boot files via TFTP, the client OS accesses its
"root" filesystem via NFS. The RootPath property (detailed below)
specifies the path.

 

Now the problem is interfacing with the server, since we are not using the MAC efi.
By googling i found a fork of chameleon/chimera on github with net-boot additions.

The guy who made the fork made some instructions on how to netboot with OS X as server.



#3
Aigors

Aigors

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 556 posts
  • Gender:Male
  • Location:Italy
  • Interests:RC Model, pc, networking, mechanic electronic

Hi smx, thanks for the answer, i already know that OSX server can act as boot server and storage for diskless client, but my project should be little beat different.

I would like to implement a linux boot server to serve installation for hackintosh, so, the people that would install, could avoid to use real or VM osx to prepare usb stick, and, i think the installation could be faster than usb stick.

I start to do some experiment with ipxe boot, but if you pass real booter to any machine, boot hangs without any screen message

Real apple machine use propietary boot protocol that not exist and cant be implemented on cheap x86 mainboard 

googling i have discovered efi boot and i try to boot vmware machine with efi bios, but if i use boot.efi from real mac, the machina start but hangs with cant load x_86/kernelcache but the folder and the file are present of boot server, i dont know howt to point machine to get whole file structure.

can you point me to github where is chimera/chameleon with netboot option? 

sorry for my bad englis :D



#4
smx

smx

    InsanelyMac Protégé

  • Members
  • Pip
  • 33 posts
  • Gender:Male
  • Location:Italy

My progress is this:

I took the guy chameleon: https://github.com/f...on-chimera-hajo

But since it's old it refused to compile. So i made a diff of the changes between chimera and the guy additions and i added them in svn trunk chameleon (non chimera). Will post patch asap.
Made a BootCD with the modified chameleon and configured all the network stuff, but it crashed the VM. Maybe i didn't configure it correctly, or patches broke it up

https://github.com/f...a-hajo/issues/1

I also tried to PXE-Boot the "booter" file, but the VM crashed (also tested real PC and hanged).

I found usefuel stuff here: http://www.puredarwi...ooting/boot/pxe

Your efi booting is instead succesful! you probably need to check your tftp server and proper kernelcache files

 

About your idea to avoid VM and real MAC, i made a Linux script exactely for that purpose  :D http://www.insanelym...-without-a-mac/

 

I got very very far with Ata over Ethernet network booting, but due to OS X not having a (free) Ata over Ethernet driver, i got the infamous "Still Waiting for Root Device".

To reach that point i created a raw installer image with my script (it can create bootable USB pendrives/raw images and/or VirtualBox hard drives) and i attached it with vblade. I Used ipxe to boot from the aoe disk.

OSX has no AOE support, but has got something for iSCSI: http://www.studionet...scsi-initiator/ (unfortunately it's trial)

iSCSI can be used to boot as AOE. It all depends on how well the kext (globalSAN.kext) is coded. I'll try iSCSI boot and see if it works  :D 



#5
Aigors

Aigors

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 556 posts
  • Gender:Male
  • Location:Italy
  • Interests:RC Model, pc, networking, mechanic electronic

can be possibile compile iscsi initiator from bsd on osx? same for AOE i have another project that implies synology x86 and ata over etehernet, i'v successfuly compile kernel module on synology, but i dont know howto compile user space part of it, and after, write some cgi to setup via synology web-interface, but this is off-topic here 

in tftproot there is kernelcache, but i dont know howto inform machine that is present in this folder or in x86_64 folder 



#6
Aigors

Aigors

    InsanelyMac Legend

  • Members
  • PipPipPipPipPipPipPip
  • 556 posts
  • Gender:Male
  • Location:Italy
  • Interests:RC Model, pc, networking, mechanic electronic

Hi smx did you know this? 

For your iscsi project could be a good start point 



#7
smx

smx

    InsanelyMac Protégé

  • Members
  • Pip
  • 33 posts
  • Gender:Male
  • Location:Italy

I had no time to try this, but about AOE no it's not possible to compile Linux or BSD drivers on OS X. They need to be rewritten from scratch with OS X IOKIT classes and C++. You can use original sources only to see how they are designed. Also i'm not going to work with sources, as iSCSI driver is commercial (and trial). Only alternatives are:

1) Coding an AOE driver (i don't know how yet)

2) Making that chameleon fork work over NFS







0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

© 2014 InsanelyMac  |   News  |   Forum  |   Downloads  |   OSx86 Wiki  |   Mac Netbook  |   PHP hosting by CatN  |   Designed by Ed Gain  |   Logo by irfan  |   Privacy Policy