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
[ 142s] ok github.com/cli/cli/v2/pkg/cmd/attestation/api 0.584s | |
[ 142s] ok github.com/cli/cli/v2/pkg/cmd/attestation/artifact 0.013s | |
[ 142s] ok github.com/cli/cli/v2/pkg/cmd/attestation/artifact/digest 0.011s | |
[ 142s] ok github.com/cli/cli/v2/pkg/cmd/attestation/artifact/oci 0.012s | |
[ 143s] ok github.com/cli/cli/v2/pkg/cmd/attestation/download 0.086s | |
[ 144s] ? github.com/cli/cli/v2/pkg/cmd/attestation/io [no test files] | |
[ 144s] ? github.com/cli/cli/v2/pkg/cmd/attestation/test [no test files] | |
[ 144s] ? github.com/cli/cli/v2/pkg/cmd/attestation/test/data [no test files] | |
[ 144s] ok github.com/cli/cli/v2/pkg/cmd/attestation/inspect 0.050s | |
[ 144s] --- FAIL: TestTUFRootVerify (0.02s) |
[?25l[?7l[37m[0m[1m ...... | |
.,cdxxxoc,. .:kKMMMNWMMMNk:. | |
cKMMN0OOOKWMMXo. ; ;0MWk:. .:OMMk. | |
;WMK;. .lKMMNM, :NMK, .OMW; | |
cMW; 'WMMMN ,XMK, oMM' | |
.MMc ..;l. xMN: KM0 | |
'MM. 'NMO oMM | |
.MM, .kMMl xMN | |
KM0 .kMM0. .dl:,.. .WMd | |
.XM0. ,OMMK, OMMMK. .XMK |
$TTL 86400 | |
@ IN SOA host.pdostal.sh.cvut.cz. p.dostal.sh.cvut.cz. ( | |
2021030200 ; serial | |
28800 ; refresh | |
14400 ; retry | |
3600000 ; expire | |
86400 ; default_ttl | |
) | |
@ IN NS host.pdostal.sh.cvut.cz. |
auto lo | |
iface lo inet loopback | |
auto eth0 | |
iface eth0 inet dhcp | |
auto eth1 eth1:0 | |
iface eth1 inet static | |
address 10.100.100.2 | |
netmask 255.255.255.0 |
Verifying that +pdostal is my blockchain ID. https://onename.com/pdostal |
#!/bin/bash | |
lins=`tput lines` | |
cols=`tput cols` | |
printf '\033c' | |
for x in {a..z}; do | |
for ((l=0; l<=lins; l++)); do | |
for ((c=0; c<=cols-1; c++)); do |
dd if=/dev/zero of=/swapfile bs=1M count=512 | |
chmod 600 /swapfile | |
mkswap /swapfile | |
swapon /swapfile |
destination zenoss { | |
udp("172.127.127.3" port(514)); | |
}; | |
log { | |
source(src); | |
destination(zenoss); | |
}; |
## Prepare ################################################################### | |
# Remove RVM | |
rvm implode | |
# Ensure your homebrew is working properly and up to date | |
brew doctor | |
brew update | |
## Install ################################################################### |