input | output | corresponding cmd | |
---|---|---|---|
save | image | image tar | load -> image |
export | container | container tar | import -> image |
commit | container | image | run -> container |
Occasionally we will deploy a virtual instance into our KVM infrastructure and realize after the fact that we need more local disk space available. This is the process we use to expand the disk image. This process assumes the following:
- You're using legacy disk partitions. The process for LVM is similar and I will describe that in another post.
- The partition you need to resize is the last partition on the disk.
This process will work with either a qcow2
or raw
disk image. For
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Cross toolchain configuration for using clang-cl. | |
set(CMAKE_SYSTEM_NAME Windows) | |
set(CMAKE_SYSTEM_VERSION 10.0) | |
set(CMAKE_SYSTEM_PROCESSOR AMD64) | |
set(CMAKE_C_COMPILER "/usr/bin/clang-cl-9") | |
set(CMAKE_CXX_COMPILER "/usr/bin/clang-cl-9") | |
set(CMAKE_LINKER "/usr/bin/lld-link-9") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Exit the script immediately on error | |
set -e | |
# We'll work in /tmp | |
cd /tmp | |
# Clone mach_override unless we already have it | |
if [ ! -d mach_override ]; then |