Heyas
So, i like doing custom a LiveImage of my OS.
Using Redhats kickstart/livecd-creator method.
Anyway, so i would like to test the liveimages...
AND also, i WOULD like to install FreeBSD, Solaris, or whatever, onto a Virtual Machine.
I used to use Oracles Virtualbox, but eversince i'm booting with SecureBoot enabled, i'm no longer able to start it, so i had to change to QEMU.
Now, to just 'test' if the fresh generated iso is 'working' or not, QEMU is just fine.
But if i ever want to actualy do in QEMU, like, switching desktop, or changing the folder in pcmanfm inside QEMU, it needs patience out of this world...
I'm running my ISO's like this:
#!/bin/bash
# isotest
# Description: Simply boots an iso file with qemu.
# ------------------------------------------------------
#
# Variables
#
DEFAULT_ARCH=x86_64
DEFAULT_ARCH=$(uname -m)
DEFAULT_RAM=$(( 4 * 1024 ))
DEFAULT_CORES=4
DEFAULT_VGA=vmware
DEFAULT_FORMAT=qcow2
DEFAULT_SIZE=5G
DEFAULT_IMAGE_DIR=$HOME/Virtual_Machine_Images
DEFAULT_IMAGE_FILE=isotest.img
#
# Display & Action
#
qemu-system-$DEFAULT_ARCH \
-smp $DEFAULT_CORES \
-m $DEFAULT_RAM \
-cdrom "$1"
And to 'install' or run an intalled image i execute:
#!/bin/bash
# distrotest
# Description: Simply boots an OS file with qemu.
# ------------------------------------------------------
#
# Variables
#
DEFAULT_ARCH=x86_64
DEFAULT_ARCH=$(uname -m)
DEFAULT_RAM=$(( 4 * 1024 ))
DEFAULT_CORES=4
DEFAULT_VGA=vmware
DEFAULT_FORMAT=qcow2
DEFAULT_SIZE=5G
DEFAULT_IMAGE_DIR=$HOME/Virtual_Machine_Images
DEFAULT_IMAGE_FILE=distrotest.img
#
# Functions
#
DEFAULT_IMAGE="$DEFAULT_IMAGE_DIR/$DEFAULT_IMAGE_FILE"
[[ -f "$1" ]] || exit 1
if [[ ! -f "$DEFAULT_IMAGE" ]]
then # We just need an image to boot an iso, this can be quite small.
qemu-img create -f "$DEFAULT_FORMAT" "$DEFAULT_IMAGE" $DEFAULT_SIZE
fi
#
# Display & Action
#
qemu-system-$DEFAULT_ARCH \
-smp $DEFAULT_CORES \
-m $DEFAULT_RAM \
-cdrom "$1" \
-hda "$DEFAULT_IMAGE"
# -full-screen \
As you see, i'm quite, sharing?, with my hardware for qemu...
4 Cores and 4 GB of ram, but booting an ISO (same for installed) takes up to ~7mins, when with O-VB it was as low as ~1min -- using 768mb ram and 70% of 1 core....
Doing a mouse click and wait for like 20 secs for ANYTHING to happen, is just annoying.
Any ideas or advices please?
Thank you in advance