~razzi/ronin

a788bda2edace3b1a990f7b69838bdb6b4ed6554 — Razzi Abuissa 7 months ago f43e589
Checkpoint before making guest use script
1 files changed, 10 insertions(+), 5 deletions(-)

M ronin2.sh
M ronin2.sh => ronin2.sh +10 -5
@@ 3,9 3,6 @@

set -x

BASEDIR=$(dirname "$0")
ABSOLUTE_SCRIPT_PATH=$(readlink -f "$BASEDIR")

mkdir -p ~/.ronin && cd ~/.ronin || return

DEBIAN_VERSION=12


@@ 26,6 23,14 @@ test ! -f $RONIN_DISK && \
ssh-keygen -t ed25519 -f ronin_key.priv -N ''
mv ronin_key.priv.pub ronin_key.pub

"$ABSOLUTE_SCRIPT_PATH"/setup-ssh.exp
GUEST_SSHD_KEY=guest_ssh_host_ed25519_key.pub
test ! -f $GUEST_SSHD_KEY && ./setup-ssh.sh

# Launch the VM for prime time
qemu-system-x86_64 \
  -hda ronin-disk.qcow2 \
  -m 4096 \
  -nic hostfwd=tcp::2022-:22 \
  -daemonize

exit 0
ssh ronin@localhost -p 2022 -i ronin_key.priv