From owner-freebsd-current@FreeBSD.ORG Tue Nov 13 11:55:44 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 45D1016A417 for ; Tue, 13 Nov 2007 11:55:44 +0000 (UTC) (envelope-from outbackdingo@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.179]) by mx1.freebsd.org (Postfix) with ESMTP id F084313C4BE for ; Tue, 13 Nov 2007 11:55:43 +0000 (UTC) (envelope-from outbackdingo@gmail.com) Received: by py-out-1112.google.com with SMTP id u77so2005562pyb for ; Tue, 13 Nov 2007 03:55:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; bh=FrJ+pTO33MuzvZxKYOPUpB6ci+DPaZi2fNkP8s8WP6Y=; b=F8Uy7uBHjy/MAo4XRZ07wd4PMhdQ5LZ+RO/UGQkJOWCPlmLWDhfdXBMOUlcJ7F38XAFzlBCcUUAdzucL8e8DZ2dKvP+AvUCsrFmLrxz7xfaQFbfMWyxlrFBK4hFCsZ2yMfiPfm3316zVSNtgoiIZMJOoad0DhdnqWzS2qlqscpw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:subject:from:to:cc:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=lxq5+lCtV2MF5hGg/AoE8+j7WbBgbKFyr5so6b+7mRJntWvC5NjT6qeVYOMWSsMgviKp7+GkKJISJ+XKbC/92zQLf/YvcYfzcyENjnxeAY69qX3I7HiYv3cOZbYq4YGhWNJ7RNDUu8/O+uqyRH7Tw4V6cEiDX15uv014IVq5z5M= Received: by 10.35.86.12 with SMTP id o12mr6146181pyl.1194954930911; Tue, 13 Nov 2007 03:55:30 -0800 (PST) Received: from ?10.1.1.100? ( [203.125.55.190]) by mx.google.com with ESMTPS id a2sm839184pyi.2007.11.13.03.55.25 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 13 Nov 2007 03:55:28 -0800 (PST) From: OutbackDingo To: Marten Vijn In-Reply-To: <1194954186.2264.4.camel@workstation.martenvijn.nl> References: <1194954186.2264.4.camel@workstation.martenvijn.nl> Content-Type: text/plain; charset=ISO-8859-1 Date: Tue, 13 Nov 2007 19:54:54 +0800 Message-Id: <1194954915.6257.54.camel@z60m.optimlabs.com> Mime-Version: 1.0 X-Mailer: Evolution 2.12.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 8bit Cc: freebsd-small@freebsd.org, Sunry Chen , freebsd-current@freebsd.org Subject: Re: tinybsd qemu small howto X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Nov 2007 11:55:44 -0000 HAHAH sorry for the top post but I actually had a copy saved, so here it is installation ¶ install FreeBSD 7.0 ISO Just the chapter installation from the FreeBSD handbook fresh Build ¶ Since 7.0 in stable jet I suggest to build the lasted version. You can skip this and can go to make tinybsd image. update src pkg_add -r cvsup-without-gui cat /usr/share/examples/cvsup/standard-supfile | sed s/CHANGE_THIS// > /root/sup my localmirror is cvsup.nl5.freebsd.org since I live in the Netherlands. Please find a local site. cvsup /root/sup cd /usr/src sudo make buildworld optional strip your kernel cd /sys/i386/conf sudo cp GENERIC MY_KERNEL sudo vi MY_KERNEL build from src cd /usr/src sudo make buildkernel KERNCONF=MY_KERNEL sudo make install KERNCONF=MY_KERNEL reboot in single user mode reboot 1. choose single user mode in the bootmenu mergemaster cd /usr/src make installworld mergemaster -p reboot update ports sudo portsnap fetch sudo portsnap extract make tinybsd image ¶ cd /usr/src/tools/tools/tools/tinybsd sudo ./tinybsd maintaince on the image ¶ mount the file sudo mdconfig -a -t vnode -t tinybsd.bin 1. creating md0 sudo mount /dev/md0a /mnt fix current bugs in tinybsd for example sudo cp /etc/mtree/* /mnt/etc/mtree/ or the make ssh keys sudo chroot /mnt /etc/rc.d/sshd exit virutalization ¶ I use qemu to test my images. installing qemu cd /usr/ports/emulators/qemu sudo make install option kqemu = yes prepare network for qemu I have fxp0 as a nic ifconfig tun create 1. creating tun0 ifconfig bridge create 1. creating bridge 0 ifconfig bridge0 addm tun0 addm fxp0 up load modules kldload aio kqemu booting the image in qemu sudo qemu -hda tinybsd.bin -net nic -net tun 1. bug! ufs:ad0a Distribution ¶ This make a smaller file for download and more important Window users can write the file on flash or usb drive. See Manual Kaspers site for monowall and specially physdiskwrite. tar -cvjf tinybsd.bin.bz tinybsd.bin writing to disk 1. see dmesg for the correct disk zcat tinybsd.bin.bz | dd of=/dev/ bs=16k