#vm vs docker

1 messages · Page 1 of 1 (latest)

peak rapids
#

Basically title; Better to run swarmui on a vm or docker container ?

#

ease of use / security wise

violet stream
#

Ease: docker
Security: eh idk but docker's probably fine
Quality: obviously docker. VMs with gpu passthrough are a hellscape and often have performance issues and etc. docker kinda just works

peak rapids
#

Hmm, ok. I'll try that out tomorrowz

#

I still wonder security wise if it's not vm that's better? I'm saying something weird maybe now but what IF the image that you open is infected. Since you have to open the image on your local machine

violet stream
#

if an image file is infected unfortunately you're currently running discord and anyone can send anyone an image on discord so you're already screwed

#

which is to say, that basically doesn't happen and if it does swarm is not your primary concern at all

#

if you're hyperparanoid about security, set up a full separate machine disconnected from the internet for whatever you're worried about

wet lichen
#

Popular image file formats are not very capable of carrying malware (tho video formats did have their fair share of exploits). How people get owned in ComfyUI is installing a sketchy custom node or a popular custom node authors github account gets hacked (pushing an exploit into the source code). These run python code, so the concern is what the python executable has access to on your machine

#

And yeah GPU inside VMs is hard.
I aborted my attempt to migrate my main desktop machine to Linux because i couldn't get GPU VM passtrough working properly (so that i could have performant Windows as a fallback). I plan to retry this year

peak rapids
#

I had the windows vm working with swarm ui a year ago but I try'd to re-do it and faced an issue directly. Didn't have to energy to fix it

#

I was using the easy-gpu-pv script for settings up a vm with gpu passthrough