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
qemu-img create -f qcow2 arch-root.qcow2 64G | |
sudo modprobe nbd | |
sudo qemu-nbd -c /dev/nbd0 arch-root.qcow2 | |
sudo cfdisk -z /dev/nbd0 | |
# make dos partition table | |
# make a new partition, make it bootable | |
sudo mkfs.ext4 /dev/nbd0p1 | |
sudo mount /dev/nbd0p1 /mnt/ |
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
HostkeyAlgorithms +ssh-rsa | |
PubkeyAcceptedAlgorithms +ssh-rsa |
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
Create ssh host <username>-<vmname> for libvirt | |
#1. Add this to TOP of ~/.ssh/config | |
Include ~/.ssh/config.d/* | |
Top means top, specifically, do not add after a Host entry | |
#2. This bash function: | |
```bash | |
vmssh () | |
{ |
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
from collections import namedtuple | |
## Convention | |
## 4 3 2 1 size discs are stored as [ 4,3,2,1 ] | |
## name -> string | |
## discs -> sparse reverse sorted array of number | |
Peg = namedtuple('Peg', ['name', 'discs']) |
OlderNewer