SimonF

Community Developer
  • Posts

    4003
  • Joined

  • Last visited

  • Days Won

    18

Everything posted by SimonF

  1. Unraid uses the php api. I can look at managed save as a option which is hibernate to disk libvirt_domain_suspend libvirt_domain_suspend($res) [Since version 0.4.1(-1)] Function is used to suspend the domain identified by it's resource. @res [resource]:libvirt domain resource, e.g. from libvirt_domain_lookup_by_*() Returns:: TRUE for success, FALSE on error libvirt_domain_managedsave libvirt_domain_managedsave($res) [Since version 0.4.1(-1)] Function is used to managed save the domain (domain was unloaded from memory and it state saved to disk) identified by it's resource. @res [resource]:libvirt domain resource, e.g. from libvirt_domain_lookup_by_*() Returns:: TRUE for success, FALSE on error
  2. Change in settings from yes to know on the VM Manager settings. if status is running still this means that Libvirt is still running, But will sort after next reboot. Or you can just change to Yes and then no and apply.
  3. Service needs to be disabled to stop libvirt and remote the VMS opions.
  4. I am lookingto see how this can be implemented, the rust version in the next released is stored in /usr/bin and we have a symlink from /usr/libexec to the new binary. So we could change the symlink to a wrapper to do the additional processing. I have also asked libvirt team if they have a time scale to implement in XML. Looking at the old args we should be able to build new args as follows. Old --fd=45 -o source=/mnt/cache,cache=always,sandbox=chroot,xattr /usr/libexec/virtiofsd \ --fd="$FD" \ # From fd= --shared-dir="/mnt/user/Music" \ # From source= --xattr \ # From sandbox --cache="never" \ #From cache= --sandbox="chroot" \ #From sandbox --inode-file-handles="mandatory" \ # Add as default --announce-submounts #Add as default. @jchIs there a reason for cache = "never" ?
  5. Yes I have upto 4 on my machine. They each show as a different panel. You need to be on 6.12+ and using my version of the plugin.
  6. Would you be able to change to have this one in your PR before I merge ^
  7. No these scripts need to be set in the sleep plug post and pre scripts. It is to disconnect the devices from the VM as they get renumbered at host resume. The disconnect just removes the attached usb devices from the VM. Is there a option to suspend as part of the sleep. I don't use sleep but these are options I provided to another user with the same issues.
  8. You may need to use Numa 1 for the VM as that is where most of your PCI passthru devices are. I have exerimented on my system but only have 2 nodes and 64G per node. I have added this to my xml and it does remain persistent even if you update on the gui. <numatune> <memory mode='strict' nodeset='1'/> </numatune> This results in the following PID 18396 is the vm for the XML. not sure on impact if you set with 16Gb for the VM and only 16Gb is available on that node. Maybe try with 12Gb first, You can specify more that one node so you could do nodeset="1-2" or ="1,2". Per-node process memory usage (in MBs) PID Node 0 Node 1 Total --------------- ------ ------ ----- 18396 (qemu-syst 2 32478 32480 31132 (qemu-syst 1183 15529 16712 --------------- ------ ------ ----- Total 1185 48007 49192 root@unraid:~# As you have somes PCI devices on different nodes you will see IO on some of the other cores not allocated to the VM.
  9. If you are on 6.12 you need to look at the multi versions. https://github.com/SimonFair/gpustat-unraid/blob/master/src/gpustat/usr/local/emhttp/plugins/gpustat/gpustatusmovablemulti.page
  10. Have you found a documented best setup anywhere for the rust vers. It is included in the next release so I can look at making changes. Looking at libvirt they have not made any changes to support new options. There is an issue but at least 1 year old.
  11. If you update via the gui it may remove those. But you can create port mappings in my plugin that will connect the devices to the VM at start without having to add to XML or template.
  12. Yes it is possible. My plan is to add an Unraid client process that can be configurable but I have create one as yet, There are sample code called client.php which is from a pfssense plugin. here is the development guide for info: https://lcdproc.sourceforge.net/docs/current-dev.html Thanks for the icon.
  13. Not sure if you want to test to see if this stops the error? You cannt use limit= on 6.12.8 thou. I have tested my VM runs with the new settings seems to remain persistant. But dont have the error to see if this fixes. https://github.com/tianocore/edk2/discussions/4662 <cpu mode='host-passthrough' check='none' migratable='on'> <topology sockets='1' dies='1' cores='1' threads='2'/> <cache mode='passthrough'/> <maxphysaddr mode='passthrough'/> </cpu>
  14. I started looking at this thread, Not sure if you what to try this option? https://github.com/tianocore/edk2/discussions/4662 Currently on 6.12.8 we are running 8.7.0 Libvirt You should be able to add the maxphysaddr to the xml, and looks like it remains persistant. The limit options is currently not supported but may be on a new point release where libvirt may be bumped up. <cpu mode='host-passthrough' check='none' migratable='on'> <topology sockets='1' dies='1' cores='1' threads='2'/> <cache mode='passthrough'/> <maxphysaddr mode='passthrough'/> </cpu>
  15. Cpu will be an issue also unraid only runs on x86 and not arm TS-433-4G ARM 4-core Cortex-A55 2.0GHz processor, 4 GB on board (non-expandable)
  16. Yes you can, issue is that the real usb changes due to power state so you need to disconnect them before sleep and readd if the vm isin a suspend state. custom command before sleep: sleep 30 rc.usb_manager vm_action "vmname" disconnect custom command after wakeup: if [[ $(virsh list | grep "vmname") != "" ]] then rc.usb_manager vm_action "vmname" prepare virsh dompmwakeup "vmname" else echo "Not Running!" > /dev/null 2>&1 fi These are example scripts.
  17. Does VM Manager just show as a blank page? Does the VMs show on the dashboard? Looking at your VFIO bindings you have bound some parts of the 2070 but not all. I cannot see any thing obvious in the logs.
  18. Here is my repo if you want to use for examples. https://github.com/SimonFair/unraid-lcd plan is to create a client to show Unraid specific info, but not built yet. client.php is my starter for 10 based on a pfsense plugin.
  19. Do you have two of the same device type in the system? When you removed the card did you adjust any vfio mappings you may have had as the pci ids may have changed. VM manager template does not support two of the same devices. But you can use my VM Manager to do that if required. post diagnostics as that will give more info about your system.
  20. So this is a PCIe USB card? Can you provide diagnostics?
  21. As it looks like both devices have the same serial ID you cannot use the device mapping. Just setup a port mapping per device to the correct VM.
  22. It should provide similar functions but I have not used this plugin so cannot say if it is like for like.
  23. What does lsusb show? Provide output lsusb -vvs 001:054 replace bus:device which matches the value that you device has. Is it a serial adapter?