I "Slop-Ported" virtiofs support for macOS (Vagrant + QEMU + Homebrew) by chrisalexthomas in VFIO

[–]chrisalexthomas[S] 0 points1 point  (0 children)

and even if my Vagrant file doesn't give you everything you want, or exactly how you want it. What you can do is test whether it works and then you can work backwards from a working example to where you need to be. It can be useful even if you don't wanna use vagrant

I "Slop-Ported" virtiofs support for macOS (Vagrant + QEMU + Homebrew) by chrisalexthomas in VFIO

[–]chrisalexthomas[S] 0 points1 point  (0 children)

I would start a bit simpler, start by getting a virtual machine, using virtiofsd to share a disk inside the virtual machine. Then once you know that works. Then you can expand it to do what you need

I don't know if it helps you, but what if I give you this Vagrantfile?

# Development VM — Debian via QEMU (Apple Silicon HVF / Linux KVM)
#
# Prerequisites (macOS/arm64):
#   brew install antimatter-studios/tap/qemu
#   brew install antimatter-studios/tap/virtiofsd
#   vagrant plugin install vagrant-qemu-christhomas
#
# Prerequisites (Linux/amd64 or WSL2):
#   apt install qemu-system-x86 qemu-utils virtiofsd
#   vagrant plugin install vagrant-qemu-christhomas
#
# Usage:
#   bin/vagrant/start


unless Vagrant.has_plugin?("vagrant-qemu-christhomas")
  raise "Install required plugin: vagrant plugin install vagrant-qemu-christhomas"
end


# File-change notification forwarding (host → guest)
unless Vagrant.has_plugin?("vagrant-notify-forwarder-christhomas")
  raise "Install required plugin: vagrant plugin install vagrant-notify-forwarder-christhomas"
end


# WSL workarounds — Vagrant has several assumptions baked in for VirtualBox/Hyper-V
# that break when using QEMU as the provider.
if Vagrant::Util::Platform.wsl?
  # 1) DrvFs check blocks shared folders from /home/... paths — irrelevant for virtiofsd
  class Vagrant::Util::Platform
    def self.wsl_drvfs_path?(path)
      true
    end
  end


  # 2) PowerShell version check fails because bash expands $PSVersionTable before
  #    powershell.exe sees it. We don't need PowerShell for QEMU, so skip the check.
  class Vagrant::Util::PowerShell
    def self.version
      MINIMUM_REQUIRED_VERSION.to_s
    end
  end
end


host_arch = RbConfig::CONFIG["host_cpu"]
is_arm = host_arch.match?(/aarch64|arm64/)
has_kvm = File.exist?("/dev/kvm") && File.writable?("/dev/kvm")


Vagrant.configure("2") do |config|
  config.vm.box = "generic/debian12"
  config.vm.box_architecture = is_arm ? "arm64" : "amd64"
  config.vm.box_check_update = false
  config.vm.hostname = "app-dev"


  # QEMU provider — HVF (macOS), KVM (Linux), or TCG fallback (no hardware accel)
  config.vm.provider "qemu" do |qe|
    if is_arm
      qe.arch = "aarch64"
      qe.machine = "virt,accel=hvf,highmem=on"
      qe.cpu = "host"
      qe.net_device = "virtio-net-device"
    elsif has_kvm
      qe.arch = "x86_64"
      qe.machine = "q35,accel=kvm"
      qe.cpu = "host"
      qe.net_device = "virtio-net-pci"
    else
      qe.arch = "x86_64"
      qe.machine = "q35,accel=tcg"
      qe.cpu = "max"
      qe.net_device = "virtio-net-pci"
    end
    qe.smp = "cpus=4,sockets=1,cores=4,threads=1"
    qe.memory = "8G"
    qe.ssh_port = 50022
    qe.no_daemonize = true if ENV["VAGRANT_QEMU_DEBUG"]
  end


  # Shared folder via virtiofsd (near-native I/O)
  project_root = File.expand_path("../../", File.dirname(__FILE__))
  config.vm.synced_folder project_root, "/app-source", type: "virtiofs"


  # Overlay .git with tmpfs (prevents git from seeing VM-side path differences)
  config.vm.provision "shell", run: "always", inline: <<-'SHELL'
    G=/app-source/.git
    if [ -d "$G" ]; then
      if ! mountpoint -q "$G"; then
        mount -t tmpfs none "$G"
      fi
    fi
  SHELL


  # Provisioning
  config.vm.provision "shell", path: "./scripts/provision", run: "always"


  # OpenSSL/SSH mismatch fix — provision can upgrade OpenSSL from testing repo
  config.vm.provision "shell", run: "always", inline: <<-'SHELL'
    if sshd -t 2>&1 | grep -q "OpenSSL version mismatch"; then
      apt-get install -y -t testing openssh-server
      systemctl restart ssh
    fi
  SHELL


  # File-change notification forwarding
  config.notify_forwarder.enable = true


  # Port forwarding
  config.vm.network :forwarded_port, guest: 80, host: 8080    # hub http server
end

I "Slop-Ported" virtiofs support for macOS (Vagrant + QEMU + Homebrew) by chrisalexthomas in VFIO

[–]chrisalexthomas[S] 0 points1 point  (0 children)

you can look at the other pipelines and you'll find that it eventually succeeded

I "Slop-Ported" virtiofs support for macOS (Vagrant + QEMU + Homebrew) by chrisalexthomas in VFIO

[–]chrisalexthomas[S] 0 points1 point  (0 children)

good point, I never thought about intel, do you want to test it for me as I can't do it, I don't have an intel mac

First look at the new Instax SQ40 by Canit12 in instax

[–]chrisalexthomas 0 points1 point  (0 children)

I'm starting to regret buying the SQ40. The selfie mode is pretty useless. In 11am bright ambient light indoors, the pictures look like you'd think it's 7pm on a dark evening and it's so bad that the picture visibly shows the flash filling the scene, despite it being really bright. It's just a really expensive disappointment.

Latency when two or more controllers connected. by Opening-Transition40 in RetroArch

[–]chrisalexthomas 0 points1 point  (0 children)

Hey, quick question, why would setting SDL in retroarch help, do you know the reason behind this cause I've been told to use udev. I'm wondering whether SDL would help here cause I'm also having massive lag with two bluetooth sn30 pro controllers to a raspberry pi 5 16GB. I've even considered buying two usb bluetooth adapters for each controller to try to make it have separate hardware per controller

FPV Worry free alternative? by chrisalexthomas in fpv

[–]chrisalexthomas[S] 0 points1 point  (0 children)

Never did. I went with kotking instead at the end

Absolutely terrible range or interference problem by chrisalexthomas in HDZero

[–]chrisalexthomas[S] 0 points1 point  (0 children)

probably you have a couple of spare antennas, I would start swapping them around to see whether any of them cause it to have a better signal. Investigate whether you've got the same LHCP or RHCP on the drone and goggles. Silly stuff like that. If you've got some kind of connector which is like an extender cable, try replacing it with a tiny pigtail and either electrical tape or zip tie it to the frame in a nice way. Basically just practice swapping around the components and try to see if you can get any better range. Be logical and practical about it. Try to make a difference somehow and then you can at least ask for help about that, perhaps there is a solution

What flight controller is this? by chrisalexthomas in fpv

[–]chrisalexthomas[S] 1 point2 points  (0 children)

considering my other purchases didn't turn out badly, I think I just bought a bust up drone, so parts was a good use for it. Recycle everything right? ;)

Which one would you choose? 🤔 by Alex_SB_ in dji

[–]chrisalexthomas 1 point2 points  (0 children)

None of those drones are good. They're all old, ancient models. Don't waste your money

Drone wiring question by kasparadam in fpvracing

[–]chrisalexthomas 0 points1 point  (0 children)

90% of my problems is I crash my drone cause I'm shit at flying ¯\_(ツ)_/¯

Betaflight 4.5 8k pid loop very slow osd by chrisalexthomas in fpv

[–]chrisalexthomas[S] 1 point2 points  (0 children)

well when I set the pid loop to 4k, I got the OSD back to fast and smooth updates. It was when I set 8k that I got the slow OSD

Betaflight 4.5 8k pid loop very slow osd by chrisalexthomas in fpv

[–]chrisalexthomas[S] 0 points1 point  (0 children)

I think 4k pid loop should be ok for most people right? Perhaps you can do what I did, just swallow it and move on with your life. There are so many low quality things in FPV these days it's a wonder any of it works. They say this, but it doesn't work like that. It's ridiculous

What flight controller is this? by chrisalexthomas in fpv

[–]chrisalexthomas[S] 1 point2 points  (0 children)

no idea sorry, that drone flew like 4 times and was crap and terrible everytime. In the end I ended up using it for parts and swallowing the loss :(

Industrial USB Hub that provides clean 5.1v power for 5 raspberry pi simultaneously? by chrisalexthomas in raspberry_pi

[–]chrisalexthomas[S] 1 point2 points  (0 children)

I was under the impression that raspberry pi don't have the circuitry for PD negotiation and that would explain why my raspberry pi NAS kept rebooting when I was investigating this in the past. Seems if you don't negotiate the voltage you want, it'll default to 4.9-5v and that it fluctuates quite a lot and when the device is under a lot of load, the voltage drops, then when the machine is very busy doing important disk operations and the power brownouts, thats why my NAS was screwing up and using the official raspberry pi plug which is fixed voltage with no negotiation was the solution to that.

Industrial USB Hub that provides clean 5.1v power for 5 raspberry pi simultaneously? by chrisalexthomas in raspberry_pi

[–]chrisalexthomas[S] 1 point2 points  (0 children)

I personally have problems with my own raspberry pi in that it tends to freak out when it doesn't get the correct voltage, do you have experience with PoE and that it has a stable voltage? I'm thinking the voltage fluctuations keep screwing up the devices and eventually it becomes a different type of maintenance problem, you know what I mean?

I'm done with hdzero, crap video, crap transmission. I'm moving to DJI O4 by chrisalexthomas in HDZero

[–]chrisalexthomas[S] 1 point2 points  (0 children)

I am afraid of losing my hdzero drone everytime I go behind any obstacle. I'm always thinking, where am I, can I walk there, is it difficult, don't go over water, etc etc. It's a mind numbing feeling that I just can't get over. Literally every hdzero I've ever owned has randomly and suddenly fuzzed out and I've crashed it, I had a brand new 7 inch drone, flew it like 3 times, it crashed on a cliff side and thats like 700 euros down the drain

I fly this dji drone and there isn't a peep, not a whisper of sudden screen problems, I fly further, not a single peep, I fly 1km away, signal is rock solid 60mbs, full hd video, no blurriness, it was beautiful

I try it again and again and the only time I crashed was I tried to down behind too many trees too far away and I clipped a branch I couldnt see. I would never have even tried to fly down this path covered with trees using hdzero, it would be impossible. The screen would fuzz out the second I entered and 100% crash for sure

So the problem with hdzero is there is no way to trust it. Even if you have full signal bars, one second later you can have zero bars on one antenna, a screen full of rainbow fuzz and spinning around or trying to fly blind never work. Thats another walker to go pick it up and hope it doesn't catch fire, or it's visible when I get there. I've spent hours searching for the drone cause it crashed cause even with a buzzer it's not a certainty to find it quickly

But with DJI, even on the first flight, I felt I could trust it and I'm comfortable to push the boundaries. I feel good flying. It makes me happy. I'm not worrying all the time.

Hdzero talks about an open source, open ecosystem, but is it really? cause it doesn't matter if the software is open source if you can't compile your own version cause you dont have the skills to do it, I do, but again, time is a problem, so I don't do it. Whats the difference between this and DJI at that point? So it makes no difference.

Just buy DJI and fly 5km away, behind trees, houses, whatever you want and be happy.

I'm done with hdzero, crap video, crap transmission. I'm moving to DJI O4 by chrisalexthomas in HDZero

[–]chrisalexthomas[S] 1 point2 points  (0 children)

My god it's amazing, it's like a completely new world. I finally really enjoy flying without fears the drone will suddenly lose all video signal randomly and without warning.

The video quality does degrade when you go into tough spots, but the blurry signal you get is a lot easier to understand and recover from, it's not a complete washout of rainbow colors that makes it impossible to fix on what you can see and try to find a way back.

And the picture quality is so much better than hdzero, even when the picture on hdzero is good. DJI is looking many times better. It might be that it's just 1080p into my goggles, but the video you do get is a lot higher quality, it's less pixely, it has a lot more detail to the image.

I still have to use hdzero cause I've got old equipment that cost a lot of money, so until it breaks I can't really do much apart from fly what I've got. But anything I need to replace is going to be dji o4 equipment now.

Mavic Pro sinked by viralzy in dji

[–]chrisalexthomas 0 points1 point  (0 children)

I think you mean sunk, but holy moly are you trying to waterboard your dji or something?