Vdiclient
Содержание
На базе Alt Straterkit MATE
wget http://nightly.altlinux.org/stable/x86_64/release/alt-p10-mate-20221209-x86_64.iso
Модификация пакетной базы
apt-get update -y
Установка доп пакетов
apt-get install python3-module-pip python3-modules-tkinter virt-viewer git -y
Удаление лишних пакетов
Установка VDICLIENT
https://github.com/joshpatten/PVE-VDIClient
cd /opt/ git clone https://github.com/joshpatten/PVE-VDIClient.git cd ./PVE-VDIClient/ chmod +x requirements.sh ./requirements.sh cp vdiclient.py /usr/local/bin chmod +x /usr/local/bin/vdiclient.py mkdir /etc/vdiclient
cat << 'EOF' > /etc/vdiclient/vdiclient.ini [General] # This is the title that is diplayed to the user title = VDI Login # This is the PySimpleGui Theme that is used. Run vdiclient.py with flag `--list_themes` for a list of themes theme = LightBlue # Program Icon icon = vdiicon.ico # Logo displayed on all windows logo = vdiclient.png # Enable Kiosk mode, which does not allow the user to close anything kiosk = False # Enable/Disable Fullscreen mode (not applicable in Kiosk mode) fullscreen = True # Enable displaying SPICE ini file before opening virt-viewer inidebug = False # Select which guest types to display. Acceptable values: both, lxc, qemu guest_type = both [Authentication] # This is the authentication backend that will be used to authenticate auth_backend = pve # If enabled, 2FA TOTP entry dialog will show auth_totp = false # If disabled, TLS certificate will not be checked tls_verify = false # User name (if using token) #user = user # API Token Name #token_name = dvi # API Token Value #token_value = xxx-x-x-x-xxx [Hosts] # Hosts are entered as `IP/FQDN = Port` #10.10.10.100 = 8006 #pve1.example.com = 8006 cluster-node1 = 8006 [SpiceProxyRedirect] # The Spice Proxy provided by the Proxmox API may need to have its host/port rewritten # These rewrite rules are written `IP:port = IP:port` # 1. Use the inidebug and read the current proxy=pve1.example.com:3128 # 2. Add your proxmox ip to the right side e.g. 123.123.123.123:6000 #pve1.example.com:3128 = 123.123.123.123:6000 [AdditionalParameters] # If you wish to define additional parameters to pass to virt-viewer you may define them here # More parameter definitions here: https://www.mankier.com/1/remote-viewer # Some Examples: # Enable USB passthrough enable-usbredir = true # Enable auto USB device sharing enable-usb-autoshare = true EOF
cat << 'EOF' > /etc/hosts 127.0.0.1 localhost.localdomain localhost 10.207.151.243 cluster-node1 10.207.151.242 cluster-node2 10.207.151.241 cluster-node3 10.207.151.240 cluster-node4 10.207.151.239 cluster-node5 10.207.151.238 cluster-node6 10.207.151.237 cluster-node7 10.207.151.236 cluster-node8 10.207.151.235 cluster-node9 10.207.151.234 cluster-node10 EOF