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
| #!/bin/bash | |
| # CSV to JSON converter using BASH | |
| # original script from http://blog.secaserver.com/2013/12/convert-csv-json-bash/ | |
| # thanks SecaGuy! | |
| # Usage ./csv2json.sh input.csv > output.json | |
| input=$1 | |
| [ -z $1 ] && echo "No CSV input file specified" && exit 1 | |
| [ ! -e $input ] && echo "Unable to locate $1" && exit 1 |
| # from: https://askubuntu.com/questions/645/how-do-you-reset-a-usb-device-from-the-command-line | |
| # | |
| # This will reset all of USB1/2/3 attached ports[1]: | |
| # | |
| for i in /sys/bus/pci/drivers/[uoex]hci_hcd/*:*; do | |
| echo "${i##*/}" > "${i%/*}/unbind" | |
| echo "${i##*/}" > "${i%/*}/bind" | |
| done |
RAM
---
vm-1 = 1,024 MiB
vm-2 = 2,048 MiB
Total: 3,072 MiB
CPU(s)
------
| # Download latest dotnet/codeformatter release from github | |
| $repo = "jgm/pandoc" | |
| $filenamePattern = "*x86_64.zip" | |
| $pathExtract = "C:\Tools\pandoc" | |
| $innerDirectory = $true | |
| $preRelease = $false | |
| if ($preRelease) { | |
| $releasesUri = "https://api.github.com/repos/$repo/releases" |