mirror of
https://github.com/siderolabs/talos.git
synced 2025-08-19 05:31:14 +02:00
This PR removes the references to adding in the random CPU trust to the kernel for all v0.4 docs, as well as in the iso command in the installer. This is no longer needed with the newer linux kernel. Signed-off-by: Spencer Smith <robertspencersmith@gmail.com>
45 lines
934 B
Bash
Executable File
45 lines
934 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
: ${TALOS_QEMU_ROOT:="/tmp"}
|
|
|
|
if [[ $# -ne 1 ]]; then
|
|
echo 1>&2 "Usage: $0 <machine config URL>"
|
|
exit 3
|
|
fi
|
|
|
|
case $(uname -s) in
|
|
Linux*)
|
|
ACCEL=kvm
|
|
;;
|
|
|
|
Darwin*)
|
|
ACCEL=hvf
|
|
;;
|
|
*)
|
|
exit 1
|
|
;;
|
|
esac
|
|
|
|
KERNEL="build/vmlinuz"
|
|
INITRD="build/initramfs.xz"
|
|
IMAGE="$TALOS_QEMU_ROOT/rootfs.qcow2"
|
|
MACHINE_CONFIG="${1}"
|
|
|
|
qemu-img create -f qcow2 ${IMAGE} 8G
|
|
|
|
qemu-system-x86_64 \
|
|
-m 2048 \
|
|
-accel ${ACCEL},thread=multi \
|
|
-cpu max \
|
|
-smp 2 \
|
|
-hda ${IMAGE} \
|
|
-netdev user,id=talos,ipv4=on,net=10.254.0.0/24,dhcpstart=10.254.0.10,hostfwd=tcp::50000-:50000,hostname=master-1 \
|
|
-device virtio-net,netdev=talos \
|
|
-nographic \
|
|
-serial mon:stdio \
|
|
-append "talos.platform=metal page_poison=1 slub_debug=P slab_nomerge pti=on printk.devkmsg=on earlyprintk=serial,tty0,keep console=tty0 talos.config=${MACHINE_CONFIG}" \
|
|
-kernel ${KERNEL} \
|
|
-initrd ${INITRD}
|