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 | |
# | |
# Copyright (c) 2015, Intel Corporation | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions are met: | |
# | |
# * Redistributions of source code must retain the above copyright notice, | |
# this list of conditions and the following disclaimer. | |
# * Redistributions in binary form must reproduce the above copyright |
initrd内init: scripts/liveをkickする存在 | |
maybe_break mount | |
log_begin_msg "Mounting root file system" | |
. /scripts/${BOOT} | |
parse_numeric ${ROOT} | |
maybe_break mountroot | |
mountroot | |
log_end_msg |
# INSTALL INSTRUCTIONS: save as ~/.gdbinit | |
# | |
# DESCRIPTION: A user-friendly gdb configuration file. | |
# | |
# REVISION : 7.3 (16/04/2010) | |
# | |
# CONTRIBUTORS: mammon_, elaine, pusillus, mong, zhang le, l0kit, | |
# truthix the cyberpunk, fG!, gln | |
# | |
# FEEDBACK: https://www.reverse-engineering.net |
#!/bin/bash | |
# | |
# For latest version please check https://github.com/doomedraven/Tools/blob/master/Virtualization/kvm-qemu.sh | |
# | |
# https://www.doomedraven.com/2016/05/kvm.html | |
# Use Ubuntu 18.04 LTS |
(defun erlang-after-arrow () | |
"Return true if point is immediately after a function arrow (`->'). | |
Make a special case when in a spec line." | |
(and | |
(save-excursion | |
(beginning-of-line) | |
(not (save-match-data (looking-at "-\\(spec\\|type\\)")))) | |
(and (>= (point) 2) | |
(and | |
(save-excursion |
MAX_BUILDS = 10 // max builds to keep | |
def jobs = Jenkins.instance.items; | |
for (job in jobs) { | |
println "Job: " + job.name | |
try { | |
if(job instanceof jenkins.branch.MultiBranchProject) { | |
println "Multibranch" | |
job = job.getJob("master") |