mkdir -p /data/guests/gentoo/lala/ touch /data/guests/gentoo/lala/NOT_MOUNTED cd /data/guests/gentoo/ cat > gentoo <<EOF kernel = "/data/kernels/vmlinuz" root = "/dev/xvda1 ro console=hvc0 ipv6.disable=1 mitigations=off" memory = 7168 name = "gentoo" vcpus = 16 maxvcpus = 16 disk = ['file:/data/guests/gentoo/gentoo.reiser4,xvda1,w'] vif = [ 'bridge=xenbr0, vifname=gentoo.0' ] EOF vi gentoo dd if=/dev/zero of=gentoo.reiser4 bs=1G count=0 seek=10
#mkfs.ext4 gentoo.ext4 mkfs.reiser4 -h mkfs.reiser4 --yes --force gentoo.reiser4 mkdir lala/ mount -o loop,rw gentoo.reiser4 lala/
grab and deploy the latest stage 3 build
wget https://bouncer.gentoo.org/fetch/root/all/releases/amd64/autobuilds/20200226T214502Z/stage3-amd64-20200226T214502Z.tar.xz tar xJpf stage3-amd64-20200226T214502Z.tar.xz -C lala/
#cat lala/etc/fstab #mv lala/etc/fstab lala/etc/fstab.dist cat > lala/etc/fstab <<EOF /dev/xvda1 / reiser4 noatime 0 1 EOF #cp -pi lala/etc/inittab lala/etc/inittab.dist cat >> lala/etc/inittab <<EOF s0:12345:respawn:/sbin/agetty --noclear -L 115200 hvc0 linux EOF chroot lala/ passwd --delete --unlock root #chroot lala/ rc-update show default | grep netmount chroot lala/ rc-update -a del netmount #exit
ls -ldF lala/lib/modules/ #noexist mkdir -p lala/lib/modules/ file /data/kernels/vmlinuz tar xvzf /data/kernels/lib.modules.5.2.14.domureiser4.tar.gz -C lala/lib/modules/ ls -ldF lala/etc/modules-load.d/ #noexist mkdir -p lala/etc/modules-load.d/ echo tmem > lala/etc/modules-load.d/tmem.conf
umount lala/ xl create gentoo -c
and within the guest, eventually grab and deploy the latest portage snapshot
wget http://distfiles.gentoo.org/snapshots/portage-latest.tar.xz #-C lala/usr/ tar xJf portage-latest.tar.xz -C /usr/
Gentoo as a DomU https://wiki.prgmr.com/mediawiki/index.php/Gentoo_as_a_DomU
Gentoo Does An x32 Stage 3 Release Candidate https://www.phoronix.com/scan.php?page=news_item&px=MTExNTE
Installing the Gentoo installation files https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Stage