Um die Netzwerke (VLANs) der virtuellen Gluons komfortabel
Installation / Konfiguration
Install CygWin w/ virt-manager, xinit and openssh
- https://www.cygwin.com/setup-x86_64.exe
- Komponenten auswählen
virt-manager
openssh
xinit
openssh-askpass
Configure PWDless SSH via RSA Key to KVM Host
- Den private SSH-Key in der CygWin-Umgebung bereitstellen.
Ein Putty-PKK-Schlüssel muss erst umgewandelt werden: puttygen privatekey.ppk -O private-openssh -o id_rsa
Note: If you place your private key inside ~/.ssh/id_rsa and make sure permissions are the following SSH will automatically try using the Private Key. To create the directory .ssh with proper permissions and create the "known_hosts" file, I ususally SSH into KVM Host and accept the host-key fingerprint manually. Then move over the Private Key and test ssh'ing into KVM Host. It shouldn't ask you for your password and just auto-login.
chmod 400 ~/.ssh/id_rsa
Default Username is "YouLoginName" and in windows, you can copy the file manually to the default location via
C:\cygwin64\home\YouLoginName\.ssh\id_rsa
Configure XWin to autostart Virt-Manager
cat << 'EOF' > ~/.startxwinrc export DISPLAY=:0.0 virt-manager sleep inf EOF chmod +x ~/.startxwinrc
Create Shortcut on Desktop: (This is the contents of my .cmd)
tskill.exe xwin C:\cygwin64\bin\run.exe /usr/bin/bash.exe -l -c /usr/bin/startxwin
Defekte Verknüpfung zu ssh-askpass reparieren
Next create a system link to fix the broken link for askpass in virt-manager, virt-manager points to /usr/sbin/ssh-askpass, cygwin installs it to /bin/lxqt-openssh-askpass.
Quelle: https://nonasuomy.github.io/virt-manager-windows/
ln -s /bin/lxqt-openssh-askpass /usr/sbin/ssh-askpass