Re: Customizing the install process
On 06/07/2012 04:21 PM, Tomasz Marszal wrote: Yes i red it as well as the FreeBSD handbook section about PXE. So my idea is to install bsd system then install gnome then tar the installed system make img from tar. Later configure dhcp and tftp and nfs on a PXE server. Put bsd.rd and other files mentioned in OpenBSD FAQ into tftpboot directory and put the image to your nfs server. Enable PXE on booted machine obtain ip address from dhcp and kernel with bsd.rd from tftp then in shell mount nfs (as described in handbook) and dd system.img from it to local hdd finaly reboot and here we go :) Heh, I started off setting up an enviroment for pxe bsd.rd boots to aid in installs... started getting into it... now I have three diskless(8) machines and I am eyeing a few others. *sigh* I'm terrible
Re: Customizing the install process
On 2012-06-07, Tomasz Marszal kap...@toya.net.pl wrote: OpenBSD FAQ has enough info about PXE. In all honesty just pxeboot(8) should be enough if you just want to boot a bsd.rd type kernel to install from. Yes i red it as well as the FreeBSD handbook section about PXE. You can probably ignore a lot of the freebsd info, their boot loader is rather more complicated.. for OpenBSD it's a simple 'setup tftpd and dhcpd' job with no recompiling. So my idea is to install bsd system then install gnome then tar the installed system make img from tar. Writing out the pkg_add command (see rc.firsttime) is probably more straightforward than building an image of packages, especially if you need to adjust to a newer version later. I would just put the local config files etc in the tar. Or some people prefer diskless(8) i.e. no local data on workstations, just run all the systems from an nfs share.
Re: Customizing the install process
Hi Stuart, I read rc.firsttime man page seems nice approach to keep everything updated with pkg_add. Thanks, Jay.
Re: Customizing the install process
On Thu, 7 Jun 2012 16:46:45 +0530, Jay Patel rockworl...@gmail.com wrote: Hi all, I want to know how to achieve customizing my iso for installing OpenBSD on 10 workstation with pre configured gnome. I read the FAQ about siteXX.tgz http://www.openbsd.org/faq/faq4.html#site but couldn't find more resources also cant find man pages for that.is it safe to go that way or should i install gnome separately for all boxes? No it is possible to install tar the system and install it via sftp. You have to tar image of your system with with command tar -czvf system.tar.gz / then use a program virt-make-fs to make img ( http://libguestfs.org/virt-make-fs.1.html ) virt-make-fs system.tar.gz sysem.img put it on ftp server and then you have to boot using your NIC you have to set up dhcp server firs ( and sftpd too) then send this file over a network ( you can use broadcast to send it to 10 pc at one time ) you can do another thing if you want to for example use cd instead of network make a bootable pendrive with OpenBSD/FreeBSD/Linux and after you boot from it type dd if=sysem.img of=/dev/ad0 bs=512k after mounting your cd and going to appropriate directory you can put the img file on your flashdrive ( usb stick ) Pozdrawiam z Polski;) Tomasz Marszal Thanks, Jay.
Re: Customizing the install process
Hi Tomasz, One more question. Do i need to use the generated system.tgz with other base51.tgz,etc.tgz . etc etc . Or just syste.tgz into .img and install. Thanks, Jay.
Re: Customizing the install process
On Thu, 7 Jun 2012 18:16:36 +0530, Jay Patel rockworl...@gmail.com wrote: Hi Tomasz, One more question. Do i need to use the generated system.tgz with other base51.tgz,etc.tgz . etc etc . Or just syste.tgz into .img and install. You dont need official distribution tars after you make your own tar with working system. All you have to do is make img from tar with your system I have never done it all I know is pure theory but i thing you may experience some problems with adding to archive directories like /proc and /dev i advice you not to add to archive not needed mounted disks not associated with base system and software you want to use ( like cds usb drives ) Thanks, Jay.
Re: Customizing the install process
On Thu, 7 Jun 2012 18:16:36 +0530 Jay Patel wrote: One more question. Do i need to use the generated system.tgz with other base51.tgz,etc.tgz . etc etc . Or just syste.tgz into .img and install. There is also the rc.firstrun script which runs once after install. Sometimes you may know that a part of a file is unlikely to change and just want to sed that line every time without reviewing changes to the whole config file. You can put those in your .tgz too of course or do whatever you like within the /mnt directories after install. For remote systems a local test system is always a good idea.
Re: Customizing the install process
Hi Tomasz, ya i thoght that too. will try excluding /proc and /dev but dont know if installer will work that way. Kevin , hmm i can do one thing add PKG_PATH to local /pksgs and put all .tgz from ftp and can pkg_Add from rc.firstrun. Thanks, Jay.
Re: Customizing the install process
On Thu, 7 Jun 2012 19:23:35 +0530, Jay Patel rockworl...@gmail.com wrote: Hi Tomasz, ya i thoght that too. will try excluding /proc and /dev but dont know if installer will work that way. I think it should because this directories (at least /dev ) are auto made at boot ( i am not shore fast searching didnt get result ). Kevin , hmm i can do one thing add PKG_PATH to local /pksgs and put all .tgz from ftp and can pkg_Add from rc.firstrun. Will you have to boot all 10 pcs and do the install process on them or there are some magic scripts that redistribute your img or tar file via a network. I know this is possible for Linux but never done it for BSD. Do this magic script use broadcast for faster transmission and avoiding the bottleneck of your switch.
Re: Customizing the install process
On Thu, 7 Jun 2012 19:23:35 +0530, Jay Patel rockworl...@gmail.com wrote: Hi Tomasz, ya i thoght that too. will try excluding /proc and /dev but dont know if installer will work that way. One more thing if you have 10 equal pcs there should be no problem but if you have different disc that are supported by the different driver ( like sata and ide disc ) you will have to boot rescue from usb or cd and change the /etc/fstab entries i dont know is vi supported in rescue mode but you can always prepare fstab file, copy it to you usb stick and the copy it to your /etc Kevin , hmm i can do one thing add PKG_PATH to local /pksgs and put all .tgz from ftp and can pkg_Add from rc.firstrun. Thanks, Jay.
Re: Customizing the install process
Hi, Le 2012-06-07 18:44, Tomasz Marszal a écrit : On Thu, 7 Jun 2012 19:23:35 +0530, Jay Patel rockworl...@gmail.com wrote: Hi Tomasz, ya i thoght that too. will try excluding /proc and /dev but dont know if installer will work that way. One more thing if you have 10 equal pcs there should be no problem but if you have different disc that are supported by the different driver ( like sata and ide disc ) you will have to boot rescue from usb or cd and change the /etc/fstab entries i dont know is vi supported in rescue mode but you can always prepare fstab file, copy it to you usb stick and the copy it to your /etc You can use 'ed'. -- Wesley
Re: Customizing the install process
On Thu, 07 Jun 2012 16:35:33 +0200 Tomasz Marszal wrote: Will you have to boot all 10 pcs and do the install process on them or there are some magic scripts that redistribute your img or tar file via a network. I know this is possible for Linux but never done it for BSD. Do this magic script use broadcast for faster transmission and avoiding the bottleneck of your switch. Depends on bandwidth really, there are remote imagers and one to many ssh consoles. You can also use your own repo with a custom .tgz by selecting http during the install. Also I think it was Antoine that did an article in BSDMAG (free download) that shows how he uses puppet to maintain his companies desktops.
Re: Customizing the install process
Yaifo is quite handy but unsupported too.
Re: Customizing the install process
Yes Tomasz i have to boot all 10 pcs and install on them i dont have any magic script for that. that's why i was going for siteXX.tgz method so i can create iso and use if for install. also thanks kevin and wesley for inputs. Thanks, Jay
Re: Customizing the install process
On Thu, Jun 07, 2012 at 04:46:45PM +0530, Jay Patel wrote: Hi all, I want to know how to achieve customizing my iso for installing OpenBSD on 10 workstation with pre configured gnome. I read the FAQ about siteXX.tgz http://www.openbsd.org/faq/faq4.html#site but couldn't find more resources also cant find man pages for that.is it safe to go that way or should i install gnome separately for all boxes? Firstly, you need replicate the gnome config on all your boxes. siteXX.tgz and /etc/skel is perfect for this. For the installation of the gnome packages, you can install gnome on the first machine, copy the packages to other CD and use the CD on the other machines. Just mount the CD and set PKG_PATH to the mount point http://www.openbsd.org/faq/faq15.html#Easy . Cheers. -- Juan Francisco Cantero Hurtado http://juanfra.info
Re: Customizing the install process
On Thu, 7 Jun 2012 22:31:52 +0530, Jay Patel rockworl...@gmail.com wrote: Yes Tomasz i have to boot all 10 pcs and install on them i dont have any magic script for that. that's why i was going for siteXX.tgz method so i can create iso and use if for install. Than is uncool! You can try to do it via network ( if the computer are switch connected you dont need internet for that LAN is enough { only for reading how to do it you may need internet ) Read This http://en.wikipedia.org/wiki/Preboot_Execution_Environment http://en.wikipedia.org/wiki/IPXE http://logout.sh/computers/linux/netboot/ (this is for Linux but BSD config will be pretty much the same ) simply type pxe boot dhcp tftp in your favorite search engine. and read about it then do it ! Good Luck Tomek also thanks kevin and wesley for inputs. Thanks, Jay
Re: Customizing the install process
On Thu, Jun 07, 2012 at 08:30:49PM +0200, Tomasz Marszal wrote: http://en.wikipedia.org/wiki/Preboot_Execution_Environment http://en.wikipedia.org/wiki/IPXE http://logout.sh/computers/linux/netboot/ (this is for Linux but BSD config will be pretty much the same ) simply type pxe boot dhcp tftp in your favorite search engine. and read about it then do it ! OpenBSD FAQ has enough info about PXE. Still somebody needs to install it, he is probably looking for automated install script, he can google some of them. Let's imagine your workstation always start with one disk per OS, one disk per data. Modifying install script to fdisk and disklabel 1st disk should be easy. When boarding the workstation you can enable PXE in bios, and disable PXE by default on switch as well on dhcpd/tftpd setup. So when it would boot it would time out, if needed reinstall, you would enable it in dhcpd/tftpd and/or in switch port. The post-install customization could be done by tools like cfengine, puppet etc... I would love to see some automated install solution on OpenBSD, but it is tricky and SUSE-based xml autoyast is hell :D jirib
Re: Customizing the install process
I would love to see some automated install solution on OpenBSD, but it is tricky and SUSE-based xml autoyast is hell :D I would love to see some automated install solution on OpenBSD, but it is tricky and SUSE-based xml autoyast is hell :D I developed a very crude version of a fully automated install (http://nbender.com/install.netboot/install.html) and then a much more friendly version (http://hiqu.biz/redux). Due to lack of interest I haven't updated it since 4.9. -N
Re: Customizing the install process
On Thu, 7 Jun 2012 17:37:04 -0400, Jiri B ji...@devio.us wrote: On Thu, Jun 07, 2012 at 08:30:49PM +0200, Tomasz Marszal wrote: http://en.wikipedia.org/wiki/Preboot_Execution_Environment http://en.wikipedia.org/wiki/IPXE http://logout.sh/computers/linux/netboot/ (this is for Linux but BSD config will be pretty much the same ) simply type pxe boot dhcp tftp in your favorite search engine. and read about it then do it ! OpenBSD FAQ has enough info about PXE. Yes i red it as well as the FreeBSD handbook section about PXE. So my idea is to install bsd system then install gnome then tar the installed system make img from tar. Later configure dhcp and tftp and nfs on a PXE server. Put bsd.rd and other files mentioned in OpenBSD FAQ into tftpboot directory and put the image to your nfs server. Enable PXE on booted machine obtain ip address from dhcp and kernel with bsd.rd from tftp then in shell mount nfs (as described in handbook) and dd system.img from it to local hdd finaly reboot and here we go :) Still somebody needs to install it, he is probably looking for automated install script, he can google some of them. Let's imagine your workstation always start with one disk per OS, one disk per data. Modifying install script to fdisk and disklabel 1st disk should be easy. When boarding the workstation you can enable PXE in bios, and disable PXE by default on switch as well on dhcpd/tftpd setup. So when it would boot it would time out, if needed reinstall, you would enable it in dhcpd/tftpd and/or in switch port. The post-install customization could be done by tools like cfengine, puppet etc... I would love to see some automated install solution on OpenBSD, but it is tricky and SUSE-based xml autoyast is hell :D jirib