Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Gentoo/FreeBSD] Bootable Qemu image of G/FBSD 5.4
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
comio
Advocate
Advocate


Joined: 03 Jul 2003
Posts: 2160
Location: Milano (Taranto di Origine)

PostPosted: Mon Sep 05, 2005 8:28 pm    Post subject: [Gentoo/FreeBSD] Bootable Qemu image of G/FBSD 5.4 Reply with quote

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
:)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum