-
Notifications
You must be signed in to change notification settings - Fork 19
/
hck_setup.cfg
187 lines (154 loc) · 6.28 KB
/
hck_setup.cfg
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
# Copyright (c) 2013, Daynix Computing LTD (www.daynix.com)
# All rights reserved.
#
# Maintained by [email protected]
#
# This file is a part of VirtHCK, please see the wiki page
# on https://github.com/daynix/VirtHCK/wiki for more.
#
# This code is licensed under standard 3-clause BSD license.
# See file LICENSE supplied with this package for the full license text.
#Settings file for HCK setup
#Setup ID
UNIQUE_ID=11 # 1 ... 9999
# Run QEMU process as root (note: VirtHCK should ALWAYS be started with root
# privileges. Setting this option to "false" will just make the process drop
# the root privileges once running, if started via sudo).
# "false" is recommended! The default is "true" for backward compatibility.
RUN_QEMU_AS_ROOT=true
#HCK root
HCK_ROOT=`dirname $0`
HCK_ROOT_FULL_PATH=$(dirname `realpath $0`)
#QEMU PATH
QEMU_BIN=/usr/libexec/qemu-kvm
QEMU_IMG_BIN=qemu-img
#IVSHMEM SERVER PATH
IVSHMEM_SERVER_BIN=ivshmem-server
#FS DEAMON PATH
FS_DEAMON_BIN=virtiofsd
#Test device
#For each device there are three parameters as follows:
#Please note that setting video's TEST_DEV_NAME and TEST_DEV_EXTRA_PARAMS
#is not currently supported.
TEST_DEV_TYPE="network" TEST_DEV_NAME="virtio-net-pci" TEST_DEV_EXTRA_PARAMS=""
#TEST_DEV_TYPE="bootstorage" TEST_DEV_NAME="virtio-blk-pci" TEST_DEV_EXTRA_PARAMS=""
#TEST_DEV_TYPE="storage-blk" TEST_DEV_NAME="virtio-blk-pci" TEST_DEV_EXTRA_PARAMS=""
#TEST_DEV_TYPE="fs-filter" TEST_DEV_NAME="" TEST_DEV_EXTRA_PARAMS=""
#TEST_DEV_TYPE="storage-scsi" TEST_DEV_NAME="virtio-scsi-pci" TEST_DEV_EXTRA_PARAMS=""
#TEST_DEV_TYPE="rng" TEST_DEV_NAME="virtio-rng-pci" TEST_DEV_EXTRA_PARAMS=""
#TEST_DEV_TYPE="balloon" TEST_DEV_NAME="virtio-balloon-pci" TEST_DEV_EXTRA_PARAMS=""
#TEST_DEV_TYPE="pvpanic" TEST_DEV_NAME="pvpanic" TEST_DEV_EXTRA_PARAMS=""
#TEST_DEV_TYPE="vioinput" TEST_DEV_NAME="virtio-keyboard-pci" TEST_DEV_EXTRA_PARAMS=""
#TEST_DEV_TYPE="serial" TEST_DEV_NAME="virtio-serial-pci" TEST_DEV_EXTRA_PARAMS=""
#TEST_DEV_TYPE="usb" TEST_DEV_NAME="usb-storage" TEST_DEV_EXTRA_PARAMS=""
#TEST_DEV_TYPE="usb3" TEST_DEV_NAME="usb-storage" TEST_DEV_EXTRA_PARAMS=""
#TEST_DEV_TYPE="ivshmem" TEST_DEV_NAME="ivshmem-doorbell" TEST_DEV_EXTRA_PARAMS=""
#TEST_DEV_TYPE="video"
#TEST_DEV_TYPE="viocrypt" TEST_DEV_NAME="virtio-crypto-pci" TEST_DEV_EXTRA_PARAMS=""
#TEST_DEV_TYPE="vsock" TEST_DEV_NAME="vhost-vsock-pci" TEST_DEV_EXTRA_PARAMS=""
#TEST_DEV_TYPE="viofs" TEST_DEV_NAME="vhost-user-fs-pci" TEST_DEV_EXTRA_PARAMS=""
#TEST_DEV_TYPE="viogpu" TEST_DEV_NAME="virtio-vga" TEST_DEV_EXTRA_PARAMS=""
#Test device: virtual or physical
#Set IS_PYHSICAL to true if the test device is physical.
#Please note that this feature currently supports network devices only.
#CLIENT_HOST_ADDRESS is the pci address of the physical card.
#ASSIGNMENT=[vfio-pci | pci-assign]
IS_PHYSICAL=false
ASSIGNMENT=vfio-pci
CLIENT1_HOST_ADDRESS=01:00.0
CLIENT2_HOST_ADDRESS=03:00.0
#Machine type
MACHINE_TYPE=pc
#MACHINE_TYPE=q35
#Boot options
BOOT_ORDER="order=cd,menu=on"
#VIDEO
VIDEO_TYPE=VNC
#VIDEO_TYPE=SPICE
#TEST NETWORK BACKEND
TEST_NET_TYPE=bridge
#TEST_NET_TYPE=OVS
TEST_NETWORK_INTERFACE=tap
#TEST_NETWORK_INTERFACE=macvtap
#World bridge name
WORLD_BR_NAME=br0
#IMAGES
# Disable UUIDs (useful for WLK of 2008/Vista for clients and DTM controller)
# DISABLE_UUIDS=true
IMAGES_DIR=`dirname ${HCK_ROOT}`/images
STUDIO_IMAGE=${IMAGES_DIR}/HCK_Studio_WS2008R2_SP1.qcow2
CLIENT1_IMAGE=${IMAGES_DIR}/HCK_Client1_WS2008R2_SP1.qcow2
CLIENT2_IMAGE=${IMAGES_DIR}/HCK_Client2_WS2008R2_SP1.qcow2
# File System Testing Prerequisites image
# If this parameter is defined and the file exists, the test image will be
# copied from it. Otherwise, a new unpartitioned image will be created.
FILESYSTEM_TESTS_IMAGE=${IMAGES_DIR}/filesystem_tests_image.qcow2
# Use sufficient QCOW2 L2 cache to cover the entire virtual size of the image.
# Setting this to "true" can increase the performance significantly.
# More details on this: https://git.qemu.org/?p=qemu.git;a=blob;f=docs/qcow2-cache.txt
USE_FULL_QCOW2_L2_CACHE=false
#CDROM options for clients
#CDROM_CLIENT="/non/existing/path/en_windows_server_2008_r2_with_sp1_x64_dvd_617601.iso"
CDROM_CLIENT1=$CDROM_CLIENT
CDROM_CLIENT2=$CDROM_CLIENT
#RESOURCES
CLIENT1_CPUS=4
CLIENT2_CPUS=4
CLIENT1_MEMORY=4G
CLIENT2_MEMORY=4G
WORLD_NET_DEVICE=e1000e
CTRL_NET_DEVICE=e1000e
FILE_TRANSFER_DEVICE=e1000e
#USB device
#CLIENT1_USB_DEV="/non/existing/path/usb1.raw"
#CLIENT2_USB_DEV="/non/existing/path/usb2.raw"
#vIOMMU
vIOMMU=off
#Options for setup installation
UNSAFE_CACHE=off # Turn on ONLY for installation!
CLIENT_WORLD_ACCESS=off # Turn on ONLY for activation purposes!
#MISC
VHOST_STATE=on
TAP_TX_OFF=off
SNAPSHOT=off
ENLIGHTENMENTS_STATE=off
DISABLE_BRIDGE_NF=on
#OPT_CPU_FLAGS=",+ssse3,+sse4.1,+sse4.2" # Optional extra flags for CPU
VCPU_MODEL=13 # For example: 13 = Dothan, 26 = Nehalem, 58 = IvyBridge
ENABLE_S3=on
ENABLE_S4=on
#BIOS may be required if S3/S4 supported
#BIOS_CLIENT="/non/existing/path/qemu/pc-bios/bios.bin"
BIOS_CLIENT1=$BIOS_CLIENT
BIOS_CLIENT2=$BIOS_CLIENT
#Virtio-net device speed
#VIRTIONET_SPEED=100000
#Set remote viewers (VNC) title postfix for setup VMs
TITLE_POSTFIX=`pwd`
#SMB share
SHARE_ON_HOST=${HCK_ROOT}/SMB_SHARE # The default share on the host
#Modify the default samba share network address
SHARE_ON_HOST_NET='192.168.101' # The =FIRST THREE= octets of the share IP
#Virtiofsd shared directory
VIOFSD_SHARE=${HCK_ROOT_FULL_PATH}/VIOFSD_SHARE
#Virtio-net multiqueueing
#CLIENT1_N_QUEUES=8
#CLIENT2_N_QUEUES=8
#Network backend multiqueueing (ignored when Virtio-net multiqueueing enabled)
CLIENT1_NETDEV_QUEUES=1
CLIENT2_NETDEV_QUEUES=1
#QEMU Tracing
#CLIENT1_TRACE_EVENTS=/non/existing/path/trace_events.list
#CLIENT2_TRACE_EVENTS=/non/existing/path/trace_events.list
#Log clients output to file
#Output will be stored in a separate file for each client for each run
#Name of specific file will be printed to the console before client respawn
#CLIENT1_LOG=on
#CLIENT2_LOG=on
LOGS_DIR=`dirname ${HCK_ROOT}`/logs
#EXTRA PARAMS
#STUDIO_EXTRA="-cdrom /non/existing/path/en_windows_server_2008_r2_with_sp1_x64_dvd_617601.iso"
#CLIENT1_EXTRA=""
#CLIENT2_EXTRA=""
# Run setup configuration
. ${HCK_ROOT}/hck_aux.sh