summaryrefslogtreecommitdiffstats
path: root/core/modules/qemukvm/data/opt/openslx/vmchooser/plugins/qemukvm/includes/log_config_summary.inc
blob: 6b4b279f6e780334ed790236547105084ab158ac (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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