Changes

Jump to navigation Jump to search

Installation on other distributions

525 bytes added, 00:13, 6 August 2022
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>
ivshmem: size=32, name=**WINDOWS-VMID**
</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.
</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). This : <syntaxhighlight lang=bash># 3rd party script will be uploaded later after some clean , created by the community, not part of Looking Glass project!# Assuming you have set upa storage named `local-btrfs` and is mounted at `/var/lib/pve/local-btrfs`wget https://github.com/MakiseKurisu/single-node-homelab/raw/435447075c6d36debe55fa11003430194136225e/ansible/proxmox-init/pve-helper -o /var/lib/pve/local-btrfs/snippets/pve-helperchmod +x /var/lib/pve/local-btrfs/snippets/pve-helperqm set $VMID --hookscript=local-btrfs:snippets/pve-helperecho "#lg-chown user" >> /etc/pve/qemu-server/$VMID.conf</syntaxhighlight>
Anonymous user

Navigation menu