carpenike
Feb 25, 2007, 01:37 PM
Hello,
Figured some people may find this helpful... I just installed Gentoo Linux inside my Parallels Desktop for MAC... Running this on a Core Duo Macbook Pro with 2GB RAM and 80 gig hdd. Recompiled the entire system twice (emerge -e world, emerge -e world) to match the following /etc/make.conf:
# These settings were set by the catalyst build script that automatically built this stage
# Please consult /etc/make.conf.example for a more detailed example
CFLAGS="-O2 -march=nocona -pipe"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
USE="-midi mmx nptlonly sse sse2 zlib"
PORTAGE_TMPDIR=/var/tmp
PORTDIR=/usr/portage
DISTDIR=${PORTDIR}/distfiles
PKGDIR=${PORTDIR}/packages
PORT_LOGDIR=/var/log/portage
PORTDIR_OVERLAY=/usr/local/portage
# This sets what to log
PORTAGE_ELOG_CLASSES="warn error log"
# And this is how to do it
PORTAGE_ELOG_SYSTEM="save"
MAKEOPTS="-j2"
GENTOO_MIRRORS="http://www.ibiblio.org/pub/Linux/distributions/gentoo"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
RSYNC_RETRIES="3"
RSYNC_TIMEOUT=180
PORTAGE_NICENESS=3
AUTOCLEAN="yes"
FEATURES="distlocks sandbox userpriv usersandbox"
CCACHE_DIR="/var/tmp/ccache/"
CCACHE_SIZE="4G"
INPUT_DEVICES="keyboard mouse"
VIDEO_CARDS="parallels"
Therefore, this install has the latest stable branch packages as of 2/25/2007. Outside of the base install packages, these packages were installed:
syslog-ng
vixie-cron
slocate
rcs
alsa-utilities
The kernel was built to allow alsa to work and also networking. Alsa was built as modules and loads correctly.
A link to the kernel config can be found Here. (https://www.holthome.net/ryan/parallels/gentoo/config.gz)
- Roughly 9kb
A link to the image files (Parallels) can be found Here. (https://www.holthome.net/ryan/parallels/gentoo/gentoo_2.6.19-r5.tar.bz)
- Roughly 1GB
The Parallels configuration has 10GB of space allocated to the install, and uses 512MB RAM. Partition layout is as follows:
rytoo ~ # fdisk -l
Disk /dev/hda: 10.7 GB, 10737893376 bytes
16 heads, 63 sectors/track, 20806 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 195 98248+ 83 Linux
/dev/hda2 196 1188 500472 82 Linux swap / Solaris
/dev/hda3 1189 10877 4883256 83 Linux
/dev/hda4 10878 20806 5004216 5 Extended
/dev/hda5 10878 15722 2441848+ 83 Linux
/dev/hda6 15723 20806 2562304+ 83 Linux
System uses reiserfs for all partitions... Fstab is as follows:
rytoo ~ # cat /etc/fstab
# /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency). It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# See the manpage fstab(5) for more information.
#
# <fs> <mountpoint> <type> <opts> <dump/pass>
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hda1 /boot reiserfs noauto,noatime,notail 1 2
/dev/hda3 / reiserfs noatime,notail 0 1
/dev/hda2 none swap sw 0 0
/dev/hda5 /usr reiserfs notail,noatime 0 1
/dev/hda6 /var reiserfs notail,noatime 0 1
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro 0 0
#/dev/fd0 /mnt/floppy auto noauto 0 0
# NOTE: The next line is critical for boot!
proc /proc proc defaults 0 0
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0
The root password is root.
This is a completely minimal install. I'm sharing it because I planned on backing it up to allow easy "do-overs" and the ability to add multiple server OS's as I saw fit. From here you should be able to build XORG and than install a WM. I walked through the Gentoo Install procedures and it worked fine for me; followed advice I found from other posts on the forums regarding CHOST and CFLAG options... This should save you time as everything was recompiled for those CHOST and CFLAG options... Hopefully this is helpful for some. I love Gentoo and the ability to now run it on my Mac Book Pro is awesome!
Thanks Parallels for an excellent piece of software.
Figured some people may find this helpful... I just installed Gentoo Linux inside my Parallels Desktop for MAC... Running this on a Core Duo Macbook Pro with 2GB RAM and 80 gig hdd. Recompiled the entire system twice (emerge -e world, emerge -e world) to match the following /etc/make.conf:
# These settings were set by the catalyst build script that automatically built this stage
# Please consult /etc/make.conf.example for a more detailed example
CFLAGS="-O2 -march=nocona -pipe"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
USE="-midi mmx nptlonly sse sse2 zlib"
PORTAGE_TMPDIR=/var/tmp
PORTDIR=/usr/portage
DISTDIR=${PORTDIR}/distfiles
PKGDIR=${PORTDIR}/packages
PORT_LOGDIR=/var/log/portage
PORTDIR_OVERLAY=/usr/local/portage
# This sets what to log
PORTAGE_ELOG_CLASSES="warn error log"
# And this is how to do it
PORTAGE_ELOG_SYSTEM="save"
MAKEOPTS="-j2"
GENTOO_MIRRORS="http://www.ibiblio.org/pub/Linux/distributions/gentoo"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
RSYNC_RETRIES="3"
RSYNC_TIMEOUT=180
PORTAGE_NICENESS=3
AUTOCLEAN="yes"
FEATURES="distlocks sandbox userpriv usersandbox"
CCACHE_DIR="/var/tmp/ccache/"
CCACHE_SIZE="4G"
INPUT_DEVICES="keyboard mouse"
VIDEO_CARDS="parallels"
Therefore, this install has the latest stable branch packages as of 2/25/2007. Outside of the base install packages, these packages were installed:
syslog-ng
vixie-cron
slocate
rcs
alsa-utilities
The kernel was built to allow alsa to work and also networking. Alsa was built as modules and loads correctly.
A link to the kernel config can be found Here. (https://www.holthome.net/ryan/parallels/gentoo/config.gz)
- Roughly 9kb
A link to the image files (Parallels) can be found Here. (https://www.holthome.net/ryan/parallels/gentoo/gentoo_2.6.19-r5.tar.bz)
- Roughly 1GB
The Parallels configuration has 10GB of space allocated to the install, and uses 512MB RAM. Partition layout is as follows:
rytoo ~ # fdisk -l
Disk /dev/hda: 10.7 GB, 10737893376 bytes
16 heads, 63 sectors/track, 20806 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 195 98248+ 83 Linux
/dev/hda2 196 1188 500472 82 Linux swap / Solaris
/dev/hda3 1189 10877 4883256 83 Linux
/dev/hda4 10878 20806 5004216 5 Extended
/dev/hda5 10878 15722 2441848+ 83 Linux
/dev/hda6 15723 20806 2562304+ 83 Linux
System uses reiserfs for all partitions... Fstab is as follows:
rytoo ~ # cat /etc/fstab
# /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency). It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# See the manpage fstab(5) for more information.
#
# <fs> <mountpoint> <type> <opts> <dump/pass>
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hda1 /boot reiserfs noauto,noatime,notail 1 2
/dev/hda3 / reiserfs noatime,notail 0 1
/dev/hda2 none swap sw 0 0
/dev/hda5 /usr reiserfs notail,noatime 0 1
/dev/hda6 /var reiserfs notail,noatime 0 1
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro 0 0
#/dev/fd0 /mnt/floppy auto noauto 0 0
# NOTE: The next line is critical for boot!
proc /proc proc defaults 0 0
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0
The root password is root.
This is a completely minimal install. I'm sharing it because I planned on backing it up to allow easy "do-overs" and the ability to add multiple server OS's as I saw fit. From here you should be able to build XORG and than install a WM. I walked through the Gentoo Install procedures and it worked fine for me; followed advice I found from other posts on the forums regarding CHOST and CFLAG options... This should save you time as everything was recompiled for those CHOST and CFLAG options... Hopefully this is helpful for some. I love Gentoo and the ability to now run it on my Mac Book Pro is awesome!
Thanks Parallels for an excellent piece of software.