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
function blobToDataURL(blob) { | |
return new Promise((fulfill, reject) => { | |
let reader = new FileReader(); | |
reader.onerror = reject; | |
reader.onload = (e) => fulfill(reader.result); | |
reader.readAsDataURL(blob); | |
}) | |
} |
curl -L -o faas https://github.com/boson-project/faas/releases/download/v0.7.0/faas_darwin_amd64 | |
chmod +x faas | |
export PATH=$PATH:/dirholdingfaas/ | |
create a new project folder/dir | |
mkdir one | |
cd one |
### | |
# Compiler flags (not required for using GoogleTest) | |
# | |
set(CMAKE_CXX_STANDARD 20) | |
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wextra") | |
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wextra") | |
########## | |
# Use ONE of the below sections to use GoogleTest. | |
# This example assumes that main_test.cc contains your tests. |