vfiogpuissue

When reboot in vm, the host virsh command show this vm paused

root@idv:/var/lib/libvirt/images# virsh list
 Id   Name         State
---------------------------
 1    ubuntu2004   paused

logs:

# tail -f /var/
char device redirected to /dev/pts/3 (label charserial0)
error: kvm run failed Bad address
RAX=ffff9f558281e020 RBX=ffff9f558281e000 RCX=0000000000000007 RDX=0000000000010101
RSI=ffff9f558281e004 RDI=0000000000000000 RBP=ffff9f558001b990 RSP=ffff9f558001b8e8
R8 =0000000000000001 R9 =ffffffffafaa6ee0 R10=ffff8f418fd18700 R11=0000000000000001
R12=0000000000010101 R13=0000000000cdcdcd R14=ffff9f558281e000 R15=ffff8f418fd18700
RIP=ffffffffaef257ae RFL=00000002 [-------] CPL=0 II=0 A20=1 SMM=0 HLT=0
ES =0000 0000000000000000 ffffffff 00800000
CS =0010 0000000000000000 ffffffff 00a09b00 DPL=0 CS64 [-RA]
SS =0018 0000000000000000 ffffffff 00c09300 DPL=0 DS   [-WA]
DS =0000 0000000000000000 ffffffff 00800000
FS =0000 00007fcd97123980 ffffffff 00800000
GS =0000 ffff8f41fbc00000 ffffffff 00800000
LDT=0000 0000000000000000 0000ffff 00000000
TR =0040 fffffe1b5fbfb000 00004087 00008b00 DPL=0 TSS64-busy
GDT=     fffffe1b5fbf9000 0000007f
IDT=     fffffe0000000000 00000fff
CR0=80050033 CR2=00007fcd981225a0 CR3=000000010ed44000 CR4=003506f0
DR0=0000000000000000 DR1=0000000000000000 DR2=0000000000000000 DR3=0000000000000000 
DR6=00000000ffff0ff0 DR7=0000000000000400
EFER=0000000000000d01
Code=fa 49 8d 76 04 44 21 c2 41 8b 3c 91 44 21 ef 89 fa 44 31 e2 <41> 89 16 85 c9 75 09 49 83 c7 01 b9 08 00 00 00 48 39 c6 75 c3 48 8b 45 b8 83 6d d0 01 4c

仅当连接有Hdmi的时候会发生这个现象。

WorkingTIPsonHUNyuan

update comfyui

update comfyui via comfyUI manager, then you got error:

Error. No naistyles.csv found. Put your naistyles.csv in the custom_nodes/ComfyUI_NAI-mod/CSV directory of ComfyUI. Then press "Refresh".
                  Your current root directory is: /home/dash/Code/ComfyUI
            

Solved via:

Create a ComfyUI-NAI-styler directory under the custom_nodes directory.
Create an __init__.py file under the ComfyUI-NAI-styler directory with the following content:
__all__ = ['NODE_CLASS_MAPPINGS', 'NODE_DISPLAY_NAME_MAPPINGS']
NODE_CLASS_MAPPINGS = {}
NODE_DISPLAY_NAME_MAPPINGS = {}
Create a CSV directory under the ComfyUI-NAI-styler directory .

Create three empty files under the CSV directory:

naifilters.csv
naistyles.csv
naitypes.csv


(base) dash@comfyvm:~/Code/ComfyUI/custom_nodes$ cp -r ComfyUI-NAI-styler ComfyUI_NAI-mod

(base) dash@comfyvm:~/Code/ComfyUI/custom_nodes$ pwd
/home/dash/Code/ComfyUI/custom_nodes
(base) dash@comfyvm:~/Code/ComfyUI/custom_nodes$ vim ComfyUI-Universal-Styler/naistyler_nodes.py 

    def INPUT_TYPES(cls):
        base_path = Path(folder_paths.base_path) # Use of Path to ensure path compatibility
        cls.naistyles_csv = cls.load_naistyles_csv(base_path / "custom_nodes/ComfyUI-Universal-Styler/CSV/naistyles.csv")
        cls.naifilters_csv = cls.load_naifilters_csv(base_path / "custom_nodes/ComfyUI-Universal-Styler/CSV/naifilters.csv")
        cls.naitypes_csv = cls.load_naitypes_csv(base_path / "custom_nodes/ComfyUI-Universal-Styler/CSV/naitypes.csv")
        #cls.naistyles_csv = cls.load_naistyles_csv(os.path.join(folder_paths.base_path, "custom_nodes\\ComfyUI-NAI-styler\\CSV\\naifilters.csv"))
        #cls.naifilters_csv = cls.load_naifilters_csv(os.path.join(folder_paths.base_path, "custom_nodes\\ComfyUI-NAI-styler\\CSV\\naistyles.csv"))
        #cls.naitypes_csv = cls.load_naitypes_csv(os.path.join(folder_paths.base_path, "custom_nodes\\ComfyUI-NAI-Styler\\CSV\\naitypes.csv"))

comfyui

Install missing custom nodes:

/images/2024_12_30_09_33_23_1300x716.jpg

After restarting, the comfyui will be shown like:

/images/2024_12_30_09_34_09_609x369.jpg

models you should download:

https://hf-mirror.com/city96/HunyuanVideo-gguf/tree/main
hunyuan-video-t2v-720p-Q5_0.gguf

https://hf-mirror.com/Comfy-Org/HunyuanVideo_repackaged/blob/main/split_files/text_encoders/llava_llama3_fp8_scaled.safetensors

https://hf-mirror.com/Kijai/HunyuanVideo_comfy/blob/main/hunyuan_video_vae_bf16.safetensors

comfyui II

Download models:

https://hf-mirror.com/Kijai/HunyuanVideo_comfy/blob/main/hunyuan_video_720_cfgdistill_fp8_e4m3fn.safetensors
https://hf-mirror.com/Kijai/HunyuanVideo_comfy/blob/main/hunyuan_video_vae_bf16.safetensors

clone the llama:

(comfyui) dash@comfyvm:~/Code/ComfyUI$ cd models/LLM/
(comfyui) dash@comfyvm:~/Code/ComfyUI/models/LLM$ 
git clone https://hf-mirror.com/Kijai/llava-llama-3-8b-text-encoder-tokenizer

clone the clip items:

(base) dash@comfyvm:~$ cd ~/Code/ComfyUI/models/clip
(base) dash@comfyvm:~/Code/ComfyUI/models/clip$ ls
clip_l.safetensors  llava_llama3_fp8_scaled.safetensors  put_clip_or_text_encoder_models_here
(base) dash@comfyvm:~/Code/ComfyUI/models/clip$ 

git clone https://hf-mirror.com/openai/clip-vit-large-patch14

Changemysimplescreenrecoder

Change the command:

    #### 7. mysimplerecorder
    (writeShellScriptBin "mysimplerecorder" ''
    rm -f /tmp/tmprecording.mp4
    wf-recorder -g "$(slurp)" -f /tmp/tmprecording.mp4 -c h264_vaapi -d /dev/dri/renderD128 -p "preset=superfast"
    cp /tmp/tmprecording.mp4 /home/dash/Videos/`date +"%Y-%m-%d-%H-%M-%S" `.mp4
  '')

Since we want to use h264_vaapi, we need to enable vaapi under nixos’s configuration:

  nixpkgs.config.packageOverrides = pkgs: {
    intel-vaapi-driver = pkgs.intel-vaapi-driver.override { enableHybridCodec = true; };
  };
  hardware.graphics = { # hardware.graphics since NixOS 24.11
    enable = true;
    extraPackages = with pkgs; [
      intel-media-driver # LIBVA_DRIVER_NAME=iHD
      intel-vaapi-driver # LIBVA_DRIVER_NAME=i965 (older but works better for Firefox/Chromium)
      libvdpau-va-gl
    ];
  };
  environment.sessionVariables = { LIBVA_DRIVER_NAME = "iHD"; }; # Force intel-media-driver

Rebuild then you could use new comand for screen recorder:

sudo nixos-rebuild switch --option substituers https://mirror.sjtu.edu.cn/nix-channels/store

drblinstallation

安装

先试用,配置好网络后,安装:

/images/20241205_172406_x.jpg

/images/20241205_161910_x.jpg

进入系统后的安装和配置:

sudo apt update -y && sudo apt upgrade -y
sudo wget -O /etc/apt/trusted.gpg.d/drbl-gpg.asc https://drbl.org/GPG-KEY-DRBL
sudo vim /etc/apt/sources.list
    deb http://free.nchc.org.tw/ubuntu jammy main restricted universe multiverse
    deb http://free.nchc.org.tw/drbl-core drbl stable
sudo apt update
sudo apt install -y drbl

配置:

ufw disable
sudo drblsrv -i

/images/20241205_164835_x.jpg

/images/20241205_164853_x.jpg

/images/20241205_164934_x.jpg

ltspbaremetalInstall

Hardware/OS/Software info:

dash@i9server:~$ cat /etc/issue
Ubuntu 22.04.5 LTS \n \l

dash@i9server:~$ uname -a
Linux i9server 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov  6 17:42:15 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
dash@i9server:~$ lsblk
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
loop0         7:0    0    64M  1 loop /snap/core20/2379
loop1         7:1    0  63.7M  1 loop /snap/core20/2434
loop2         7:2    0    87M  1 loop /snap/lxd/29351
loop3         7:3    0  89.4M  1 loop /snap/lxd/31333
loop4         7:4    0  38.8M  1 loop /snap/snapd/21759
loop5         7:5    0  44.3M  1 loop /snap/snapd/23258
sda           8:0    0   1.8T  0 disk 
└─sda1        8:1    0   1.8T  0 part 
sr0          11:0    1  1024M  0 rom  
nvme0n1     259:0    0 476.9G  0 disk 
├─nvme0n1p1 259:1    0     1G  0 part /boot/efi
└─nvme0n1p2 259:2    0 475.9G  0 part /
dash@i9server:~$ free -m
               total        used        free      shared  buff/cache   available
Mem:           64079         565       60533           2        2981       62859
Swap:           8191           0        8191
dash@i9server:~$ cat /proc/cpuinfo | grep -i model
model		: 165
model name	: Intel(R) Core(TM) i9-10900 CPU @ 2.80GHz

Install ltsp:

sudo add-apt-repository ppa:ltsp
sudo apt update
sudo apt install --install-recommends ltsp ltsp-binaries dnsmasq nfs-kernel-server openssh-server squashfs-tools ethtool net-tools epoptes
sudo gpasswd -a dash epoptes

Prepare the image:

# ls *.img -l -h
-rw-r--r-- 1 dash dash 4.0G Dec  5 02:33 kylin.img
-rw-r--r-- 1 dash dash 2.6G Dec  5 02:35 ubuntu2004.img
-rw-r--r-- 1 dash dash 3.2G Dec  5 02:34 uos613.img
-rw-r--r-- 1 dash dash 4.4G Dec  5 02:34 zkfd613.img

Create the dns/dhcp, import the images:

ltsp dnsmasq --proxy-dhcp=0
vim  /etc/dnsmasq.d/ltsp-dnsmasq.conf
    dhcp-range=192.168.1.34,192.168.1.250,600h
mkdir /srv/ltsp && cd /srv/ltsp
ln -s /home/dash/ubuntu2004.img .
ltsp image ubuntu2004
ltsp ipxe
ltsp nfs
    Installed /usr/share/ltsp/server/nfs/ltsp-nfs.exports in /etc/exports.d/ltsp-nfs.exports
ltsp initrd
useradd -m test1
useradd -m test2
passwd test1
passwd test2

more images:

 rm -f *.img
 ln -s /home/dash/uos613.img .
 ltsp image uos613 && ltsp ipxe && ltsp initrd
 rm -f *.img
 ln -s /home/dash/zkfd613.img .
 ltsp image zkfd613 && ltsp ipxe && ltsp initrd
 rm -f *.img
 ln -s /home/dash/kylin.img .
 ltsp image kylin && ltsp ipxe && ltsp initrd

Result: zkfd behaves bad

deepin image:

cd /srv/ltsp
ln -s /var/lib/libvirt/trueimages/deepin.img .
ltsp image deepin && ltsp ipxe && ltsp initrd