This is a quick guide to mounting a qcow2 disk images on your host server. This is useful to reset passwords, edit files, or recover something without the virtual machine running.
Step 1 - Enable NBD on the Host
modprobe nbd max_part=8
sudo su
apt-get update && apt-get install -y libvirt-dev ruby-all-dev apparmor-utils
curl -O -L https://dl.bintray.com/mitchellh/vagrant/vagrant_1.6.5_x86_64.deb
dpkg -i vagrant_1.6.5_x86_64.deb
aa-complain /usr/lib/libvirt/virt-aa-helper # workaround
exit
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
Vagrant.configure("2") do |config| | |
# The most common configuration options are documented and commented below. | |
# For a complete reference, please see the online documentation at |
--- | |
# tasks file for ansible-role-mikrotik-ipsec | |
- name: Check RouterOS version. | |
raw: ":local varif [/system package update get installed-version]; :put \"$varif\"" | |
args: { executable: False } | |
register: installed_version | |
changed_when: False | |
- name: Set custom fact for RouterOS version. |
export LANGUAGE=en_US.UTF-8 | |
export LANG=en_US.UTF-8 | |
export LC_ALL=en_US.UTF-8 | |
locale-gen en_US.UTF-8 | |
locale-gen ru_RU.UTF-8 | |
dpkg-reconfigure locales |
qmk json2c2 C:/Users/[USERSAME]/qmk_firmware/keyboards/JNAO/keymaps/JoeNAO/keymap.json | |
qmk c2json -km joeyv120 -kb keebio/iris/rev4 C:/Users/[USERSAME]/qmk_firmware/keyboards/keebio/iris/keymaps/joeyv120/keymap.c | |
qmk c2json -km JoeNAO -kb jnao C:/Users/[USERSAME]/qmk_firmware/keyboards/JNAO/keymaps/JoeNAO/keymap.c --no-cpp |
This is an example script for implementing dynamic inventory in Ansible. It could have been written in bash, but python is much easier to read.
$HOME/test_inventroy.py
chmod +x $HOME/test_inventroy.py
store
to your needs.#EXTM3U url-tvg="https://iptvx.one/EPG" | |
#EXTINF:-1 group-title="Общие", Первый канал HD | |
http://live-okkotv.cdnvideo.ru/okkotv/1tv.smil/tracks-v1a1/mono.m3u8 | |
#EXTINF:-1 group-title="Общие" tvg-id="pervy", Первый канал HD (Для зарубежья) | |
http://109.200.135.130:8080/ort_hd/index.m3u8 | |
#EXTINF:-1 catchup="append" catchup-days="7" catchup-source="?offset=-${offset}&utcstart=${timestamp}" group-title="Общие" tvg-id="pervy", Первый канал (Архив) | |
#EXTVLCOPT:http-user-agent=WINK/1.40.1 (AndroidTV/9) HlsWinkPlayer | |
https://zabava-htlive.cdn.ngenix.net/hls/CH_1TVSD/variant.m3u8 | |
#EXTINF:-1 group-title="Общие", Первый канал +2 | |
http://213.59.128.165:8888/play/Pervij/index.m3u8 |