Shell script to update all lxd container hypervisor

Posted on in Categories Automation & Management, Virtualization last updated September 5, 2016

A simple shell script wrapper to update all lxd container hypervisor images eitehr running Debian or Ubuntu Linux.

Run script as follows:
$ /path/to/update.lxd.vms
Sample outputs:

5 comment

  1. Thank you for publishing this, very helpful. For those of us learning bash scripts, could you break down this line? I think I understand what it does, but having the explanation would be great.
    clist="$(${_lxc} list -c ns | ${_awk} '!/NAME/{ if ( $4 == "RUNNING" ) print $2}')"

Leave a Comment