Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save NoteAfterNote/0ec14839db016b6d3b905d4eda5db263 to your computer and use it in GitHub Desktop.
Save NoteAfterNote/0ec14839db016b6d3b905d4eda5db263 to your computer and use it in GitHub Desktop.
Termux And The ext4 Filesystem, Part 4 Of 5: QEMU, A Guest Operating System, GNU GRUB Bootloader, And fdisk

NoteAfterNote-4
Termux And The ext4 Filesystem, Part 4 Of 5: QEMU, A Guest Operating System, GNU GRUB Bootloader, And fdisk
Published: April 14, 2023
Link: https://gist.github.com/NoteAfterNote/0ec14839db016b6d3b905d4eda5db263


Mobile Device Configuration

  • Rooted: No

  • Connected to any network: No

  • Operating system:

    neofetch --stdout|grep --color=never --ignore-case 'os:'
       OS: Android 11 armv7l 
    
  • CPU:

    neofetch --stdout|grep --color=never --ignore-case 'cpu:'
       CPU: MT6761V/WAB (4) @ 2.001GHz
    
  • Display resolution: 1440x720

  • Builtin internal storage: 32 Gigabytes

  • Builtin memory: 3 Gigabytes

  • Adoptable Storage: Enabled

  • Application Binary Interface (ABI): armeabi-v7a, 32-bit

  • Linux shell: bash (Bourne Again SHell)

  • Termux wake lock: Always enable

  • Termux packages installed: qemu-system-x86-64 qemu-utils manpages util-linux teseq vim nano wget android-tools libnfs links openssh man termux-api libusb clang ncurses ncurses-utils asciinema gnutls termux-tools bc samba apache2 traceroute net-tools iproute2 inetutils bsd-games netcat-openbsd nmap nmap-ncat rlwrap dosfstools e2fsprogs pass pass-otp openssl-tool gpgv pwgen openjdk-17 paperkey unrar ncftp lftp darkhttpd file sshpass mutt neomutt alpine neofetch cpufetch progress pv gptfdisk fdisk curl dos2unix lynx gifsicle cadaver mlocate

  • "Termux And The ext4 Filesystem, Part 1 Of 5: Reading And Writing, No Root Required": https://gist.github.com/NoteAfterNote/2558deec94bac7ec9fa58aa5ad5e9d1b , https://github.com/NoteAfterNote (@NoteAfterNote)


Guest Operating System Installation


Do Know

Introduction To Linux System Administration


Network Port Numbers


4GB - 1 = (4*(1*1024*1024*1024)) - 1 = (2^32) - 1 = 4294967295 bytes


QEMU: https://www.qemu.org , https://github.com/qemu/qemu (@qemu), https://www.qemu.org/docs/master/ , https://wiki.qemu.org , https://github.com/qemu/qemu/tree/master/docs

qemu-system-x86_64 -m 1024M -machine pc -smp 4 -nographic -device virtio-rng-pci -monitor unix:$SOCKET_FILENAME,server,wait=off -serial mon:stdio -device virtio-net-pci,netdev=net0 -netdev user,id=net0,ipv6=off,hostfwd=tcp::15022-:22,hostfwd=::15081-:15081 -drive if=none,file=$ISO,media=cdrom,readonly=on,format=raw,id=drive1 -device virtio-blk-pci,drive=drive1,id=virtblk1,bootindex=1 -drive if=none,file=$VMDISK,format=raw,id=drive2 -device virtio-blk-pci,drive=drive2,id=virtblk2,bootindex=2 -drive if=none,file=/storage/emulated/0/Download/50gb.ext,format=raw,id=drive3,readonly=on -device virtio-blk-pci,drive=drive3,id=virtblk3 -virtfs local,security_model=none,id=host,mount_tag=host,path=$NINE_P_DIR

"QEMU Monitor": https://www.qemu.org/docs/master/system/monitor.html , https://qemu.readthedocs.io/en/latest/system/monitor.html

QEMU HMP Monitor Commands

  • Hotplugging disks, if a disk is mounted in the operating system, unmount it before a "device_del"

    info block
    
    
    drive_add 0 if=none,file=/storage/emulated/0/Downloads/disk1.img,format=raw,id=hd1
    
    device_add virtio-blk-pci,drive=hd1,id=virt1
    
    
    drive_add 0 if=none,file=/storage/emulated/0/Downloads/disk2.ext,format=raw,id=drive2 
    
    device_add virtio-blk-pci,drive=drive2,id=virtual2
    
    
    drive_add 0 if=none,file=/storage/emulated/0/Downloads/50gb.ext,format=raw,id=hd3 
    
    device_add virtio-blk-pci,drive=hd3,id=virtual3
    
    
    device_del virtual3
    
    device_del virt1
    
    device_del virtual2
    
    
  • QEMU firewall network ports

    info usernet
    
    hostfwd_add ::2049-:2049
    
    info usernet
    
    hostfwd_remove ::2049
    
    info usernet
    
    
  • Communicate with QEMU through a socket

    echo 'info block' | nc -UN $SOCKET_FILENAME
    
    




Termux Session: QEMU-Linux-Console

export NINE_P_DIR=/storage/emulated/0/Download/qemu-test

cd $NINE_P_DIR
sha256sum -c alpine-virt-3.17.3-x86_64.iso.sha256
cd $HOME
pwd
export ISO=$NINE_P_DIR/alpine-virt-3.17.3-x86_64.iso

dd if=/dev/urandom of=$NINE_P_DIR/disk3-1gb.img bs=1M count=1024
fdisk $NINE_P_DIR/disk3-1gb.img


export VMDISK=$NINE_P_DIR/vm-template-grub.raw
qemu-img create -f raw -o preallocation=full $VMDISK 6G


#
# For the guest operating system 9p setup: Save the Group ID (GID)
#
export GID_NINE_P_DIR=$(stat $NINE_P_DIR|grep -i gid)
echo $GID_NINE_P_DIR

#
# Bootup may take some time. Watch the "QEMU Linux Console"
#
# "QEMU Monitor" communication is done using "Ctrl-a c"
#
# Still in the Termux home directory
#
pwd

qemu-system-x86_64  -m 1024M  -machine pc  -smp 4  -nographic  -device virtio-rng-pci -serial mon:stdio  -device virtio-net-pci,netdev=net0 -netdev user,id=net0,ipv6=off,hostfwd=tcp::15022-:22,hostfwd=::15081-:15081  -drive if=none,file=$ISO,media=cdrom,readonly=on,format=raw,id=drive1 -device virtio-blk-pci,drive=drive1,id=virtblk1,bootindex=1  -drive if=none,file=$VMDISK,format=raw,id=drive2 -device virtio-blk-pci,drive=drive2,id=virtblk2,bootindex=2  -drive if=none,file=/storage/emulated/0/Download/50gb.ext,format=raw,id=drive3,readonly=on -device virtio-blk-pci,drive=drive3,id=virtblk3  -virtfs local,security_model=none,id=host,mount_tag=host,path=$NINE_P_DIR

#
# Install from the ISO: no password, login as 'root'
# 50gb.ext: v3.17/main/x86_64 repository
#           v3.17/community/x86_64 repository
#           v3.17/releases (selected files)
#
blkid
df -h
mkdir /root/repo
mkdir /root/backup
cat /etc/apk/repositories

cp -pi /etc/apk/repositories /root/backup
echo '/root/repo/alpine/v3.17/main' >> /etc/apk/repositories
echo '/root/repo/alpine/v3.17/community' >> /etc/apk/repositories
cat /etc/apk/repositories

#   mount --help  
#   mount the disk read-only
#   mount LABEL=50gb -o ro,remount /root/repo
#   mount LABEL=50gb -o rw,remount /root/repo
mount -r LABEL=50gb /root/repo
mount|egrep repo


apk update
#
# Note for the next installation: Do not install
# "inetutils-ftp"
#
apk add nano inetutils-ftp cfdisk util-linux e2fsprogs e2fsprogs-extra  grub grub-bios


lsblk
blkid
#
# grep -E 'SWAP_SIZE|BOOT_SIZE|ROOT_SIZE' /sbin/setup-disk
#   Sizes are in megabytes
#
# Need space for the "/tmp" partition
#
export BOOTLOADER=grub
export SWAP_SIZE=1024
export BOOT_SIZE=500
export ROOT_SIZE=3644
export EDITOR=nano
export KERNELOPTS="console=tty0 console=ttyS0,115200n8"

env
#
# During setup add a username.
# During setup if a pager is presented, type 'h' and 'q'
#
setup-alpine 
umount /root/repo

#
# Setup the "/tmp" partition
#
# One: /mnt/etc/fstab modified for "/tmp"
mount /dev/vdb3 /mnt
cp -piv /mnt/etc/fstab /root/backup
cat /mnt/etc/fstab
sed -i -e 's/^tmpfs/# tmpfs/' /mnt/etc/fstab
echo 'LABEL=tmp-partition /tmp ext4 defaults 1 2' >> /mnt/etc/fstab
cat /mnt/etc/fstab
umount /mnt

# Two: make the /tmp partition with fdisk
fdisk /dev/vdb

# Three: mkfs.ext4 followed by "poweroff" 
mkfs.ext4 -L tmp-partition /dev/vdb4

# Poweroff the server
poweroff

# Reset the Termux terminal if necessary: "tput reset"
# at the Termux command line or select the Termux session
# reset option.
#
# Booting from the ISO is finished. Remove
#   -drive if=none,file=$ISO,media=cdrom,readonly=on,format=raw,id=drive1
#   -device virtio-blk-pci,drive=drive1,id=virtblk1,bootindex=1
#
# and press the Enter/Return key.
#   

qemu-system-x86_64  -m 1024M  -machine pc  -smp 4  -nographic  -device virtio-rng-pci  -serial mon:stdio  -device virtio-net-pci,netdev=net0 -netdev user,id=net0,ipv6=off,hostfwd=tcp::15022-:22,hostfwd=::15081-:15081  -drive if=none,file=$VMDISK,format=raw,id=drive2 -device virtio-blk-pci,drive=drive2,id=virtblk2,bootindex=1  -drive if=none,file=/storage/emulated/0/Download/50gb.ext,format=raw,id=drive3,readonly=on -device virtio-blk-pci,drive=drive3,id=virtblk3  -virtfs local,security_model=none,id=host,mount_tag=host,path=$NINE_P_DIR 


# If the lines displayed as while booting are truncated use
# the Termux session reset option as the server continues to boot.
#
# Toggle the timestamps: ctrl-a t
# 

#
# When the server boots up login as root.
# 

cat /etc/os-release
uname -a
mkdir /root/backup
mkdir /mnt/repo

lsblk
blkid
df -ahT
df -ahT|grep tmp

cp -pi /etc/apk/repositories /root/backup
cat /etc/apk/repositories
echo '/mnt/repo/alpine/v3.17/main' >> /etc/apk/repositories
echo '/mnt/repo/alpine/v3.17/community' >> /etc/apk/repositories
cat /etc/apk/repositories
mount -r LABEL=50gb /mnt/repo


cat /etc/modules ; cp -pi /etc/modules /root/backup
echo fuse >> /etc/modules ; cat /etc/modules

#
# Install the packages
#
apk update
date

apk add linux-lts linux-virt vim cryptsetup asciinema neofetch xca polkit  screen  rpm cifs-utils device-mapper rng-tools qt5-qtwebglplugin inetutils-telnet perl hdparm fsarchiver progress pv davfs2 libcdio-tools lftp-doc lftp pssh mutt neomutt alpine ncftp sshfs samba apache2 apache2-doc apache2-webdav apache2-ctl apache2-utils alpine-sdk build-base apk-tools alpine-conf busybox libpwquality fakeroot syslinux xorriso mtools dosfstools grub-efi make git sudo lynx links nodejs npm dhcp-server-vanilla ccache ccache-doc udisks2 udisks2-doc libarchive-tools libarchive-doc cmake cmake-doc extra-cmake-modules extra-cmake-modules-doc gcc abuild binutils binutils-doc gcc-doc py3-pip pandoc iproute2 util-linux pciutils usbutils coreutils binutils findutils grep bash bash-doc utmps pass pass-otp darkhttpd vsftpd vsftpd-doc zstd pwgen easy-rsa  markdown expect sshpass keepassxc gzip rpm xz bzip2 gawk bc diffutils psmisc procps shadow util-linux-bash-completion util-linux-login mount umount netcat-openbsd nmap nmap-nping nmap-nselibs nmap-scripts net-tools socat rlwrap iputils perl-digest-sha3 dos2unix gptfdisk sgdisk parted grub grub-bios grub-doc efibootmgr cfdisk lvm2 libusb sfdisk btrfs-progs dosfstools texinfo e2fsprogs e2fsprogs-extra  mkinitfs haveged f2fs-tools jfsutils ntfs-3g ntfs-3g-progs xfsprogs cpio whois wget unzip zip tar curl p7zip ipcalc sed nano fuse-exfat fuse-exfat-utils fuse-exfat-doc nfs-utils ncurses sharutils mandoc man-pages mandoc-apropos docs cmd:rsvg-convert iptables ip6tables perl-net-ssleay stress-ng dbus dbus-x11 mc nnn nnn-bash-completion nnn-plugins nnn-zsh-completion nnn-fish-completion  vifm vifm-fish-completion vifm-zsh-completion  vifm-bash-completion  fish  zsh udisks2-bash-completion ncdu gnome-disk-utility zim chezdav lighttpd lighttpd-doc lighttpd-mod_webdav lighttpd-mod_auth grub-bash-completion apr-util-dbd_mysql apr-util-dbd_pgsql apr-util-dbd_sqlite3 apr-util-ldap uuidgen ed  gifsicle mlocate cadaver

date

cat /boot/grub/grub.cfg


cp -iv /etc/default/grub /root/backup
cp -iv /etc/update-extlinux.conf /root/backup

cat /etc/default/grub

sed -i -e 's/^GRUB_TIMEOUT/# GRUB_TIMEOUT/' /etc/default/grub

sed -i -e 's/^GRUB_DISABLE_SUBMENU/# GRUB_DISABLE_SUBMENU/' /etc/default/grub

sed -i -e 's/^GRUB_CMDLINE_LINUX_DEFAULT/# GRUB_CMDLINE_LINUX_DEFAULT/' /etc/default/grub

echo 'GRUB_TERMINAL="serial console"' >> /etc/default/grub

echo 'GRUB_SERIAL_COMMAND="serial --speed=115200"' >> /etc/default/grub

echo 'GRUB_TIMEOUT=-1' >> /etc/default/grub
echo 'GRUB_DISABLE_SUBMENU=n' >> /etc/default/grub
cat /etc/default/grub

cat /etc/update-extlinux.conf

# nano --linenumbers /etc/update-extlinux.conf

sed -i -e 's/^default=lts/default=virt/' /etc/update-extlinux.conf

cat /etc/update-extlinux.conf|grep -E '^default|^modules'

grep GRUB_CMDLINE_LINUX_DEFAULT /etc/default/grub

sed -i -e 's/default_kernel_opts=quiet/default_kernel_opts="console=tty0 console=ttyS0,115200n8 rootfstype=ext4"/' /etc/update-extlinux.conf


grep -E '^default|^modules' /etc/update-extlinux.conf

#
# Update the settings
#
grub-mkconfig -o /boot/grub/grub.cfg

cat /boot/grub/grub.cfg

#
# Change the shell
#
echo $SHELL
chsh -s /bin/bash root
chsh -s /bin/bash test


mkdir /mnt/9p-host
mkdir /mnt/disk1

export SUDO_EDITOR=nano
export EDITOR=nano

grep wheel /etc/sudoers

## Uncomment the wheel line
# Use the command: "sudoedit /etc/sudoers"
grep wheel /etc/sudoers

#
# Setup lighttpd for WebDAV
#
mkdir -p /var/www/localhost/htdocs /var/log/lighttpd /var/lib/lighttpd

chown  -R lighttpd:lighttpd /var/log/lighttpd /var/lib/lighttpd /var/www/localhost/htdocs

ls -al  /var/www/localhost/htdocs

#
# Create an empty webdav-htpasswd-passwd file
#
touch /etc/lighttpd/webdav-htpasswd-passwd

chown root:lighttpd /etc/lighttpd/webdav-htpasswd-passwd

ls -l /etc/lighttpd/webdav-htpasswd-passwd

stat /etc/lighttpd/webdav-htpasswd-passwd

# 640 (octal) means u=rw,g=r,o-rwx
chmod 640 /etc/lighttpd/webdav-htpasswd-passwd

ls -l /etc/lighttpd/webdav-htpasswd-passwd

stat /etc/lighttpd/webdav-htpasswd-passwd


# Add WebDAV username
htpasswd -m /etc/lighttpd/webdav-htpasswd-passwd test1


cp -pi /etc/lighttpd/webdav.conf /root/backup

#
# Use "here-document" to create /etc/lighttpd/webdav.conf 
#
cat << 'END-OF-WEBDAV-CONF' > /etc/lighttpd/webdav.conf
server.port = 15081
server.upload-dirs = ( "/tmp" )
server.modules += ("mod_alias","mod_auth","mod_webdav","mod_authn_file")
alias.url = ( "/webdav" => "/mnt/disk1" )
$HTTP["url"] =~ "^/webdav($|/)" {
    webdav.activate = "enable"
    webdav.is-readonly = "disable"
    webdav.sqlite-db-name = "/var/lib/lighttpd/webdav-lock.db"
    auth.backend = "htpasswd"
    auth.backend.htpasswd.userfile = "/etc/lighttpd/webdav-htpasswd-passwd"
    auth.require  = ("" => ("method" => "basic","realm" => "realm-webdav","require" => "valid-user"))                       
  }
END-OF-WEBDAV-CONF

cat /etc/lighttpd/webdav.conf

cp -pi /etc/lighttpd/lighttpd.conf /root/backup

echo 'include "webdav.conf"' >> /etc/lighttpd/lighttpd.conf
#
# Check the /etc/lighttpd/lighttpd.conf configuration file
#   lighttpd -tt -f /etc/lighttpd/webdav.conf

lighttpd -tt -f /etc/lighttpd/lighttpd.conf


# Services automatically started
rc-update add lighttpd default


passwd --delete --expire root
passwd --delete --expire test
ls -al /root
rm -f /etc/ssh/ssh*key
rm -i /root/.lesshst
rm -i /root/.ash_history
rm -ir /root/backup
poweroff

#
# Back at the Termux command line
#
cd $HOME
pwd
env

cp -iv $VMDISK $NINE_P_DIR/vm-linux-grub.raw

export VMDISK=$NINE_P_DIR/vm-linux-grub.raw

#
# Boot from vm-linux-grub.raw
#
# Toggle the console timestamps: ctrl-a t
#
qemu-system-x86_64  -m 1024M  -machine pc  -smp 4  -nographic  -device virtio-rng-pci  -serial mon:stdio  -device virtio-net-pci,netdev=net0 -netdev user,id=net0,ipv6=off,hostfwd=tcp::15022-:22,hostfwd=::15081-:15081  -drive if=none,file=$VMDISK,format=raw,id=drive2 -device virtio-blk-pci,drive=drive2,id=virtblk2,bootindex=1  -drive if=none,file=/storage/emulated/0/Download/50gb.ext,format=raw,id=drive3,readonly=on -device virtio-blk-pci,drive=drive3,id=virtblk3  -virtfs local,security_model=none,id=host,mount_tag=host,path=$NINE_P_DIR 

# After the server boots up login as root
#
pwd
echo $SHELL
ls -la

su - test
pwd
echo $SHELL
ls -la
exit

pwd

blkid
df -ahT
mkdir /root/repo
mkdir /root/backup
cat /etc/apk/repositories


mount -r LABEL=50gb /root/repo
mount

#
# NINE_P_DIR=/storage/emulated/0/Download/qemu-test
#
# QEMU 9p: -virtfs local,security_model=none,
#          id=host,mount_tag=host,
#          path=$NINE_P_DIR
#
# For the Linux mount command: "mount_tag=host"
#
# Get GID_NINE_P_DIR
#
groupadd --gid GID_NINE_P_DIR_HERE nine-p-host 
groupmod --append --users test nine-p-host

mount -t 9p -o trans=virtio,version=9p2000.L,msize=1048576 host  /mnt/9p-host

mount
df -hT
ls -lRa /mnt/9p-host

su - test
touch /mnt/9p-host/test.txt
ls -lRa /mnt/9p-host
exit


#
# "QEMU Monitor" commands using "Ctrl-a c" (on/off toggle)
#    info usernet
#    info block
#    drive_add 0 if=none,file=/storage/emulated/0/Download/qemu-test/disk3-1gb.img,format=raw,id=disk3
#    device_add virtio-blk-pci,drive=disk3,id=virt1
#    info block


blkid
lsblk

grep -i virt /var/log/messages | tail -10
dmesg | grep -i virt | tail -5

fdisk -l /dev/vdc

mkfs.ext4 -m 0 -L disk3-ext4 /dev/vdc1
mkfs.vfat -F 32 -n DISK3-VFAT /dev/vdc2
mkfs.exfat -n disk3-exfat /dev/vdc3
mkfs.ntfs --quick --label disk3-ntfs /dev/vdc4

lsblk
blkid|grep vdc

#
# Logout
#
exit

#
# "QEMU Monitor" commands using "Ctrl-a c" 
#    system_powerdown
#

pwd


Termux session for QEMU-Linux-Console
Welcome to Termux!

Community forum: https://termux.com/community
Gitter chat: https://gitter.im/termux/termux
IRC channel: #termux on libera.chat

Working with packages:

* Search packages: pkg search
* Install a package: pkg install
* Upgrade packages: pkg upgrade

Subscribing to additional repositories:

* Root: pkg install root-repo
* X11: pkg install x11-repo

Report issues at https://termux.com/issues

~ $ export NINE_P_DIR=/storage/emulated/0/Download/qemu-test
~ $
~ $ cd $NINE_P_DIR
.../Download/qemu-test $
.../Download/qemu-test $ sha256sum -c alpine-virt-3.17.3-x86_64.iso.sha256
alpine-virt-3.17.3-x86_64.iso: OK
.../Download/qemu-test $
.../Download/qemu-test $ cd $HOME
~ $
~ $ pwd
/data/data/com.termux/files/home
~ $
~ $ export ISO=$NINE_P_DIR/alpine-virt-3.17.3-x86_64.iso
~ $
~ $ dd if=/dev/urandom of=$NINE_P_DIR/disk3-1gb.img bs=1M count=1024
1024+0 records in
1024+0 records out
1073741824 bytes (1.1 GB, 1.0 GiB) copied, 43.5356 s, 24.7 MB/s
~ $
~ $ fdisk $NINE_P_DIR/disk3-1gb.img

Welcome to fdisk (util-linux 2.38.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

Device does not contain a recognized partition table.
Created a new DOS disklabel with disk identifier 0x67aee5a3.

Command (m for help): p
Disk /storage/emulated/0/Download/qemu-test/disk3-1gb.img: 1 GiB, 1073741824 bytes, 2097152 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x67aee5a3

Command (m for help): n
Partition type
p primary (0 primary, 0 extended, 4 free)
e extended (container for logical partitions)
Select (default p):

Using default response p.
Partition number (1-4, default 1):
First sector (2048-2097151, default 2048):
Last sector, +/-sectors or +/-size{K,M,G,T,P} (2048-2097151, default 2097151): +250M

Created a new partition 1 of type 'Linux' and of size 250 MiB.

Command (m for help): p
Disk /storage/emulated/0/Download/qemu-test/disk3-1gb.img: 1 GiB, 1073741824 bytes, 2097152 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x67aee5a3

Device Boot Start End Sectors Size Id Type
/storage/emulated/0/Download/qemu-test/disk3-1gb.img1 2048 514047 512000 250M 83 Linu

Command (m for help): n
Partition type
p primary (1 primary, 0 extended, 3 free)
e extended (container for logical partitions)
Select (default p):

Using default response p.
Partition number (2-4, default 2):
First sector (514048-2097151, default 514048):
Last sector, +/-sectors or +/-size{K,M,G,T,P} (514048-2097151, default 2097151): +250M

Created a new partition 2 of type 'Linux' and of size 250 MiB.

Command (m for help): m

Help:

DOS (MBR)
a toggle a bootable flag
b edit nested BSD disklabel
c toggle the dos compatibility flag

Generic
d delete a partition
F list free unpartitioned space
l list known partition types
n add a new partition
p print the partition table
t change a partition type
v verify the partition table
i print information about a partition

Misc
m print this menu
u change display/entry units
x extra functionality (experts only)

Script
I load disk layout from sfdisk script file
O dump disk layout to sfdisk script file

Save & Exit
w write table to disk and exit
q quit without saving changes

Create a new label
g create a new empty GPT partition table
G create a new empty SGI (IRIX) partition table
o create a new empty DOS partition table
s create a new empty Sun partition table


Command (m for help): t
Partition number (1,2, default 2):
Hex code or alias (type L to list all): L

00 Empty 27 Hidden NTFS Win 82 Linux swap / So c1 DRDOS/sec (FAT-
01 FAT12 39 Plan 9 83 Linux c4 DRDOS/sec (FAT-
02 XENIX root 3c PartitionMagic 84 OS/2 hidden or c6 DRDOS/sec (FAT-
03 XENIX usr 40 Venix 80286 85 Linux extended c7 Syrinx
04 FAT16 <32M 41 PPC PReP Boot 86 NTFS volume set da Non-FS data
05 Extended 42 SFS 87 NTFS volume set db CP/M / CTOS / .
06 FAT16 4d QNX4.x 88 Linux plaintext de Dell Utility
07 HPFS/NTFS/exFAT 4e QNX4.x 2nd part 8e Linux LVM df BootIt
08 AIX 4f QNX4.x 3rd part 93 Amoeba e1 DOS access
09 AIX bootable 50 OnTrack DM 94 Amoeba BBT e3 DOS R/O
0a OS/2 Boot Manag 51 OnTrack DM6 Aux 9f BSD/OS e4 SpeedStor
0b W95 FAT32 52 CP/M a0 IBM Thinkpad hi ea Linux extended
0c W95 FAT32 (LBA) 53 OnTrack DM6 Aux a5 FreeBSD eb BeOS fs
0e W95 FAT16 (LBA) 54 OnTrackDM6 a6 OpenBSD ee GPT
0f W95 Ext'd (LBA) 55 EZ-Drive a7 NeXTSTEP ef EFI (FAT-12/16/
10 OPUS 56 Golden Bow a8 Darwin UFS f0 Linux/PA-RISC b
11 Hidden FAT12 5c Priam Edisk a9 NetBSD f1 SpeedStor
12 Compaq diagnost 61 SpeedStor ab Darwin boot f4 SpeedStor
14 Hidden FAT16 <3 63 GNU HURD or Sys af HFS / HFS+ f2 DOS secondary
16 Hidden FAT16 64 Novell Netware b7 BSDI fs f8 EBBR protective
17 Hidden HPFS/NTF 65 Novell Netware b8 BSDI swap fb VMware VMFS
18 AST SmartSleep 70 DiskSecure Mult bb Boot Wizard hid fc VMware VMKCORE
1b Hidden W95 FAT3 75 PC/IX bc Acronis FAT32 L fd Linux raid auto
1c Hidden W95 FAT3 80 Old Minix be Solaris boot fe LANstep
1e Hidden W95 FAT1 81 Minix / old Lin bf Solaris ff BBT
24 NEC DOS

Aliases:
linux - 83
swap - 82
extended - 05
uefi - EF
raid - FD
lvm - 8E
linuxex - 85
Hex code or alias (type L to list all): c

Changed type of partition 'Linux' to 'W95 FAT32 (LBA)'.

Command (m for help): n
Partition type
p primary (2 primary, 0 extended, 2 free)
e extended (container for logical partitions)
Select (default p):

Using default response p.
Partition number (3,4, default 3):
First sector (1026048-2097151, default 1026048):
Last sector, +/-sectors or +/-size{K,M,G,T,P} (1026048-2097151, default 2097151): +250M

Created a new partition 3 of type 'Linux' and of size 250 MiB.

Command (m for help): t
Partition number (1-3, default 3): 7
Value out of range.
Partition number (1-3, default 3): 3
Hex code or alias (type L to list all): 7

Changed type of partition 'Linux' to 'HPFS/NTFS/exFAT'.

Command (m for help): p
Disk /storage/emulated/0/Download/qemu-test/disk3-1gb.img: 1 GiB, 1073741824 bytes, 2097152 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x67aee5a3

Device Boot Start End Sectors Size Id Type
/storage/emulated/0/Download/qemu-test/disk3-1gb.img1 2048 514047 512000 250M 83 Linu
/storage/emulated/0/Download/qemu-test/disk3-1gb.img2 514048 1026047 512000 250M c W95
/storage/emulated/0/Download/qemu-test/disk3-1gb.img3 1026048 1538047 512000 250M 7 HPFS

Command (m for help): n
Partition type
p primary (3 primary, 0 extended, 1 free)
e extended (container for logical partitions)
Select (default e): p

Selected partition 4
First sector (1538048-2097151, default 1538048):
Last sector, +/-sectors or +/-size{K,M,G,T,P} (1538048-2097151, default 2097151):

Created a new partition 4 of type 'Linux' and of size 273 MiB.

Command (m for help): t
Partition number (1-4, default 4):
Hex code or alias (type L to list all): 7

Changed type of partition 'Linux' to 'HPFS/NTFS/exFAT'.

Command (m for help): p
Disk /storage/emulated/0/Download/qemu-test/disk3-1gb.img: 1 GiB, 1073741824 bytes, 2097152 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x67aee5a3

Device Boot Start End Sectors Size Id Type
/storage/emulated/0/Download/qemu-test/disk3-1gb.img1 2048 514047 512000 250M 83 Linu
/storage/emulated/0/Download/qemu-test/disk3-1gb.img2 514048 1026047 512000 250M c W95
/storage/emulated/0/Download/qemu-test/disk3-1gb.img3 1026048 1538047 512000 250M 7 HPFS
/storage/emulated/0/Download/qemu-test/disk3-1gb.img4 1538048 2097151 559104 273M 7 HPFS

Command (m for help): w
The partition table has been altered.
Syncing disks.

~ $ export VMDISK=$NINE_P_DIR/vm-template-grub.raw
~ $
~ $ qemu-img create -f raw -o preallocation=full $VMDISK 6G
Formatting '/storage/emulated/0/Download/qemu-test/vm-template-grub.raw', fmt=raw size=6442450944 preallocation=full
~ $
~ $ export GID_NINE_P_DIR=$(stat $NINE_P_DIR|grep -i gid)
~ $
~ $ export GID_NINE_P_DIR=$(stat $NINE_P_DIR|grep -i gid)
~ $
~ $ echo $NINE_P_DIR
/storage/emulated/0/Download/qemu-test
~ $
~ $ echo $GID_NINE_P_DIR
Access: (0770/drwxrwx---) Uid: ( 0/ root) Gid: ( 9997/everybody)
~ $
~ $ pwd
/data/data/com.termux/files/home
~ $
~ $ qemu-system-x86_64 -m 1024M -machine pc -smp 4 -nographic -device virtio-rng-pci -serial mon:stdio -device virtio-net-pci,netdev=net0 -netdev user,id=net0,ipv6=off,hostfwd=tcp::15022-:22,hostfwd=::15081-:15081 -drive if=none,file=$ISO,media=cdrom,readonly=on,format=raw,id=drive1 -device virtio-blk-pci,drive=drive1,id=virtblk1,bootindex=1 -drive if=none,file=$VMDISK,format=raw,id=drive2 -device virtio-blk-pci,drive=drive2,id=virtblk2,bootindex=2 -drive if=none,file=/storage/emulated/0/Download/50gb.ext,format=raw,id=drive3,readonly=on -device virtio-blk-pci,drive=drive3,id=virtblk3 -virtfs local,security_model=none,id=host,mount_tag=host,path=$NINE_P_DIR


OpenRC 0.45.2 is starting up Linux 5.15.104-0-virt (x86_64)

* /proc is already mounted * Mounting /run ... * /run/openrc: creating directory * /run/lock: creating directory * /run/lock: correcting owner * Caching service dependencies ... [ ok ] * Remounting devtmpfs on /dev ... [ ok ] * Mounting /dev/mqueue ... [ ok ] * Mounting modloop ... * Verifying modloop [ ok ] * Mounting security filesystem ... [ ok ]
* Mounting debug filesystem ... [ ok ] * Mounting persistent storage (pstore) filesystem ... [ ok ]
* Starting busybox mdev ... [ ok ]
* Scanning hardware for mdev ... [ ok ]
* Loading hardware drivers ... [ ok ]
* Loading modules ... [ ok ] * Setting system clock using the hardware clock [UTC] ... [ ok ] * Checking local filesystems ... [ ok ] * Remounting filesystems ... [ ok ] * Mounting local filesystems ... [ ok ] * Configuring kernel parameters ... [ ok ] * Migrating /var/lock to /run/lock ... [ ok ] * Creating user login records ... [ ok ] * Cleaning /tmp directory ... [ ok ] * Setting hostname ... [ ok ]
* Starting busybox syslog ... [ ok ]
* Starting firstboot ... [ ok ]

Welcome to Alpine Linux 3.17
Kernel 5.15.104-0-virt on an x86_64 (/dev/ttyS0)

localhost login: root
Welcome to Alpine!

The Alpine Wiki contains a large amount of how-to guides and general
information about administrating Alpine systems.
See <https://wiki.alpinelinux.org/>.

You can setup the system with the command: setup-alpine

You may change this message by editing /etc/motd.

localhost:~#
localhost:~# blkid
/dev/loop/0: TYPE="squashfs"
/dev/vdc: LABEL="50gb" UUID="ed64f636-1b13-4695-ad66-82236229d6e4" TYPE="ext4"
/dev/vda2: TYPE="vfat"
/dev/vda1: LABEL="alpine-virt 3.17.3 x86_64" TYPE="iso9660"
/dev/vda: LABEL="alpine-virt 3.17.3 x86_64" TYPE="iso9660"
/dev/loop0: TYPE="squashfs"
localhost:~#
localhost:~# df -h
Filesystem Size Used Available Use% Mounted on
devtmpfs 10.0M 0 10.0M 0% /dev
shm 491.6M 0 491.6M 0% /dev/shm
/dev/vda 49.0M 49.0M 0 100% /media/vda
tmpfs 491.6M 10.4M 481.2M 2% /
tmpfs 196.6M 44.0K 196.6M 0% /run
/dev/loop0 14.1M 14.1M 0 100% /.modloop
localhost:~#
localhost:~# mkdir /root/repo
localhost:~#
localhost:~# mkdir /root/backup
localhost:~#
localhost:~# cat /etc/apk/repositories
/media/vda/apks
localhost:~#
localhost:~# cp -pi /etc/apk/repositories /root/backup
localhost:~#
localhost:~# echo '/root/repo/alpine/v3.17/main' >> /etc/apk/repositories
localhost:~#
localhost:~# echo '/root/repo/alpine/v3.17/community' >> /etc/apk/repositories
localhost:~#
localhost:~# cat /etc/apk/repositories
/media/vda/apks
/root/repo/alpine/v3.17/main
/root/repo/alpine/v3.17/community
localhost:~#
localhost:~# mount -r LABEL=50gb /root/repo
localhost:~#
localhost:~# apk update
3.17.3 [/media/vda/apks]
v3.17.3-51-gb3e182d1e6a [/root/repo/alpine/v3.17/main]
v3.17.3-50-ga35f8409359 [/root/repo/alpine/v3.17/community]
OK: 17818 distinct packages available
localhost:~#
localhost:~# apk add nano inetutils-ftp cfdisk util-linux e2fsprogs e2fsprogs-ex
tra grub grub-bios
(1/53) Installing libblkid (2.38.1-r1)
(2/53) Installing libuuid (2.38.1-r1)
(3/53) Installing libfdisk (2.38.1-r1)
(4/53) Installing libmount (2.38.1-r1)
(5/53) Installing ncurses-terminfo-base (6.3_p20221119-r0)
(6/53) Installing ncurses-libs (6.3_p20221119-r0)
(7/53) Installing libsmartcols (2.38.1-r1)
(8/53) Installing cfdisk (2.38.1-r1)
(9/53) Installing libcom_err (1.46.6-r0)
(10/53) Installing e2fsprogs-libs (1.46.6-r0)
(11/53) Installing e2fsprogs (1.46.6-r0)
(12/53) Installing e2fsprogs-extra (1.46.6-r0)
(13/53) Installing lddtree (1.26-r3)
(14/53) Installing xz-libs (5.2.9-r0)
(15/53) Installing zstd-libs (1.5.5-r0)
(16/53) Installing kmod (30-r1)
(17/53) Installing kmod-openrc (30-r1)
(18/53) Installing argon2-libs (20190702-r2)
(19/53) Installing device-mapper-libs (2.03.17-r1)
(20/53) Installing json-c (0.16-r2)
(21/53) Installing cryptsetup-libs (2.5.0-r2)
(22/53) Installing kmod-libs (30-r1)
(23/53) Installing mkinitfs (3.7.0-r1)
Executing mkinitfs-3.7.0-r1.post-install
(24/53) Installing grub (2.06-r7)
(25/53) Installing grub-bios (2.06-r7)
(26/53) Installing readline (8.2.0-r0)
(27/53) Installing inetutils-ftp (2.4-r0)
(28/53) Installing nano (7.0-r0)
(29/53) Installing util-linux (2.38.1-r1)
(30/53) Installing util-linux-misc (2.38.1-r1)
(31/53) Installing libeconf (0.4.7-r0)
(32/53) Installing linux-pam (1.5.2-r1)
(33/53) Installing runuser (2.38.1-r1)
(34/53) Installing mount (2.38.1-r1)
(35/53) Installing losetup (2.38.1-r1)
(36/53) Installing hexdump (2.38.1-r1)
(37/53) Installing uuidgen (2.38.1-r1)
(38/53) Installing blkid (2.38.1-r1)
(39/53) Installing sfdisk (2.38.1-r1)
(40/53) Installing mcookie (2.38.1-r1)
(41/53) Installing agetty (2.38.1-r1)
(42/53) Installing agetty-openrc (0.45.2-r7)
(43/53) Installing wipefs (2.38.1-r1)
(44/53) Installing umount (2.38.1-r1)
(45/53) Installing util-linux-openrc (2.38.1-r1)
(46/53) Installing flock (2.38.1-r1)
(47/53) Installing lsblk (2.38.1-r1)
(48/53) Installing libcap-ng (0.8.3-r1)
(49/53) Installing setpriv (2.38.1-r1)
(50/53) Installing logger (2.38.1-r1)
(51/53) Installing partx (2.38.1-r1)
(52/53) Installing fstrim (2.38.1-r1)
(53/53) Installing findmnt (2.38.1-r1)
Executing busybox-1.35.0-r29.trigger
OK: 40 MiB in 79 packages
localhost:~#
localhost:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
fd0 2:0 1 0B 0 disk
loop0 7:0 0 14M 1 loop /.modloop
sr0 11:0 1 1024M 0 rom
vda 253:0 0 49M 1 disk /media/vda
├─vda1 253:1 0 49M 1 part
└─vda2 253:2 0 1.4M 1 part
vdb 253:16 0 6G 0 disk
vdc 253:32 0 50G 1 disk /root/repo
localhost:~#
localhost:~# blkid
/dev/loop0: TYPE="squashfs"
/dev/vdc: LABEL="50gb" UUID="ed64f636-1b13-4695-ad66-82236229d6e4" BLOCK_SIZE="4096" TYPE="ext4"
/dev/vda2: SEC_TYPE="msdos" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="77b851c3-02"
/dev/vda1: BLOCK_SIZE="2048" UUID="2022-11-22-03-30-35-00" LABEL="alpine-virt 3.17.3 x86_64" TYPE="iso9660" PTUUID="77b851c3" PTTYPE="dos" PARTUUID="77b851c3-01"
localhost:~#
localhost:~# export BOOTLOADER=grub
localhost:~# export SWAP_SIZE=1024
localhost:~# export BOOT_SIZE=500
localhost:~# export ROOT_SIZE=3644
localhost:~#
localhost:~# export EDITOR=nano
localhost:~# export KERNELOPTS="console=tty0 console=ttyS0,115200n8"
localhost:~#
localhost:~# env
USER=root
SHLVL=1
HOME=/root
PAGER=less
BOOTLOADER=grub
LOGNAME=root
TERM=vt100
ROOT_SIZE=3644
BOOT_SIZE=500
LC_COLLATE=C
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin
LANG=C.UTF-8
SWAP_SIZE=1024
KERNELOPTS=console=tty0 console=ttyS0,115200n8
SHELL=/bin/ash
PWD=/root
CHARSET=UTF-8
EDITOR=nano
localhost:~#
localhost:~# setup-alpine
Enter system hostname (fully qualified form, e.g. 'foo.example.org') [localhost]
Available interfaces are: eth0.
Enter '?' for help on bridges, bonding and vlans.
Which one do you want to initialize? (or '?' or 'done') [eth0]
Ip address for eth0? (or 'dhcp', 'none', '?') [dhcp]
Do you want to do any manual network configuration? (y/n) [n]
udhcpc: started, v1.35.0
udhcpc: broadcasting discover
udhcpc: broadcasting select for 10.0.2.15, server 10.0.2.2
udhcpc: lease of 10.0.2.15 obtained from 10.0.2.2, lease time 86400
Changing password for root
New password:
Bad password: too short
Retype password:
passwd: password for root changed by root
Which timezone are you in? ('?' for list) [UTC]
* Seeding random number generator ...
* Saving 256 bits of creditable seed for next boot
[ ok ]
* Starting busybox acpid ...
[ ok ]
* Starting busybox crond ...
[ ok ]
HTTP/FTP proxy URL? (e.g. 'http://proxy:8080', or 'none') [none]
Which NTP client to run? ('busybox', 'openntpd', 'chrony' or 'none') [chrony] none
wget: bad address 'mirrors.alpinelinux.org'
wget: bad address 'mirrors.alpinelinux.org'

r) Add random from the above list
f) Detect and add fastest mirror from above list
e) Edit /etc/apk/repositories with text editor

Enter mirror number (1-0) or URL to add (or r/f/e/done) [1] done
Setup a user? (enter a lower-case loginname, or 'no') [no] test
Full name for user test [test]
Changing password for test
New password:
Bad password: too short
Retype password:
passwd: password for test changed by root
Enter ssh key or URL for test (or 'none') [none]
(1/1) Installing doas (6.8.2-r3)
Executing doas-6.8.2-r3.post-install
Executing busybox-1.35.0-r29.trigger
OK: 40 MiB in 80 packages
Which ssh server? ('openssh', 'dropbear' or 'none') [openssh]
* service sshd added to runlevel default
* Caching service dependencies ...
[ ok ]
ssh-keygen: generating new host keys: RSA ECDSA ED25519
* Starting sshd ...
[ ok ]
Available disks are:
fd0 (0.0 GB )
sr0 (1.1 GB QEMU QEMU DVD-ROM )
vdb (6.4 GB 0x1af4 )
Which disk(s) would you like to use? (or '?' for help or 'none') [none] vdb
The following disk is selected:
vdb (6.4 GB 0x1af4 )
How would you like to use it? ('sys', 'data', 'crypt', 'lvm' or '?' for help) [?] sys
WARNING: The following disk(s) will be erased:
vdb (6.4 GB 0x1af4 )
WARNING: Erase the above disk(s) and continue? (y/n) [n] y
Creating file systems...
Installing system on /dev/vdb3:
Installing for i386-pc platform.
Installation finished. No error reported.
100% ████████████████████████████████████████████==> initramfs: creating /boot/initramfs-virt
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-virt
Found initrd image: /boot/initramfs-virt
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
done

Installation is complete. Please reboot.
localhost:~#
localhost:~#
localhost:~# umount /root/repo
localhost:~#
localhost:~# mount /dev/vdb3 /mnt
localhost:~# cp -piv /mnt/etc/fstab /root/backup
'/mnt/etc/fstab' -> '/root/backup/fstab'
localhost:~# cat /mnt/etc/fstab
UUID=ada017ef-3181-40be-8e14-f45c49e00f3a / ext4 rw,relatime 0 1
UUID=9adeb32c-979a-47e7-b034-cd800a81e867 /boot ext4 rw,relatime 0 2
UUID=d34884c7-e0f9-4346-ac60-373b204cc274 swap swap defaults 0 0
/dev/cdrom /media/cdrom iso9660 noauto,ro 0 0
/dev/usbdisk /media/usb vfat noauto 0 0
tmpfs /tmp tmpfs nosuid,nodev 0 0
localhost:~#
localhost:~# sed -i -e 's/^tmpfs/# tmpfs/' /mnt/etc/fstab
localhost:~#
localhost:~# echo 'LABEL=tmp-partition /tmp ext4 defaults 1 2' >> /mnt/etc/fstab
localhost:~#
localhost:~# cat /mnt/etc/fstab
UUID=ada017ef-3181-40be-8e14-f45c49e00f3a / ext4 rw,relatime 0 1
UUID=9adeb32c-979a-47e7-b034-cd800a81e867 /boot ext4 rw,relatime 0 2
UUID=d34884c7-e0f9-4346-ac60-373b204cc274 swap swap defaults 0 0
/dev/cdrom /media/cdrom iso9660 noauto,ro 0 0
/dev/usbdisk /media/usb vfat noauto 0 0
# tmpfs /tmp tmpfs nosuid,nodev 0 0
LABEL=tmp-partition /tmp ext4 defaults 1 2
localhost:~# umount /mnt
localhost:~#
localhost:~# fdisk /dev/vdb

Welcome to fdisk (util-linux 2.38.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.


Command (m for help): p
Disk /dev/vdb: 6 GiB, 6442450944 bytes, 12582912 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x30d6984f

Device Boot Start End Sectors Size Id Type
/dev/vdb1 * 2048 1026047 1024000 500M 83 Linux
/dev/vdb2 1026048 3123199 2097152 1G 82 Linux swap / Solaris
/dev/vdb3 3123200 10586111 7462912 3.6G 83 Linux

Command (m for help): n
Partition type
p primary (3 primary, 0 extended, 1 free)
e extended (container for logical partitions)
Select (default e): p

Selected partition 4
First sector (10586112-12582911, default 10586112):
Last sector, +/-sectors or +/-size{K,M,G,T,P} (10586112-12582911, default 12582911):

Created a new partition 4 of type 'Linux' and of size 975 MiB.

Command (m for help): p
Disk /dev/vdb: 6 GiB, 6442450944 bytes, 12582912 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x30d6984f

Device Boot Start End Sectors Size Id Type
/dev/vdb1 * 2048 1026047 1024000 500M 83 Linux
/dev/vdb2 1026048 3123199 2097152 1G 82 Linux swap / Solaris
/dev/vdb3 3123200 10586111 7462912 3.6G 83 Linux
/dev/vdb4 10586112 12582911 1996800 975M 83 Linux

Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.

localhost:~#
localhost:~# mkfs.ext4 -L tmp-partition /dev/vdb4
mke2fs 1.46.6 (1-Feb-2023)
Discarding device blocks: done
Creating filesystem with 249600 4k blocks and 62464 inodes
Filesystem UUID: bc45f4ae-37b9-41fe-a76d-3b3c56187ba5
Superblock backups stored on blocks:
32768, 98304, 163840, 229376

Allocating group tables: done
Writing inode tables: done
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done

localhost:~# poweroff
localhost:~# ^[[30;14R * Stopping sshd ... [ ok ]
* Saving random number generator seed ... * Seeding 256 bits and crediting
* Saving 256 bits of creditable seed for next boot
[ ok ]
* Stopping busybox crond ... [ ok ]
* Stopping busybox syslog ... [ ok ]
* Stopping busybox acpid ... [ ok ]
* Unmounting loop devices
* Remounting /.modloop read only ... [ ok ]
* Unmounting filesystems
* Unmounting /media/vda ... [ ok ]
* Setting hardware clock using the system clock [UTC] ... [ ok ]
* Stopping busybox mdev ... [ ok ]
[ ok ]
* Terminating remaining processes ...[ 2423.748288] reboot: Power down
~ $ qemu-system-x86_64 -m 1024M -machine pc -smp 4 -nographic -device virtio-rng-pci -serial mon:stdio -device virtio-net-pci,netdev=net0 -netdev user,id=net0,ipv6=off,hostfwd=tcp::15022-:22,hostfwd=::15081-:15081 -drive if=none,file=$VMDISK,format=raw,id=drive2 -device virtio-blk-pci,drive=drive2,id=virtblk2,bootindex=1 -drive if=none,file=/storage/emulated/0/Download/50gb.ext,format=raw,id=drive3,readonly=on -device virtio-blk-pci,drive=drive3,id=virtblk3 -virtfs local,security_model=none,id=host,mount_tag=host,path=$NINE_P_DIR



SeaBIOS (version rel-1.16.1-0-g3208b098f51a-prebuilt.qemu.org)


iPXE (http://ipxe.org) 00:04.0 CA00 PCI2.10 PnP PMM+3EFD0FD0+3EF30FD00


Booting from Hard Disk...
GRUB loading.
Welcome to GRUB!

[ 35.328335] ata2.00: ATAPI: QEMU DVD-ROM, 2.5+, max UDMA/100
[ 35.360046] rtc_cmos 00:05: alarms up to one day, y3k, 242 bytes nvram, hpet irqs
[ 35.432965] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input0
[ 35.479927] gre: GRE over IPv4 demultiplexor driver
[ 35.558680] Key type dns_resolver registered
[ 35.581789] IPI shorthand broadcast: enabled
[ 35.692762] registered taskstats version 1
[ 35.708835] Loading compiled-in X.509 certificates
[ 35.773103] scsi 1:0:0:0: CD-ROM QEMU QEMU DVD-ROM 2.5+ PQ: 0 ANSI: 5
[ 37.291875] Loaded X.509 cert 'Build time autogenerated kernel key: 90200cc09a919577283b2cb6eca2ff9ac9891c1d'
[ 37.332738] zswap: loaded using pool lzo/zbud
[ 37.410275] Key type .fscrypt registered
[ 37.412433] Key type fscrypt-provisioning registered
[ 37.504711] Unstable clock detected, switching default tracing clock to "global"
[ 37.504711] If you want to keep using the local clock, then add:
[ 37.504711] "trace_clock=local"
[ 37.504711] on the kernel command line
[ 37.847385] Freeing unused kernel image (initmem) memory: 1824K
[ 37.867821] Write protecting the kernel read-only data: 16384k
[ 37.919116] Freeing unused kernel image (text/rodata gap) memory: 2040K
[ 37.938824] Freeing unused kernel image (rodata/data gap) memory: 1072K
[ 37.948760] rodata_test: all tests were successful
[ 37.957617] Run /init as init process
[ 39.870865] Alpine Init 3.7.0-r1
Alpine Init 3.7.0-r1
[ 39.943585] Loading boot drivers...
* Loading boot drivers: [ 41.376796] ACPI: bus type USB registered
[ 41.384055] usbcore: registered new interface driver usbfs
[ 41.400988] usbcore: registered new interface driver hub
[ 41.405491] usbcore: registered new device driver usb
[ 41.599704] usbcore: registered new interface driver usb-storage
[ 44.902105] loop: module loaded
[ 47.965056] Loading boot drivers: ok.
ok.
[ 48.230211] Mounting root...
* Mounting root: [ 58.235018] sr 1:0:0:0: [sr0] scsi3-mmc drive: 4x/4x cd/rw xa/form2 tray
[ 58.241559] cdrom: Uniform CD-ROM driver Revision: 3.20
[ 64.220685] virtio_blk virtio2: [vda] 12582912 512-byte logical blocks (6.44 GB/6.00 GiB)
[ 64.402095] vda: vda1 vda2 vda3 vda4
[ 64.554445] virtio_blk virtio3: [vdb] 104857600 512-byte logical blocks (53.7 GB/50.0 GiB)
[ 99.978772] EXT4-fs (vda3): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none.
[ 100.052732] Mounting root: ok.
ok.

OpenRC 0.45.2 is starting up Linux 5.15.106-0-virt (x86_64)

* /proc is already mounted
* Mounting /run ... * /run/openrc: creating directory
* /run/lock: creating directory
* /run/lock: correcting owner
* Caching service dependencies ... [ ok ]
* Remounting devtmpfs on /dev ... [ ok ]
* Mounting /dev/mqueue ... [ ok ]
* Mounting security filesystem ... [ ok ]
* Mounting debug filesystem ... [ ok ]
* Mounting persistent storage (pstore) filesystem ... [ ok ]
* Starting busybox mdev ... [ ok ]
* Scanning hardware for mdev ... [ ok ]
* Loading hardware drivers ... [ ok ]
* Loading modules ... [ ok ]
* Setting system clock using the hardware clock [UTC] ... [ ok ]
* Checking local filesystems .../dev/vda3: clean, 2986/233392 files, 51936/932864 blocks
/dev/vda1: clean, 305/128016 files, 64890/512000 blocks
tmp-partition: clean, 11/62464 files, 8637/249600 blocks
[ ok ]
* Remounting root filesystem read/write ... [ ok ]
* Remounting filesystems ... [ ok ]
* Activating swap devices ... [ ok ]
* Mounting local filesystems ... [ ok ]
* Configuring kernel parameters ... [ ok ]
* Migrating /var/lock to /run/lock ... [ ok ]
* Creating user login records ... [ ok ]
* Cleaning /tmp directory ... [ ok ]
* Setting hostname ... [ ok ]
* Starting networking ... * lo ... [ ok ]
* eth0 ...udhcpc: started, v1.35.0
udhcpc: broadcasting discover
udhcpc: broadcasting select for 10.0.2.15, server 10.0.2.2
udhcpc: lease of 10.0.2.15 obtained from 10.0.2.2, lease time 86400
[ ok ]
* Seeding random number generator ... * Saving 256 bits of creditable seed for next boot
[ ok ]
* Starting busybox syslog ... [ ok ]
* Starting busybox acpid ... [ ok ]
* Starting busybox crond ... [ ok ]
* Starting sshd ... [ ok ]

Welcome to Alpine Linux 3.17
Kernel 5.15.106-0-virt on an x86_64 (/dev/ttyS0)

localhost login: root
Password:
Welcome to Alpine!

The Alpine Wiki contains a large amount of how-to guides and general
information about administrating Alpine systems.
See <https://wiki.alpinelinux.org/>.

You can setup the system with the command: setup-alpine

You may change this message by editing /etc/motd.

localhost:~#
localhost:~# cat /etc/os-release
NAME="Alpine Linux"
ID=alpine
VERSION_ID=3.17.3
PRETTY_NAME="Alpine Linux v3.17"
HOME_URL="https://alpinelinux.org/"
BUG_REPORT_URL="https://gitlab.alpinelinux.org/alpine/aports/-/issues"
localhost:~#
localhost:~# uname -a
Linux localhost 5.15.106-0-virt #1-Alpine SMP Wed, 05 Apr 2023 10:48:45 +0000 x86_64 Linux
localhost:~#
localhost:~# mkdir /root/backup
localhost:~# mkdir /mnt/repo
localhost:~#
localhost:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
fd0 2:0 1 0B 0 disk
sr0 11:0 1 1024M 0 rom
vda 253:0 0 6G 0 disk
├─vda1 253:1 0 500M 0 part /boot
├─vda2 253:2 0 1G 0 part [SWAP]
├─vda3 253:3 0 3.6G 0 part /
└─vda4 253:4 0 975M 0 part /tmp
vdb 253:16 0 50G 1 disk
localhost:~# blkid
/dev/vda1: UUID="9adeb32c-979a-47e7-b034-cd800a81e867" BLOCK_SIZE="1024" TYPE="ext4" PARTUUID="30d6984f-01"
/dev/vda4: LABEL="tmp-partition" UUID="bc45f4ae-37b9-41fe-a76d-3b3c56187ba5" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="30d6984f-04"
/dev/vda2: UUID="d34884c7-e0f9-4346-ac60-373b204cc274" TYPE="swap" PARTUUID="30d6984f-02"
/dev/vdb: LABEL="50gb" UUID="ed64f636-1b13-4695-ad66-82236229d6e4" BLOCK_SIZE="4096" TYPE="ext4"
/dev/vda3: UUID="ada017ef-3181-40be-8e14-f45c49e00f3a" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="30d6984f-03"
localhost:~#
localhost:~# df -ahT
Filesystem Type Size Used Available Use% Mounted on
sysfs sysfs 0 0 0 0% /sys
devtmpfs devtmpfs 10.0M 0 10.0M 0% /dev
proc proc 0 0 0 0% /proc
devpts devpts 0 0 0 0% /dev/pts
shm tmpfs 491.6M 0 491.6M 0% /dev/shm
/dev/vda3 ext4 3.4G 67.4M 3.2G 2% /
tmpfs tmpfs 196.6M 108.0K 196.5M 0% /run
mqueue mqueue 0 0 0 0% /dev/mqueue
securityfs securityfs 0 0 0 0% /sys/kernel/security
debugfs debugfs 0 0 0 0% /sys/kernel/debug
pstore pstore 0 0 0 0% /sys/fs/pstore
tracefs tracefs 0 0 0 0% /sys/kernel/debug/tracing
/dev/vda1 ext4 458.3M 21.7M 407.6M 5% /boot
/dev/vda4 ext4 941.3M 32.0K 876.5M 0% /tmp
localhost:~#
localhost:~# df -ahT|grep tmp
devtmpfs devtmpfs 10.0M 0 10.0M 0% /dev
shm tmpfs 491.6M 0 491.6M 0% /dev/shm
tmpfs tmpfs 196.6M 108.0K 196.5M 0% /run
/dev/vda4 ext4 941.3M 32.0K 876.5M 0% /tmp
localhost:~# cp -pi /etc/apk/repositories /root/backup
localhost:~# cat /etc/apk/repositories
#/media/vda/apks
#/root/repo/alpine/v3.17/main
#/root/repo/alpine/v3.17/community
localhost:~#
localhost:~# echo '/mnt/repo/alpine/v3.17/main' >> /etc/apk/repositories
localhost:~#
localhost:~# cat /etc/apk/repositories
#/media/vda/apks
#/root/repo/alpine/v3.17/main
#/root/repo/alpine/v3.17/community
/mnt/repo/alpine/v3.17/main
localhost:~# echo '/mnt/repo/alpine/v3.17/community' >> /etc/apk/repositories
localhost:~#
localhost:~# cat /etc/apk/repositories
#/media/vda/apks
#/root/repo/alpine/v3.17/main
#/root/repo/alpine/v3.17/community
/mnt/repo/alpine/v3.17/main
/mnt/repo/alpine/v3.17/community
localhost:~#
localhost:~# mount -r LABEL=50gb /mnt/repo
localhost:~#
localhost:~# cat /etc/modules ; cp -pi /etc/modules /root/backup
af_packet
ipv6
localhost:~#
localhost:~# echo fuse >> /etc/modules ; cat /etc/modules
af_packet
ipv6
fuse
localhost:~# apk update
v3.17.3-51-gb3e182d1e6a [/mnt/repo/alpine/v3.17/main]
v3.17.3-50-ga35f8409359 [/mnt/repo/alpine/v3.17/community]
OK: 17818 distinct packages available
localhost:~#
localhost:~#
localhost:~# date
Fri Apr 14 09:19:42 UTC 2023
rchive-tools libarchive-doc cmake cmake-doc extra-cmake-modules extra-cmake-modules-doc gcc abuild binutils binutils-doc gcc-doc py3-pip pandoc iproute2 util-linux pciutils usbutils coreutils binutils findutils grep bash bash-doc utmps pass pass-otp darkhttpd vsftpd vsftpd-doc zstd pwgen easy-rsa markdown expect sshpass keepassxc gzip rpm xz bzip2 gawk bc diffutils psmisc procps shadow util-linux-bash-completion util-linux-login mount umount netcat-openbsd nmap nmap-nping nmap-nselibs nmap-scripts net-tools socat rlwrap iputils perl-digest-sha3 dos2unix gptfdisk sgdisk parted grub grub-bios grub-doc efibootmgr cfdisk lvm2 libusb sfdisk btrfs-progs dosfstools texinfo e2fsprogs e2fsprogs-extra mkinitfs haveged f2fs-tools jfsutils ntfs-3g ntfs-3g-progs xfsprogs cpio whois wget unzip zip tar curl p7zip ipcalc sed nano fuse-exfat fuse-exfat-utils fuse-exfat-doc nfs-utils ncurses sharutils mandoc man-pages mandoc-apropos docs cmd:rsvg-convert iptables ip6tables perl-net-ssleay stress-ng dbus dbus-x11 mc nnn nnn-bash-completion nnn-plugins nnn-zsh-completion nnn-fish-completion vifm vifm-fish-completion vifm-zsh-completion vifm-bash-completion fish zsh udisks2-bash-completion ncdu gnome-disk-utility zim chezdav lighttpd lighttpd-doc lighttpd-mod_webdav lighttpd-mod_auth grub-bash-completion apr-util-dbd_mysql apr-util-dbd_pgsql apr-util-dbd_sqlite3 apr-util-ldap uuidgen ed gifsicle mlocate cadaver

date
localhost:~#
localhost:~# apk add linux-lts linux-virt vim cryptsetup asciinema neofetch xca
polkit screen rpm cifs-utils device-mapper rng-tools qt5-qtwebglplugin inetuti
ls-telnet perl hdparm fsarchiver progress pv davfs2 libcdio-tools lftp-doc lftp
pssh mutt neomutt alpine ncftp sshfs samba apache2 apache2-doc apache2-webdav ap
ache2-ctl apache2-utils alpine-sdk build-base apk-tools alpine-conf busybox libp
wquality fakeroot syslinux xorriso mtools dosfstools grub-efi make git sudo lynx
links nodejs npm dhcp-server-vanilla ccache ccache-doc udisks2 udisks2-doc liba
rchive-tools libarchive-doc cmake cmake-doc extra-cmake-modules extra-cmake-modu
les-doc gcc abuild binutils binutils-doc gcc-doc py3-pip pandoc iproute2 util-li
nux pciutils usbutils coreutils binutils findutils grep bash bash-doc utmps pass
pass-otp darkhttpd vsftpd vsftpd-doc zstd pwgen easy-rsa markdown expect sshpa
ss keepassxc gzip rpm xz bzip2 gawk bc diffutils psmisc procps shadow util-linux
-bash-completion util-linux-login mount umount netcat-openbsd nmap nmap-nping nm
ap-nselibs nmap-scripts net-tools socat rlwrap iputils perl-digest-sha3 dos2unix
gptfdisk sgdisk parted grub grub-bios grub-doc efibootmgr cfdisk lvm2 libusb sf
disk btrfs-progs dosfstools texinfo e2fsprogs e2fsprogs-extra mkinitfs haveged
f2fs-tools jfsutils ntfs-3g ntfs-3g-progs xfsprogs cpio whois wget unzip zip tar
curl p7zip ipcalc sed nano fuse-exfat fuse-exfat-utils fuse-exfat-doc nfs-utils
ncurses sharutils mandoc man-pages mandoc-apropos docs cmd:rsvg-convert iptable
s ip6tables perl-net-ssleay stress-ng dbus dbus-x11 mc nnn nnn-bash-completion n
nn-plugins nnn-zsh-completion nnn-fish-completion vifm vifm-fish-completion vif
m-zsh-completion vifm-bash-completion fish zsh udisks2-bash-completion ncdu g
nome-disk-utility zim chezdav lighttpd lighttpd-doc lighttpd-mod_webdav lighttpd
-mod_auth grub-bash-completion apr-util-dbd_mysql apr-util-dbd_pgsql apr-util-db
d_sqlite3 apr-util-ldap uuidgen ed gifsicle mlocate cadaver
(1/773) Installing fakeroot (1.29-r0)
(2/773) Installing libattr (2.5.1-r2)
(3/773) Installing attr (2.5.1-r2)
(4/773) Installing libacl (2.3.1-r1)
(5/773) Installing tar (1.34-r2)
(6/773) Installing pkgconf (1.9.4-r0)
(7/773) Installing patch (2.7.6-r9)
(8/773) Installing libgcc (12.2.1_git20220924-r4)
(9/773) Installing libstdc++ (12.2.1_git20220924-r4)
(10/773) Installing lzip (1.23-r0)
(11/773) Installing ca-certificates (20220614-r4)
(12/773) Installing brotli-libs (1.0.9-r9)
(13/773) Installing nghttp2-libs (1.51.0-r0)
(14/773) Installing libcurl (7.88.1-r1)
(15/773) Installing curl (7.88.1-r1)
(16/773) Installing abuild (3.10.0-r0)
Executing abuild-3.10.0-r0.pre-install
(17/773) Installing gdbm (1.23-r0)
(18/773) Installing libsasl (2.1.28-r3)
(19/773) Installing libldap (2.6.3-r6)
(20/773) Installing alpine (2.26-r1)
(21/773) Installing binutils (2.39-r2)
(22/773) Installing libmagic (5.43-r0)
(23/773) Installing file (5.43-r0)
(24/773) Installing libgomp (12.2.1_git20220924-r4)
(25/773) Installing libatomic (12.2.1_git20220924-r4)
(26/773) Installing gmp (6.2.1-r2)
(27/773) Installing isl25 (0.25-r0)
(28/773) Installing mpfr4 (4.1.0-r0)
(29/773) Installing mpc1 (1.2.1-r1)
(30/773) Installing gcc (12.2.1_git20220924-r4)
(31/773) Installing libstdc++-dev (12.2.1_git20220924-r4)
(32/773) Installing musl-dev (1.2.3-r4)
(33/773) Installing libc-dev (0.7.2-r3)
(34/773) Installing g++ (12.2.1_git20220924-r4)
(35/773) Installing make (4.3-r1)
(36/773) Installing fortify-headers (1.1-r1)
(37/773) Installing build-base (0.5-r3)
(38/773) Installing libexpat (2.5.0-r0)
(39/773) Installing pcre2 (10.42-r0)
(40/773) Installing git (2.38.4-r1)
(41/773) Installing alpine-sdk (1.0-r1)
(42/773) Installing apr (1.7.2-r0)
(43/773) Installing apr-util (1.6.3-r0)
(44/773) Installing pcre (8.45-r2)
(45/773) Installing apache2 (2.4.56-r0)
Executing apache2-2.4.56-r0.pre-install
(46/773) Installing less (608-r1)
(47/773) Installing gzip (1.12-r0)
(48/773) Installing libintl (0.21.1-r1)
(49/773) Installing lynx (2.8.9_p1-r8)
(50/773) Installing apache2-ctl (2.4.56-r0)
(51/773) Installing apache2-doc (2.4.56-r0)
(52/773) Installing apache2-utils (2.4.56-r0)
(53/773) Installing apache2-webdav (2.4.56-r0)
(54/773) Installing mariadb-connector-c (3.3.3-r0)
(55/773) Installing apr-util-dbd_mysql (1.6.3-r0)
(56/773) Installing libpq (15.2-r0)
(57/773) Installing apr-util-dbd_pgsql (1.6.3-r0)
(58/773) Installing sqlite-libs (3.40.1-r0)
(59/773) Installing apr-util-dbd_sqlite3 (1.6.3-r0)
(60/773) Installing apr-util-ldap (1.6.3-r0)
(61/773) Installing libbz2 (1.0.8-r4)
(62/773) Installing libffi (3.4.4-r0)
(63/773) Installing mpdecimal (2.5.1-r1)
(64/773) Installing python3 (3.10.11-r0)
(65/773) Installing ncurses (6.3_p20221119-r0)
(66/773) Installing asciinema (2.2.0-r0)
(67/773) Installing bash (5.2.15-r0)
Executing bash-5.2.15-r0.post-install
(68/773) Installing bash-doc (5.2.15-r0)
(69/773) Installing bc (1.07.1-r2)
(70/773) Installing binutils-doc (2.39-r2)
(71/773) Installing lzo (2.10-r3)
(72/773) Installing eudev-libs (3.2.11-r4)
(73/773) Installing btrfs-progs (6.0.2-r0)
(74/773) Installing bzip2 (1.0.8-r4)
(75/773) Installing neon (0.32.4-r0)
(76/773) Installing cadaver (0.23.3-r6)
(77/773) Installing hiredis (1.0.2-r1)
(78/773) Installing ccache (4.7.5-r0)
(79/773) Installing ccache-doc (4.7.5-r0)
(80/773) Installing dbus-libs (1.14.4-r0)
(81/773) Installing avahi-libs (0.8-r6)
(82/773) Installing libdaemon (0.14-r3)
(83/773) Installing libevent (2.1.12-r5)
(84/773) Installing avahi (0.8-r6)
Executing avahi-0.8-r6.pre-install
(85/773) Installing glib (2.74.6-r0)
(86/773) Installing avahi-glib (0.8-r6)
(87/773) Installing gsettings-desktop-schemas (43.0-r0)
(88/773) Installing nettle (3.8.1-r0)
(89/773) Installing p11-kit (0.24.1-r1)
(90/773) Installing libtasn1 (4.19.0-r0)
(91/773) Installing libunistring (1.1-r0)
(92/773) Installing gnutls (3.7.8-r3)
(93/773) Installing libproxy (0.4.18-r1)
(94/773) Installing glib-networking (2.74.0-r2)
(95/773) Installing libidn2 (2.3.4-r0)
(96/773) Installing libpsl (0.21.1-r1)
(97/773) Installing libsoup3 (3.2.2-r0)
(98/773) Installing libxml2 (2.10.3-r1)
(99/773) Installing phodav (3.0-r0)
(100/773) Installing chezdav (3.0-r0)
(101/773) Installing krb5-conf (1.0-r2)
(102/773) Installing keyutils-libs (1.6.3-r1)
(103/773) Installing libverto (0.3.2-r1)
(104/773) Installing krb5-libs (1.20.1-r0)
(105/773) Installing talloc (2.3.4-r0)
(106/773) Installing libwbclient (4.16.10-r0)
(107/773) Installing cifs-utils (7.0-r0)
(108/773) Installing lz4-libs (1.9.4-r1)
(109/773) Installing libarchive (3.6.1-r2)
(110/773) Installing rhash-libs (1.4.3-r1)
(111/773) Installing libuv (1.44.2-r0)
(112/773) Installing cmake (3.24.4-r0)
(113/773) Installing cmake-doc (3.24.4-r0)
(114/773) Installing libxau (1.0.10-r0)
(115/773) Installing libmd (1.0.4-r0)
(116/773) Installing libbsd (0.11.7-r0)
(117/773) Installing libxdmcp (1.1.4-r0)
(118/773) Installing libxcb (1.15-r0)
(119/773) Installing libx11 (1.8.4-r0)
(120/773) Installing libxext (1.3.5-r0)
(121/773) Installing libxrender (0.9.11-r0)
(122/773) Installing libpng (1.6.38-r0)
(123/773) Installing freetype (2.12.1-r0)
(124/773) Installing fontconfig (2.14.1-r0)
(125/773) Installing pixman (0.42.2-r0)
(126/773) Installing cairo (1.17.6-r3)
(127/773) Installing shared-mime-info (2.2-r2)
(128/773) Installing libjpeg-turbo (2.1.4-r0)
(129/773) Installing libwebp (1.2.4-r1)
(130/773) Installing tiff (4.4.0-r3)
(131/773) Installing gdk-pixbuf (2.42.10-r0)
(132/773) Installing libxft (2.3.7-r0)
(133/773) Installing fribidi (1.0.12-r0)
(134/773) Installing graphite2 (1.3.14-r2)
(135/773) Installing harfbuzz (5.3.1-r1)
(136/773) Installing pango (1.50.13-r0)
(137/773) Installing rsvg-convert (2.55.1-r0)
(138/773) Installing skalibs (2.12.0.1-r0)
(139/773) Installing utmps-libs (0.1.2.0-r1)
(140/773) Installing coreutils (9.1-r0)
(141/773) Installing cpio (2.13-r3)
(142/773) Installing popt (1.19-r0)
(143/773) Installing cryptsetup (2.5.0-r2)
(144/773) Installing cryptsetup-openrc (2.5.0-r2)
(145/773) Installing darkhttpd (1.14-r0)
Executing darkhttpd-1.14-r0.pre-install
(146/773) Installing darkhttpd-openrc (1.14-r0)
(147/773) Installing davfs2 (1.6.1-r0)
Executing davfs2-1.6.1-r0.pre-install
(148/773) Installing dbus (1.14.4-r0)
Executing dbus-1.14.4-r0.pre-install
Executing dbus-1.14.4-r0.post-install
(149/773) Installing dbus-openrc (1.14.4-r0)
(150/773) Installing dbus-x11 (1.14.4-r0)
(151/773) Installing libaio (0.3.113-r0)
(152/773) Installing device-mapper-event-libs (2.03.17-r1)
(153/773) Installing lvm2-libs (2.03.17-r1)
(154/773) Installing device-mapper (2.03.17-r1)
(155/773) Installing dhcp (4.4.3_p1-r1)
Executing dhcp-4.4.3_p1-r1.pre-install
(156/773) Installing dhcp-openrc (4.4.3_p1-r1)
(157/773) Installing dhcp-server-vanilla (4.4.3_p1-r1)
(158/773) Installing diffutils (3.8-r1)
(159/773) Installing mandoc (1.14.6-r6)
(160/773) Installing mandoc-doc (1.14.6-r6)
(161/773) Installing man-pages (6.01-r0)
(162/773) Installing docs (0.2-r6)
(163/773) Installing btrfs-progs-doc (6.0.2-r0)
(164/773) Installing lzo-doc (2.10-r3)
(165/773) Installing harfbuzz-doc (5.3.1-r1)
(166/773) Installing lynx-doc (2.8.9_p1-r8)
(167/773) Installing libwebp-doc (1.2.4-r1)
(168/773) Installing less-doc (608-r1)
(169/773) Installing busybox-doc (1.35.0-r29)
(170/773) Installing alpine-doc (2.26-r1)
(171/773) Installing cadaver-doc (0.23.3-r6)
(172/773) Installing gdk-pixbuf-doc (2.42.10-r0)
(173/773) Installing libjpeg-turbo-doc (2.1.4-r0)
(174/773) Installing mpc1-doc (1.2.1-r1)
(175/773) Installing davfs2-doc (1.6.1-r0)
(176/773) Installing ncurses-doc (6.3_p20221119-r0)
(177/773) Installing gmp-doc (6.2.1-r2)
(178/773) Installing cifs-utils-doc (7.0-r0)
(179/773) Installing libx11-doc (1.8.4-r0)
(180/773) Installing attr-doc (2.5.1-r2)
(181/773) Installing libffi-doc (3.4.4-r0)
(182/773) Installing pango-doc (1.50.13-r0)
(183/773) Installing gzip-doc (1.12-r0)
(184/773) Installing popt-doc (1.19-r0)
(185/773) Installing libxcb-doc (1.15-r0)
(186/773) Installing abuild-doc (3.10.0-r0)
(187/773) Installing freetype-doc (2.12.1-r0)
(188/773) Installing mpdecimal-doc (2.5.1-r1)
(189/773) Installing phodav-doc (3.0-r0)
(190/773) Installing cairo-doc (1.17.6-r3)
(191/773) Installing p11-kit-doc (0.24.1-r1)
(192/773) Installing apk-tools-doc (2.12.10-r1)
(193/773) Installing gdbm-doc (1.23-r0)
(194/773) Installing ca-certificates-doc (20220614-r4)
(195/773) Installing libmd-doc (1.0.4-r0)
(196/773) Installing libarchive-doc (3.6.1-r2)
(197/773) Installing acct-doc (6.6.4-r1)
(198/773) Installing gcc-doc (12.2.1_git20220924-r4)
(199/773) Installing openssl-doc (3.0.8-r3)
(200/773) Installing fribidi-doc (1.0.12-r0)
(201/773) Installing pkgconf-doc (1.9.4-r0)
(202/773) Installing libxrender-doc (0.9.11-r0)
(203/773) Installing libaio-doc (0.3.113-r0)
(204/773) Installing openrc-doc (0.45.2-r7)
(205/773) Installing bc-doc (1.07.1-r2)
(206/773) Installing pcre2-doc (10.42-r0)
(207/773) Installing coreutils-doc (9.1-r0)
(208/773) Installing libxft-doc (2.3.7-r0)
(209/773) Installing dbus-doc (1.14.4-r0)
(210/773) Installing talloc-doc (2.3.4-r0)
(211/773) Installing tar-doc (1.34-r2)
(212/773) Installing libxau-doc (1.0.10-r0)
(213/773) Installing avahi-doc (0.8-r6)
(214/773) Installing cryptsetup-doc (2.5.0-r2)
(215/773) Installing libxml2-doc (2.10.3-r1)
(216/773) Installing patch-doc (2.7.6-r9)
(217/773) Installing neon-doc (0.32.4-r0)
(218/773) Installing mpfr4-doc (4.1.0-r0)
(219/773) Installing doas-doc (6.8.2-r3)
(220/773) Installing libxdmcp-doc (1.1.4-r0)
(221/773) Installing libbsd-doc (0.11.7-r0)
(222/773) Installing ifupdown-ng-doc (0.12.1-r1)
(223/773) Installing asciinema-doc (2.2.0-r0)
(224/773) Installing libpng-doc (1.6.38-r0)
(225/773) Installing make-doc (4.3-r1)
(226/773) Installing cpio-doc (2.13-r3)
(227/773) Installing gnutls-doc (3.7.8-r3)
(228/773) Installing tiff-doc (4.4.0-r3)
(229/773) Installing diffutils-doc (3.8-r1)
(230/773) Installing rsvg-convert-doc (2.55.1-r0)
(231/773) Installing fontconfig-doc (2.14.1-r0)
(232/773) Installing libpsl-doc (0.21.1-r1)
(233/773) Installing git-doc (2.38.4-r1)
(234/773) Installing skalibs-doc (2.12.0.1-r0)
(235/773) Installing libdaemon-doc (0.14-r3)
(236/773) Installing glib-doc (2.74.6-r0)
(237/773) Installing shared-mime-info-doc (2.2-r2)
(238/773) Installing libidn2-doc (2.3.4-r0)
(239/773) Installing lzip-doc (1.23-r0)
(240/773) Installing dhcp-doc (4.4.3_p1-r1)
(241/773) Installing pcre-doc (8.45-r2)
(242/773) Installing libtasn1-doc (4.19.0-r0)
(243/773) Installing libxext-doc (1.3.5-r0)
(244/773) Installing zlib-doc (1.2.13-r0)
(245/773) Installing readline-doc (8.2.0-r0)
(246/773) Installing curl-doc (7.88.1-r1)
(247/773) Installing python3-doc (3.10.11-r0)
(248/773) Installing bzip2-doc (1.0.8-r4)
(249/773) Installing file-doc (5.43-r0)
(250/773) Installing fakeroot-doc (1.29-r0)
(251/773) Installing libunistring-doc (1.1-r0)
(252/773) Installing json-c-doc (0.16-r2)
(253/773) Installing dos2unix (7.4.3-r1)
(254/773) Installing dos2unix-doc (7.4.3-r1)
(255/773) Installing dosfstools (4.2-r1)
(256/773) Installing dosfstools-doc (4.2-r1)
(257/773) Installing e2fsprogs-doc (1.46.6-r0)
(258/773) Installing easy-rsa (3.1.1-r0)
(259/773) Installing easy-rsa-doc (3.1.1-r0)
(260/773) Installing ed (1.18-r2)
(261/773) Installing ed-doc (1.18-r2)
(262/773) Installing efivar-libs (38-r1)
(263/773) Installing efibootmgr (18-r0)
(264/773) Installing efibootmgr-doc (18-r0)
(265/773) Installing tzdata (2023c-r0)
(266/773) Installing tzdata-doc (2023c-r0)
(267/773) Installing tcl (8.6.12-r1)
(268/773) Installing tcl-doc (8.6.12-r1)
(269/773) Installing expect (5.45.4-r3)
(270/773) Installing expect-doc (5.45.4-r3)
(271/773) Installing extra-cmake-modules (5.100.0-r0)
(272/773) Installing extra-cmake-modules-doc (5.100.0-r0)
(273/773) Installing f2fs-tools-libs (1.15.0-r0)
(274/773) Installing f2fs-tools (1.15.0-r0)
(275/773) Installing f2fs-tools-doc (1.15.0-r0)
(276/773) Installing findutils (4.9.0-r3)
(277/773) Installing findutils-doc (4.9.0-r3)
(278/773) Installing libpcre2-32 (10.42-r0)
(279/773) Installing fish (3.5.1-r1)
Executing fish-3.5.1-r1.post-install
(280/773) Installing curl-fish-completion (7.88.1-r1)
(281/773) Installing fish-doc (3.5.1-r1)
(282/773) Installing libgpg-error (1.46-r1)
(283/773) Installing libgpg-error-doc (1.46-r1)
(284/773) Installing libgcrypt (1.10.1-r0)
(285/773) Installing libgcrypt-doc (1.10.1-r0)
(286/773) Installing fsarchiver (0.8.6-r1)
(287/773) Installing fsarchiver-doc (0.8.6-r1)
(288/773) Installing fuse-common (3.12.0-r0)
(289/773) Installing fuse-openrc (3.12.0-r0)
(290/773) Installing fuse (2.9.9-r2)
(291/773) Installing fuse-doc (2.9.9-r2)
(292/773) Installing fuse-exfat (1.3.0-r3)
(293/773) Installing fuse-exfat-doc (1.3.0-r3)
(294/773) Installing fuse-exfat-utils (1.3.0-r3)
(295/773) Installing gawk (5.1.1-r1)
(296/773) Installing gawk-doc (5.1.1-r1)
(297/773) Installing gifsicle (1.93-r1)
(298/773) Installing gifsicle-doc (1.93-r1)
(299/773) Installing gptfdisk (1.0.9-r2)
(300/773) Installing gptfdisk-doc (1.0.9-r2)
(301/773) Installing parted (3.5-r0)
(302/773) Installing parted-doc (3.5-r0)
(303/773) Installing libatasmart (0.19-r2)
(304/773) Installing libatasmart-doc (0.19-r2)
(305/773) Installing libbytesize (2.7-r1)
(306/773) Installing libbytesize-doc (2.7-r1)
(307/773) Installing dmraid (1.0.0_rc16-r1)
(308/773) Installing dmraid-doc (1.0.0_rc16-r1)
(309/773) Installing ndctl-libs (74-r0)
(310/773) Installing nspr (4.35-r0)
(311/773) Installing nss (3.85-r1)
(312/773) Installing libassuan (2.5.5-r1)
(313/773) Installing libassuan-doc (2.5.5-r1)
(314/773) Installing pinentry (1.2.1-r0)
Executing pinentry-1.2.1-r0.post-install
(315/773) Installing pinentry-doc (1.2.1-r0)
(316/773) Installing gnupg-gpgconf (2.2.40-r0)
(317/773) Installing gpg (2.2.40-r0)
(318/773) Installing npth (1.6-r2)
(319/773) Installing gpg-agent (2.2.40-r0)
(320/773) Installing libksba (1.6.3-r0)
(321/773) Installing libksba-doc (1.6.3-r0)
(322/773) Installing gpgsm (2.2.40-r0)
(323/773) Installing gpgme (1.18.0-r0)
(324/773) Installing gpgme-doc (1.18.0-r0)
(325/773) Installing volume_key (0.3.12-r3)
(326/773) Installing volume_key-doc (0.3.12-r3)
(327/773) Installing yaml (0.2.5-r0)
(328/773) Installing libblockdev (2.28-r0)
(329/773) Installing libgudev (237-r1)
(330/773) Installing polkit-libs (122-r0)
(331/773) Installing udisks2-libs (2.9.4-r1)
(332/773) Installing udisks2 (2.9.4-r1)
(333/773) Installing udisks2-doc (2.9.4-r1)
(334/773) Installing libatk-1.0 (2.46.0-r0)
(335/773) Installing sound-theme-freedesktop (0.8-r0)
(336/773) Installing libltdl (2.4.7-r1)
(337/773) Installing libogg (1.3.5-r2)
(338/773) Installing libogg-doc (1.3.5-r2)
(339/773) Installing libvorbis (1.3.7-r0)
(340/773) Installing libvorbis-doc (1.3.7-r0)
(341/773) Installing libcanberra (0.30-r9)
(342/773) Installing libcanberra-doc (0.30-r9)
(343/773) Installing hicolor-icon-theme (0.17-r2)
(344/773) Installing gtk-update-icon-cache (3.24.36-r0)
(345/773) Installing libxcomposite (0.4.5-r1)
(346/773) Installing libxcomposite-doc (0.4.5-r1)
(347/773) Installing libxfixes (6.0.0-r0)
(348/773) Installing libxfixes-doc (6.0.0-r0)
(349/773) Installing libxcursor (1.2.1-r1)
(350/773) Installing libxcursor-doc (1.2.1-r1)
(351/773) Installing libxdamage (1.1.5-r1)
(352/773) Installing libxi (1.8-r0)
(353/773) Installing libxi-doc (1.8-r0)
(354/773) Installing libxinerama (1.1.5-r0)
(355/773) Installing libxinerama-doc (1.1.5-r0)
(356/773) Installing libxrandr (1.5.3-r0)
(357/773) Installing libxrandr-doc (1.5.3-r0)
(358/773) Installing libxtst (1.2.4-r0)
(359/773) Installing libxtst-doc (1.2.4-r0)
(360/773) Installing at-spi2-core (2.46.0-r0)
(361/773) Installing at-spi2-core-doc (2.46.0-r0)
(362/773) Installing libatk-bridge-2.0 (2.46.0-r0)
(363/773) Installing cairo-gobject (1.17.6-r3)
(364/773) Installing cups-libs (2.4.2-r1)
(365/773) Installing libepoxy (1.5.10-r0)
(366/773) Installing wayland-libs-client (1.21.0-r1)
(367/773) Installing wayland-libs-cursor (1.21.0-r1)
(368/773) Installing wayland-libs-egl (1.21.0-r1)
(369/773) Installing xkeyboard-config (2.37-r0)
(370/773) Installing xkeyboard-config-doc (2.37-r0)
(371/773) Installing libxkbcommon (1.4.1-r0)
(372/773) Installing xkbcli-doc (1.4.1-r0)
(373/773) Installing gtk+3.0 (3.24.36-r0)
Executing gtk+3.0-3.24.36-r0.post-install
(374/773) Installing gtk+3.0-doc (3.24.36-r0)
(375/773) Installing libcanberra-gtk3 (0.30-r9)
(376/773) Installing libdvdcss (1.4.3-r0)
(377/773) Installing libdvdcss-doc (1.4.3-r0)
(378/773) Installing libdvdread (6.1.3-r0)
(379/773) Installing libdvdread-doc (6.1.3-r0)
(380/773) Installing libelogind (246.10-r5)
(381/773) Installing libhandy1 (1.8.2-r0)
(382/773) Installing libnotify (0.8.1-r1)
(383/773) Installing cracklib-words (2.9.8-r0)
(384/773) Installing cracklib (2.9.8-r0)
(385/773) Installing linux-pam-doc (1.5.2-r1)
(386/773) Installing libpwquality (1.4.4-r3)
(387/773) Installing libpwquality-doc (1.4.4-r3)
(388/773) Installing libsecret (0.20.5-r0)
(389/773) Installing libsecret-doc (0.20.5-r0)
(390/773) Installing gnome-disk-utility (43.0-r0)
(391/773) Installing gnome-disk-utility-doc (43.0-r0)
(392/773) Installing grep (3.8-r1)
(393/773) Installing grep-doc (3.8-r1)
(394/773) Installing kmod-doc (30-r1)
(395/773) Installing mkinitfs-doc (3.7.0-r1)
(396/773) Installing grub-doc (2.06-r7)
(397/773) Installing grub-bash-completion (2.06-r7)
(398/773) Installing grub-efi (2.06-r7)
(399/773) Installing haveged (1.9.18-r0)
(400/773) Installing haveged-openrc (1.9.18-r0)
(401/773) Installing haveged-doc (1.9.18-r0)
(402/773) Installing hdparm (9.65-r0)
(403/773) Installing hdparm-doc (9.65-r0)
(404/773) Installing inetutils-ftp-doc (2.4-r0)
(405/773) Installing inetutils-telnet (2.4-r0)
(406/773) Installing inetutils-telnet-doc (2.4-r0)
ERROR: inetutils-telnet-doc-2.4-r0: trying to overwrite usr/share/info/inetutils.info owned by inetutils-ftp-doc-2.4-r0.
(407/773) Installing libmnl (1.0.5-r0)
(408/773) Installing libnftnl (1.2.4-r0)
(409/773) Installing iptables (1.8.8-r2)
(410/773) Installing iptables-doc (1.8.8-r2)
(411/773) Installing iptables-openrc (1.8.8-r2)
(412/773) Installing ip6tables (1.8.8-r2)
(413/773) Installing ip6tables-openrc (1.8.8-r2)
(414/773) Installing libmaxminddb-libs (1.7.1-r0)
(415/773) Installing libmaxminddb (1.7.1-r0)
(416/773) Installing libmaxminddb-doc (1.7.1-r0)
(417/773) Installing ipcalc (1.0.1-r1)
(418/773) Installing ipcalc-doc (1.0.1-r1)
(419/773) Installing musl-fts (1.2.7-r3)
(420/773) Installing libelf (0.187-r2)
(421/773) Installing iproute2-minimal (6.0.0-r1)
(422/773) Installing ifupdown-ng-iproute2 (0.12.1-r1)
(423/773) Installing iproute2-tc (6.0.0-r1)
(424/773) Installing iproute2-ss (6.0.0-r1)
(425/773) Installing iproute2 (6.0.0-r1)
Executing iproute2-6.0.0-r1.post-install
(426/773) Installing iproute2-doc (6.0.0-r1)
(427/773) Installing iputils (20211215-r0)
(428/773) Installing jfsutils (1.1.15-r4)
(429/773) Installing jfsutils-doc (1.1.15-r4)
(430/773) Installing icu-data-full (72.1-r1)
(431/773) Installing icu-libs (72.1-r1)
(432/773) Installing libpcre2-16 (10.42-r0)
(433/773) Installing qt5-qtbase (5.15.6_git20221010-r0)
(434/773) Installing qt5-qtbase-doc (5.15.6_git20221010-r0)
(435/773) Installing libice (1.0.10-r1)
(436/773) Installing libice-doc (1.0.10-r1)
(437/773) Installing libsm (1.2.3-r1)
(438/773) Installing libsm-doc (1.2.3-r1)
(439/773) Installing libxt (1.2.1-r0)
(440/773) Installing libxt-doc (1.2.1-r0)
(441/773) Installing libxmu (1.1.4-r0)
(442/773) Installing libxmu-doc (1.1.4-r0)
(443/773) Installing xset (1.2.4-r1)
(444/773) Installing xset-doc (1.2.4-r1)
(445/773) Installing xprop (1.2.5-r1)
(446/773) Installing xprop-doc (1.2.5-r1)
(447/773) Installing xdg-utils (1.1.3-r4)
(448/773) Installing xdg-utils-doc (1.1.3-r4)
(449/773) Installing mesa (22.2.5-r1)
(450/773) Installing hwdata-pci (0.364-r0)
(451/773) Installing libpciaccess (0.17-r0)
(452/773) Installing libpciaccess-doc (0.17-r0)
(453/773) Installing libdrm (2.4.114-r0)
(454/773) Installing wayland-libs-server (1.21.0-r1)
(455/773) Installing libxxf86vm (1.1.5-r0)
(456/773) Installing libxxf86vm-doc (1.1.5-r0)
(457/773) Installing mesa-glapi (22.2.5-r1)
(458/773) Installing libxshmfence (1.3.1-r0)
(459/773) Installing mesa-gl (22.2.5-r1)
(460/773) Installing qt5-qtdeclarative (5.15.6_git20220908-r0)
(461/773) Installing qt5-qtwayland (5.15.6_git20220927-r1)
(462/773) Installing mesa-gbm (22.2.5-r1)
(463/773) Installing mesa-egl (22.2.5-r1)
(464/773) Installing libevdev (1.13.0-r0)
(465/773) Installing libevdev-doc (1.13.0-r0)
(466/773) Installing mtdev (1.1.6-r1)
(467/773) Installing libinput-libs (1.22.1-r0)
(468/773) Installing xcb-util-wm (0.4.2-r0)
(469/773) Installing xcb-util (0.4.0-r3)
(470/773) Installing xcb-util-image (0.4.1-r0)
(471/773) Installing xcb-util-keysyms (0.4.1-r0)
(472/773) Installing xcb-util-renderutil (0.3.10-r0)
(473/773) Installing libxkbcommon-x11 (1.4.1-r0)
(474/773) Installing qt5-qtbase-x11 (5.15.6_git20221010-r0)
(475/773) Installing qt5-qtsvg (5.15.6_git20220908-r0)
(476/773) Installing qt5-qtx11extras (5.15.6_git20220816-r0)
(477/773) Installing botan-libs (2.19.3-r0)
(478/773) Installing minizip (1.2.13-r0)
(479/773) Installing pcsc-lite-libs (1.9.9-r0)
(480/773) Installing libqrencode (4.1.1-r1)
(481/773) Installing libqrencode-doc (4.1.1-r1)
(482/773) Installing libusb (1.0.26-r0)
(483/773) Installing keepassxc (2.7.4-r0)
(484/773) Installing keepassxc-doc (2.7.4-r0)
(485/773) Installing lftp (4.9.2-r4)
(486/773) Installing lftp-doc (4.9.2-r4)
(487/773) Installing libarchive-tools (3.6.1-r2)
(488/773) Installing libcddb (1.3.2-r4)
(489/773) Installing libcdio (2.1.0-r1)
(490/773) Installing libcdio-doc (2.1.0-r1)
(491/773) Installing libcdio-tools (2.1.0-r1)
(492/773) Installing libdbi (0.9.0-r2)
(493/773) Installing libdbi-doc (0.9.0-r2)
(494/773) Installing lua5.4-libs (5.4.4-r6)
(495/773) Installing lighttpd (1.4.67-r0)
Executing lighttpd-1.4.67-r0.pre-install
(496/773) Installing lighttpd-doc (1.4.67-r0)
(497/773) Installing lighttpd-openrc (1.4.67-r0)
(498/773) Installing lighttpd-mod_auth (1.4.67-r0)
(499/773) Installing lighttpd-mod_webdav (1.4.67-r0)
(500/773) Installing links (2.28-r0)
(501/773) Installing links-doc (2.28-r0)
(502/773) Installing linux-lts (5.15.106-r0)
(503/773) Installing linux-lts-doc (5.15.106-r0)
(504/773) Installing lvm2 (2.03.17-r1)
(505/773) Installing lvm2-openrc (2.03.17-r1)
(506/773) Installing lvm2-doc (2.03.17-r1)
(507/773) Installing mandoc-apropos (1.14.6-r6)
(508/773) Installing perl (5.36.0-r0)
(509/773) Installing perl-doc (5.36.0-r0)
(510/773) Installing perl-error (0.17029-r1)
(511/773) Installing perl-error-doc (0.17029-r1)
(512/773) Installing perl-git (2.38.4-r1)
(513/773) Installing git-perl (2.38.4-r1)
(514/773) Installing markdown (1.0.1-r3)
(515/773) Installing markdown-doc (1.0.1-r3)
(516/773) Installing gpm-libs (1.20.7-r2)
(517/773) Installing slang (2.3.3-r0)
(518/773) Installing slang-doc (2.3.3-r0)
(519/773) Installing libssh2 (1.10.0-r3)
(520/773) Installing libssh2-doc (1.10.0-r3)
(521/773) Installing mc (4.8.28-r0)
(522/773) Installing mc-doc (4.8.28-r0)
(523/773) Installing mlocate (0.26-r8)
Executing mlocate-0.26-r8.pre-install
(524/773) Installing mlocate-doc (0.26-r8)
(525/773) Installing mtools (4.0.42-r0)
(526/773) Installing mtools-doc (4.0.42-r0)
(527/773) Installing libidn (1.41-r0)
(528/773) Installing libidn-doc (1.41-r0)
(529/773) Installing libgsasl (2.2.0-r0)
(530/773) Installing libgsasl-doc (2.2.0-r0)
(531/773) Installing mutt (2.2.9-r0)
(532/773) Installing mutt-doc (2.2.9-r0)
(533/773) Installing nano-doc (7.0-r0)
(534/773) Installing ncdu (1.17-r1)
(535/773) Installing ncdu-doc (1.17-r1)
(536/773) Installing ncftp (3.2.6-r5)
(537/773) Installing ncftp-doc (3.2.6-r5)
(538/773) Installing neofetch (7.1.0-r1)
(539/773) Installing neofetch-doc (7.1.0-r1)
(540/773) Installing gpg-wks-server (2.2.40-r0)
(541/773) Installing gpgv (2.2.40-r0)
(542/773) Installing gnupg-dirmngr (2.2.40-r0)
(543/773) Installing gnupg-utils (2.2.40-r0)
(544/773) Installing gnupg-wks-client (2.2.40-r0)
(545/773) Installing gnupg (2.2.40-r0)
(546/773) Installing gnupg-doc (2.2.40-r0)
(547/773) Installing gmime (3.2.13-r0)
(548/773) Installing gmime-doc (3.2.13-r0)
(549/773) Installing libxapian (1.4.21-r0)
(550/773) Installing notmuch-libs (0.37-r1)
(551/773) Installing neomutt (20220429-r2)
(552/773) Installing neomutt-doc (20220429-r2)
(553/773) Installing mii-tool (2.10-r0)
(554/773) Installing net-tools (2.10-r0)
(555/773) Installing net-tools-doc (2.10-r0)
(556/773) Installing netcat-openbsd (1.130-r4)
(557/773) Installing netcat-openbsd-doc (1.130-r4)
(558/773) Installing libtirpc-conf (1.3.3-r0)
(559/773) Installing libtirpc (1.3.3-r0)
(560/773) Installing libtirpc-doc (1.3.3-r0)
(561/773) Installing rpcbind (1.2.6-r1)
Executing rpcbind-1.2.6-r1.pre-install
(562/773) Installing rpcbind-doc (1.2.6-r1)
(563/773) Installing rpcbind-openrc (1.2.6-r1)
(564/773) Installing libnfsidmap (2.6.2-r0)
(565/773) Installing nfs-utils (2.6.2-r0)
(566/773) Installing nfs-utils-doc (2.6.2-r0)
(567/773) Installing nfs-utils-openrc (2.6.2-r0)
(568/773) Installing lua5.3-libs (5.3.6-r4)
(569/773) Installing libpcap (1.10.1-r1)
(570/773) Installing libpcap-doc (1.10.1-r1)
(571/773) Installing nmap (7.93-r0)
(572/773) Installing nmap-doc (7.93-r0)
(573/773) Installing nmap-nping (7.93-r0)
(574/773) Installing nmap-nselibs (7.93-r0)
(575/773) Installing nmap-scripts (7.93-r0)
(576/773) Installing nnn (4.6-r0)
(577/773) Installing nnn-doc (4.6-r0)
(578/773) Installing nnn-fish-completion (4.6-r0)
(579/773) Installing nnn-bash-completion (4.6-r0)
(580/773) Installing nnn-plugins (4.6-r0)
Executing nnn-plugins-4.6-r0.post-install
* To use nnn plugins you have to install them into your HOME, run: nnn-getplugs.
(581/773) Installing nnn-zsh-completion (4.6-r0)
(582/773) Installing c-ares (1.18.1-r1)
(583/773) Installing c-ares-doc (1.18.1-r1)
(584/773) Installing nodejs (18.14.2-r0)
(585/773) Installing nodejs-doc (18.14.2-r0)
(586/773) Installing npm (9.1.2-r0)
(587/773) Installing npm-doc (9.1.2-r0)
(588/773) Installing ntfs-3g-libs (2022.10.3-r0)
(589/773) Installing ntfs-3g (2022.10.3-r0)
(590/773) Installing ntfs-3g-doc (2022.10.3-r0)
(591/773) Installing ntfs-3g-progs (2022.10.3-r0)
(592/773) Installing libedit-doc (20221030.3.1-r0)
(593/773) Installing openssh-doc (9.1_p1-r2)
(594/773) Installing p7zip (17.04-r3)
(595/773) Installing p7zip-doc (17.04-r3)
(596/773) Installing pandoc (2.19.2-r0)
(597/773) Installing pandoc-doc (2.19.2-r0)
(598/773) Installing tree (2.0.4-r0)
(599/773) Installing tree-doc (2.0.4-r0)
(600/773) Installing pass (1.7.4-r1)
(601/773) Installing pass-doc (1.7.4-r1)
(602/773) Installing pass-fish-completion (1.7.4-r1)
(603/773) Installing oath-toolkit-liboath (2.6.7-r2)
(604/773) Installing oath-toolkit-oathtool (2.6.7-r2)
(605/773) Installing pass-otp (1.2.0-r0)
(606/773) Installing pass-otp-doc (1.2.0-r0)
(607/773) Installing pciutils-libs (3.9.0-r0)
(608/773) Installing pciutils (3.9.0-r0)
(609/773) Installing pciutils-doc (3.9.0-r0)
(610/773) Installing perl-digest-sha3 (1.05-r0)
(611/773) Installing perl-digest-sha3-doc (1.05-r0)
(612/773) Installing perl-net-ssleay (1.92-r2)
(613/773) Installing perl-net-ssleay-doc (1.92-r2)
(614/773) Installing polkit-common (122-r0)
Executing polkit-common-122-r0.pre-install
(615/773) Installing duktape (2.7.0-r0)
(616/773) Installing polkit (122-r0)
(617/773) Installing polkit-openrc (122-r0)
(618/773) Installing polkit-doc (122-r0)
(619/773) Installing libproc (3.3.17-r2)
(620/773) Installing procps (3.3.17-r2)
(621/773) Installing procps-doc (3.3.17-r2)
(622/773) Installing progress (0.16-r0)
(623/773) Installing progress-doc (0.16-r0)
(624/773) Installing psmisc (23.5-r0)
(625/773) Installing psmisc-doc (23.5-r0)
(626/773) Installing pssh (2.3.4-r2)
(627/773) Installing pssh-doc (2.3.4-r2)
(628/773) Installing pv (1.6.20-r1)
(629/773) Installing pv-doc (1.6.20-r1)
(630/773) Installing pwgen (2.08-r2)
(631/773) Installing pwgen-doc (2.08-r2)
(632/773) Installing py3-six (1.16.0-r3)
(633/773) Installing py3-retrying (1.3.3-r3)
(634/773) Installing py3-parsing (3.0.9-r0)
(635/773) Installing py3-packaging (21.3-r2)
(636/773) Installing py3-setuptools (65.6.0-r0)
(637/773) Installing py3-pip (22.3.1-r1)
(638/773) Installing py3-pip-doc (22.3.1-r1)
(639/773) Installing qt5-qtwebsockets (5.15.6_git20220907-r0)
(640/773) Installing qt5-qtwebglplugin (5.15.6_git20220816-r0)
(641/773) Installing qt5-qtwebglplugin-doc (5.15.6_git20220816-r0)
(642/773) Installing rlwrap (0.46.1-r0)
(643/773) Installing rlwrap-doc (0.46.1-r0)
(644/773) Installing jitterentropy-library (3.3.1-r0)
(645/773) Installing jitterentropy-library-doc (3.3.1-r0)
(646/773) Installing rng-tools (6.15-r1)
(647/773) Installing rng-tools-openrc (6.15-r1)
(648/773) Installing rng-tools-doc (6.15-r1)
(649/773) Installing rpm (4.18.0-r1)
(650/773) Installing rpm-doc (4.18.0-r1)
(651/773) Installing samba-common (4.16.10-r0)
(652/773) Installing tevent (0.13.0-r0)
(653/773) Installing samba-util-libs (4.16.10-r0)
(654/773) Installing jansson (2.14-r0)
(655/773) Installing lmdb (0.9.29-r2)
(656/773) Installing lmdb-doc (0.9.29-r2)
(657/773) Installing tdb-libs (1.4.6-r0)
(658/773) Installing ldb (2.5.3-r0)
(659/773) Installing ldb-doc (2.5.3-r0)
(660/773) Installing samba-libs (4.16.10-r0)
(661/773) Installing samba-common-server-libs (4.16.10-r0)
(662/773) Installing samba-client-libs (4.16.10-r0)
(663/773) Installing liburing (2.3-r0)
(664/773) Installing liburing-doc (2.3-r0)
(665/773) Installing samba-server (4.16.10-r0)
(666/773) Installing samba-server-openrc (4.16.10-r0)
(667/773) Installing libsmbclient (4.16.10-r0)
(668/773) Installing samba-client (4.16.10-r0)
(669/773) Installing samba-common-tools (4.16.10-r0)
(670/773) Installing samba (4.16.10-r0)
(671/773) Installing samba-doc (4.16.10-r0)
(672/773) Installing libutempter (1.2.1-r5)
(673/773) Installing libutempter-doc (1.2.1-r5)
(674/773) Installing screen (4.9.0-r0)
(675/773) Installing screen-doc (4.9.0-r0)
(676/773) Installing sed (4.9-r0)
(677/773) Installing sed-doc (4.9-r0)
(678/773) Installing sgdisk (1.0.9-r2)
(679/773) Installing shadow (4.13-r0)
(680/773) Installing shadow-doc (4.13-r0)
(681/773) Installing xz (5.2.9-r0)
(682/773) Installing xz-doc (5.2.9-r0)
(683/773) Installing sharutils (4.15.2-r2)
(684/773) Installing sharutils-doc (4.15.2-r2)
(685/773) Installing socat (1.7.4.4-r0)
(686/773) Installing socat-doc (1.7.4.4-r0)
(687/773) Installing fuse3-libs (3.12.0-r0)
(688/773) Installing fuse3 (3.12.0-r0)
(689/773) Installing fuse3-doc (3.12.0-r0)
(690/773) Installing sshfs (3.7.3-r0)
(691/773) Installing sshfs-doc (3.7.3-r0)
(692/773) Installing sshpass (1.09-r1)
(693/773) Installing sshpass-doc (1.09-r1)
(694/773) Installing judy (1.0.5-r1)
(695/773) Installing judy-doc (1.0.5-r1)
(696/773) Installing liblksctp (1.0.19-r1)
(697/773) Installing stress-ng (0.14.00-r0)
(698/773) Installing stress-ng-doc (0.14.00-r0)
(699/773) Installing sudo (1.9.12_p2-r1)
(700/773) Installing sudo-doc (1.9.12_p2-r1)
(701/773) Installing syslinux (6.04_pre1-r11)
(702/773) Installing syslinux-doc (6.04_pre1-r11)
(703/773) Installing texinfo (7.0.1-r0)
(704/773) Installing texinfo-doc (7.0.1-r0)
(705/773) Installing udisks2-bash-completion (2.9.4-r1)
(706/773) Installing unzip (6.0-r13)
(707/773) Installing unzip-doc (6.0-r13)
(708/773) Installing hwdata-usb (0.364-r0)
(709/773) Installing usbutils (015-r0)
(710/773) Installing usbutils-doc (015-r0)
(711/773) Installing libeconf-doc (0.4.7-r0)
(712/773) Installing util-linux-doc (2.38.1-r1)
(713/773) Installing libcap-ng-doc (0.8.3-r1)
(714/773) Installing util-linux-bash-completion (2.38.1-r1)
(715/773) Installing util-linux-login (2.38.1-r1)
(716/773) Installing util-linux-login-doc (2.38.1-r1)
(717/773) Installing s6-ipcserver (2.11.1.2-r0)
(718/773) Installing utmps (0.1.2.0-r1)
Executing utmps-0.1.2.0-r1.pre-install
(719/773) Installing utmps-doc (0.1.2.0-r1)
(720/773) Installing utmps-openrc (0.1.2.0-r1)
(721/773) Installing vifm (0.12.1-r1)
(722/773) Installing vifm-doc (0.12.1-r1)
(723/773) Installing vifm-fish-completion (0.12.1-r1)
(724/773) Installing vifm-bash-completion (0.12.1-r1)
(725/773) Installing vifm-zsh-completion (0.12.1-r1)
(726/773) Installing xxd (9.0.0999-r0)
(727/773) Installing vim (9.0.0999-r0)
(728/773) Installing vim-doc (9.0.0999-r0)
(729/773) Installing vsftpd (3.0.5-r2)
Executing vsftpd-3.0.5-r2.pre-install
(730/773) Installing vsftpd-doc (3.0.5-r2)
(731/773) Installing vsftpd-openrc (3.0.5-r2)
(732/773) Installing wget (1.21.3-r2)
(733/773) Installing wget-doc (1.21.3-r2)
(734/773) Installing whois (5.5.14-r0)
(735/773) Installing whois-doc (5.5.14-r0)
(736/773) Installing qt5-qtbase-sqlite (5.15.6_git20221010-r0)
(737/773) Installing llvm15-libs (15.0.7-r0)
(738/773) Installing clang15-libclang (15.0.7-r0)
(739/773) Installing qt5-qttools (5.15.6_git20220907-r1)
(740/773) Installing xca (2.4.0-r2)
(741/773) Installing xca-doc (2.4.0-r2)
(742/773) Installing inih (56-r0)
(743/773) Installing userspace-rcu (0.13.2-r0)
(744/773) Installing userspace-rcu-doc (0.13.2-r0)
(745/773) Installing xfsprogs (6.0.0-r0)
(746/773) Installing xfsprogs-doc (6.0.0-r0)
(747/773) Installing libburn (1.5.4-r2)
(748/773) Installing libburn-doc (1.5.4-r2)
(749/773) Installing libisofs (1.5.4-r2)
(750/773) Installing libisoburn (1.5.4-r2)
(751/773) Installing libisoburn-doc (1.5.4-r2)
(752/773) Installing xorriso (1.5.4-r2)
(753/773) Installing gobject-introspection (1.74.0-r1)
(754/773) Installing gobject-introspection-doc (1.74.0-r1)
(755/773) Installing py3-gobject3 (3.42.2-r0)
(756/773) Installing py3-xdg (0.28-r0)
(757/773) Installing zim (0.75.1-r0)
(758/773) Installing zim-doc (0.75.1-r0)
(759/773) Installing zip (3.0-r10)
(760/773) Installing zip-doc (3.0-r10)
(761/773) Installing zsh (5.9-r0)
Executing zsh-5.9-r0.post-install
(762/773) Installing gcc-zsh-completion (5.9-r0)
(763/773) Installing pass-zsh-completion (1.7.4-r1)
(764/773) Installing apk-tools-zsh-completion (2.12.10-r1)
(765/773) Installing openrc-zsh-completion (0.45.2-r7)
(766/773) Installing zsh-pcre (5.9-r0)
(767/773) Installing py3-pip-zsh-completion (22.3.1-r1)
(768/773) Installing git-zsh-completion (5.9-r0)
(769/773) Installing zsh-doc (5.9-r0)
(770/773) Installing lynx-zsh-completion (5.9-r0)
(771/773) Installing curl-zsh-completion (7.88.1-r1)
(772/773) Installing zstd (1.5.5-r0)
(773/773) Installing zstd-doc (1.5.5-r0)
Executing busybox-1.35.0-r29.trigger
Executing ca-certificates-20220614-r4.trigger
Executing glib-2.74.6-r0.trigger
Executing shared-mime-info-2.2-r2.trigger
Executing gdk-pixbuf-2.42.10-r0.trigger
Executing dbus-1.14.4-r0.trigger
Executing gtk-update-icon-cache-3.24.36-r0.trigger
Executing cracklib-2.9.8-r0.trigger
Executing kmod-30-r1.trigger
Executing mkinitfs-3.7.0-r1.trigger
==> initramfs: creating /boot/initramfs-lts
Executing grub-2.06-r7.trigger
Generating grub configuration file ...
sort: fflush failed: 'standard output': Broken pipe
sort: write error
Found linux image: /boot/vmlinuz-virt
Found initrd image: /boot/initramfs-virt
fgrep: warning: fgrep is obsolescent; using grep -F
Found linux image: /boot/vmlinuz-lts
Found initrd image: /boot/initramfs-lts
fgrep: warning: fgrep is obsolescent; using grep -F
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
done
Executing mandoc-apropos-1.14.6-r6.trigger
Executing syslinux-6.04_pre1-r11.trigger
WARNING: Root device is not specified in /etc/update-extlinux.conf.
/boot is device /dev/vda1
extlinux: no previous syslinux boot sector found
1 error; 1701 MiB in 865 packages
localhost:~#
localhost:~# date
Fri Apr 14 10:36:27 UTC 2023
localhost:~#
localhost:~# apk del inetutils-telnet inetutils-ftp
(1/4) Purging inetutils-ftp-doc (2.4-r0)
(2/4) Purging inetutils-ftp (2.4-r0)
(3/4) Purging inetutils-telnet-doc (2.4-r0)
(4/4) Purging inetutils-telnet (2.4-r0)
Executing busybox-1.35.0-r29.trigger
Executing mandoc-apropos-1.14.6-r6.trigger
OK: 1700 MiB in 861 packages
localhost:~#
localhost:~# apk add inetutils-telnet
(1/2) Installing inetutils-telnet (2.4-r0)
(2/2) Installing inetutils-telnet-doc (2.4-r0)
Executing busybox-1.35.0-r29.trigger
Executing mandoc-apropos-1.14.6-r6.trigger

OK: 1701 MiB in 863 packages
localhost:~#
localhost:~# cat /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
load_env
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi

function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}

function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}

if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_msdos
insmod ext2
search --no-floppy --fs-uuid --set=root ada017ef-3181-40be-8e14-f45c49e00f3a
font="/usr/share/grub/unicode.pf2"
fi

if loadfont $font ; then
set gfxmode=auto
load_video
insmod gfxterm
fi
terminal_output gfxterm
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=2
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=2
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Alpine Linux v3.17, with Linux virt' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-virt-advanced-ada017ef-3181-40be-8e14-f45c49e00f3a' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
search --no-floppy --fs-uuid --set=root 9adeb32c-979a-47e7-b034-cd800a81e867
echo 'Loading Linux virt ...'
linux /vmlinuz-virt root=UUID=ada017ef-3181-40be-8e14-f45c49e00f3a ro modules=sd-mod,usb-storage,ext4 quiet modules=sd-mod,usb-storage,ext4 console=tty0 console=ttyS0,115200n8 rootfstype=ext4
echo 'Loading initial ramdisk ...'
initrd /initramfs-virt
}
menuentry 'Alpine Linux v3.17, with Linux lts' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-lts-advanced-ada017ef-3181-40be-8e14-f45c49e00f3a' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
search --no-floppy --fs-uuid --set=root 9adeb32c-979a-47e7-b034-cd800a81e867
echo 'Loading Linux lts ...'
linux /vmlinuz-lts root=UUID=ada017ef-3181-40be-8e14-f45c49e00f3a ro modules=sd-mod,usb-storage,ext4 quiet modules=sd-mod,usb-storage,ext4 console=tty0 console=ttyS0,115200n8 rootfstype=ext4
echo 'Loading initial ramdisk ...'
initrd /initramfs-lts
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###

### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg
fi
### END /etc/grub.d/41_custom ###
localhost:~#
localhost:~#
localhost:~#
localhost:~# cp -iv /etc/default/grub /root/backup
'/etc/default/grub' -> '/root/backup/grub'
localhost:~#
localhost:~# cp -iv /etc/update-extlinux.conf /root/backup
'/etc/update-extlinux.conf' -> '/root/backup/update-extlinux.conf'
localhost:~#
localhost:~# cat /etc/default/grub
GRUB_TIMEOUT=2
GRUB_DISABLE_SUBMENU=y
GRUB_DISABLE_RECOVERY=true
GRUB_CMDLINE_LINUX_DEFAULT="modules=sd-mod,usb-storage,ext4 console=tty0 console=ttyS0,115200n8 rootfstype=ext4"
localhost:~#
localhost:~#
localhost:~# sed -i -e 's/^GRUB_TIMEOUT/# GRUB_TIMEOUT/' /etc/default/grub
localhost:~#
localhost:~# sed -i -e 's/^GRUB_DISABLE_SUBMENU/# GRUB_DISABLE_SUBMENU/' /etc/de
fault/grub
localhost:~#
localhost:~# sed -i -e 's/^GRUB_CMDLINE_LINUX_DEFAULT/# GRUB_CMDLINE_LINUX_DEFAULT/' /etc/default/grub
localhost:~#
localhost:~# echo 'GRUB_TERMINAL="serial console"' >> /etc/default/grub
localhost:~#
localhost:~# echo 'GRUB_SERIAL_COMMAND="serial --speed=115200"' >> /etc/default/
grub
localhost:~# echo 'GRUB_TIMEOUT=-1' >> /etc/default/grub
localhost:~#
localhost:~# echo 'GRUB_DISABLE_SUBMENU=n' >> /etc/default/grub
localhost:~# cat /etc/default/grub
# GRUB_TIMEOUT=2
# GRUB_DISABLE_SUBMENU=y
GRUB_DISABLE_RECOVERY=true
# GRUB_CMDLINE_LINUX_DEFAULT="modules=sd-mod,usb-storage,ext4 console=tty0 console=ttyS0,115200n8 rootfstype=ext4"
GRUB_TERMINAL="serial console"
GRUB_SERIAL_COMMAND="serial --speed=115200"
GRUB_TIMEOUT=-1
GRUB_DISABLE_SUBMENU=n
localhost:~#
localhost:~# cat /etc/update-extlinux.conf
# configuration for extlinux config builder

# overwrite
# Overwrite current /boot/extlinux.conf. If this is not '1' we will only
# write to /boot/extlinux.conf.new
overwrite=1

# vesa_menu
# use fancy vesa menu (vesamenu.c32) menus, won't work with serial
vesa_menu=0

# default_kernel_opts
# default kernel options
default_kernel_opts=quiet

# modules
# modules which should be loaded before pivot_root
modules=sd-mod,usb-storage,ext4

# root
# root device - if not specified, will be guessed using
# blkid -o export /dev/root
root=

# verbose
# if set to non-zero, update-extlinux will be a lot more verbose.
verbose=0

# hidden
# if set to non-zero, the boot menu will be hidden by default.
hidden=1

# timeout
# number of seconds to wait before booting default
timeout=1

# default
# default kernel to boot
default=lts

# serial_port
# serial port number - if not specified, serial console will be disabled
serial_port=

# serial_baud
# the baudrate for the serial port. Will use 115200 if unset
serial_baud=115200

# xen_opts
# options to hand to xen hypervisor, useful ones are:
# dom0_mem=384M (give domain-0 environment 384M ram)
xen_opts=dom0_mem=384M

# if you copy /usr/share/syslinux/reboot.c32 to /boot/, a menu entry
# will be auto-generated for it

# if you copy hdt.c32, libgpl.c32, and libmenu.c32 from /usr/share/syslinux/
# to /boot/, a menu entry will be auto-generated for HDT

# if you download and install /boot/memtest, then if HDT is present it
# will use it, else a separate menu entry will be auto-generated for
# memtest

# optional password
# you can generate a SHA512 password using: mkpasswd
#
# if you assign a password, you should make this file world-unreadable
#
# if a password is assigned, the menu entries can't be edited at boot
# time, and HDT if present is password-protected
#
# you can also include "MENU PASSWD" in any custom entries you have in
# /etc/update-extlinux.d/
password=''
localhost:~#
localhost:~# sed -i -e 's/^default=lts/default=virt/' /etc/update-extlinux.conf
localhost:~#
localhost:~# cat /etc/update-extlinux.conf|grep -E '^default|^modules'
default_kernel_opts=quiet
modules=sd-mod,usb-storage,ext4
default=virt
localhost:~#
localhost:~# grep GRUB_CMDLINE_LINUX_DEFAULT /etc/default/grub
# GRUB_CMDLINE_LINUX_DEFAULT="modules=sd-mod,usb-storage,ext4 console=tty0 console=ttyS0,115200n8 rootfstype=ext4"
localhost:~#
localhost:~#
localhost:~# sed -i -e 's/default_kernel_opts=quiet/default_kernel_opts="console=tty0 console=ttyS0,115200n8 rootfstype=ext4"/' /etc/update-extlinux.conf localhost:~#
localhost:~# grep -E '^default|^modules' /etc/update-extlinux.conf
default_kernel_opts="console=tty0 console=ttyS0,115200n8 rootfstype=ext4"
modules=sd-mod,usb-storage,ext4
default=virt
localhost:~#
localhost:~# grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-virt
Found initrd image: /boot/initramfs-virt
fgrep: warning: fgrep is obsolescent; using grep -F
Found linux image: /boot/vmlinuz-lts
Found initrd image: /boot/initramfs-lts
fgrep: warning: fgrep is obsolescent; using grep -F
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
done
localhost:~#
localhost:~# cat /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
load_env
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}

function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}

serial --speed=115200
terminal_input serial console
terminal_output serial console
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=-1
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=-1
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Alpine Linux v3.17' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-ada017ef-3181-40be-8e14-f45c49e00f3a' { load_video
insmod gzio
insmod part_msdos
insmod ext2
search --no-floppy --fs-uuid --set=root 9adeb32c-979a-47e7-b034-cd800a81e867
echo 'Loading Linux virt ...'
linux /vmlinuz-virt root=UUID=ada017ef-3181-40be-8e14-f45c49e00f3a ro modules=sd-mod,usb-storage,ext4 console=tty0 console=ttyS0,115200n8 rootfstype=ext4
echo 'Loading initial ramdisk ...'
initrd /initramfs-virt
}
submenu 'Advanced options for Alpine Linux v3.17' $menuentry_id_option 'gnulinux-advanced-ada017ef-3181-40be-8e14-f45c49e00f3a' {
menuentry 'Alpine Linux v3.17, with Linux virt' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-virt-advanced-ada017ef-3181-40be-8e14-f45c49e00f3a' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
search --no-floppy --fs-uuid --set=root 9adeb32c-979a-47e7-b034-cd800a81e867 echo 'Loading Linux virt ...'
linux /vmlinuz-virt root=UUID=ada017ef-3181-40be-8e14-f45c49e00f3a ro modules=sd-mod,usb-storage,ext4 console=tty0 console=ttyS0,115200n8 rootfstype=ext4
echo 'Loading initial ramdisk ...'
initrd /initramfs-virt
}
menuentry 'Alpine Linux v3.17, with Linux lts' --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-lts-advanced-ada017ef-3181-40be-8e14-f45c49e00f3a' {
load_video
insmod gzio
insmod part_msdos
insmod ext2
search --no-floppy --fs-uuid --set=root 9adeb32c-979a-47e7-b034-cd800a81e867
echo 'Loading Linux lts ...'
linux /vmlinuz-lts root=UUID=ada017ef-3181-40be-8e14-f45c49e00f3a ro modules=sd-mod,usb-storage,ext4 console=tty0 console=ttyS0,115200n8 rootfstype=ext4
echo 'Loading initial ramdisk ...'
initrd /initramfs-lts
}
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###

### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the # menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg
fi
### END /etc/grub.d/41_custom ###
localhost:~#
localhost:~#
localhost:~# echo $SHELL
/bin/ash
localhost:~#
localhost:~# chsh -s /bin/bash root
Password:
localhost:~#
localhost:~# chsh -s /bin/bash test
Password:
localhost:~#
localhost:~# mkdir /mnt/9p-host
localhost:~#
localhost:~# mkdir /mnt/disk1
localhost:~#
localhost:~# export SUDO_EDITOR=nano
localhost:~#
localhost:~# export EDITOR=nano
localhost:~#
localhost:~# grep wheel /etc/sudoers
## Uncomment to allow members of group wheel to execute any command
# %wheel ALL=(ALL:ALL) ALL
# %wheel ALL=(ALL:ALL) NOPASSWD: ALL
localhost:~#
localhost:~# grep wheel /etc/sudoers
## Uncomment to allow members of group wheel to execute any command
%wheel ALL=(ALL:ALL) ALL
# %wheel ALL=(ALL:ALL) NOPASSWD: ALL
localhost:~#
localhost:~#
localhost:~# mkdir -p /var/www/localhost/htdocs /var/log/lighttpd /var
/lib/lighttpd
localhost:~#
localhost:~# chown -R lighttpd:lighttpd /var/log/lighttpd /var/lib/li
ghttpd /var/www/localhost/htdocs
localhost:~#
localhost:~# ls -al /var/www/localhost/htdocs
total 12
drwxr-xr-x 2 lighttpd lighttpd 4096 Apr 14 09:39 .
drwxr-xr-x 4 root root 4096 Apr 14 09:39 ..
-rw-r--r-- 1 lighttpd lighttpd 45 Mar 7 19:33 index.html
localhost:~#
localhost:~# touch /etc/lighttpd/webdav-htpasswd-passwd
localhost:~#
localhost:~# chown root:lighttpd /etc/lighttpd/webdav-htpasswd-passwd
localhost:~#
localhost:~# ls -l /etc/lighttpd/webdav-htpasswd-passwd
-rw-r--r-- 1 root lighttpd 0 Apr 14 09:55 /etc/lighttpd/webdav-htpasswd-passwd
localhost:~#
localhost:~# stat /etc/lighttpd/webdav-htpasswd-passwd
File: /etc/lighttpd/webdav-htpasswd-passwd
Size: 0 Blocks: 0 IO Block: 4096 regular empty file
Device: 253,3 Inode: 52583 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 105/lighttpd)
Access: 2023-04-14 09:55:13.810000000 +0000
Modify: 2023-04-14 09:55:13.810000000 +0000
Change: 2023-04-14 09:55:27.960000000 +0000
Birth: -
localhost:~#
localhost:~# chmod 640 /etc/lighttpd/webdav-htpasswd-passwd
localhost:~#
localhost:~# ls -l /etc/lighttpd/webdav-htpasswd-passwd
-rw-r----- 1 root lighttpd 0 Apr 14 09:55 /etc/lighttpd/webdav-htpasswd-passwd
localhost:~#
localhost:~# stat /etc/lighttpd/webdav-htpasswd-passwd
File: /etc/lighttpd/webdav-htpasswd-passwd
Size: 0 Blocks: 0 IO Block: 4096 regular empty file
Device: 253,3 Inode: 52583 Links: 1
Access: (0640/-rw-r-----) Uid: ( 0/ root) Gid: ( 105/lighttpd)
Access: 2023-04-14 09:55:13.810000000 +0000
Modify: 2023-04-14 09:55:13.810000000 +0000
Change: 2023-04-14 09:56:14.200000000 +0000
Birth: -
localhost:~#
localhost:~# htpasswd -m /etc/lighttpd/webdav-htpasswd-passwd test1
New password:
Re-type new password:
Adding password for user test1
localhost:~#
localhost:~# cp -pi /etc/lighttpd/webdav.conf /root/backup
cp: cannot stat '/etc/lighttpd/webdav.conf': No such file or directory
localhost:~#
localhost:~# cat << 'END-OF-WEBDAV-CONF' > /etc/lighttpd/webdav.conf
> server.port = 15081
> server.upload-dirs = ( "/tmp" )
> server.modules += ("mod_alias","mod_auth","mod_webdav","mod_authn_fi
le")
> alias.url = ( "/webdav" => "/mnt/disk1" )
> $HTTP["url"] =~ "^/webdav($|/)" {
> webdav.activate = "enable"
> webdav.is-readonly = "disable"
> webdav.sqlite-db-name = "/var/lib/lighttpd/webdav-lock.db"
> auth.backend = "htpasswd"
> auth.backend.htpasswd.userfile = "/etc/lighttpd/webdav-htpasswd-
passwd"
> auth.require = ("" => ("method" => "basic","realm" => "realm-we
bdav","require" => "valid-user"))
> }
> END-OF-WEBDAV-CONF
localhost:~#
localhost:~# cat /etc/lighttpd/webdav.conf
server.port = 15081
server.upload-dirs = ( "/tmp" )
server.modules += ("mod_alias","mod_auth","mod_webdav","mod_authn_file")
alias.url = ( "/webdav" => "/mnt/disk1" )
$HTTP["url"] =~ "^/webdav($|/)" {
webdav.activate = "enable"
webdav.is-readonly = "disable"
webdav.sqlite-db-name = "/var/lib/lighttpd/webdav-lock.db"
auth.backend = "htpasswd"
auth.backend.htpasswd.userfile = "/etc/lighttpd/webdav-htpasswd-passwd"
auth.require = ("" => ("method" => "basic","realm" => "realm-webdav","require" => "valid-user"))
}
localhost:~#
localhost:~# cp -pi /etc/lighttpd/lighttpd.conf /root/backup
localhost:~#
localhost:~#
localhost:~# echo 'include "webdav.conf"' >> /etc/lighttpd/lighttpd.conf
localhost:~#
localhost:~#
localhost:~# lighttpd -tt -f /etc/lighttpd/lighttpd.conf
localhost:~#
localhost:~#
localhost:~# rc-update add lighttpd default
* service lighttpd added to runlevel default
localhost:~#
localhost:~# passwd --delete --expire root
passwd: password changed.
localhost:~#
localhost:~# passwd --delete --expire test
passwd: password changed.
localhost:~#
localhost:~# ls -al /root
total 24
drwx------ 3 root root 4096 Apr 14 11:46 .
drwxr-xr-x 22 root root 4096 Apr 14 09:10 ..
-rw------- 1 root root 6050 Apr 14 11:50 .ash_history
-rw------- 1 root root 99 Apr 14 11:46 .bash_history
drwxr-xr-x 2 root root 4096 Apr 14 11:19 backup
localhost:~#
localhost:~# ls -al /home/test
total 8
drwxr-sr-x 2 test test 4096 Apr 14 11:46 .
drwxr-xr-x 3 root root 4096 Apr 14 08:49 ..
localhost:~#
localhost:~# rm -i /etc/ssh/ssh*key
rm: remove regular file '/etc/ssh/ssh_host_ecdsa_key'? y
rm: remove regular file '/etc/ssh/ssh_host_ed25519_key'? y
rm: remove regular file '/etc/ssh/ssh_host_rsa_key'? y
localhost:~#
localhost:~# rm -i /root/*history*
rm: cannot remove '/root/*history*': No such file or directory
localhost:~#
localhost:~# rm -i /root/.*history*
rm: remove regular file '/root/.ash_history'? y
rm: remove regular file '/root/.bash_history'? y
localhost:~#
localhost:~# rm -ir /root/backup
rm: descend into directory '/root/backup'? y
rm: remove regular file '/root/backup/modules'? y
rm: remove regular file '/root/backup/update-extlinux.conf'? y
rm: remove regular file '/root/backup/repositories'? y
rm: remove regular file '/root/backup/grub'? y
rm: remove regular file '/root/backup/lighttpd.conf'? y
rm: remove directory '/root/backup'? y
localhost:~# poweroff
localhost:~# * Caching service dependencies ... [ ok ]
* Stopping sshd ... [ ok ]
* Saving random number generator seed ... * Seeding 256 bits and
crediting
* Saving 256 bits of creditable seed for next boot
[ ok ]
* Stopping busybox crond ... [ ok ]
* Stopping busybox syslog ... [ ok ]
* Stopping busybox acpid ... [ ok ]
* Unmounting loop devices
* Unmounting filesystems
* Unmounting /mnt/repo ... [ ok ]
* Unmounting /tmp ... [ ok ]
* Unmounting /boot ... [ ok ]
* Deactivating swap devices ... [ ok ]
* Setting hardware clock using the system clock [UTC] ... [ ok ]
* Stopping busybox mdev ... [ ok ]
* Terminating remaining processes ...[10426.117825] reboot: Power down
~ $ cd $HOME
~ $ pwd
/data/data/com.termux/files/home
~ $
~ $ env
SHELL=/data/data/com.termux/files/usr/bin/bash
COLORTERM=truecolor
HISTCONTROL=ignoreboth
VMDISK=/storage/emulated/0/Download/qemu-test/vm-template-grub.raw
PREFIX=/data/data/com.termux/files/usr
JAVA_HOME=/data/data/com.termux/files/usr/opt/openjdk
TERMUX_IS_DEBUGGABLE_BUILD=1
TERMUX_MAIN_PACKAGE_FORMAT=debian
PWD=/data/data/com.termux/files/home
NINE_P_DIR=/storage/emulated/0/Download/qemu-test
TERMUX_VERSION=0.118.0
EXTERNAL_STORAGE=/sdcard
LD_PRELOAD=/data/data/com.termux/files/usr/lib/libtermux-exec.so
TERMUX_API_VERSION=0.50.1
HOME=/data/data/com.termux/files/home
LANG=en_US.UTF-8
TERMUX_APK_RELEASE=GITHUB
DEX2OATBOOTCLASSPATH=/apex/com.android.art/javalib/core-oj.jar:/apex/com.android.art/javalib/core-libart.jar:/apex/com.android.art/javalib/core-icu4j.jar:/apex/com.android.art/javalib/okhttp.jar:/apex/com.android.art/javalib/bouncycastle.jar:/apex/com.android.art/javalib/apache-xml.jar:/system/framework/framework.jar:/system/framework/ext.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/ims-common.jar:/system/framework/framework-atb-backward-compatibility.jar:/system/framework/mediatek-telephony-base.jar:/system/framework/mediatek-telephony-common.jar:/system/framework/mediatek-common.jar:/system/framework/mediatek-framework.jar:/system/framework/mediatek-ims-common.jar:/system/framework/mediatek-ims-base.jar:/system/framework/mediatek-telecom-common.jar:/system/framework/OPCommonTelephony.jar
TMPDIR=/data/data/com.termux/files/usr/tmp
ANDROID_DATA=/data
TERM=xterm-256color
ANDROID_I18N_ROOT=/apex/com.android.i18n
SHLVL=1
ANDROID_ROOT=/system
BOOTCLASSPATH=/apex/com.android.art/javalib/core-oj.jar:/apex/com.android.art/javalib/core-libart.jar:/apex/com.android.art/javalib/core-icu4j.jar:/apex/com.android.art/javalib/okhttp.jar:/apex/com.android.art/javalib/bouncycastle.jar:/apex/com.android.art/javalib/apache-xml.jar:/system/framework/framework.jar:/system/framework/ext.jar:/system/framework/telephony-common.jar:/system/framework/voip-common.jar:/system/framework/ims-common.jar:/system/framework/framework-atb-backward-compatibility.jar:/system/framework/mediatek-telephony-base.jar:/system/framework/mediatek-telephony-common.jar:/system/framework/mediatek-common.jar:/system/framework/mediatek-framework.jar:/system/framework/mediatek-ims-common.jar:/system/framework/mediatek-ims-base.jar:/system/framework/mediatek-telecom-common.jar:/system/framework/OPCommonTelephony.jar:/apex/com.android.conscrypt/javalib/conscrypt.jar:/apex/com.android.media/javalib/updatable-media.jar:/apex/com.android.mediaprovider/javalib/framework-mediaprovider.jar:/apex/com.android.os.statsd/javalib/framework-statsd.jar:/apex/com.android.permission/javalib/framework-permission.jar:/apex/com.android.sdkext/javalib/framework-sdkextensions.jar:/apex/com.android.wifi/javalib/framework-wifi.jar:/apex/com.android.tethering/javalib/framework-tethering.jar
ANDROID_TZDATA_ROOT=/apex/com.android.tzdata
ISO=/storage/emulated/0/Download/qemu-test/alpine-virt-3.17.3-x86_64.iso
TERMUX_APP_PID=3606
PATH=/data/data/com.termux/files/usr/bin
ANDROID_ART_ROOT=/apex/com.android.art
GID_NINE_P_DIR=Access: (0770/drwxrwx---) Uid: ( 0/ root) Gid: ( 9997/everybody)
OLDPWD=/data/data/com.termux/files/home
_=/data/data/com.termux/files/usr/bin/env
~ $
~ $ cp -iv $VMDISK $NINE_P_DIR/vm-linux-grub.raw
'/storage/emulated/0/Download/qemu-test/vm-template-grub.raw' -> '/storage/emulated/0/Download/qemu-test/vm-linux-grub.raw'
~ $
~ $ export VMDISK=$NINE_P_DIR/vm-linux-grub.raw
~ $
~ $
~ $ qemu-system-x86_64 -m 1024M -machine pc -smp 4 -nographic -device virtio-rng-pci -serial mon:stdio -device virtio-net-pci,netdev=net0 -netdev user,id=net0,ipv6=off,hostfwd=tcp::15022-:22,hostfwd=::15081-:15081 -drive if=none,file=$VMDISK,format=raw,id=drive2 -device virtio-blk-pci,drive=drive2,id=virtblk2,bootindex=1 -drive if=none,file=/storage/emulated/0/Download/50gb.ext,format=raw,id=drive3,readonly=on -device virtio-blk-pci,drive=drive3,id=virtblk3 -virtfs local,security_model=none,id=host,mount_tag=host,path=$NINE_P_DIR


Loading Linux virt ...Loadi
. ial ramdisk ..
.oading initial ramdisk ...Loading init
[ 0.000000] Linux version 5.15.106-0-virt (buildozer@build-3-17-x86_64) (gcc (Alpine 12.2.1_git20220924-r4) 12.2.1 20220924, GNU ld (GNU Binutils) 2.39) #1-Alpine SMP Wed, 05 Apr 2023 10:48:45 +0000
[00:00:00.000] [ 0.000000] Command line: BOOT_IMAGE=/vmlinuz-virt root=UUID=ada017ef-3181-40be-8e14-f45c49e00f3a ro modules=sd-mod,usb-storage,ext4 console=tty0 console=ttyS0,115200n8 rootfstype=ext4
[00:00:00.005] [ 0.000000] x86/fpu: x87 FPU will use FXSAVE
[00:00:00.007] [ 0.000000] signal: max sigframe size: 1440
[00:00:00.008] [ 0.000000] BIOS-provided physical RAM map:
[00:00:00.009] [ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable
[00:00:00.010] [ 0.000000] BIOS-e820: [mem 0x000000000009fc00-0x000000000009ffff] reserved [00:00:00.012] [ 0.000000] BIOS-e820: [mem 0x00000000000f0000-0x00000000000fffff] reserved [00:00:00.013] [ 0.000000] BIOS-e820: [mem 0x0000000000100000-0x000000003ffd9fff] usable [00:00:00.015] [ 0.000000] BIOS-e820: [mem 0x000000003ffda000-0x000000003fffffff] reserved [00:00:00.017] [ 0.000000] BIOS-e820: [mem 0x00000000fffc0000-0x00000000ffffffff] reserved [00:00:00.019] [ 0.000000] BIOS-e820: [mem 0x000000fd00000000-0x000000ffffffffff] reserved [00:00:00.021] [ 0.000000] NX (Execute Disable) protection: active [00:00:00.022] [ 0.000000] SMBIOS 2.8 present. [00:00:00.023] [ 0.000000] DMI: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.16.1-0-g3208b098f51a-prebuilt.qemu.org 04/01/2014
[00:00:00.026] [ 0.000000] tsc: Fast TSC calibration failed
[00:00:00.027] [ 0.000000] last_pfn = 0x3ffda max_arch_pfn = 0x400000000
[00:00:00.029] [ 0.000000] x86/PAT: Configuration [0-7]: WB WC UC- UC WB WP UC- WT
[00:00:00.031] [ 0.000000] RAMDISK: [mem 0x37293000-0x37940fff]
[00:00:00.032] [ 0.000000] ACPI: Early table checksum verification disabled
[00:00:00.034] [ 0.000000] ACPI: RSDP 0x00000000000F5A00 000014 (v00 BOCHS )
[00:00:00.035] [ 0.000000] ACPI: RSDT 0x000000003FFE1BDD 000034 (v01 BOCHS BXPC 00000001 BXPC 00000001)
[00:00:00.038] [ 0.000000] ACPI: FACP 0x000000003FFE1A79 000074 (v01 BOCHS BXPC 00000001 BXPC 00000001)
[00:00:00.040] [ 0.000000] ACPI: DSDT 0x000000003FFE0040 001A39 (v01 BOCHS BXPC 00000001 BXPC 00000001)
[00:00:00.042] [ 0.000000] ACPI: FACS 0x000000003FFE0000 000040
[00:00:00.043] [ 0.000000] ACPI: APIC 0x000000003FFE1AED 000090 (v01 BOCHS BXPC 00000001 BXPC 00000001)
[00:00:00.045] [ 0.000000] ACPI: HPET 0x000000003FFE1B7D 000038 (v01 BOCHS BXPC 00000001 BXPC 00000001)
[00:00:00.048] [ 0.000000] ACPI: WAET 0x000000003FFE1BB5 000028 (v01 BOCHS BXPC 00000001 BXPC 00000001)
[00:00:00.051] [ 0.000000] ACPI: Reserving FACP table memory at [mem 0x3ffe1a79-0x3ffe1aec]
[00:00:00.052] [ 0.000000] ACPI: Reserving DSDT table memory at [mem 0x3ffe0040-0x3ffe1a78]
[00:00:00.054] [ 0.000000] ACPI: Reserving FACS table memory at [mem 0x3ffe0000-0x3ffe003f]
[00:00:00.056] [ 0.000000] ACPI: Reserving APIC table memory at [mem 0x3ffe1aed-0x3ffe1b7c]
[00:00:00.058] [ 0.000000] ACPI: Reserving HPET table memory at [mem 0x3ffe1b7d-0x3ffe1bb4]
[00:00:00.060] [ 0.000000] ACPI: Reserving WAET table memory at [mem 0x3ffe1bb5-0x3ffe1bdc]
[00:00:00.063] [ 0.000000] Zone ranges:
[00:00:00.064] [ 0.000000] DMA [mem 0x0000000000001000-0x0000000000ffffff]
[00:00:00.065] [ 0.000000] DMA32 [mem 0x0000000001000000-0x000000003ffd9fff]
[00:00:00.066] [ 0.000000] Normal empty
[00:00:00.067] [ 0.000000] Movable zone start for each node
[00:00:00.068] [ 0.000000] Early memory node ranges
[00:00:00.069] [ 0.000000] node 0: [mem 0x0000000000001000-0x000000000009efff]
[00:00:00.071] [ 0.000000] node 0: [mem 0x0000000000100000-0x000000003ffd9fff]
[00:00:00.072] [ 0.000000] Initmem setup node 0 [mem 0x0000000000001000-0x000000003ffd9fff]
[00:00:00.074] [ 0.000000] On node 0, zone DMA: 1 pages in unavailable ranges
[00:00:00.076] [ 0.000000] On node 0, zone DMA: 97 pages in unavailable ranges
[00:00:00.077] [ 0.000000] On node 0, zone DMA32: 38 pages in unavailable ranges
[00:00:00.079] [ 0.000000] ACPI: PM-Timer IO Port: 0x608
[00:00:00.080] [ 0.000000] ACPI: LAPIC_NMI (acpi_id[0xff] dfl dfl lint[0x1])
[00:00:00.082] [ 0.000000] IOAPIC[0]: apic_id 0, version 32, address 0xfec00000, GSI 0-23
[00:00:00.083] [ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
[00:00:00.084] [ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 5 global_irq 5 high level)
[00:00:00.086] [ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
[00:00:00.087] [ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 10 global_irq 10 high level)
[00:00:00.089] [ 0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 11 global_irq 11 high level)
[00:00:00.091] [ 0.000000] ACPI: Using ACPI (MADT) for SMP configuration information
[00:00:00.092] [ 0.000000] ACPI: HPET id: 0x8086a201 base: 0xfed00000
[00:00:00.094] [ 0.000000] smpboot: Allowing 4 CPUs, 0 hotplug CPUs
[00:00:00.095] [ 0.000000] [mem 0x40000000-0xfffbffff] available for PCI devices
[00:00:00.097] [ 0.000000] Booting paravirtualized kernel on bare hardware
[00:00:00.098] [ 0.000000] clocksource: refined-jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[00:00:00.100] [ 0.000000] setup_percpu: NR_CPUS:256 nr_cpumask_bits:256 nr_cpu_ids:4 nr_node_ids:1
[00:00:00.102] [ 0.000000] percpu: Embedded 54 pages/cpu s183896 r8192 d29096 u524288
[00:00:00.104] [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 257754
[00:00:00.106] [ 0.000000] Kernel command line: BOOT_IMAGE=/vmlinuz-virt root=UUID=ada017ef-3181-40be-8e14-f45c49e00f3a ro modules=sd-mod,usb-storage,ext4 console=tty0 console=ttyS0,115200n8 rootfstype=ext4
[00:00:00.110] [ 0.000000] Unknown kernel command line parameters "BOOT_IMAGE=/vmlinuz-virt modules=sd-mod,usb-storage,ext4", will be passed to user space.
[00:00:00.112] [ 0.000000] printk: log_buf_len individual max cpu contribution: 4096 bytes
[00:00:00.114] [ 0.000000] printk: log_buf_len total cpu_extra contributions: 12288 bytes
[00:00:00.115] [ 0.000000] printk: log_buf_len min size: 16384 bytes
[00:00:00.115] [ 0.000000] printk: log_buf_len: 32768 bytes
[00:00:00.116] [ 0.000000] printk: early log buf free: 11232(68%)
[00:00:00.117] [ 0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[00:00:00.119] [ 0.000000] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
[00:00:00.121] [ 0.000000] mem auto-init: stack:byref(zero), heap alloc:on, heap free:off
[00:00:00.122] [ 0.000000] Memory: 994644K/1048032K available (10246K kernel code, 1191K rwdata, 3024K rodata, 1824K init, 2032K bss, 53128K reserved, 0K cma-reserved)
[00:00:00.125] [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[00:00:00.127] [ 0.000000] rcu: Hierarchical RCU implementation.
[00:00:00.128] [ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=4.
[00:00:00.130] [ 0.000000] Tracing variant of Tasks RCU enabled.
[00:00:00.131] [ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[00:00:00.133] [ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4
[00:00:00.134] [ 0.000000] NR_IRQS: 16640, nr_irqs: 456, preallocated irqs: 16
[00:00:00.136] [ 0.000000] kfence: initialized - using 2097152 bytes for 255 objects at 0x(____ptrval____)-0x(____ptrval____)
[00:00:00.138] [ 0.000000] Console: colour VGA+ 80x25
[00:00:00.140] [ 0.000000] printk: console [tty0] enabled
[00:00:00.141] [ 0.000000] printk: console [ttyS0] enabled
[00:00:00.152] [ 0.000000] ACPI: Core revision 20210730
[00:00:00.222] [ 0.000000] clocksource: hpet: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604467 ns
[00:00:00.299] [ 0.040000] APIC: Switch to symmetric I/O mode setup
[00:00:00.356] [ 0.090000] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
[00:00:00.485] [ 0.170000] tsc: Unable to calibrate against PIT
[00:00:00.487] [ 0.170000] tsc: using HPET reference calibration
[00:00:00.490] [ 0.180000] tsc: Detected 1000.008 MHz processor
[00:00:00.501] [ 0.008083] tsc: Marking TSC unstable due to TSCs unsynchronized
[00:00:00.510] [ 0.023023] Calibrating delay loop (skipped), value calculated using timer frequency.. 2000.01 BogoMIPS (lpj=10000080)
[00:00:00.516] [ 0.029058] pid_max: default: 32768 minimum: 301
[00:00:00.538] [ 0.052022] LSM: Security Framework initializing
[00:00:00.563] [ 0.077182] landlock: Up and running.
[00:00:00.603] [ 0.116915] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[00:00:00.608] [ 0.120897] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[00:00:00.865] [ 0.378939] process: using AMD E400 aware idle routine
[00:00:00.869] [ 0.383237] Last level iTLB entries: 4KB 512, 2MB 255, 4MB 127
[00:00:00.872] [ 0.385764] Last level dTLB entries: 4KB 512, 2MB 255, 4MB 127, 1GB 0
[00:00:00.879] [ 0.392543] Spectre V1 : Mitigation: usercopy/swapgs barriers and __user pointer sanitization
[00:00:00.883] [ 0.397294] Spectre V2 : Mitigation: Retpolines
[00:00:00.886] [ 0.400205] Spectre V2 : Spectre v2 / SpectreRSB mitigation: Filling RSB on context switch
[00:00:00.890] [ 0.402244] Spectre V2 : Spectre v2 / SpectreRSB : Filling RSB on VMEXIT
[00:00:02.465] [ 1.973164] Freeing SMP alternatives memory: 32K
[00:00:02.787] [ 2.298491] smpboot: CPU0: AMD QEMU Virtual CPU version 2.5+ (family: 0xf, model: 0x6b, stepping: 0x1)
[00:00:02.922] [ 2.425247] Performance Events: PMU not available due to virtualization, using software events only.
[00:00:02.948] [ 2.457961] rcu: Hierarchical SRCU implementation.
[00:00:03.038] [ 2.547180] NMI watchdog: Perf NMI watchdog permanently disabled
[00:00:03.085] [ 2.594681] smp: Bringing up secondary CPUs ...
[00:00:03.134] [ 2.643185] x86: Booting SMP configuration:
[00:00:03.576] [ 2.645708] .... node #0, CPUs: #1
[00:00:03.580] [ 0.000000] calibrate_delay_direct() failed to get a good estimate for loops_per_jiffy.
[00:00:03.581] [ 0.000000] Probably due to long platform interrupts. Consider using "lpj=" boot option.
[00:00:04.130] [ 3.195096] #2
[00:00:04.132] [ 0.000000] calibrate_delay_direct() failed to get a good estimate for loops_per_jiffy.
[00:00:04.133] [ 0.000000] Probably due to long platform interrupts. Consider using "lpj=" boot option.
[00:00:04.541] [ 3.605686] #3
[00:00:04.550] [ 0.000000] calibrate_delay_direct() failed to get a good estimate for loops_per_jiffy.
[00:00:04.553] [ 0.000000] Probably due to long platform interrupts. Consider using "lpj=" boot option.
[00:00:04.755] [ 3.973824] smp: Brought up 1 node, 4 CPUs
[00:00:04.758] [ 3.976586] smpboot: Max logical packages: 1
[00:00:04.761] [ 3.979166] ----------------
[00:00:04.764] [ 3.982315] | NMI testsuite:
[00:00:04.765] [ 3.983828] --------------------
[00:00:04.780] [ 3.985383] remote IPI: ok |
[00:00:04.790] [ 4.002138] local IPI: ok |
[00:00:04.794] [ 4.012615] --------------------
[00:00:04.797] [ 4.015135] Good, all 2 testcases passed! |
[00:00:04.800] [ 4.017769] ---------------------------------
[00:00:04.805] [ 4.021676] smpboot: Total of 4 processors activated (2003.17 BogoMIPS)
[00:00:05.128] [ 4.317633] devtmpfs: initialized
[00:00:05.193] [ 4.382996] x86/mm: Memory block size: 128MB
[00:00:05.303] [ 4.492392] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[00:00:05.310] [ 4.499103] futex hash table entries: 1024 (order: 4, 65536 bytes, linear)
[00:00:05.531] [ 4.719602] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[00:00:05.609] [ 4.796671] audit: initializing netlink subsys (disabled)
[00:00:05.687] [ 4.875300] audit: type=2000 audit(1681483119.000:1): state=initialized audit_enabled=0 res=1
[00:00:05.774] [ 4.935457] thermal_sys: Registered thermal governor 'step_wise'
[00:00:05.776] [ 4.963113] cpuidle: using governor ladder
[00:00:05.844] [ 5.022859] cpuidle: using governor menu
[00:00:05.880] [ 5.058201] ACPI: bus type PCI registered
[00:00:05.911] [ 5.075803] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
[00:00:06.064] [ 5.223263] PCI: Using configuration type 1 for base access
[00:00:06.138] [ 5.294466] mtrr: your CPUs had inconsistent fixed MTRR settings
[00:00:06.149] [ 5.302615] mtrr: your CPUs had inconsistent variable MTRR settings
[00:00:06.157] [ 5.312465] mtrr: your CPUs had inconsistent MTRRdefType settings
[00:00:06.162] [ 5.315209] mtrr: probably your BIOS does not setup all CPUs.
[00:00:06.166] [ 5.322348] mtrr: corrected configuration.
[00:00:06.394] [ 5.552335] kprobes: kprobe jump-optimization is enabled. All kprobes are optimized if possible.
[00:00:06.453] [ 5.612730] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[00:00:06.913] [ 6.063288] ACPI: Added _OSI(Module Device)
[00:00:06.916] [ 6.065710] ACPI: Added _OSI(Processor Device)
[00:00:06.917] [ 6.067552] ACPI: Added _OSI(3.0 _SCP Extensions)
[00:00:06.919] [ 6.069293] ACPI: Added _OSI(Processor Aggregator Device)
[00:00:06.925] [ 6.083025] ACPI: Added _OSI(Linux-Dell-Video)
[00:00:06.927] [ 6.084859] ACPI: Added _OSI(Linux-Lenovo-NV-HDMI-Audio)
[00:00:06.929] [ 6.086933] ACPI: Added _OSI(Linux-HPI-Hybrid-Graphics)
[00:00:07.254] [ 6.404033] ACPI: 1 ACPI AML tables successfully acquired and loaded
[00:00:07.504] [ 6.652563] ACPI: Interpreter enabled
[00:00:07.518] [ 6.669609] ACPI: PM: (supports S0 S3 S5)
[00:00:07.523] [ 6.673176] ACPI: Using IOAPIC for interrupt routing
[00:00:07.545] [ 6.694338] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
[00:00:07.604] [ 6.751676] ACPI: Enabled 2 GPEs in block 00 to 0F
[00:00:08.935] [ 7.971885] ACPI: PCI Root Bridge [PCI0] (domain 0000 [bus 00-ff])
[00:00:08.979] [ 8.040249] acpi PNP0A03:00: _OSC: OS supports [ASPM ClockPM Segments MSI HPX-Type3]
[00:00:09.006] [ 8.072387] acpi PNP0A03:00: fail to add MMCONFIG information, can't access extended PCI configuration space under this bridge.
[00:00:09.147] [ 8.217806] acpiphp: Slot [3] registered
[00:00:09.156] [ 8.231957] acpiphp: Slot [4] registered
[00:00:09.159] [ 8.231957] acpiphp: Slot [5] registered
[00:00:09.166] [ 8.241834] acpiphp: Slot [6] registered
[00:00:09.169] [ 8.241834] acpiphp: Slot [7] registered
[00:00:09.175] [ 8.245280] acpiphp: Slot [8] registered
[00:00:09.179] [ 8.248554] acpiphp: Slot [9] registered
[00:00:09.187] [ 8.263464] acpiphp: Slot [10] registered
[00:00:09.191] [ 8.266660] acpiphp: Slot [11] registered
[00:00:09.200] [ 8.277294] acpiphp: Slot [12] registered
[00:00:09.205] [ 8.277294] acpiphp: Slot [13] registered
[00:00:09.209] [ 8.279791] acpiphp: Slot [14] registered
[00:00:09.217] [ 8.294079] acpiphp: Slot [15] registered
[00:00:09.224] [ 8.301992] acpiphp: Slot [16] registered
[00:00:09.228] [ 8.301992] acpiphp: Slot [17] registered
[00:00:09.235] [ 8.305659] acpiphp: Slot [18] registered
[00:00:09.242] [ 8.310425] acpiphp: Slot [19] registered
[00:00:09.248] [ 8.321984] acpiphp: Slot [20] registered
[00:00:09.253] [ 8.331921] acpiphp: Slot [21] registered
[00:00:09.257] [ 8.331921] acpiphp: Slot [22] registered
[00:00:09.261] [ 8.331921] acpiphp: Slot [23] registered
[00:00:09.268] [ 8.341971] acpiphp: Slot [24] registered
[00:00:09.274] [ 8.344845] acpiphp: Slot [25] registered
[00:00:09.279] [ 8.349782] acpiphp: Slot [26] registered
[00:00:09.284] [ 8.360134] acpiphp: Slot [27] registered
[00:00:09.288] [ 8.360134] acpiphp: Slot [28] registered
[00:00:09.293] [ 8.371913] acpiphp: Slot [29] registered
[00:00:09.296] [ 8.371913] acpiphp: Slot [30] registered
[00:00:09.300] [ 8.371913] acpiphp: Slot [31] registered
[00:00:09.308] [ 8.386220] PCI host bridge to bus 0000:00
[00:00:09.315] [ 8.391877] pci_bus 0000:00: root bus resource [io 0x0000-0x0cf7 window]
[00:00:09.318] [ 8.391877] pci_bus 0000:00: root bus resource [io 0x0d00-0xffff window]
[00:00:09.323] [ 8.392049] pci_bus 0000:00: root bus resource [mem 0x000a0000-0x000bffff window]
[00:00:09.326] [ 8.396021] pci_bus 0000:00: root bus resource [mem 0x40000000-0xfebfffff window]
[00:00:09.329] [ 8.398800] pci_bus 0000:00: root bus resource [mem 0x100000000-0x17fffffff window]
[00:00:09.337] [ 8.412027] pci_bus 0000:00: root bus resource [bus 00-ff]
[00:00:09.375] [ 8.451912] pci 0000:00:00.0: [8086:1237] type 00 class 0x060000
[00:00:09.542] [ 8.611897] pci 0000:00:01.0: [8086:7000] type 00 class 0x060100
[00:00:09.617] [ 8.691929] pci 0000:00:01.1: [8086:7010] type 00 class 0x010180
[00:00:09.685] [ 8.755522] pci 0000:00:01.1: reg 0x20: [io 0xc160-0xc16f]
[00:00:09.706] [ 8.782735] pci 0000:00:01.1: legacy IDE quirk: reg 0x10: [io 0x01f0-0x01f7]
[00:00:09.709] [ 8.786600] pci 0000:00:01.1: legacy IDE quirk: reg 0x14: [io 0x03f6]
[00:00:09.715] [ 8.792488] pci 0000:00:01.1: legacy IDE quirk: reg 0x18: [io 0x0170-0x0177]
[00:00:09.718] [ 8.795544] pci 0000:00:01.1: legacy IDE quirk: reg 0x1c: [io 0x0376]
[00:00:09.763] [ 8.834186] pci 0000:00:01.3: [8086:7113] type 00 class 0x068000
[00:00:09.772] [ 8.840946] pci 0000:00:01.3: quirk: [io 0x0600-0x063f] claimed by PIIX4 ACPI
[00:00:09.775] [ 8.850115] pci 0000:00:01.3: quirk: [io 0x0700-0x070f] claimed by PIIX4 SMB
[00:00:09.800] [ 8.869061] pci 0000:00:02.0: [1234:1111] type 00 class 0x030000
[00:00:09.824] [ 8.894425] pci 0000:00:02.0: reg 0x10: [mem 0xfd000000-0xfdffffff pref]
[00:00:09.859] [ 8.936997] pci 0000:00:02.0: reg 0x18: [mem 0xfebd0000-0xfebd0fff]
[00:00:09.937] [ 9.012059] pci 0000:00:02.0: reg 0x30: [mem 0xfebc0000-0xfebcffff pref]
[00:00:09.946] [ 9.021835] pci 0000:00:02.0: Video device with shadowed ROM at [mem 0x000c0000-0x000dffff]
[00:00:10.025] [ 9.095929] pci 0000:00:03.0: [1af4:1005] type 00 class 0x00ff00
[00:00:10.049] [ 9.122086] pci 0000:00:03.0: reg 0x10: [io 0xc100-0xc11f]
[00:00:10.085] [ 9.152520] pci 0000:00:03.0: reg 0x14: [mem 0xfebd1000-0xfebd1fff]
[00:00:10.187] [ 9.241967] pci 0000:00:03.0: reg 0x20: [mem 0xfe000000-0xfe003fff 64bit pref]
[00:00:10.298] [ 9.348460] pci 0000:00:04.0: [1af4:1000] type 00 class 0x020000
[00:00:10.322] [ 9.373091] pci 0000:00:04.0: reg 0x10: [io 0xc120-0xc13f]
[00:00:10.365] [ 9.402592] pci 0000:00:04.0: reg 0x14: [mem 0xfebd2000-0xfebd2fff]
[00:00:10.457] [ 9.492144] pci 0000:00:04.0: reg 0x20: [mem 0xfe004000-0xfe007fff 64bit pref]
[00:00:10.493] [ 9.523079] pci 0000:00:04.0: reg 0x30: [mem 0xfeb80000-0xfebbffff pref]
[00:00:10.596] [ 9.629889] pci 0000:00:05.0: [1af4:1001] type 00 class 0x010000
[00:00:10.619] [ 9.652179] pci 0000:00:05.0: reg 0x10: [io 0xc000-0xc07f]
[00:00:10.654] [ 9.682071] pci 0000:00:05.0: reg 0x14: [mem 0xfebd3000-0xfebd3fff]
[00:00:10.736] [ 9.761947] pci 0000:00:05.0: reg 0x20: [mem 0xfe008000-0xfe00bfff 64bit pref]
[00:00:10.838] [ 9.870022] pci 0000:00:06.0: [1af4:1001] type 00 class 0x010000
[00:00:10.863] [ 9.892120] pci 0000:00:06.0: reg 0x10: [io 0xc080-0xc0ff]
[00:00:10.904] [ 9.924126] pci 0000:00:06.0: reg 0x14: [mem 0xfebd4000-0xfebd4fff]
[00:00:11.026] [ 10.002215] pci 0000:00:06.0: reg 0x20: [mem 0xfe00c000-0xfe00ffff 64bit pref]
[00:00:11.162] [ 10.120405] pci 0000:00:07.0: [1af4:1009] type 00 class 0x000200
[00:00:11.184] [ 10.152074] pci 0000:00:07.0: reg 0x10: [io 0xc140-0xc15f]
[00:00:11.234] [ 10.174296] pci 0000:00:07.0: reg 0x14: [mem 0xfebd5000-0xfebd5fff]
[00:00:11.367] [ 10.232991] pci 0000:00:07.0: reg 0x20: [mem 0xfe010000-0xfe013fff 64bit pref]
[00:00:11.599] [ 10.471604] ACPI: PCI: Interrupt link LNKA configured for IRQ 10
[00:00:11.617] [ 10.491883] ACPI: PCI: Interrupt link LNKB configured for IRQ 10
[00:00:11.636] [ 10.512123] ACPI: PCI: Interrupt link LNKC configured for IRQ 11
[00:00:11.673] [ 10.542689] ACPI: PCI: Interrupt link LNKD configured for IRQ 11
[00:00:11.707] [ 10.576409] ACPI: PCI: Interrupt link LNKS configured for IRQ 9
[00:00:11.917] [ 10.781887] iommu: Default domain type: Translated
[00:00:11.919] [ 10.781887] iommu: DMA domain TLB invalidation policy: lazy mode
[00:00:12.052] [ 10.920256] SCSI subsystem initialized
[00:00:12.256] [ 11.116290] pps_core: LinuxPPS API ver. 1 registered
[00:00:12.258] [ 11.118358] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti
[00:00:12.265] [ 11.124759] PTP clock support registered
[00:00:12.494] [ 11.353746] PCI: Using ACPI for IRQ routing
[00:00:12.605] [ 11.454677] hpet: 3 channels of 0 reserved for per-cpu timers
[00:00:12.679] [ 11.523876] clocksource: Switched to clocksource hpet
[00:00:13.586] [ 12.430937] VFS: Disk quotas dquot_6.6.0
[00:00:13.604] [ 12.448397] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[00:00:13.704] [ 12.548851] pnp: PnP ACPI init
[00:00:13.882] [ 12.727111] pnp: PnP ACPI: found 6 devices
[00:00:14.532] [ 13.376397] clocksource: acpi_pm: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 2085701024 ns
[00:00:14.562] [ 13.406648] NET: Registered PF_INET protocol family
[00:00:14.625] [ 13.468935] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
[00:00:14.736] [ 13.580659] tcp_listen_portaddr_hash hash table entries: 512 (order: 1, 8192 bytes, linear)
[00:00:14.743] [ 13.588091] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[00:00:14.748] [ 13.592844] TCP established hash table entries: 8192 (order: 4, 65536 bytes, linear)
[00:00:14.754] [ 13.598462] TCP bind hash table entries: 8192 (order: 5, 131072 bytes, linear)
[00:00:14.762] [ 13.606702] TCP: Hash tables configured (established 8192 bind 8192)
[00:00:14.784] [ 13.628277] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[00:00:14.791] [ 13.636004] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[00:00:14.823] [ 13.668048] NET: Registered PF_UNIX/PF_LOCAL protocol family
[00:00:14.833] [ 13.677308] NET: Registered PF_XDP protocol family
[00:00:14.847] [ 13.691364] pci_bus 0000:00: resource 4 [io 0x0000-0x0cf7 window]
[00:00:14.852] [ 13.696455] pci_bus 0000:00: resource 5 [io 0x0d00-0xffff window]
[00:00:14.854] [ 13.698806] pci_bus 0000:00: resource 6 [mem 0x000a0000-0x000bffff window]
[00:00:14.857] [ 13.701345] pci_bus 0000:00: resource 7 [mem 0x40000000-0xfebfffff window]
[00:00:14.861] [ 13.705734] pci_bus 0000:00: resource 8 [mem 0x100000000-0x17fffffff window]
[00:00:14.876] [ 13.721208] pci 0000:00:01.0: PIIX3: Enabling Passive Release
[00:00:14.882] [ 13.727213] pci 0000:00:00.0: Limiting direct PCI/PCI transfers
[00:00:14.886] [ 13.730915] pci 0000:00:01.0: Activating ISA DMA hang workarounds
[00:00:14.890] [ 13.734841] PCI: CLS 0 bytes, default 64
[00:00:15.132] [ 13.976576] Initialise system trusted keyrings
[00:00:15.193] [ 14.037762] Unpacking initramfs...
[00:00:15.222] [ 14.067153] workingset: timestamp_bits=46 max_order=18 bucket_order=0
[00:00:15.486] [ 14.331268] zbud: loaded
[00:00:15.565] [ 14.409554] Key type asymmetric registered
[00:00:15.579] [ 14.423305] Asymmetric key parser 'x509' registered
[00:00:15.589] [ 14.434237] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[00:00:15.662] [ 14.506803] io scheduler mq-deadline registered
[00:00:15.665] [ 14.509818] io scheduler kyber registered
[00:00:15.692] [ 14.536283] io scheduler bfq registered
[00:00:15.871] [ 14.715533] ERST DBG: ERST support is disabled.
[00:00:20.374] [ 19.218725] Freeing initrd memory: 6840K
[00:00:21.403] [ 20.247727] ACPI: \_SB_.LNKC: Enabled at IRQ 11
[00:00:24.302] [ 23.146633] ACPI: \_SB_.LNKD: Enabled at IRQ 10
[00:00:27.152] [ 25.997080] ACPI: \_SB_.LNKA: Enabled at IRQ 10
[00:00:29.965] [ 28.809384] ACPI: \_SB_.LNKB: Enabled at IRQ 11
[00:00:32.883] [ 31.728018] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[00:00:32.944] [ 31.788421] 00:04: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
[00:00:33.243] [ 32.087359] VMware PVSCSI driver - version 1.0.7.0-k
[00:00:33.493] [ 32.337317] scsi host0: ata_piix
[00:00:33.586] [ 32.430655] scsi host1: ata_piix
[00:00:33.631] [ 32.461408] ata1: PATA max MWDMA2 cmd 0x1f0 ctl 0x3f6 bmdma 0xc160 irq 14
[00:00:33.634] [ 32.478886] ata2: PATA max MWDMA2 cmd 0x170 ctl 0x376 bmdma 0xc168 irq 15
[00:00:33.704] [ 32.548306] i8042: PNP: PS/2 Controller [PNP0303:KBD,PNP0f13:MOU] at 0x60,0x64 irq 1,12
[00:00:33.847] [ 32.691199] serio: i8042 KBD port at 0x60,0x64 irq 1
[00:00:33.855] [ 32.700058] serio: i8042 AUX port at 0x60,0x64 irq 12
[00:00:33.878] [ 32.723165] rtc_cmos 00:05: RTC can wake from S4
[00:00:34.019] [ 32.863454] rtc_cmos 00:05: registered as rtc0
[00:00:34.052] [ 32.893227] rtc_cmos 00:05: setting system clock to 2023-04-14T14:39:08 UTC (1681483148)
[00:00:34.130] [ 32.974336] rtc_cmos 00:05: alarms up to one day, y3k, 242 bytes nvram, hpet irqs
[00:00:34.250] [ 33.094957] gre: GRE over IPv4 demultiplexor driver
[00:00:34.259] [ 33.104141] ata2.00: ATAPI: QEMU DVD-ROM, 2.5+, max UDMA/100
[00:00:34.274] [ 33.118746] input: AT Translated Set 2 keyboard as /devices/platform/i8042/serio0/input/input0
[00:00:34.304] [ 33.148606] Key type dns_resolver registered
[00:00:34.361] [ 33.205605] IPI shorthand broadcast: enabled
[00:00:34.513] [ 33.357667] registered taskstats version 1
[00:00:34.531] [ 33.375812] Loading compiled-in X.509 certificates
[00:00:34.860] [ 33.705026] scsi 1:0:0:0: CD-ROM QEMU QEMU DVD-ROM 2.5+ PQ: 0 ANSI: 5
[00:00:36.143] [ 34.988141] Loaded X.509 cert 'Build time autogenerated kernel key: 90200cc09a919577283b2cb6eca2ff9ac9891c1d'
[00:00:36.203] [ 35.047892] zswap: loaded using pool lzo/zbud
[00:00:36.282] [ 35.126947] Key type .fscrypt registered
[00:00:36.284] [ 35.129076] Key type fscrypt-provisioning registered
[00:00:36.381] [ 35.224978] Unstable clock detected, switching default tracing clock to "global"
[00:00:36.382] [ 35.224978] If you want to keep using the local clock, then add:
[00:00:36.383] [ 35.224978] "trace_clock=local"
[00:00:36.384] [ 35.224978] on the kernel command line
[00:00:36.805] [ 35.649490] Freeing unused kernel image (initmem) memory: 1824K
[00:00:36.829] [ 35.674216] Write protecting the kernel read-only data: 16384k
[00:00:36.888] [ 35.732521] Freeing unused kernel image (text/rodata gap) memory: 2040K
[00:00:36.910] [ 35.754688] Freeing unused kernel image (rodata/data gap) memory: 1072K
[00:00:36.923] [ 35.767439] rodata_test: all tests were successful
[00:00:36.935] [ 35.779772] Run /init as init process
[00:00:38.821] [ 37.665714] Alpine Init 3.7.0-r1
[00:00:38.850] Alpine Init 3.7.0-r1
[00:00:38.946] [ 37.790779] Loading boot drivers...
[00:00:38.957] * Loading boot drivers: [ 39.244202] ACPI: bus type USB registered
[00:00:40.407] [ 39.251383] usbcore: registered new interface driver usbfs
[00:00:40.437] [ 39.281214] usbcore: registered new interface driver hub
[00:00:40.496] [ 39.340328] usbcore: registered new device driver usb
[00:00:40.733] [ 39.578248] usbcore: registered new interface driver usb-storage
[00:00:43.674] [ 42.518994] loop: module loaded
[00:00:46.511] [ 45.355870] Loading boot drivers: ok.
[00:00:46.519] ok.
[00:00:48.432] [ 47.248900] Mounting root...
[00:00:48.481] * Mounting root: [ 57.687745] sr 1:0:0:0: [sr0] scsi3-mmc drive: 4x/4x cd/rw xa/form2 tray
[00:00:58.853] [ 57.696888] cdrom: Uniform CD-ROM driver Revision: 3.20
[00:01:01.961] [ 60.805767] virtio_blk virtio2: [vda] 12582912 512-byte logical blocks (6.44 GB/6.00 GiB)
[00:01:02.184] [ 61.028572] vda: vda1 vda2 vda3 vda4
[00:01:02.335] [ 61.178652] virtio_blk virtio3: [vdb] 104857600 512-byte logical blocks (53.7 GB/50.0 GiB)
[00:01:36.090] [ 94.931059] EXT4-fs (vda3): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none.
[00:01:36.153] [ 94.997236] Mounting root: ok.
[00:01:36.168] ok.
[00:01:40.327]
[00:01:40.767] OpenRC 0.45.2 is starting up Linux 5.15.106-0-virt (x86_64)
[00:01:40.768]
[00:01:42.507] * /proc is already mounted
[00:01:43.190] * Mounting /run ... * /run/openrc: creating directory
[00:01:43.968] * /run/lock: creating directory
[00:01:43.978] * /run/lock: correcting owner
[00:02:06.227] * Caching service dependencies ... [ ok ]
[00:02:08.731] * Remounting devtmpfs on /dev ... [ ok ]
[00:02:09.843] * Mounting /dev/mqueue ... [ ok ]
[00:02:15.243] * Mounting security filesystem ... [ ok ]
[00:02:15.650] * Mounting debug filesystem ... [ ok ]
[00:02:16.086] * Mounting persistent storage (pstore) filesystem ... [ ok ]
[00:02:18.133] * Starting busybox mdev ... [ ok ]
[00:02:18.375] * Scanning hardware for mdev ... [ ok ]
[00:02:42.977] * Loading hardware drivers ... [ ok ]
[00:04:00.654] * Loading modules ... [ ok ]
[00:04:09.430] * Setting system clock using the hardware clock [UTC] ... [ ok ]
[00:04:13.277] * Checking local filesystems .../dev/vda3: clean, 69222/233392 files, 465428/932864 blocks
[00:04:15.050] /dev/vda1: clean, 317/128016 files, 90307/512000 blocks
[00:04:15.523] tmp-partition: clean, 13/62464 files, 8639/249600 blocks
[00:04:15.918] [ ok ]
[00:04:18.267] * Remounting root filesystem read/write ... [ ok ]
[00:04:19.028] * Remounting filesystems ... [ ok ]
[00:04:22.349] * Activating swap devices ... [ ok ]
[00:04:25.182] * Mounting local filesystems ... [ ok ]
[00:04:31.323] * Configuring kernel parameters ... [ ok ]
[00:04:36.218] * Creating user login records ... [ ok ]
[00:04:37.185] * Cleaning /tmp directory ... [ ok ]
[00:04:40.507] * Setting hostname ... [ ok ]
[00:04:43.077] * Starting networking ... * lo ... [ ok ]
[00:04:46.447] * eth0 ...udhcpc: started, v1.35.0
[00:04:48.727] udhcpc: broadcasting discover
[00:04:48.882] udhcpc: broadcasting select for 10.0.2.15, server 10.0.2.2
[00:04:49.068] udhcpc: lease of 10.0.2.15 obtained from 10.0.2.2, lease time 86400
[00:04:51.236] [ ok ]
[00:04:53.477] * Seeding random number generator ... * Seeding 256 bits and crediting
[00:04:53.704] * Saving 256 bits of creditable seed for next boot
[00:04:53.840] [ ok ]
[00:04:58.480] * Starting busybox syslog ... [ ok ]
[00:05:05.877] * Starting busybox acpid ... [ ok ]
[00:05:08.557] * Starting busybox crond ... [ ok ]
[00:05:13.509] ssh-keygen: generating new host keys: RSA ECDSA ED25519
[00:06:22.040] * Starting sshd ... [ ok ]
[00:06:33.208] * Starting lighttpd ... [ ok ]
[00:06:40.018]
[00:06:40.168] Welcome to Alpine Linux 3.17
Kernel 5.15.106-0-virt on an x86_64 (/dev/ttyS0)
[00:06:40.169]
localhost login:
Welcome to Alpine Linux 3.17
Kernel 5.15.106-0-virt on an x86_64 (/dev/ttyS0)

localhost login: root
You are required to change your password immediately (administrator enforced).
New password:
Retype new password:
Welcome to Alpine!

The Alpine Wiki contains a large amount of how-to guides and general
information about administrating Alpine systems.
See <https://wiki.alpinelinux.org/>.

You can setup the system with the command: setup-alpine

You may change this message by editing /etc/motd.

localhost:~# pwd
/root
localhost:~#
localhost:~# echo $SHELL
/bin/bash
localhost:~#
localhost:~# ls -la
total 12
drwx------ 2 root root 4096 Apr 14 11:57 .
drwxr-xr-x 22 root root 4096 Apr 14 09:10 ..
-rw------- 1 root root 29 Apr 14 11:58 .ash_history
localhost:~#
localhost:~# su - test
You are required to change your password immediately (administrator enforced).
New password:
Retype new password:
localhost:~$
localhost:~$ pwd
/home/test
localhost:~$
localhost:~$ echo $SHELL
/bin/bash
localhost:~$
localhost:~$ ls -la
total 12
drwxr-sr-x 2 test test 4096 Apr 14 11:59 .
drwxr-xr-x 3 root root 4096 Apr 14 08:49 ..
-rw------- 1 test test 36 Apr 14 11:59 .bash_history
localhost:~$
localhost:~$ exit
logout
localhost:~# pwd
/root
localhost:~#
localhost:~# blkid
/dev/vda1: UUID="9adeb32c-979a-47e7-b034-cd800a81e867" BLOCK_SIZE="1024" TYPE="ext4" PARTUUID="30d6984f-01"
/dev/vda4: LABEL="tmp-partition" UUID="bc45f4ae-37b9-41fe-a76d-3b3c56187ba5" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="30d6984f-04"
/dev/vda2: UUID="d34884c7-e0f9-4346-ac60-373b204cc274" TYPE="swap" PARTUUID="30d6984f-02"
/dev/vdb: LABEL="50gb" UUID="ed64f636-1b13-4695-ad66-82236229d6e4" BLOCK_SIZE="4096" TYPE="ext4"
/dev/vda3: UUID="ada017ef-3181-40be-8e14-f45c49e00f3a" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="30d6984f-03"
localhost:~#
localhost:~# df -ahT
Filesystem Type Size Used Avail Use% Mounted on
sysfs sysfs 0 0 0 - /sys
devtmpfs devtmpfs 10M 0 10M 0% /dev
proc proc 0 0 0 - /proc
devpts devpts 0 0 0 - /dev/pts
shm tmpfs 492M 0 492M 0% /dev/shm
/dev/vda3 ext4 3.5G 1.7G 1.6G 51% /
tmpfs tmpfs 197M 128K 197M 1% /run
mqueue mqueue 0 0 0 - /dev/mqueue
securityfs securityfs 0 0 0 - /sys/kernel/security
debugfs debugfs 0 0 0 - /sys/kernel/debug
pstore pstore 0 0 0 - /sys/fs/pstore
tracefs tracefs 0 0 0 - /sys/kernel/debug/tracing
/dev/vda1 ext4 459M 47M 383M 11% /boot
/dev/vda4 ext4 942M 32K 877M 1% /tmp
localhost:~#
localhost:~# mkdir /root/repo
localhost:~# mkdir /root/backup
localhost:~#
localhost:~# cat /etc/apk/repositories
#/media/vda/apks
#/root/repo/alpine/v3.17/main
#/root/repo/alpine/v3.17/community
/mnt/repo/alpine/v3.17/main
/mnt/repo/alpine/v3.17/community
localhost:~#
localhost:~# mount -r LABEL=50gb /root/repo
localhost:~#
localhost:~# mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
devtmpfs on /dev type devtmpfs (rw,nosuid,noexec,relatime,size=10240k,nr_inodes=124367,mode=755,inode64)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
shm on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,inode64)
/dev/vda3 on / type ext4 (rw,relatime)
tmpfs on /run type tmpfs (rw,nosuid,nodev,size=201344k,nr_inodes=819200,mode=755,inode64)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
tracefs on /sys/kernel/debug/tracing type tracefs (rw,nosuid,nodev,noexec,relatime)
/dev/vda1 on /boot type ext4 (rw,relatime)
/dev/vda4 on /tmp type ext4 (rw,relatime)
/dev/vdb on /root/repo type ext4 (ro,relatime)
localhost:~#
localhost:~# groupadd --gid 9997 nine-p-host
localhost:~#
localhost:~# groupmod --append --users test nine-p-host
localhost:~#
localhost:~# mount -t 9mount -t 9p -o trans=virtio,version=9p2000.L,msize=1048576 host /mnt/9p-host
localhost:~#
localhost:~# mount
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
devtmpfs on /dev type devtmpfs (rw,nosuid,noexec,relatime,size=10240k,nr_inodes=124367,mode=755,inode64)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
shm on /dev/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,inode64)
/dev/vda3 on / type ext4 (rw,relatime)
tmpfs on /run type tmpfs (rw,nosuid,nodev,size=201344k,nr_inodes=819200,mode=755,inode64)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
tracefs on /sys/kernel/debug/tracing type tracefs (rw,nosuid,nodev,noexec,relatime)
/dev/vda1 on /boot type ext4 (rw,relatime)
/dev/vda4 on /tmp type ext4 (rw,relatime)
/dev/vdb on /root/repo type ext4 (ro,relatime)
host on /mnt/9p-host type 9p (rw,relatime,sync,dirsync,access=client,msize=512000,trans=virtio)
localhost:~#
localhost:~# df -hT
Filesystem Type Size Used Avail Use% Mounted on
devtmpfs devtmpfs 10M 0 10M 0% /dev
shm tmpfs 492M 0 492M 0% /dev/shm
/dev/vda3 ext4 3.5G 1.7G 1.6G 51% /
tmpfs tmpfs 197M 128K 197M 1% /run
/dev/vda1 ext4 459M 47M 383M 11% /boot
/dev/vda4 ext4 942M 32K 877M 1% /tmp
/dev/vdb ext4 49G 45G 4.8G 91% /root/repo
host 9p 117G 86G 31G 74% /mnt/9p-host
localhost:~#
localhost:~# ls -lRa /mnt/9p-host
/mnt/9p-host:
total 13681708
-rw-rw---- 1 root nine-p-host 51380224 Apr 5 00:35 alpine-virt-3.17.3-x86_64.iso
-rw-rw---- 1 root nine-p-host 96 Apr 5 00:35 alpine-virt-3.17.3-x86_64.iso.sha256
drwxrwx--- 2 root nine-p-host 4096 Apr 14 14:19 backup
-rw-rw---- 1 root nine-p-host 1073741824 Apr 14 08:04 disk3-1gb.img
-rw-rw---- 1 root nine-p-host 6442450944 Apr 14 15:30 vm-linux-grub.raw
-rw-rw---- 1 root nine-p-host 6442450944 Apr 14 13:53 vm-template-grub.raw

/mnt/9p-host/backup:
total 7340048
-rw-rw---- 1 root nine-p-host 1073741824 Apr 14 08:04 disk3-1gb.img
-rw-rw---- 1 root nine-p-host 6442450944 Apr 14 13:53 vm-template-grub.raw
localhost:~#
localhost:~#
localhost:~# su - test
Password:
localhost:~$
localhost:~$ touch /mnt/9p-host/test.txt
localhost:~$ ls -lRa /mnt/9p-host
/mnt/9p-host:
total 13681712
-rw-rw---- 1 root nine-p-host 51380224 Apr 5 00:35 alpine-virt-3.17.3-x86_64.iso
-rw-rw---- 1 root nine-p-host 96 Apr 5 00:35 alpine-virt-3.17.3-x86_64.iso.sha256
drwxrwx--- 2 root nine-p-host 4096 Apr 14 14:19 backup
-rw-rw---- 1 root nine-p-host 1073741824 Apr 14 08:04 disk3-1gb.img
-rw-rw---- 1 root nine-p-host 0 Apr 14 15:33 test.txt
-rw-rw---- 1 root nine-p-host 6442450944 Apr 14 15:33 vm-linux-grub.raw
-rw-rw---- 1 root nine-p-host 6442450944 Apr 14 13:53 vm-template-grub.raw

/mnt/9p-host/backup:
total 7340048
-rw-rw---- 1 root nine-p-host 1073741824 Apr 14 08:04 disk3-1gb.img
-rw-rw---- 1 root nine-p-host 6442450944 Apr 14 13:53 vm-template-grub.raw
localhost:~$
localhost:~$ exit
logout
localhost:~#
localhost:~# blkid
/dev/vda1: UUID="9adeb32c-979a-47e7-b034-cd800a81e867" BLOCK_SIZE="1024" TYPE="ext4" PARTUUID="30d6984f-01"
/dev/vda4: LABEL="tmp-partition" UUID="bc45f4ae-37b9-41fe-a76d-3b3c56187ba5" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="30d6984f-04"
/dev/vda2: UUID="d34884c7-e0f9-4346-ac60-373b204cc274" TYPE="swap" PARTUUID="30d6984f-02"
/dev/vdb: LABEL="50gb" UUID="ed64f636-1b13-4695-ad66-82236229d6e4" BLOCK_SIZE="4096" TYPE="ext4"
/dev/vda3: UUID="ada017ef-3181-40be-8e14-f45c49e00f3a" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="30d6984f-03"
localhost:~#
localhost:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
fd0 2:0 1 0B 0 disk
sr0 11:0 1 1024M 0 rom
vda 253:0 0 6G 0 disk
├─vda1 253:1 0 500M 0 part /boot
├─vda2 253:2 0 1G 0 part [SWAP]
├─vda3 253:3 0 3.6G 0 part /
└─vda4 253:4 0 975M 0 part /tmp
vdb 253:16 0 50G 1 disk /root/repo
localhost:~#
localhost:~# grep -i virt /var/log/messages | tail -10
localhost:~#
localhost:~# QEMU 7.2.0 monitor - type 'help' for more information
(qemu) info usernet
Hub -1 (net0):
Protocol[State] FD Source Address Port Dest. Address Port RecvQ SendQ
TCP[HOST_FORWARD] 13 * 15022 10.0.2.15 22 0 0
TCP[HOST_FORWARD] 12 * 15081 10.0.2.15 15081 0 0
(qemu)
(qemu) info block
drive2 (#block159): /storage/emulated/0/Download/qemu-test/vm-linux-grub.raw (raw)
Attached to: /machine/peripheral/virtblk2/virtio-backend
Cache mode: writeback

drive3 (#block337): /storage/emulated/0/Download/50gb.ext (raw, read-only)
Attached to: /machine/peripheral/virtblk3/virtio-backend
Cache mode: writeback

ide1-cd0: [not inserted]
Attached to: /machine/unattached/device[25]
Removable device: not locked, tray closed

floppy0: [not inserted]
Attached to: /machine/unattached/device[19]
Removable device: not locked, tray closed

sd0: [not inserted]
Removable device: not locked, tray closed
(qemu) drive_add 0 if=none,file=/storage/emulated/0/Download/qemu-test/disk3-1gb.img,format=raw,id=disk3
OK
(qemu)
(qemu) device_add virtio-blk-pci,drive=disk3,id=virt1
(qemu)
(qemu) info block
drive2 (#block159): /storage/emulated/0/Download/qemu-test/vm-linux-grub.raw (raw)
Attached to: /machine/peripheral/virtblk2/virtio-backend
Cache mode: writeback

drive3 (#block337): /storage/emulated/0/Download/50gb.ext (raw, read-only)
Attached to: /machine/peripheral/virtblk3/virtio-backend
Cache mode: writeback

ide1-cd0: [not inserted]
Attached to: /machine/unattached/device[25]
Removable device: not locked, tray closed

floppy0: [not inserted]
Attached to: /machine/unattached/device[19]
Removable device: not locked, tray closed

sd0: [not inserted]
Removable device: not locked, tray closed

disk3 (#block554): /storage/emulated/0/Download/qemu-test/disk3-1gb.img (raw)
Attached to: /machine/peripheral/virt1/virtio-backend
Cache mode: writeback
(qemu)
(qemu)

localhost:~#
localhost:~# blkid
/dev/vda1: UUID="9adeb32c-979a-47e7-b034-cd800a81e867" BLOCK_SIZE="1024" TYPE="ext4" PARTUUID="30d6984f-01"
/dev/vda4: LABEL="tmp-partition" UUID="bc45f4ae-37b9-41fe-a76d-3b3c56187ba5" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="30d6984f-04"
/dev/vda2: UUID="d34884c7-e0f9-4346-ac60-373b204cc274" TYPE="swap" PARTUUID="30d6984f-02"
/dev/vdb: LABEL="50gb" UUID="ed64f636-1b13-4695-ad66-82236229d6e4" BLOCK_SIZE="4096" TYPE="ext4"
/dev/vda3: UUID="ada017ef-3181-40be-8e14-f45c49e00f3a" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="30d6984f-03"
/dev/vdc2: PARTUUID="67aee5a3-02"
/dev/vdc3: PARTUUID="67aee5a3-03"
/dev/vdc1: PARTUUID="67aee5a3-01"
/dev/vdc4: PARTUUID="67aee5a3-04"
localhost:~#
localhost:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
fd0 2:0 1 0B 0 disk
sr0 11:0 1 1024M 0 rom
vda 253:0 0 6G 0 disk
├─vda1 253:1 0 500M 0 part /boot
├─vda2 253:2 0 1G 0 part [SWAP]
├─vda3 253:3 0 3.6G 0 part /
└─vda4 253:4 0 975M 0 part /tmp
vdb 253:16 0 50G 1 disk /root/repo
vdc 253:32 0 1G 0 disk
├─vdc1 253:33 0 250M 0 part
├─vdc2 253:34 0 250M 0 part
├─vdc3 253:35 0 250M 0 part
└─vdc4 253:36 0 273M 0 part
localhost:~#
localhost:~# grep -i virt /var/log/messages | tail -10
localhost:~#
localhost:~# dmesg | grep -i virt | tail -5
[ 60.805767] virtio_blk virtio2: [vda] 12582912 512-byte logical blocks (6.44 GB/6.00 GiB)
[ 61.178652] virtio_blk virtio3: [vdb] 104857600 512-byte logical blocks (53.7 GB/50.0 GiB)
[ 198.521301] kvm: Nested Virtualization enabled
[ 3705.086115] virtio-pci 0000:00:08.0: enabling device (0000 -> 0003)
[ 3710.408520] virtio_blk virtio5: [vdc] 2097152 512-byte logical blocks (1.07 GB/1.00 GiB)
localhost:~#
localhost:~#
localhost:~# fdisk -l /dev/vdc
Disk /dev/vdc: 1 GiB, 1073741824 bytes, 2097152 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x67aee5a3

Device Boot Start End Sectors Size Id Type
/dev/vdc1 2048 514047 512000 250M 83 Linux
/dev/vdc2 514048 1026047 512000 250M c W95 FAT32 (LBA)
/dev/vdc3 1026048 1538047 512000 250M 7 HPFS/NTFS/exFAT
/dev/vdc4 1538048 2097151 559104 273M 7 HPFS/NTFS/exFAT
localhost:~#
localhost:~# mkfs.ext4 -m 0 -L disk3-ext4 /dev/vdc1
mke2fs 1.46.6 (1-Feb-2023)
Discarding device blocks: done
Creating filesystem with 256000 1k blocks and 64000 inodes
Filesystem UUID: 56ba4f32-c1d6-4c6f-8391-d227b1f9d84d
Superblock backups stored on blocks:
8193, 24577, 40961, 57345, 73729, 204801, 221185

Allocating group tables: done
Writing inode tables: done
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done

localhost:~#
localhost:~# mkfs.vfat -F 32 -n DISK3-VFAT /dev/vdc2
mkfs.fat 4.2 (2021-01-31)
localhost:~#
localhost:~# mkfs.exfat -n disk3-exfat /dev/vdc3
mkexfatfs 1.3.0
Creating... done.
Flushing... done.
File system created successfully.
localhost:~#
localhost:~#
localhost:~# mkfs.ntfs --quick --label disk3-ntfs /dev/vdc4
Cluster size has been automatically set to 4096 bytes.
Creating NTFS volume structures.
mkntfs completed successfully. Have a nice day.
localhost:~#
localhost:~# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
fd0 2:0 1 0B 0 disk
sr0 11:0 1 1024M 0 rom
vda 253:0 0 6G 0 disk
├─vda1 253:1 0 500M 0 part /boot
├─vda2 253:2 0 1G 0 part [SWAP]
├─vda3 253:3 0 3.6G 0 part /
└─vda4 253:4 0 975M 0 part /tmp
vdb 253:16 0 50G 1 disk /root/repo
vdc 253:32 0 1G 0 disk
├─vdc1 253:33 0 250M 0 part
├─vdc2 253:34 0 250M 0 part
├─vdc3 253:35 0 250M 0 part
└─vdc4 253:36 0 273M 0 part
localhost:~#
localhost:~# blkid|grep vdc
/dev/vdc2: LABEL_FATBOOT="DISK3-VFAT" LABEL="DISK3-VFAT" UUID="53B6-A533" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="67aee5a3-02"
/dev/vdc3: LABEL="disk3-exfat" UUID="54A4-2DDB" BLOCK_SIZE="512" TYPE="exfat" PTTYPE="dos" PARTUUID="67aee5a3-03"
/dev/vdc1: LABEL="disk3-ext4" UUID="56ba4f32-c1d6-4c6f-8391-d227b1f9d84d" BLOCK_SIZE="1024" TYPE="ext4" PARTUUID="67aee5a3-01"
/dev/vdc4: LABEL="disk3-ntfs" BLOCK_SIZE="512" UUID="72C64A15152C97BD" TYPE="ntfs" PARTUUID="67aee5a3-04"
localhost:~#
localhost:~# exit
logout

Welcome to Alpine Linux 3.17
Kernel 5.15.106-0-virt on an x86_64 (/dev/ttyS0)

localhost login:
Welcome to Alpine Linux 3.17
Kernel 5.15.106-0-virt on an x86_64 (/dev/ttyS0)

localhost login: (qemu)
(qemu) system_powerdown
(qemu)
[ 4240.583796] reboot: Power down
~ $
~ $ pwd
/data/data/com.termux/files/home
~ $


Reference Links

  1. "Configuring LUKS: Linux Unified Key Setup": https://www.redhat.com/sysadmin/disk-encryption-luks
  2. "Frequently Asked Questions Cryptsetup/LUKS": https://gitlab.com/cryptsetup/cryptsetup/wikis/FrequentlyAskedQuestions
  3. "Encrypted Archive with Cryptsetup": https://dashohoxha.gitlab.io/cryptsetup-encrypted-archive/ , https://github.com/dashohoxha (dashohoxha), https://gitlab.com/dashohoxha
  4. "Basic Guide To Encrypting Linux Partitions With LUKS": https://linuxconfig.org/basic-guide-to-encrypting-linux-partitions-with-luks , https://linuxconfig.org/how-to-use-a-file-as-a-luks-device-key , https://linuxconfig.org/how-to-use-luks-with-a-detached-header
  5. "How To Linux Hard Disk Encryption With LUKS [ cryptsetup encrypt command ]": https://www.cyberciti.biz/security/howto-linux-hard-disk-encryption-with-luks-cryptsetup-command/
  6. "How to encrypt a single Linux filesystem": https://www.redhat.com/sysadmin/encrypt-single-filesystem (LUKS)
  7. "Create an encrypted file vault on Linux": https://opensource.com/article/21/4/linux-encryption (LUKS)
  8. "Encrypted filesystems, loop devices, cryptsetup": http://jeromebelleman.gitlab.io/posts/filesystems/cryptsetup/ (LUKS)
  9. "luks encryption with loopback file": https://gist.github.com/dbehnke/ad19ca8f1ccf80aebca5 , (@dbehnke)
  10. "An introduction to Linux filesystems": https://opensource.com/life/16/10/introduction-linux-filesystems (Linux "mount" command)
  11. "mount Command in Linux | Explained": https://itslinuxfoss.com/mount-command-linux/
  12. "How to Mount and Unmount Filesystems in Linux": https://www.baeldung.com/linux/mount-unmount-filesystems (Linux "fdisk" command)
  13. "How to Mount and Unmount File Systems in Linux": https://linuxize.com/post/how-to-mount-and-unmount-file-systems-in-linux/ (Linux "fdisk" command)
  14. "Managing partitions in Linux with fdisk": https://www.redhat.com/sysadmin/partitions-fdisk
  15. "Creating and managing partitions in Linux with parted": https://www.redhat.com/sysadmin/partitions-parted
  16. "Linux mount Command with Examples": https://phoenixnap.com/kb/linux-mount-command
  17. "An introduction to the Linux /etc/fstab file": https://www.redhat.com/sysadmin/etc-fstab
  18. "Chapter 24. Mounting file systems": https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html-single/managing_file_systems/index
  19. "Linux: Mount Disk Partition Using LABEL": https://www.cyberciti.biz/faq/rhel-centos-debian-fedora-mount-partition-label/
  20. "Linux commands: du and the options you should be using": https://www.redhat.com/sysadmin/du-command-options
  21. "Hard links and soft links in Linux explained": https://www.redhat.com/sysadmin/linking-linux-explained
  22. "Linux permissions: SUID, SGID, and sticky bit": https://www.redhat.com/sysadmin/suid-sgid-sticky-bit
  23. "How to audit permissions with the find command": https://www.redhat.com/sysadmin/audit-permissions-find
  24. "Getting started with socat, a multipurpose relay tool for Linux": https://www.redhat.com/sysadmin/getting-started-socat
  25. "Basic troubleshooting with telnet and netcat": https://www.redhat.com/sysadmin/telnet-netcat-troubleshooting (Linux "nc" command)
  26. Linux "mktemp" command: https://www.gnu.org/software/coreutils/manual/coreutils.html
  27. "How to use grep": https://www.redhat.com/sysadmin/how-to-use-grep
  28. "Manipulating text at the command line with grep": https://www.redhat.com/sysadmin/manipulating-text-grep
  29. "Manipulating text at the command line with sed": https://www.redhat.com/sysadmin/manipulating-text-sed
  30. "Manipulating text with sed and grep": https://www.redhat.com/sysadmin/manipulating-text-sed-grep
  31. "How to Kill a Process in Linux? Commands to Terminate": https://phoenixnap.com/kb/how-to-kill-a-process-in-linux
  32. kill, ps, "Linux Command Basics: 7 commands for process management": https://www.redhat.com/sysadmin/linux-command-basics-7-commands-process-management
  33. "Bash scripting: Moving from backtick operator to $ parentheses": https://www.redhat.com/sysadmin/backtick-operator-vs-parens
  34. Linux ext4 filesystem: "Filesystems in the Linux kernel": https://docs.kernel.org/filesystems/index.html , https://docs.kernel.org/filesystems/ext4/index.html ("ext4 Data Structures and Algorithms"), https://www.cyberciti.biz/faq/linux-modify-partition-labels-command-to-change-diskname/ ("Linux Change Disk Label Name on EXT2 / EXT3 / EXT4 File Systems"), https://www.redhat.com/sysadmin/disk-space ("Linux sysadmins want to know: Where did my disk space go?")
  35. "What sysadmins need to know about using Bash": https://www.redhat.com/sysadmin/bash-navigation
  36. "10 basic Linux commands you need to know": https://www.redhat.com/sysadmin/basic-linux-commands
  37. "8 fundamental Linux file-management commands for new users": https://www.redhat.com/sysadmin/linux-file-management-commands
  38. "8 essential Linux file navigation commands for new users": https://www.redhat.com/sysadmin/Linux-file-navigation-commands
  39. "Basic Linux commands and tools every sysadmin should know": https://clockhash.com/blog/basic-linux-commands-and-tools-every-sysadmin-should-know
  40. bash: https://www.gnu.org/software/bash/manual/bash.html ("Bash Reference Manual"), https://www.redhat.com/sysadmin/linux-environment-variables ("Linux environment variable tips and tricks"), https://www.redhat.com/sysadmin/scripting-writing-text-file ("Bash scripting: How to write data to text files"), https://www.redhat.com/sysadmin/pipes-command-line-linux ("Working with pipes on the Linux command line" "here-document (heredoc)" "here-string"), https://linuxhint.com/linux-pipe-command-examples/ ("Linux Pipe Command with Examples"), https://www.redhat.com/sysadmin/linux-shell-redirection-pipelining ("How to manipulate files with shell redirection and pipelines in Linux"), https://www.redhat.com/sysadmin/redirect-shell-command-script-output ("How to redirect shell command output"), https://www.redhat.com/sysadmin/history-command ("How to manage your Linux command history"), https://www.redhat.com/sysadmin/parsing-bash-history ("Parsing Bash history in Linux"), https://tldp.org/LDP/abs/html/ ("Advanced Bash-Scripting Guide" "Here Documents"), https://wiki.bash-hackers.org
  41. ctrl-c (control-c), ctrl-d (control-d): https://www.oreilly.com/library/view/learning-the-unix/1565923901/ch01s04.html ("The Unresponsive Terminal"), https://www.networkworld.com/article/3284105/linux-control-sequence-tricks.html ("Linux control sequence tricks"), https://web.cecs.pdx.edu/~rootd/catdoc/guide/TheGuide_38.html ("UNIX Control-Key Commands")
  42. Linux commands "tput init", "tput reset", "tput clear": https://www.gnu.org/software/termutils/manual/termutils-2.0/html_mono/tput.html ("Portable Terminal Control From Scripts"), https://tldp.org/LDP/abs/html/terminalccmds.html ("16.7. Terminal Control Commands"), https://www.cyberciti.biz/tips/bash-fix-the-display.html ("BASH Fix Display and Console Garbage and Gibberish on a Linux / Unix / macOS"), https://bash.cyberciti.biz/guide/Fixing_the_display_with_reset ("Fixing the display with reset")
  43. "The Linux man-pages project": https://www.kernel.org/doc/man-pages/ , https://mirrors.edge.kernel.org/pub/linux/docs/man-pages/book/
  44. "How to find out what a Linux command does": https://www.redhat.com/sysadmin/linux-command-documentation
  45. Linux 'tree" and "ls" commands: https://www.cyberciti.biz/faq/linux-show-directory-structure-command-line/ ("Linux see directory tree structure using tree command"), https://www.redhat.com/sysadmin/ls-command-options ("Sysadmin tools: 11 ways to use the ls command in Linux"), https://www.redhat.com/sysadmin/Linux-file-navigation-commands ("8 essential Linux file navigation commands for new users")
  46. "How to Use the less, more, and most Commands to Read Text Files in Linux": https://www.makeuseof.com/use-less-more-and-most-linux-commands/
  47. Linux text editor "nano": https://www.redhat.com/sysadmin/getting-started-nano ("Getting started with Nano")
  48. Linux text editors "vi", "vim", "ed": https://www.redhat.com/sysadmin/get-started-vi-editor ("How to get started with the Vi editor"), https://www.redhat.com/sysadmin/introduction-vi-editor ("An introduction to the vi editor"), https://www.redhat.com/sysadmin/beginners-guide-vim ("Linux basics: A beginner's guide to text editing with vim"), https://www.redhat.com/sysadmin/vim-commands ("Vim: Basic and intermediate commands"), https://www.redhat.com/sysadmin/introduction-ed-editor ("How to get started with the ed text editor")
  49. Linux web browswer "links": http://links.twibright.com , http://links.twibright.com/download.php ("Documentation"), https://www.tecmint.com/command-line-web-browsers/ ("A Command Line Web Browsing with Lynx and Links Tools")
  50. Linux "grep" command: https://www.redhat.com/sysadmin/find-text-files-using-grep ("Find text in files using the Linux grep command")
  51. Linux "echo" command: https://phoenixnap.com/kb/echo-command-linux ("Echo Command in Linux (With Examples)"), https://www.tecmint.com/echo-command-in-linux/ ("15 Practical Examples of ‘echo’ command in Linux"),
  52. Linux "find" command: https://www.redhat.com/sysadmin/linux-find-command ("10 ways to use the Linux find command"), : https://www.redhat.com/sysadmin/find-best-friend ("When it comes to Linux system troubleshooting, find is my best friend")
  53. Regular expressions (regex): https://www.redhat.com/sysadmin/introducing-regular-expressions ("Introducing regular expressions"), https://www.redhat.com/sysadmin/getting-started-regular-expressions-example ("Getting started with regular expressions: An example"), https://www.redhat.com/sysadmin/regex-grep-data-flow ("Regex and grep: Data flow and building blocks"), https://www.redhat.com/sysadmin/regular-expressions-pulling-it-all-together ("Regular expressions: Pulling it all together"), https://opensource.com/article/18/5/getting-started-regular-expressions ("Getting started with regular expressions")
  54. Linux "chmod" command: https://www.redhat.com/sysadmin/linux-file-permissions-xplained ("Linux file permissions explained"), https://www.redhat.com/sysadmin/introduction-chmod ("Linux permissions: An introduction to chmod"), https://www.redhat.com/sysadmin/manage-permissions ("How to manage Linux permissions for users, groups, and others"), https://www.redhat.com/sysadmin/linux-permissions ("What sysadmins need to know about Linux permissions")
  55. Linux "bc" command: https://www.gnu.org/software/bc/manual/html_mono/bc.html ("bc" "an arbitrary precision calculator language"), https://linuxconfig.org/bc ("bc command in Linux with examples"), https://web.archive.org/web/20211207113205/docstore.mik.ua/orelly/unix/upt/ch49_03.htm ("Chapter 49 Working with Numbers" "49.3 Gotchas in Base Conversion"), https://www.networkworld.com/article/3681079/converting-numbers-on-linux-among-decimal-hexadecimal-octal-and-binary.html ("Converting numbers on Linux among decimal, hexadecimal, octal, and binary"), https://www.theunixschool.com/2011/05/bc-unix-calculator.html ("bc - Unix calculator"), https://www.real-world-systems.com/docs/bc.1.html ("bc" "arbitrary precision calculator"), http://www.physics.smu.edu/coan/linux/bc.html ("6. (Very) Brief intro to bc")
  56. Linux "apt" command: https://linuxhint.com/debian_sources-list/ ("Understanding and Using Debian sources.list"), https://wiki.debian.org/SourcesList ("Configuring Apt Sources")
  57. Web-based Distributed Authoring and Versioning (WebDAV), Linux command "cadaver": http://www.webdav.org , https://docs.vscentrum.be/en/latest/data/cadaver_client_access.html ("Cadaver Client Access"), https://github.com/hpcloud/swift-webdav/blob/master/doc/Cadaver.md ("Using the Cadaver WebDAV Client"). https://help.webpal.net/apis/webdav ("WebPal Resources for Editors, Admins, Collaborators and Coders" "WebDAV Interface")
  58. Check the apps: https://www.virustotal.com/gui/home/url ("OPSWAT. MetaDefender Cloud"), https://metadefender.opswat.com ("VirusTotal")
  59. darkhttpd: When you need a web server in a hurry.: https://github.com/emikulic/darkhttpd (@emikulic), https://unix4lyfe.org/darkhttpd/ ("darkhttpd" "When you need a web server in a hurry.")


Additional Installed Software

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment