Skip to content

Instantly share code, notes, and snippets.

View 3ayazaya's full-sized avatar
💻
Hack everyday, hack everywhere

Daniil Zaytsev 3ayazaya

💻
Hack everyday, hack everywhere
View GitHub Profile
#!/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"
@aleksul
aleksul / script.sh
Created December 13, 2021 13:48
Proxmox create Ubuntu 20.04 template
# 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
** Если нет 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