comio Advocate
Joined: 03 Jul 2003 Posts: 2191 Location: Taranto
|
Posted: Mon Sep 05, 2005 8:28 pm Post subject: [Gentoo/FreeBSD] Bootable Qemu image of G/FBSD 5.4 |
|
|
Hi guys,
I have just prepared some images of an installation of Gentoo/FreeBSD 5.4.
I suggest to read first the official installation guide http://www.gentoo.org/doc/en/gentoo-freebsd.xml.
I have created many snapshots of the Gentoo/FreeBSD installation.
These are the snapshots:
- Empty image with / and swap partition / (10GB): http://www.comio.it/gfbsdEMPTY.zip (size 71KB).
- Image with Stage3 only: http://www.comio.it/gfbsdSTAGE3ONLY.zip (size 81MB).
- Image with Stage3 and Portage tree (01/09/05): http://www.comio.it/gfbsdSYNC.zip (size 115MB).
- Bootable image of Gentoo/FreeBSD 5.4 with portage tree at 04/09/05: http://www.comio.it/gfbsd.zip (size 268MB).
For non-bootable images, You must use a bootable image of FreeBSD (http://www.comio.it/freebsd.zip) to continue the Gentoo Installation
With qemu, you should mount the two images (bootable and non-bootable) in this manner:
Code: |
# under *x (please check!)
$PATHQEMU/qemu -L $PATHQEMU/bios -m 64 -hda "freeBSDminimal.img" -hdb "gfbsdSYNC.img"
# under Windows
"c:\Program Files\Qemu\qemu" -L "c:\Program Files\Qemu\bios" -m 64 -hda "freeBSDminimal.img" -hdb "gfbsdSYNC.img" -localtime
|
After the boot with a bootable version of FreeBSD, you should mount the partition where you are preparing the Gentoo/FreeBSD, and in case you should make the chroot:
Code: |
# mkdir /mnt/gfbsd
# mount /dev/ad1s1d /mnt/gfbsd
|
in case:
Code: |
# mount -t devfs none /mnt/gfbsd/dev
# chroot /mnt/gfbsd /bin/bash
# source /etc/profile
|
For the bootable image of Gentoo/FreeBSD 5.4 (yeah!), you should use the following command:
Code: |
# under *x (please check!)
$PATHQEMU/qemu -L $PATHQEMU/bios -m 64 -hda "gfbsd.img"
# under Windows
"c:\Program Files\Qemu\qemu" -L "c:\Program Files\Qemu\bios" -m 64 -hda "gfbsd.img" -localtime
|
To configure the network (I have configured dhcp for qemu and vmware):
Code: |
# /etc/init.d/net.ed0 start # if you use qemu
# /etc/init.d/net.lnc0 start # if you use vmware
|
I have created these users:
Code: |
root with password freebsd
comio with password comio
|
I have also enabled the italian keyboard and the mouse.
To convert the qemu images to vmware images use qemu-img tool:
Code: |
$ qemu-img convert gfbsd.img -O vmdk gfbsd.vmdk
|
I prefered use vmware (30-days license) because the I/O subsystem is better than qemu.
Important resources:
IRC: #gentoo-bsd on FreeNode (very important resource! thanks to the developers!)
Guide: http://www.gentoo.org/doc/en/gentoo-freebsd.xml
Original Italian thread: https://forums.gentoo.org/viewtopic-t-375930.html
Happy Betatesting!
Ciao!
comio _________________ RTFM!!!!
e
http://www.comio.it
|
|