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 | |
export LC_CTYPE=en_US.UTF-8 | |
export LC_ALL=en_US.UTF-8 | |
# Must run on Proxmox VE 7 server | |
# Not sure how to handle a cluster - either run on each node or copy template after creating on one? | |
# e.g. $ ssh [email protected] < proxmox-create-cloud-template.sh | |
SRC_IMG="https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64-disk-kvm.img" |
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
# download ubuntu-cloud image | |
# NOTE: ubuntu-server won't properly work with cloud-init for some reason | |
wget https://cloud-images.ubuntu.com/focal/current/focal-server-cloudimg-amd64.img | |
# NOTE: no need for sudo because we already login as root | |
# install image customization tool | |
apt update -y && apt install libguestfs-tools -y | |
# install qemu-guest-agent inside of image |
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
** Если нет 1.5 часов, можно пропустить dist-upgrade, === Advanced === и disk shrink. Сэкономит полчаса | |
Подробная установка: https://youtu.be/nZ3mDnpZeic | |
https://kali.download/base-images/*/*-installer-amd64.iso.torrent | |
/etc/network/interfaces - change interface to eth0 | |
static | |
address 192.168.192.64 | |
netmask 255.255.255.0 |