Editing Installation on other distributions
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 50: | Line 50: | ||
zypper install binutils-devel make cmake fontconfig-devel libSDL2-devel libSDL2_ttf-devel spice-protocol-devel libX11-devel libnettle-devel wayland-protocols-devel \ | zypper install binutils-devel make cmake fontconfig-devel libSDL2-devel libSDL2_ttf-devel spice-protocol-devel libX11-devel libnettle-devel wayland-protocols-devel \ | ||
libconfig-devel libXi-devel libXss-devel libwayland-egl-devel nettle | libconfig-devel libXi-devel libXss-devel libwayland-egl-devel nettle | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
</syntaxhighlight > | </syntaxhighlight > | ||
Line 67: | Line 59: | ||
pacman -Syu cmake gcc libgl libegl fontconfig spice-protocol make nettle pkgconf binutils \ | pacman -Syu cmake gcc libgl libegl fontconfig spice-protocol make nettle pkgconf binutils \ | ||
libxi libxinerama libxss libxcursor libxpresent libxkbcommon wayland-protocols \ | libxi libxinerama libxss libxcursor libxpresent libxkbcommon wayland-protocols \ | ||
− | ttf-dejavu | + | ttf-dejavu |
</syntaxhighlight> | </syntaxhighlight> | ||
Line 81: | Line 73: | ||
<!-- Dependencies must match Debian's order, and extra dependencies must be on another line, with a consistent order --> | <!-- Dependencies must match Debian's order, and extra dependencies must be on another line, with a consistent order --> | ||
<syntaxhighlight lang=bash> | <syntaxhighlight lang=bash> | ||
− | xbps-install -Syu binutils-devel cmake freefont-ttf fontconfig-devel SDL2-devel SDL2_ttf-devel spice-protocol libX11 | + | xbps-install -Syu binutils-devel cmake freefont-ttf fontconfig-devel SDL2-devel SDL2_ttf-devel spice-protocol libX11-devel nettle-devel \ |
gcc make pkg-config | gcc make pkg-config | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 97: | Line 89: | ||
<syntaxhighlight lang=bash> | <syntaxhighlight lang=bash> | ||
emerge sys-devel/binutils dev-util/cmake media-fonts/freefonts media-libs/libsdl2 media-libs/sdl2-ttf app-emulation/spice-protocol \ | emerge sys-devel/binutils dev-util/cmake media-fonts/freefonts media-libs/libsdl2 media-libs/sdl2-ttf app-emulation/spice-protocol \ | ||
− | media-libs/fontconfig dev-libs/nettle | + | media-libs/fontconfig dev-libs/nettle \ |
media-libs/glu | media-libs/glu | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 113: | Line 105: | ||
* A Linux VM with GPU pass-through working (Tested With Ubuntu 21.10) | * A Linux VM with GPU pass-through working (Tested With Ubuntu 21.10) | ||
* Proxmox Host Installed and running on the Windows VM | * Proxmox Host Installed and running on the Windows VM | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
=== Windows VM setup === | === Windows VM setup === | ||
Line 179: | Line 161: | ||
If you want to run a Linux VM with GPU passthrough, but also being able to LG into this Windows guest in addition to from Proxmox host, you can add the following line in VM config file: | If you want to run a Linux VM with GPU passthrough, but also being able to LG into this Windows guest in addition to from Proxmox host, you can add the following line in VM config file: | ||
<syntaxhighlight lang=bash> | <syntaxhighlight lang=bash> | ||
− | ivshmem: size=32,name=**WINDOWS-VMID** | + | ivshmem: size=32, name=**WINDOWS-VMID** |
</syntaxhighlight> | </syntaxhighlight> | ||
This will override Proxmox to open <code>/dev/shm/pve-shm-**name**</code> instead, and since the default for **name** is **VMID**, set that to your Windows's VMID does the trick. | This will override Proxmox to open <code>/dev/shm/pve-shm-**name**</code> instead, and since the default for **name** is **VMID**, set that to your Windows's VMID does the trick. | ||
− | Additionally you can use UNIX socket for SPICE instead of opening another port on Proxmox | + | Additionally you can use UNIX socket for SPICE instead of opening another port on Proxmox: |
<syntaxhighlight lang=bash> | <syntaxhighlight lang=bash> | ||
-spice unix=on,addr=/run/lg**YOUR-WINDOWS-VM-ID**.socket,disable-ticketing=on | -spice unix=on,addr=/run/lg**YOUR-WINDOWS-VM-ID**.socket,disable-ticketing=on | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | However, those 2 files will be created as root-owned. You will need to create a hook script to set the correct permissions for them (/etc/tmpfile.d was having reliability issue on my machine for IVSHMEM file, and it cannot override socket file's ownership at all) | + | However, those 2 files will be created as root-owned. You will need to create a hook script to set the correct permissions for them (/etc/tmpfile.d was having reliability issue on my machine for IVSHMEM file, and it cannot override socket file's ownership at all). This script will be uploaded later after some clean up. |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |