From 5efa1db28d88d6ac2998e9584d94c29a55b19d5e Mon Sep 17 00:00:00 2001 From: forksand Date: Sat, 10 Apr 2021 19:06:52 -0600 Subject: [PATCH] vweb3 --- .../apps/qemu/forksand-kvm-ppc64el-vweb3 | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100755 source/resources/apps/qemu/forksand-kvm-ppc64el-vweb3 diff --git a/source/resources/apps/qemu/forksand-kvm-ppc64el-vweb3 b/source/resources/apps/qemu/forksand-kvm-ppc64el-vweb3 new file mode 100755 index 0000000..ac47db3 --- /dev/null +++ b/source/resources/apps/qemu/forksand-kvm-ppc64el-vweb3 @@ -0,0 +1,41 @@ +#!/bin/bash + +set -x + +sudo kvm \ + -serial telnet:localhost:2020,server,nowait \ + -monitor telnet:127.0.0.1:2021,server,nowait \ + -vga none \ + -runas vweb3 \ + -daemonize \ + -display none \ + -nic tap,model=virtio,mac=52:54:00:12:34:20 \ + -machine pseries,accel=kvm,kvm-type=HV \ + -smp 4 \ + -m 4096 \ + -name vweb3 \ + -drive format=qcow2,cache=writeback,discard=on,file=/srv/kvm/vweb3/boot.img \ + -drive format=qcow2,cache=writeback,discard=on,file=/srv/kvm/vweb3/swap.img \ + -drive format=qcow2,cache=writeback,discard=on,file=/srv/kvm/vweb3/root.img \ + -drive format=qcow2,cache=writeback,discard=on,file=/srv/kvm/vweb3/home.img + +exit + +# Install +# -boot d \ +# -cdrom /srv/devel/distros/debian/debian-apache-mini.iso \ + +# IMAGE +# qemu-img create -f qcow2 /srv/kvm/vweb3/boot.img 256M +# qemu-img create -f qcow2 /srv/kvm/vweb3/swap.img 128M +# qemu-img create -f qcow2 /srv/kvm/vweb3/root.img 2G + +# Resize +# qemu-img resize foo.img +10G +# qemu-img resize /srv/kvm/vweb3/root.img +10G + +# to use the kvm_pr.ko kernel module. +# qemu-system-ppc64 -M pseries,accel=kvm,kvm-type=PR +# to use kvm_hv.ko instead. +# qemu-system-ppc64 -M pseries,accel=kvm,kvm-type=HV +