DWomack

Members
  • Posts

    39
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

DWomack's Achievements

Rookie

Rookie (2/14)

0

Reputation

1

Community Answers

  1. This seems to work, you guys have comments? I made this an UnRaid User Script: #!/bin/bash #description=This script completely removes all references to the BigSur_VM #foregroundOnly=true #arrayStarted=true #name=remove_macinabox_BigSur_VM # Replace "name_of_VM" with the actual name of your VM echo VM_NAME="Macinabox BigSur" VM_NAME="Macinabox BigSur" echo sleep 2 # Undefine the VM (remove it from libvirt) echo virsh undefine --nvram "$VM_NAME" virsh undefine --nvram "$VM_NAME" echo sleep 2 # Delete the VM's XML configuration file # Navigate to the directory where VM XML files are stored # Usually located at /etc/libvirt/qemu/ # Delete the XML file corresponding to your VM # For example: echo ls -la /etc/libvirt/qemu/ ls -la /etc/libvirt/qemu/ echo # echo rm /etc/libvirt/qemu/"$VM_NAME".xml # rm /etc/libvirt/qemu/"$VM_NAME".xml # echo sleep 2 # Restart the libvirt service # This step ensures that the changes take effect # You can restart the entire server or just the libvirt service # # For example: # systemctl restart libvirtd # # Or since this is Slackware: # /etc/rc.d/rc.libvirt restart echo /etc/rc.d/rc.libvirt restart /etc/rc.d/rc.libvirt restart echo sleep 2 # Optionally, you can also delete the VM's disk image # Locate the VM disk image and delete it # For example: # rm /mnt/user/domains/"$VM_NAME"/disk.img echo rm -r /mnt/user/domains/"$VM_NAME" rm -r /mnt/user/domains/"$VM_NAME" echo sleep 2 echo rm -r /mnt/user/isos/BigSur-install.img rm -r /mnt/user/isos/BigSur-install.img echo sleep 2 echo rm /mnt/user/system/custom_ovmf/* rm /mnt/user/system/custom_ovmf/* echo sleep 2 # Notify any relevant services or users about the VM removal # You can customize this part based on your setup # For example, send a notification using Unraid's built-in notification system: # /usr/local/emhttp/webGui/scripts/notify -i normal -s "VM $VM_NAME removed" # Clean up any other associated files or directories as needed echo rm -r /boot/config/plugins/user.scripts/scripts/1_macinabox_vmready_notify rm -r /boot/config/plugins/user.scripts/scripts/1_macinabox_vmready_notify echo sleep 2 echo rm -r /boot/config/plugins/user.scripts/scripts/1_macinabox_helper rm -r /boot/config/plugins/user.scripts/scripts/1_macinabox_helper echo sleep 2 # Done! The VM traces should now be completely removed. # Remember to make this script executable: # chmod +x /path/to/your/script.sh echo Script complete! Is there a way to script stopping and deleting… the macinabox docker the vm the macinabox docker template If I want to start a fresh, I want to just run a script.
  2. Looking for an annotated user script that will remove all of what Macinabox has touched, so a new macinabox can be created. A script would be much better than touch this, and this, delete this, etc. Maybe the script could remove all VMs and the dockers necessary. Sure I can stumble through all the steps, but a script that always works without mistakes would be much better. Thanks to iamtim2 for posting his guide above.
  3. Have you seen EFI-Agent on GitHub? So, what version of macOS do you have running? I am at Big Sur. When I start the VM it runs thru a bunch of code, which are boot messages from OpenCore? Then it is at an OpenCore picker screen and I pick Big Sur and it boots. How do I get it to go straight to Big Sur? I hope SpaceInvader One is progressing along to the new release of Macinabox. Dennis
  4. Thank you for your help on this New Years Day. Your suggestion above does stop it on the Ubuntu box. Likewise sudo service unifi start will start it back up. I am still having issues with adopting. It doesn’t want to adopt. I think the fly in the ointment is the meshing ability. When it is trying to adopt it is trying to get there through an AP that hasn’t been adopted. How in UniFi can you force wired only? No meshing at all. I know meshing can provide some redundancy if wired fails but this ridiculous. Dennis
  5. I am completely new to running UniFi on Docker, and Docker in Unraid, hence the questions. Do I have to install the Mondo container or is it included in UniFi.Unraid.Reborn? I have run the Cloud Key, and a RaspberryPi as controllers in the past. Currently it is running on a Ubuntu 22.04 box. Short of just shutting down the Ubuntu box, what do I enter at the command line to shut down the running controller?
  6. The older one is an older version back, does that make any difference? When I apt update it complains about the mongo repo. That’s part of the reason for going to yours.
  7. I have a prior version of the UniFi Controller running on a Ubuntu 22.04 box. It is not on docker. I have installed this docker on UnRaid and it runs. I have only two APs running in this home environment. I want to migrate the APs to this new docker based controller. I have tried to move them one at a time. I tell the prior to forget an AP and it does. The new docker controller sees the AP that was forgotten. I tell it to adopt it, but it never does. Adopting…… I tell the prior to adopt it and it does. What am I doing wrong? I even tried hardware reset on the AP but it won’t adopt on the new, but will on the old. Firmware on the AP is the latest. I am stumped. Thanks Dennis
  8. I understand that but what I would like would look like… log.Encode.timestamp.txt If I download log.txt from multiple scripts that run, the download directory winds up full of stuff like log.txt, log1.txt, log2.txt…. Names are not tied to the script they came from.
  9. So, are the user scripts processed by a script? I would like to modify the processing so that instead of log.txt the file name would be something like... user_script_name_timestamp.txt This would allow the log to be downloaded or stored as a unique file. Thanks.
  10. My repository is lscr.io/linuxserver/mariadb That is the default. I don’t see a Generate Random Pass
  11. So this is not working. I used the sqlite version previously and it worked. Here is my mariadb container: docker run -d --name='mariadb' --net='bridge' -e TZ="America/New_York" -e HOST_OS="Unraid" -e HOST_HOSTNAME="NucBerthaPlus" -e HOST_CONTAINERNAME="mariadb" -e 'MYSQL_ROOT_PASSWORD'='mySQL.Root' -e 'MYSQL_DATABASE'='speedtest_tracker' -e 'MYSQL_USER'='speedtest' -e 'MYSQL_PASSWORD'='speedtest.DB' -e 'REMOTE_SQL'='http://URL1/your.sql,https://URL2/your.sql' -e 'PUID'='99' -e 'PGID'='100' -e 'UMASK'='022' -l net.unraid.docker.managed=dockerman -l net.unraid.docker.icon='https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/mariadb-logo.png' -p '3306:3306/tcp' -v '/mnt/user/appdata/mariadb':'/config':'rw' 'lscr.io/linuxserver/mariadb' b79dac9b15ed29de5d70028a2a0254653bd13e9fd6924803196ec4b0aa5da554 Here is my speedtest-tracker container: docker run -d --name='speedtest-tracker' --net='bridge' -e TZ="America/New_York" -e HOST_OS="Unraid" -e HOST_HOSTNAME="NucBerthaPlus" -e HOST_CONTAINERNAME="speedtest-tracker" -e 'PUID'='1000' -e 'PGID'='1000' -e 'DB_CONNECTION'='mysql' -e 'DB_HOST'='mariadb' -e 'DB_PORT'='3306' -e 'DB_DATABASE'='speedtest_tracker' -e 'DB_USERNAME'='speedtest' -e 'DB_PASSWORD'='speedtest.DB' -e 'APP_KEY'='' -l net.unraid.docker.managed=dockerman -l net.unraid.docker.webui='https://[IP]:[PORT:443]/' -l net.unraid.docker.icon='https://raw.githubusercontent.com/devzwf/unraid-docker-templates/main/images/speedtest-tracker-icon.png' -p '9443:443/tcp' -v '/mnt/user/appdata/speedtest-tracker':'/config':'rw' 'ghcr.io/alexjustesen/speedtest-tracker:latest' 52ebcb52520f00856adc80ac39787169bdf43f38c7f77ec1f8be59840db218f8 speedtest-tracker log ends in this: In Connection.php line 822: SQLSTATE[HY000] [2002] Connection refused (Connection: mysql, SQL: select t able_name as `name`, (data_length + index_length) as `size`, table_comment as `comment`, engine as `engine`, table_collation as `collation` from infor mation_schema.tables where table_schema = 'speedtest_tracker' and table_typ e = 'BASE TABLE' order by table_name) In Connector.php line 65: SQLSTATE[HY000] [2002] Connection refused What am I missing? Thanks for the help. Dennis
  12. I have successfully installed BigSur several times on more than one UnRaid instance. I have edited the VM instance so that only the BigSur, recovery, and EFI show on the opencore boot screen. How do I get it to automatically boot BigSur after a timeout? Next question is how do you completely remove a VM? I tried to install Monterey but had issues. I have deleted domains, appdata for Monterey, but still it shows up in the list of VMs. Selecting remove with files, just spins. What places do I have to touch to get rid of it? Thanks for the help. Dennis
  13. What version of OpenCore Configurator is used in the YouTube. Looks like the version of open core used is 78 from the picker screen. This a bit dated. Looking forward to your update. Dennis
  14. I don't have any database running on UnRaid now. Can someone give a quick "do this, then this" to get Speedtest Tracker to run again. I have completely removed the version that was working using sqllite. I prefer mySQL/MariaDB. I worked with it some many, many moons ago. Thanks