Re: howto boot+preseed kfreebsd in qemu (was Re: netcfg: installation on kfreebsd maybe broken?
On 10/02/13 22:42, Philipp Kern wrote: > On Fri, Feb 08, 2013 at 07:39:46PM +, Steven Chamberlain wrote: >> $ qemu-system-x86_64 -m 512 -enable-kvm -net nic -net >> user,bootfile=grub2pxe,tftp=. -serial stdio -boot n -drive >> if=ide,bus=0,file=/dev/sdX,cache=writeback -no-reboot > Is it possible to use anything other than IDE with kFreeBSD or rather > our d-i? I tried at least SCSI and Virtio, which both didn't seem to > work. I think I skipped SATA. Yes, with the same qemu command line as above, except if=scsi. The device's name will be /dev/da0 (SCSI/SATA) instead of /dev/ada0 (IDE). Here's a preseed file I just tested: http://pyro.eu.org/f/8Nwnc2CDTDKwtgi7VhsDrg.cfg partman is always slow, it does lots of probing and syncing; perhaps especially so with this virtual SCSI device; I get lots of these warnings from the kernel but they stop after filesystems are mounted: > lsi_scsi: error: ORDERED queue not implemented GNU/kFreeBSD doesn't support virtio yet (upstream added it in the STABLE-9 branch and looks easy to backport post-wheezy.) VMware also has some special SCSI device that isn't supported. The default SCSI block device in Xen works okay for me. It's even faster if you rebuild with XENHVM kernel config (we may also want to build that as a new kernel flavour post-wheezy). Regards, -- Steven Chamberlain ste...@pyro.eu.org -- To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/51183ebc.4070...@pyro.eu.org
Re: howto boot+preseed kfreebsd in qemu (was Re: netcfg: installation on kfreebsd maybe broken?
On Fri, Feb 08, 2013 at 07:39:46PM +, Steven Chamberlain wrote: > $ qemu-system-x86_64 -m 512 -enable-kvm -net nic -net > user,bootfile=grub2pxe,tftp=. -serial stdio -boot n -drive > if=ide,bus=0,file=/dev/sdX,cache=writeback -no-reboot > > (Of course, replace /dev/sdX with appropriate loop/block device etc. on > the host to use as a guest disk; cache=none may be even faster; > enable-kvm assumes a Linux host with kvm.ko installed+loaded). Is it possible to use anything other than IDE with kFreeBSD or rather our d-i? I tried at least SCSI and Virtio, which both didn't seem to work. I think I skipped SATA. Kind regards Philipp kern signature.asc Description: Digital signature
Re: howto boot+preseed kfreebsd in qemu (was Re: netcfg: installation on kfreebsd maybe broken?
On 09/02/13 14:53, Holger Levsen wrote: > nice. though I'd actually prefer to boot the mini.iso unmodified and > still get pre-seeding, is that somehow possible? Actually I see this as a really convenient feature of the GRUB-based netinst images. It's very easy to add preseed and other options to the grub.cfg Another useful tweak is: < kfreebsd $prefix/kfreebsd-9.gz > kfreebsd $prefix/kfreebsd-9.gz -D to have kernel output copied to serial (so that with qemu -serial stdio this can all be logged). This includes segfaults, memory exhaustion or d-i's root ramdisk filling up, with the responsible pid + process name. Regards, -- Steven Chamberlain ste...@pyro.eu.org -- To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/51168f8e.6010...@pyro.eu.org
Re: howto boot+preseed kfreebsd in qemu (was Re: netcfg: installation on kfreebsd maybe broken?
Hi Steve, On Freitag, 8. Februar 2013, Steven Chamberlain wrote: > I'd like to share a recipe that works for an extracted netboot.tar.gz: > > $ qemu-system-x86_64 -m 512 -enable-kvm -net nic -net > user,bootfile=grub2pxe,tftp=. -serial stdio -boot n -drive > if=ide,bus=0,file=/dev/sdX,cache=writeback -no-reboot thanks! with that I can surely make an installation work! > I usually remove the font.pf2 file (forcing GRUB to run in text-mode) > and patch the grub.cfg like the attached. This automatically starts a > pre-seeded install, and the d-i syslog gets conveniently redirected to > qemu's stdout. nice. though I'd actually prefer to boot the mini.iso unmodified and still get pre-seeding, is that somehow possible? > The preseed.cfg can probably be the same as a Linux one. If you specify > a partman-auto/disk it should probably be /dev/ada0 (first IDE whole > disk on kfreebsd-9) or /dev/ad0 (on kfreebsd-8). > > Here's one I've had some success with: > http://pyro.eu.org/f/x-Lru4G5SieJVqMaRj71vQ.cfg thanks! I've now finally booted d-i on debian kfreebsd once+twice \o/ ;-) > It can be adapted easily to boot a mini.iso instead, but then it is > harder to tweak the grub.cfg. can you show me how to do this? :-) cheers, Holger
Re: howto boot+preseed kfreebsd in qemu (was Re: netcfg: installation on kfreebsd maybe broken?
Hi Holger, On 08/02/13 13:21, Holger Levsen wrote: > I'd be happy to add kreebsd d-i tests to jenkins.debian.net if someone > could help me come up with the right qemu command options, ie for > --kernel, --initrd and --append. That would be wonderful, I've been working toward something like this. Unfortunately I don't think the kernel/initrd/append options are suitable for kfreebsd images. Also note that kfreebsd install media use GRUB rather than syslinux/isolinux. I'd like to share a recipe that works for an extracted netboot.tar.gz: $ qemu-system-x86_64 -m 512 -enable-kvm -net nic -net user,bootfile=grub2pxe,tftp=. -serial stdio -boot n -drive if=ide,bus=0,file=/dev/sdX,cache=writeback -no-reboot (Of course, replace /dev/sdX with appropriate loop/block device etc. on the host to use as a guest disk; cache=none may be even faster; enable-kvm assumes a Linux host with kvm.ko installed+loaded). I usually remove the font.pf2 file (forcing GRUB to run in text-mode) and patch the grub.cfg like the attached. This automatically starts a pre-seeded install, and the d-i syslog gets conveniently redirected to qemu's stdout. The preseed.cfg can probably be the same as a Linux one. If you specify a partman-auto/disk it should probably be /dev/ada0 (first IDE whole disk on kfreebsd-9) or /dev/ad0 (on kfreebsd-8). Here's one I've had some success with: http://pyro.eu.org/f/x-Lru4G5SieJVqMaRj71vQ.cfg The above qemu command will show an SDL window (allowing easy manual intervention if things go wrong) but for Jenkins I believe it needs replacing with VNC. It can be adapted easily to boot a mini.iso instead, but then it is harder to tweak the grub.cfg. Just let me know how else I can help with this. Thanks! Regards, -- Steven Chamberlain ste...@pyro.eu.org --- debian-installer/kfreebsd-amd64/grub.cfg.orig 2013-02-08 00:46:19.0 + +++ debian-installer/kfreebsd-amd64/grub.cfg 2013-02-08 19:23:05.0 + @@ -1,5 +1,5 @@ -set default=2 -set timeout=-1 +set default=3 +set timeout=2 if loadfont $prefix/font.pf2 ; then set gfxmode=640x480 @@ -41,6 +41,8 @@ kfreebsd_module $prefix/initrd.gz type=mfs_root set kFreeBSD.auto=true set kFreeBSD.priority=critical + set kFreeBSD.preseed/early_command="sed -ie s/ttyv3/cuau0/ /etc/inittab && kill -HUP 1" + set kFreeBSD.preseed/url="http://www.example.com/preseed.cfg"; } menuentry "Expert install" {
Re: howto boot+preseed kfreebsd in qemu (was Re: netcfg: installation on kfreebsd maybe broken?
08.02.2013 17:21, Holger Levsen пишет: > > On Freitag, 8. Februar 2013, Philipp Kern wrote: > >> So writing out interfaces is broken on kfreebsd since November and nobody > >> noticed. > > I'd be happy to add kreebsd d-i tests to jenkins.debian.net if someone could > help me come up with the right qemu command options, ie for --kernel, > --initrd and --append. Does these work for anything but linux kernel? Somehow I doubt it does.. But there's always a workaround for this sort of things: creating a small bootable .iso image using genisoimage. /mjt -- To UNSUBSCRIBE, email to debian-boot-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/5114fda3.9080...@msgid.tls.msk.ru