Re: about unattended installation
Good morning, El 19/12/2012, a las 19:59, Devin Teske escribió: > > On Dec 19, 2012, at 10:06 AM, Egoitz Aurrekoetxea Aurre wrote: > >> Good afternoon, >> >> One little question… I'm trying to have ready our new unattended FreeBSD >> installation system. Until now, I have been using Sysinstall scripting file >> but now with 9.1 out I think it's moment to start using BSDInstaller in the >> unattended installation process. > > Hold on a moment. You might want to wait until 9.2. (read more below) > Well in the ftp can be seen : FreeBSD-9.1-RELEASE-amd64-disc1.iso downloadable file…. so I assume it's a release??? > > >> I have seen the new installer, works basically like an script…. my real >> question is… before I did in install.cfg something like : >> >> >> disk=da0 >> partition=all >> bootManager=standard >> diskPartitionEditor >> >> >> >> da0s1-1=ufs 3072000 / >> da0s1-2=swap 8096000 none >> da0s1-3=ufs 20485760 /var 1 >> da0s1-4=ufs 30720760 /usr 1 >> da0s1-5=ufs 0 /expert 1 >> diskLabelEditor >> >> >> >> Now I assume there's no way of getting this same through any command like… >> 'bsdinstall partedit ___' am I wrong??. > > You're correct. In 9.0 and 9.1, it's just not feasible to man-handle the user > interface (partedit) as one could sysinstall. (read below about 9.2) > > So I suppose that till the new installer is able to handle this in a similar way to sysinstall (although the syntax to be different or whatever)…. or partitioning can be achieved in some non interactive way, to maintain the possibility of rebuilding one's own release in order to be able to use sysinstall and to be able to maintain working unattended installation systems…. because this is essential for some of us….. and of course sysinstall to still continue working :)... > >> So I assume all should be done by hand like this example of the Handbook : >> >> # dd if=/dev/zero of=/dev/da1 bs=1k count=1 >> # fdisk -BI da1 #Initialize your new disk >> # bsdlabel -B -w da1s1 auto #Label it. >> # bsdlabel -e da1s1 # Edit the bsdlabel just created and add any partitions. >> # mkdir -p /1 >> # newfs /dev/da1s1e # Repeat this for every partition you created. >> # mount /dev/da1s1e /1 # Mount the partition(s) >> # vi /etc/fstab # Add the appropriate entry/entries to your /etc/fstab. >> >> In the auto script…. >> >> am I wrong?. If the answer is yes… could you point me to some documentation >> in order to be able to complete all this doc. > > The answer is (unfortunately) yes… that is until (hopefully) 9.2. > > It's an on-going significant amount of work to make add backward > compatibility (so bsdinstall can load sysinstall "install.cfg" files). I'm > not going to discuss the specifics here or yet, but I'm actively working on > it. > > No docs on how to mangle the auto script to do what you want (that I know of). Ok then :) > > > >> Apart from all this… is Sysinstall going to be maintained in parallel?. >> > > Sysinstall is dead. Devin, sysinstall should not be died till the new installer allows or exists a way of doing same thing than before we did in some manner or other one….. because else… don't know... can this commands be translated to gpart for example??… and to act in a non interactive way??. But apart from the own gpart the are later other parts of the installation which should be done too… like selecting which distributions to install in a non interactive way for example….. if that is not possible to be done… in a non interactive way…. sysinstall should not disappear…. > The bsdinstall you know can be considered the "first generation" and > accordingly is a bit spartan. I'm working hard on the next generation. My > plan is to have 10.0 with bsdinstall able to run sysinstall scripts (for > backward compatibility; can't yet say what 9.x release will be MFC'd to, but > that could be 9.2). > > I'm planning one helluva BSDCan-2013 presentation. > -- > Devin > Thanks a lot for all !! Best regards, ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
about unattended installation
Good afternoon, One little question… I'm trying to have ready our new unattended FreeBSD installation system. Until now, I have been using Sysinstall scripting file but now with 9.1 out I think it's moment to start using BSDInstaller in the unattended installation process. I have seen the new installer, works basically like an script…. my real question is… before I did in install.cfg something like : disk=da0 partition=all bootManager=standard diskPartitionEditor da0s1-1=ufs 3072000 / da0s1-2=swap 8096000 none da0s1-3=ufs 20485760 /var 1 da0s1-4=ufs 30720760 /usr 1 da0s1-5=ufs 0 /expert 1 diskLabelEditor Now I assume there's no way of getting this same through any command like… 'bsdinstall partedit ___' am I wrong??. So I assume all should be done by hand like this example of the Handbook : # dd if=/dev/zero of=/dev/da1 bs=1k count=1 # fdisk -BI da1 #Initialize your new disk # bsdlabel -B -w da1s1 auto #Label it. # bsdlabel -e da1s1 # Edit the bsdlabel just created and add any partitions. # mkdir -p /1 # newfs /dev/da1s1e # Repeat this for every partition you created. # mount /dev/da1s1e /1 # Mount the partition(s) # vi /etc/fstab # Add the appropriate entry/entries to your /etc/fstab. In the auto script…. am I wrong?. If the answer is yes… could you point me to some documentation in order to be able to complete all this doc. Apart from all this… is Sysinstall going to be maintained in parallel?. Thank you very much, Best regards! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Building a releng_9_0 with sysinstall, livefs and mfsroot
Good morning, Have just sent to freebsd-hackers mailing list the way of doing this. I say this because perhaps could be useful for someone... Best regards. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: FreeBSD 9-R pxeboot fails with 'Mounting root filesystem rw failed'...
In the "new" way of booting... you need to have the cd because the own cd is the root filesystem... and in fact is live filesystem too so unless you're booting from mfsroot... I assume you should have that line in /etc/fstab inside the iso image but if you're using mfsroot... I really even am not creating etc dir inside the iso image... because it's not needed and in previous releases and iso images when always booted from mfsroot (and where not livefs cds and so) it wasn't necessary... On Thu, 01 Mar 2012 12:43:58 +, Karl Pielorz wrote: --On 01 March 2012 11:53 +0100 ego...@ramattack.net wrote: So I recomend you reading last mails of mine in freebsd-hackers... Hope it helps, Bye! For what it's worth - I've resolved the issue I had (which was basically the system booted, but failed trying to re-mount root as RW, and hence wouldn't go into the installer). The fix I did was to change the '/etc/fstab' on the Netboot server (i.e. the copy of FreeBSD that you're booting). It contains: " /dev/iso9660/FREEBSD_INSTALL / cd9660 ro 0 0 " Just commenting out that line, i.e. " #/dev/iso9660/FREEBSD_INSTALL / cd9660 ro 0 0 " Means the boot now completes, and I get offered the "Install / Shell / Live CD" prompt, instead of an error about not being able to remount root. I've yet to complete an install this way (so far we're just using a script to extract the new 9.x style '.txz' files). But that little change does let us netboot correctly now, enough for what we need. -Karl ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: FreeBSD 9-R pxeboot fails with 'Mounting root filesystem rw failed'...
Take a look at freebsd-hackers mailing list... I have suggested some change in some Makefile and sh script in order to unless at this moment to be able to have an unattended system built with sysinstall (the idea I think it was to maintain sysinstall in 9.0 unless) and using you're install.cfg At freebsd-hackers seems that people is pretty busy and can't look at this in order for committing or unless saying something about it... perhaps they're working on another thing or so, or don't know I assume they can't check this now... but like changes are not significant... I am going to do with the changes suggested and have tested and release builts fine and you can use Jumpstart without issues.. this way... So I recomend you reading last mails of mine in freebsd-hackers... Hope it helps, Bye! El Jue, 1 de Marzo de 2012, 11:24 am, Karl Pielorz escribió: > Hi, > > > I've got a 9.0-R amd64 system I'm trying to netboot / pxeboot from the > network, to install other machines (and do fixups etc.) > > I set this up as we setup previous versions here - but setting up a tftp > server, and nfs server - and 'dumping' the contents of the install CD to a > directory on the dhcp server, which is exported via nfs (it's exported > as read/write). > > The system kind of boots, but falls over with: > > > " > Interface em0 IP-Address 192.168.0.47 Broadcast 192.168.0.255 > Entropy harvesting: interrupts ethernet point_to_pick kickstart. > Starting file system checks: > mount_nfs: no : nfs-name > Mounting root filesystem rw failed, startup aborted > ERROR: ABORTING BOOT (sending SIGTERM to parent)! > Mar 1 118:10 init: /bin/sh on /etc/rc terminated abnormally, going to > single user mode Enter full pathname of shell or RETURN for /bin/sh: > " > > > It looks like it's failing to 'remount' / promote the root file system as > read/write (It's definitely exported as read/write - I've tested it by > mounting it on another machine). If you start a shell at this point and > run mount, you get: > > " > 192.168.0.37:/usr2/netboot/os/9.0-amd64 on / (nfs, read-only) > devfs on /dev (devfs, local, multilabel) " > > > Is there something I have to set (e.g. in '/etc/rc.conf') in order to fix > this? > > Previous systems setup this way would always boot through to the > sysinstall menu. > > > Thanks, > > > -Karl > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscr...@freebsd.org" > > ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: New iso format on 9.0
On Tue, 21 Feb 2012 11:31:23 -0800, Robison, Dave wrote: On 02/21/2012 10:28, Devin Teske wrote: Why can't you mount the disc on /mnt and then use tar after mounting the disk to copy the files from /mnt to /destdir ... tar cpf - -C /mnt . | tar xvpf - -C /destdir That will preserve hard links, symlinks, permissions, and times (and doesn't require rsync). There are other methods involving cpio, but I find tar to be nice. Just FYI, a trick using cpio which Julian once taught me: find . -depth | cpio -pdmluv /destination/dir/here -- Dave Robison Sales Solution Architect II FIS Banking Solutions 510/621-2089 (w) 530/518-5194 (c) 510/621-2020 (f) da...@vicor.com david.robi...@fisglobal.com _ The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" Thanks a lot this one and the previous advice using tar was what I was looking for :) :) Thanks a lot really :) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
RE: New iso format on 9.0
umount /mnt vnconfig -u vn99c Or, you can just download this script which works on both Linux and FreeBSD: http://druidbsd.cvs.sourceforge.net/viewvc/druidbsd/druidbsd/druid/src/tools/umo unt_iso.sh?view=log Usage: ./umount_iso.sh /mnt Hello all, And thanks a lot really for you're answers. Yes... I know the way you can mount an iso image (I have done a couple of times yesterday in fact)... but I'm really worried about how making a consistent copy of it like I did with tar... as I said this is for an unattended installation system... so I cannot be depending on having the cd mounted on the operating system... with tar the -p option was important for preserving permissions, flags, and so... perhaps now... should mount like you said before for example and later having an rsync compiled with file flag preserving support do an rsync -av /cd-mount-point /disk-place-to-copy-cd-content ?? this last is the real question... I have played previously several times with memory disks mappings, mdconfig and those staff but how to make a consistent copy of the cd for the unattended installation system... Thanks again, Best regards, ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: New iso format on 9.0
On Tue, 21 Feb 2012 13:33:56 +, Matthew Seaman wrote: On 21/02/2012 12:46, ego...@ramattack.net wrote: Previously I was doing a : 'tar -C /expert/netboot/freebsd8 -pxvf 8.0-RELEASE-amd64-disc1.iso' for extracting iso files. Now due to a different way of creating iso files in this new release... have read this is not recommended and in fact it does not work pretty good. The matter because I wanted to make this extraction is for an unattended installation system of FreeBSD (Jumpstart basically) so I need a consistent way of extracting it, preserving the most properties of the iso files content. So, could anyone advice me a proper way of doing what I was doing before, with the new iso files?. Using tar to extract the contents of a .iso should work. You might end up with oddities to do with file ownership and permissions, but you should be able to fix that by suitable application of mtree(1). Alternatively you can grab the actual installation images from the install media -- that's any of the .txz files under /usr/freebsd-dist for 9.0. These are actually rather easier to use than the equivalents under 8.x or earlier: you get about 5 .txz files, not all of which are necessary to boot the new system. For a minimal install on a 64bit platform you'ld need base.txz, lib32.txz and kernel.txz. Just untar those in the root directory of the system you're building (preserving permissions and ownership) and you should be good to go. [Assuming you've already done all the partitioning and creating filesystems and installing boot-blocks stuff required, of course.] Cheers, Matthew Hi all!!, And could be possible... doing something like : mdconfig -a -t vnode -f /tmp/bootable.iso -u 0 # mount -t cd9660 /dev/md0 /mnt And later an rsync -av (rsync compiled preserving file flags) /mnt /expert/netboot/freebsd90... ?? and the most important thing... could this content in /expert/netboot/freebsd90 be consistent for using it for an unattended installation system? Thanks a lot!! Best regards, ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
New iso format on 9.0
Good morning, Previously I was doing a : 'tar -C /expert/netboot/freebsd8 -pxvf 8.0-RELEASE-amd64-disc1.iso' for extracting iso files. Now due to a different way of creating iso files in this new release... have read this is not recommended and in fact it does not work pretty good. The matter because I wanted to make this extraction is for an unattended installation system of FreeBSD (Jumpstart basically) so I need a consistent way of extracting it, preserving the most properties of the iso files content. So, could anyone advice me a proper way of doing what I was doing before, with the new iso files?. Best regards, ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Jumpstart on FreeBSD 9.0
Hi all, I'm trying to upgrade my Jumpstart services for provisioning machines, but I'm founding that in FreeBSD 9.0 things are become slightly different than in previous releases. For example... tar -C ... -pxvf does not work with some files (althout you can mount iso and later do an rsync preserving file flags), another change is that you don't see a mfsroot for using in the service... perhaps in this release you need to create by you're own... has anyone see this problems I'm talking about in this new release?? If I rebuild the release isos... (from source) could I pass something (or can do something) for getting the commented mfsroot?. Any experience on this area you could comment out... please? Thanks a lot for you're time. Regards, ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: qmail or postfix?
version i tried. that turns off certain maintainers, and it would put me off aswell postfix on the other hand is more in tune with the rest of the system > > thanks in advance > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " freebsd-questions-unsubscr...@freebsd.org" > ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to " freebsd-questions-unsubscr...@freebsd.org" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" Nowadays I think Postfix is much more complete and efficient mail system than Qmail although this one it's a pretty small and good code by design mail system... but the problem is that you'll probably need more features than qmail-1.03 gave unless... so you will need to patch it, so you're entering non qmail native code... By my professional experience... Postfix will give you more "oportunities and features" for things going well... Some years ago I set up qmail servers and I like qmail and I like playing with it's code... but should say that nowadays unless IMHO... Postfix is basically the nowadays opensource mail system. Bye!! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: RELENG_8_1 Release build fails
>> Hi all, >> >> I'm trying to make a release from RELENG_8_1 branch because of mbuf bug >> and so... and wanted to make my own freebsd cds (updated)... I have >> downloaded the > > Hi!, > > Perhaps this is not the proper mailing list for asking this kind of > questions? perhaps should I write to freebsd-hackers or any other one?. Hey mates, Sorry for the noise I had forgotten the make buildworld before the make release... I though buildworld was integrated inside make release... as said... very sorry for the noise. Bye!! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: RELENG_8_1 Release build fails
> Hi all, > > I'm trying to make a release from RELENG_8_1 branch because of mbuf bug > and so... and wanted to make my own freebsd cds (updated)... I have > downloaded the Hi!, Perhaps this is not the proper mailing list for asking this kind of questions? perhaps should I write to freebsd-hackers or any other one?. Thanks a lot for you're help. Bye!! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
RELENG_8_1 Release build fails
Hi all, I'm trying to make a release from RELENG_8_1 branch because of mbuf bug and so... and wanted to make my own freebsd cds (updated)... I have downloaded the whole freebsd cvs, later with cvs create the snapshot under /usr/src and later under /usr/src/release done a : make release CHROOTDIR=/datos001/81release CVSROOT=/datos001/ncvs RELEASETAG=RELENG_8_1 MAKE_ISOS=1 But it fails with : -- >>> Installing everything -- cd /usr/src; make -f Makefile.inc1 install ===> share/info (install) install -o root -g wheel -m 444 dir-tmpl /datos001/81release/usr/share/info/dir install:No such file or directory *** Error code 1 Stop in /usr/src/share/info. *** Error code 1 Stop in /usr/src. *** Error code 1 After entering INSTALL=/usr/bin/install in /etc/make.conf... it continues but stops later because it doesn't build some object files for being copied to /datos001/81release/... in /usr/src/lib/csu/amd64/... after building them by hand, later again stops because libc is not compiled... Seems like there's a problem in some Makefiles... am I wrong?. Will be this corrected the next days in the cvs?. Thanks a lot really. Bye!. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: FreeBSD PXE installation howto
Well finally... I have updated my pxe installation guide... reducing some unnecessary steps... here you are the updated howto : http://postfixquotareject.ramattack.net/freebsdpxehowto.pdf You know any doubts this is my mail :). Bye!! > Hi all, > > I have seen a way for reducing some steps... > > after installing dhcpd and active tftpd in inetd.conf and starting > inetd... have just done : > > tar -C /expert , ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: FreeBSD PXE installation howto
Hi all, I have seen a way for reducing some steps... after installing dhcpd and active tftpd in inetd.conf and starting inetd... have just done : tar -C /expert/netboot/freebsd8 -pxvf 8.0-RELEASE-amd64-disc1.iso (really it's an own release based on release plus security patches RELENG_8_0 but for the example is the same...) and after just entering the install.cfg in the mfsroot and after changing in nfs-root-path/boot/loader.conf for having the line : vfs.root.mountfrom="ufs:/dev/md0" it works the same way too... Are the freebsd iso releases (either of the web or those made by make release) shipped with all necessary for all boot modes (pxe, cd, hd...).. without needing to do nothing for, for example making a freebsd installation server?.. Thanks a lot for you're time. Bye!! > Hi, > > I'm working on a project for setting up a freebsd installation server with > pxe. When I started I see the doc was a bit old-fashioned... so I started > looking at some blogs... freebsd doc that could help me understanding the > whole process and so on... finally I have ended looking at source code of > some involved parts like sysintall, boot stages and so on for > understanding all properly for setting up this service. I have written a > documentation that if you see it to be ok... (it seems to be working fine) > perhaps, would be nice to appear in handbook or in some official > documentation site... So if you see something that should be done in > another way... or some point wich you consider it's wrong... please make > me know and I'll correct it. The url in wich you could fetch the pdf file > is : http://postfixquotareject.ramattack.net/freebsdpxehowto.pdf > > Thank you very much. > > Bye!!___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscr...@freebsd.org" > ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
FreeBSD PXE installation howto
Hi, I'm working on a project for setting up a freebsd installation server with pxe. When I started I see the doc was a bit old-fashioned... so I started looking at some blogs... freebsd doc that could help me understanding the whole process and so on... finally I have ended looking at source code of some involved parts like sysintall, boot stages and so on for understanding all properly for setting up this service. I have written a documentation that if you see it to be ok... (it seems to be working fine) perhaps, would be nice to appear in handbook or in some official documentation site... So if you see something that should be done in another way... or some point wich you consider it's wrong... please make me know and I'll correct it. The url in wich you could fetch the pdf file is : http://postfixquotareject.ramattack.net/freebsdpxehowto.pdf Thank you very much. Bye!!___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"