-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathbvm-config
80 lines (61 loc) · 4.12 KB
/
bvm-config
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
#!/bin/bash
#bvm configuration file
#This is a script, but nothing useful happens when you run it.
#BVM sources the script on each run in order to pick up your settings in an easier format.
#Do not change this file if it is in the bvm/resources folder. Leave that one alone.
#Make changes to the copy of the file in your VM directory that is created after running bvm new-vm
#Windows username and password to set during the firstboot mode.
vm_username="Win11ARM"
vm_password="win11arm"
#If you change your windows user/password, change it here too for the connect mode to work.
#Select Windows language to download. List all languages with: bvm list-languages
download_language="English (United States)"
#Change this to false if you don't want Microsoft bloatware, ads, and Windows Defender removed during firstboot.
debloat=true
#Be aware that other registry changes (like dark mode, disabling hibernation, and RDP) will still be run on the VM.
#Inspect the firstlogin.ps1 and autounattend.xml files for more details.
#Choose the initial size of the disk image.
disksize=40
#This can go as low as 20 if you encounter the "Insufficient free disk space" error.
#The drive can be expanded later, but not from this config option.
##### ATTENTION!!!
##### The above options need to be set before running the download step.
##### The remaining options can be changed at any time.
#If you have mutliple VMs, give each one a unique value.
rdp_port=3389
#Force RAM allocation for QEMU. (in gigabytes) It's recommended to leave this commented for BVM to choose a sensible value.
#vm_mem=4
#If your device has 4GB or less RAM, it is strongly recommended you set up ZRAM.
#An excellent ZRAM implementation can be found on Pi-Apps called 'More RAM'
#You can install it directly with: wget -qO- https://raw.githubusercontent.com/Botspot/pi-apps/master/apps/More%20RAM/install | bash
#Leave this much free RAM for Linux at all times. Default is 100 (MB)
#free_ram_goal=100
#Every second, the VM will adjust its RAM allocation to make sure this much is freely available for Linux.
#If linux tasks begin to use more, the VM will compensate and use less.
#USB forwarding: uncomment this line for the VM to have direct access to a USB device.
#usb_passthrough='05dc:a720'
#Replace 05dc:a720 with the value you see, for the device you want, from the output of lsusb
#For multiple devices, keep it in those quotes, but separate each one with a space character.
#Uncomment this to turn off animations and transparency in the connect mode
#reduce_graphics=true
#Uncomment to view the VM in fullscreen. Uncommenting this overrides the fullscreen setting in GUI.
#fullscreen=true
#Uncomment to enable additional output to help troubleshoot issues.
#bvm_debug=true
#Even more debugging: (displays every command run by the script)
#set -x
#Uncomment to disable BVM updates. Useful if you have changed the script and do not want your changes overwritten
#disable_updates=true
#Most users should not have to be modifying the bvm script. It is preferable to keep all changes in this config file.
#If your situation needs more flexibility than what the config file offers, contact me and I can try to implement something that helps everyone.
#Pass additional flags to the FreeRDP viewer
#add_freerdp_flags=(-drives -home-drive -wallpaper)
#See all options by running wlfreerdp -help or xfreerdp -help
#Network settings: leave this alone unless you know what you are doing and need to change it.
#For security, the VM's RDP port is only accessible on localhost, not on the LAN. To change that, replace 127.0.0.1 with 0.0.0.0
#Do not change 3389 here with your value of rdp_port set above. This 3389 is the port on the Windows side that is redirected to $rdp_port, and will always be 3389.
#Comment this line out to prevent the VM from connecting to the Internet. (untested)
network_flags=(-netdev user,id=nic,hostfwd=tcp:127.0.0.1:${rdp_port}-:3389 -device virtio-net-pci,netdev=nic)
#To add flags to QEMU, nothing is stopping you from hijacking network_flags with whatever QEMU flags you want.
#Thanks for reading! -Botspot
#I am always here if you need anything. Consider supporting my work. https://github.com/sponsors/botspot