ยง2023-10-21

  1. create a disk

16G seems not enough, go for 32G

$ qemu-img create -f qcow2 install-amd64-minimal-20231015T161657Z.qcow2 32G
Formatting 'install-amd64-minimal-20231015T161657Z.qcow2', fmt=qcow2 cluster_size=65536 extended_l2=off compression_type=zlib size=17179869184 lazy_refcounts=off refcount_bits=16
  1. Simulate with

skip -enable-kvm

$ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
$ qemu-system-x86_64 -m 4G -boot order=d \
-cdrom ./install-amd64-minimal-20231015T161657Z.iso \
./install-amd64-minimal-20231015T161657Z.qcow2
  1. in qemu simulation
 --xattrs-include='*.*': This option instructs tar to include extended file attributes (xattrs) in the extraction process. Extended file attributes can store additional metadata about files, such as SELinux security context or file capabilities. The argument '*.*' is a pattern that includes all files and directories when extracting xattrs. This ensures that any extended file attributes associated with the files are preserved.
--numeric-owner: This option tells tar to preserve the numeric ownership (user and group IDs) of the files and directories being extracted. It's essential in order to maintain the ownership and permissions of files when extracting the tarball, as it ensures that the original user and group IDs are retained.
  1. Configuring compile options
  1. Gentoo ebuild repository

    • mkdir --parents /mnt/gentoo/etc/portage/repos.conf
    • cp -v /mnt/gentoo/usr/share/portage/config/repos.conf /mnt/gentoo/etc/portage/repos.conf/gentoo.conf
  2. edity DNS info

nameserver 8.8.8.8
nameserver 8.8.4.4
  1. arch-chroot /mnt/gentoo /bin/bash
export PS1="(chroot) $PS1"
  1. nano /etc/locale.gen
# 
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8

# export PS1
export PS1="(chroot) $PS1"
  1. Configuring Portage
  1. Choosing the right profile
eselect profile list
eselect profile set
  1. sync with the @wolrd
emerge --ask --verbose --update --deep --newuse @world