Hello to everyone.
recently,thanks to the help of @darkbeer,I've been able to run the stable diffusion webui of automatic1111. You can read the post and the tutorial that has been created reading on this thread :
what's the problem now ? the problem that I have is that it runs only with the original centos distro and package. To make a sum,the commands that I use to ran that are the following :
as I said,to run it I'm forced to use the centos package installed on /compat/linux. But I have also installed ubuntu on /compat/ubuntu with some important applications inside that I use from time to time,like the brave browser,chrome,firefox,spotify,Sikulix,etc. As you probably know,we can't use two linux layers simultaneously. So,if I want to run stable diffusion I can't run at the same time the linux version of firefox,useful when I want to watch some DRM protected content. But what happens when I try to run the commands above using ubuntu instead of centos ? this :
I don't know why that error happens,but I know that it does not happens if I use centos instead of ubuntu and I have issued the same commands included in the tutorial to both "distros". I suspect that centos has some different software mechanism than ubuntu. But I want to use one only "distro" and I would like that it was ubuntu,because I have a better familiarity with it than with the centos. What you suggest to me to do in this kind of scenario ? I also see that inside the centos there isn't any package management installed. I can't use yum or dnf. And it's hard for me to learn how to add it without a detailed tutorial. At worst I might consider using only centos if I can install the same software that I have installed within the ubuntu "distro". Maybe I can install a more complete centos "distro" (where there is yum and dnf and where I have configured succesfully the stable diffusion webui) on a bhyve VM and I can use that,instead of the default centos offered by FreeBSD as a package ? Do you think that it will work ?
recently,thanks to the help of @darkbeer,I've been able to run the stable diffusion webui of automatic1111. You can read the post and the tutorial that has been created reading on this thread :
How to run Stable Diffusion WebUI on FreeBSD...
Hello to everyone. I'm trying to install the AUTOMATIC1111 webui for stable diffusion within my /compat/ubuntu distro using the FreeBSD linuxulator. You can find the proper repository for this tool here : https://github.com/AUTOMATIC1111/stable-diffusion-webui at some point of the...
forums.freebsd.org
what's the problem now ? the problem that I have is that it runs only with the original centos distro and package. To make a sum,the commands that I use to ran that are the following :
Code:
bash
cd /compat
source /usr/home/marietto/miniconda3/etc/profile.d/conda.sh
conda activate
cd /compat/linux/home/marietto/Desktop/stable-diffusion/stable-diffusion-webui
conda activate automatic
LD_PRELOAD=/compat/dummy-uvm.so python3 launch.py
as I said,to run it I'm forced to use the centos package installed on /compat/linux. But I have also installed ubuntu on /compat/ubuntu with some important applications inside that I use from time to time,like the brave browser,chrome,firefox,spotify,Sikulix,etc. As you probably know,we can't use two linux layers simultaneously. So,if I want to run stable diffusion I can't run at the same time the linux version of firefox,useful when I want to watch some DRM protected content. But what happens when I try to run the commands above using ubuntu instead of centos ? this :
Code:
service ubuntu onestop && sysctl compat.linux.emul_path=/compat/ubuntu && service ubuntu onestart
cd /compat
source /usr/home/marietto/miniconda3/etc/profile.d/conda.sh
conda activate
cd /compat/ubuntu/home/marietto/stable-diffusion-webui
conda activate automatic
LD_PRELOAD=/compat/dummy-uvm.so python3 launch.py
Python 3.10.9 (main, Jan 11 2023, 15:21:40) [GCC 11.2.0]
Commit hash: 360feed9b55fb03060c236773867b08b4265645d
Traceback (most recent call last):
File "/compat/ubuntu/home/marietto/stable-diffusion-webui/launch.py", line 294, in <module>
prepare_environment()
File "/compat/ubuntu/home/marietto/stable-diffusion-webui/launch.py", line 209, in prepare_environ
ment
run_python("import torch; assert torch.cuda.is_available(), 'Torch is not able to use GPU; add -
-skip-torch-cuda-test to COMMANDLINE_ARGS variable to disable this check'")
File "/compat/ubuntu/home/marietto/stable-diffusion-webui/launch.py", line 73, in run_python
return run(f'"{python}" -c "{code}"', desc, errdesc)
File "/compat/ubuntu/home/marietto/stable-diffusion-webui/launch.py", line 49, in run
raise RuntimeError(message)
RuntimeError: Error running command.
Command: "/home/marietto/miniconda3/envs/automatic/bin/python3" -c "import torch; assert torch.cuda.
is_available(), 'Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variab
le to disable this check'"
Error code: 1
stdout: <empty>
stderr: Traceback (most recent call last):
File "<string>", line 1, in <module>
AssertionError: Torch is not able to use GPU; add --skip-torch-cuda-test to COMMANDLINE_ARGS variabl
e to disable this check
I don't know why that error happens,but I know that it does not happens if I use centos instead of ubuntu and I have issued the same commands included in the tutorial to both "distros". I suspect that centos has some different software mechanism than ubuntu. But I want to use one only "distro" and I would like that it was ubuntu,because I have a better familiarity with it than with the centos. What you suggest to me to do in this kind of scenario ? I also see that inside the centos there isn't any package management installed. I can't use yum or dnf. And it's hard for me to learn how to add it without a detailed tutorial. At worst I might consider using only centos if I can install the same software that I have installed within the ubuntu "distro". Maybe I can install a more complete centos "distro" (where there is yum and dnf and where I have configured succesfully the stable diffusion webui) on a bhyve VM and I can use that,instead of the default centos offered by FreeBSD as a package ? Do you think that it will work ?