SpaceinvaderOne / RetroNASinabox

A container to fully setup a RetroNAS VM on an Unraid server very easily in under 5 mins

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RetroNASinabox

This is a script to set up a RetroNAS virtual machine (VM) in just a few minutes.

Normally, it is run as a container on an Unraid server, which will download and set up the VM directly on the server. However, this script can detect whether it is in a container or running just as a script. When running as a script, it should work on any Linux system with kvm/qemu installed, and it will also run in Unraid through the userscripts plugin. The recommended way to run it is on Unraid installed from Community Applications.

Setting it up

When running on Unraid, the variables are set from the Docker template. When running as a script, the variables are set in the script. Here are the steps to set up the VM:

Method 1- Unraid Container

  1. Download container from CA

Download container from CA

  1. Set the 'VM Share on Server':     to where you store your VMs. The default is /mnt/user/domains.
  2. Set the 'RetroNAS data share':    to a new share. This is where you will store all your ROMs and other RetroNAS data.
  3. Set the 'Name to call VM':          to the name you want the VM to have. The default is RetrNAS.

Template image

  1. Click apply to pull down and run the container

Template image

  1. The container will run. There is no webui. You can see the progress from clicking on the container log from the Unraid docker tab. The container will run for a couple of minutes then stop when done. (There is no need for the container to run again or it doesnt need to be running to use the RetroNAS vm)
  2. Click on the Unraid VM tab. You will see the vm there. Start by clicking Start with console (VNC)

vm image

  1. Goto Running the VM

Method 2- Script Install

The script can be run on a Linux system with kvm/qemu installed.

  1. Download script letsgo.sh (or clone this repository)
  2. Make script executable
  3. Edit below variables to suit
  4. Set the standard_domains_share to the folder where you store your VMs.
  5. Set the standard_RETRO_SHARE to a new share. This is where you will store all your ROMs and other RetroNAS data.
  6. Set the standard_vm_name to the name you want the VM to have. The default is RetrNAS.
  7. run script Once the script is run, it will download a vDisk image of Debian 11 with RetroNAS and all its dependencies. The image will be checked against an MD5 checksum to ensure it is the correct image and has not been tampered with. After the image has been downloaded and uncompressed into the qcow2 image, an XML file is created based on the variables set, and then defines (installs) the VM on your server/PC. The RetroNAS data share folder is automatically configured to be connected to the VM by virtiofs. This means if you run your VM on a separate network or VLAN (easy to do on Unraid), RetroNAS can be isolated from your main network.
  8. Run vm

Running the VM

  1. Open a VNC console window to view VM, It will be booting into Debain 11

debian image

  1. After the above screen you will be greeted with a login screen. Use the below credentials (can be changed later)
  • Username: retronas
  • Password: retronas

Next start retronas by typing 'retronas' then enter. You will be prompted for your password again

login image

  1. You will see a user agreement. Click enter then type 'AGREE' to accept
  2. The username is set to pi. Change this to retronas
  3. The group is set to pi. Change this to retronas. (you can change your password later in the global settings if you want to)

login image

  1. This installer was made to make the installation process as painless as possible. The real work was done by Dan Mons who is the author of RetroNAS. His project is available here: https://github.com/danmons/retronas. Thank you, Dan, for making RetroNAS!

Please note that the container/script downloads the vDisk image from one of three Google Drive accounts. There are limits on the daily bandwidth that Google allows, so if one account fails, the script will move on to the next. It is possible that all links may fail, in which case, please try again later when the bandwidth limits may have reset. If this issue occurs frequently, I will try and add additional download locations. Also, if a checksum fails, it does not necessarily mean that the image has been tampered with. It could be due to a failed link or corruption during the download. The MD5 check just makes sure the vDisk you get is correct.

About

A container to fully setup a RetroNAS VM on an Unraid server very easily in under 5 mins


Languages

Language:Shell 95.2%Language:Dockerfile 4.8%