Giter Site home page Giter Site logo

unraid-from-arch's Introduction

unraid-from-arch

These scripts are designed to be run on an archlinux computer and meant to target an unraid system particularly for VM labs by using cloud-init. It assumes you have two shares:

  • isos
  • domains

Domains comes with unraid and is where the virtual machines are built. This is not exported by default, so you want to do that. Isos is something I made and is where I store my isos. In this case, we are leveraging ubuntu 20.04/focal cloud-init images, available here:

https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img

Before you can use this, you'll need something like this in your bashrc

UNRAID_TOOLS="/home/keyvan/unraid"
OTHER_PATHS="/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl"
export PATH="$UNRAID_TOOLS/bin:$OTHER_PATHS"
export UNRAID_SMB_CREDS_FILE=/home/keyvan/unraid/.smb-creds
export UNRAID_HOST=davinci
export UNRAID_SHARES_ROOT=$UNRAID_TOOLS/mnt
export UNRAID_KVM_CREATEVM_DEFAULT_PASSWORD=myPa55!

The .smb-creds file looks something like this:

username=your-username
password=your-plaintext-pw
domain=WORKGROUP

note about netcat dependency

It appears that using qemu+ssh:// method of accessing unraid's libvirtd requires a copy of netcat on the unraid side. A quick fix is transferring your own copy:

scp /usr/bin/nc $UNRAID_HOST:/usr/bin/nc
virsh --connect qemu+ssh://$UNRAID_HOST/system

unraid-from-arch's People

Contributors

kfatehi avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.