Skip to content
Go back

amd mini pc 7840H all in one

Platform Selection

There are many virtualization platforms to choose from. ESXi now requires a license in the future. Proxmox VE comes with a web interface and LXC support, but I don’t really need those features. So in the end, I chose KVM.

Debian Installation and Setup

KVM Basic Environment

apt install --no-install-recommends qemu-system libvirt-clients libvirt-daemon-system virtinst
bridge-utils firewalld dnsmasq-base qemu-utils
apt-get install osinfo-db-tools
wget https://releases.pagure.org/libosinfo/osinfo-db-20240701.tar.xz
osinfo-db-import --local osinfo-db-20240701.tar.xz
apt-get install cloud-image-utils
adduser debian libvirt
virsh list --all
virsh --connect qemu:///system list --all
virsh pool-list --all
mkdir -p /data/pool
virsh pool-define-as --name default --type dir --target /data/pool/
virsh pool-start default
virsh pool-autostart default
virsh pool-info default

vm

wget https://cdimage.debian.org/images/cloud/bookworm/latest/debian-12-nocloud-amd64.qcow2
virt-install --import --name debian\
--vcpus 4 \
--cpu host \
--memory 4096 \
--virt-type kvm \
--network bridge=br0 \
# 这里网口要和前面的网络配置对应上
--disk /data/pool/debian.qcow2 \
--os-variant debian12\
--graphics vnc,listen=0.0.0.0 --noautoconsole --autostart
virsh snapshot-create-as --domain debian --name debian --description "nothing"
virsh snapshot-list debian

Others

Configured VNC; it starts from port 5900 by default. If no specific port is set, after a reboot the port may change.

virsh vncdisplay debian

Docker Services

to do list


Share this post on:

Previous Post
setup windows environment