4 ms·
Do you run two gpus? Or can you handoff to the VM when it boots and back when you shut down? Mind sharing your libvirt xml or qemu script? I've been meaning to
by moondev 6y ago
Do you run two gpus? Or can you handoff to the VM when it boots and back when you shut down? Mind sharing your libvirt xml or qemu script? I've been meaning to give this a try!
- kbumsik 6y agoDepending on your motherboard you might need two GPUs. In my case I use Proxmox and control VMs through is web GUI.
- tarruda 6y agoThe host GPU is a Radeon rx460, the GTX 1070 is only used by the VM (when the VM is running). Here are the most significant configuration files involved in my setup: https://gist.github.com/tarruda/2ea928b90cdecb6f77c2f9ca65bad95b https://gist.github.com/tarruda/2ea928b90cdecb6f77c2f9ca65ba... Note that modprobe configuration is important, as it assigns stub drivers to the GTX that allows it to be handed on demand to the VM. Note that this is made for a debian 10 system (kernel 4.19), other distributions might have different requirements. As for running the GTX 1070 on the host when the VM is not running, I'm not sure if it is possible.
- metalliqaz 6y agoMan, look at all that config. And this is considered a success story? On Windows it's (1) install steam (2) play. To develop with my headless freebsd dev machine, it's just (1) install ssh (2) install x11 client (3) open term.
- boomboomsubban 6y ago90% of that is just making a virtual machine, the equivalent would be acquiring/assembling your dev machine.
- tarruda 6y agoThat big XML file is just how libvirt represents a VM. If you create a VM using libvirt GUI, most of the XML is generated. I made some tweaks based on level1 forums information, but most of that is auto generated by a GUI.