forked from T-vK/MobilePassThrough
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefault.conf
65 lines (44 loc) · 3.36 KB
/
default.conf
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
VM_NAME="WindowsVM" # Required
CPU_CORE_COUNT=1 # Required
RAM_SIZE=1G # Required
VM_DISK_SIZE=20G # Required once, Changing this after the drive image has been created has no effect
VM_FILES_DIR="${PROJECT_DIR}/vm-files" # Required ; The folder into which all files for your VM will be saved
DRIVE_IMG="${VM_FILES_DIR}/${VM_NAME}.img" # Required ; The location of your VM disk
INSTALL_IMG="${VM_FILES_DIR}/windows10.iso" # Required for Windows installation
DGPU_ROM=""# Optional; for example "${VM_FILES_DIR}/vbios-roms/vbios.rom"
SMB_SHARE_FOLDER="" # Optional; for example "${VM_FILES_DIR}/vmshare"
OVMF_CODE="/usr/share/OVMF/OVMF_CODE.fd" # Required
OVMF_VARS="/usr/share/OVMF/OVMF_VARS.fd" # Required
WIN_VARS="${VM_FILES_DIR}/${VM_NAME}_VARS.fd" # Required
VIRTIO_WIN_IMG="/usr/share/virtio-win/virtio-win.iso" # Required for driver installation
HELPER_ISO="${VM_FILES_DIR}/mobile-passthrough-helper.iso" # Required for automated driver installation, looking glass setup, IP setup, remote desktop setup etc
DGPU_PCI_ADDRESS=01:00.0 # Required; If you don't use Bumblebee, you have to set this to the correct PCI address of your dGPU (see output of lspci)
# This project has only been tested with Bumblebee enabled.
IGPU_PCI_ADDRESS=00:02.0 # Recommended; required for mediated iGPU passthrough. you can cehck your iGPU PCI address using lspci
DGPU_PASSTHROUGH=true # Recommended
SHARE_IGPU=true # Recommended to save battery life (this is mediated iGPU passthrough using GVT-g)
HOST_DGPU_DRIVER=nvidia # Only tested with "nvidia", not tested with "nouveau"
VIRTUAL_INPUT_TYPE="usb-tablet" # "usb-tablet", "virtio" or "". If keyboard input doesn't work properly for you, you may want to use "virtio" instead of "usb-tablet"
MAC_ADDRESS="" # Required
NETWORK_MODE=TAP # Currently only supports TAP (bridged, NAT and none don't work atm)
USE_LOOKING_GLASS=true # Optional
LOOKING_GLASS_MAX_SCREEN_WIDTH=1920 # Recommended (bigger resolutions will result in a bigger buffer with worse performance)
LOOKING_GLASS_MAX_SCREEN_HEIGHT=1080 # Recommended (bigger resolutions will result in a bigger buffer with worse performance)
LOOKING_GLASS_VERSION=a12 # Recommended
USE_SPICE=true # Required for Windows installation and recommended for Looking Glass
SPICE_PORT=5900 # 5900 is recommended
USE_DMA_BUF=true # Optional
USE_QXL=true # Required for RDP
# USB devices to pass through automatically while the VM is running. Separated by semicolons!
# (See output of lsusb for vendorid/productid or hostbus/hostaddr)
USB_DEVICES=""
# example1: USB_DEVICES="hostbus=3,hostaddr=9"
# example2: USB_DEVICES="vendorid=0x0b95,productid=0x1790"
# example3: USB_DEVICES="vendorid=0x0b12,productid=0x9348;vendorid=0x0b95,productid=0x1790;hostbus=3,hostaddr=9"
####### This part of the config get's burned into the helper iso that you can generate using generate-helper-iso.sh ######
# Not implemented yet; Please change the helper-iso-files/start.bat file manually, if you need to change the IPs
#V_NETWORK_GATEWAY_IP=192.168.99.1 # Recommended (Leave this as is unless you know what you're doing)
#V_NETWORK_DNS_IP=192.168.99.1 # Recommended (Leave this as is unless you know what you're doing)
#V_NETWORK_IP=192.168.99.2 # Recommended (Leave this as is unless you know what you're doing)
# TODO: add DHCP
##########################################################################################################################