summaryrefslogtreecommitdiffstats
path: root/core/modules/qemu/data/opt/openslx/vmchooser/plugins/qemu/includes/log_config_summary.inc
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/qemu/data/opt/openslx/vmchooser/plugins/qemu/includes/log_config_summary.inc')
-rw-r--r--core/modules/qemu/data/opt/openslx/vmchooser/plugins/qemu/includes/log_config_summary.inc35
1 files changed, 35 insertions, 0 deletions
diff --git a/core/modules/qemu/data/opt/openslx/vmchooser/plugins/qemu/includes/log_config_summary.inc b/core/modules/qemu/data/opt/openslx/vmchooser/plugins/qemu/includes/log_config_summary.inc
new file mode 100644
index 00000000..6b4b279f
--- /dev/null
+++ b/core/modules/qemu/data/opt/openslx/vmchooser/plugins/qemu/includes/log_config_summary.inc
@@ -0,0 +1,35 @@
+##################################################
+# Include: Print vm config summary into log file #
+##################################################
+
+log_config_summary() {
+ writelog "Directories:"
+ writelog "\tTMPDIR:\t\t\t$TMPDIR"
+ writelog "Disk image:"
+ writelog "\tSource disk:\t\t$VM_DISKFILE_RO"
+ if [ -e "${VM_DISKFILE_RW}" ]; then
+ writelog "\tDisk mode:\t\twritable"
+ writelog "\tRW-Layer:\t\t$VM_DISKFILE_RW"
+ else
+ writelog "\tDisk mode:\t\tread-only"
+ fi
+
+ writelog "Virtual Hardware:"
+ writelog "\tvCPU cores:\t\t${CPU_CORES}"
+ writelog "\tGuest RAM:\t\t${VM_MEM} MB"
+
+ # echo nur wenn HOST_MEM_REMAINING gesetzt
+ if isset HOST_MEM_REMAINING; then
+ writelog "\tHost RAM:\t\t${HOST_MEM_REMAINING} MB"
+ fi
+ writelog "\tMAC address:\t\t${VM_MAC_ADDR}"
+ writelog "\tNetwork card:\t\t${NIC_MODEL}"
+ writelog "\tNetwork kind:\t\t${NETWORK_MODE}"
+ writelog "\tCD-ROM1:\t${CDROM_0}"
+ writelog "\tCD-ROM2:\t${CDROM_1}"
+ writelog "\tFloppy_A:\t${FLOPPY_0}"
+ writelog "\tFloppy_B:\t${SLX_FLOPPY_IMG}"
+ #writelog "\tShared Folders 'home':\t/home/${USER}"
+}
+
+call_post_source log_config_summary