Skip to content

Instantly share code, notes, and snippets.

View cored0wn's full-sized avatar

Chris cored0wn

  • Saarland, Germany
View GitHub Profile
@j4ys0n
j4ys0n / lxc-passthrough.txt
Created December 9, 2024 19:32
proxmox lxc gpu passthrough
- make sure sriov is enabled in your motherboard bios
- don't use the nvidia gpu as a display (i use asrock rack boards and the crappy on board graphics for local display, which i actually don't use unless there's a problem).
- install nvidia drivers on the host: ./NVIDIA-Linux-x86_64-xxx.xxx.run
- blacklist nvidia and nouvaeu kernel drivers on the host, reboot
- pass the devices through to the LXC before installing drivers, details below (prob doesn't matter, but i do it in this order)
- install THE SAME nvidia drivers on the LXC: ./NVIDIA-Linux-x86_64-xxx.xxx.run --no-kernel-module
below is an example with 4 gpus
find the device info you'll need for passthrough:
@AkdM
AkdM / gist:49ae1d4115246a057526
Created October 24, 2014 14:09
Convert annotation to YAML for Symfony 2
php app/console doctrine:mapping:convert --namespace="MySuper\DuperBundle\Entity\MyEntity" yaml src/MySuper/DuperBundle/Resources/config/doctrine
That command will convert the annotation file into yaml format into src/MySuper/DuperBundle/Resources/config/doctrine as MySuper.DuperBundle.Entity.MyEntity.orm.yml