thank you for sharing, when you add a host PCI device (a GPU) to a lxd virtual machine is it still able to share its system memory (RAM, not VRAM) with the host? On kvm the moment you passthrough a GPU memballoon stops working.
Do lxd vm containers utilize hyper v like WSL? I'd like to transition away from windows to linux but maintain a safe sandbox environment to execute developer code. I can even further isolate myself from exploits by using non systemd distros as well. WSL natively mounts all your external drives including your windows root drive automatically to implement tools like explorer.exe for ease of file transfer among other things. I found this quite disturbing for the sake of security considering my purpose for running a VM. Sure, you could unmount the drives via wsl.config however i feel uncomfortable about it. Also Im utilizing my GPU to run stable diffusion tools, so gpu passthrough is important, and so far LXD and WSL seem to be the easiest way accomplish this. So far im using WSL2 to run ubuntu with my gpu natively after installing ubuntu cuda drivers, and linking the cuda library to the correct paths. In docker there is a nvidia/cuda container that runs gpu natively but thats not using hyper V if im not mistaken. The question: would stable diffusion run on an LXD hypervisor VM the same way it would on WSL2? Is networking similar to WSL2 as well? When im running stable diffusion, i can access a webui from my host machine via the network bridge, however i can also disable the guest machines external internet access by ulinking the eth0 adapter. This prevents any public internet access until i enable the adapter, but i can still access the hosted lan webui from outside the machine. Is LXD similar in this way so i dont have to configure any NAT stuffs? :/. WSL2 just seems weird to me and im hoping LXD VM is more secure?
do these instructions remain valid if the OS within the container is Windows? I want to run 1 GPU and give it to my windows LXD container but hear that you have to make it invisible to linux or something...
Right, for VMs, you can't share GPUs, so giving a GPU to a VM, means it will get disconnected (at the PCI level) from the host. If you do that while that GPU is in use or attached to a driver on the host, you will very likely crash your entire system. For such setups, you'll often want to prevent the normal driver from attaching to that specific CPU (exactly how to do that depends on the driver).
thank you for sharing, when you add a host PCI device (a GPU) to a lxd virtual machine is it still able to share its system memory (RAM, not VRAM) with the host? On kvm the moment you passthrough a GPU memballoon stops working.
Hi. Is it possible to use LXD with GPU device for use with opengl and fbo for network rendering (visualisation on remote host) ?
Looking for a guide for Intel GPU passthrough and can't find one. If you have tried that a video would be greatly appreciated!
Can we use Tesla GPU as a consumer GPU for gaming in LXD, sir?
Do lxd vm containers utilize hyper v like WSL? I'd like to transition away from windows to linux but maintain a safe sandbox environment to execute developer code. I can even further isolate myself from exploits by using non systemd distros as well. WSL natively mounts all your external drives including your windows root drive automatically to implement tools like explorer.exe for ease of file transfer among other things. I found this quite disturbing for the sake of security considering my purpose for running a VM. Sure, you could unmount the drives via wsl.config however i feel uncomfortable about it. Also Im utilizing my GPU to run stable diffusion tools, so gpu passthrough is important, and so far LXD and WSL seem to be the easiest way accomplish this. So far im using WSL2 to run ubuntu with my gpu natively after installing ubuntu cuda drivers, and linking the cuda library to the correct paths. In docker there is a nvidia/cuda container that runs gpu natively but thats not using hyper V if im not mistaken. The question: would stable diffusion run on an LXD hypervisor VM the same way it would on WSL2? Is networking similar to WSL2 as well? When im running stable diffusion, i can access a webui from my host machine via the network bridge, however i can also disable the guest machines external internet access by ulinking the eth0 adapter. This prevents any public internet access until i enable the adapter, but i can still access the hosted lan webui from outside the machine. Is LXD similar in this way so i dont have to configure any NAT stuffs? :/. WSL2 just seems weird to me and im hoping LXD VM is more secure?
do these instructions remain valid if the OS within the container is Windows? I want to run 1 GPU and give it to my windows LXD container but hear that you have to make it invisible to linux or something...
Right, for VMs, you can't share GPUs, so giving a GPU to a VM, means it will get disconnected (at the PCI level) from the host.
If you do that while that GPU is in use or attached to a driver on the host, you will very likely crash your entire system. For such setups, you'll often want to prevent the normal driver from attaching to that specific CPU (exactly how to do that depends on the driver).
Is that avilable
I used lxc before but it ask for remote add
Can lxd do microk8s
you can put whatever you need inside containers.. you can technically setup kubernetes WITHIN a LXC/LXD system.. look up juju
So I add raspberry pi as my server
If yes pls teach us
microk8s is a snap so you need to configure your lxd container with `security.nesting=true`, and then `snap install microk8s`
Lxd on windows