Add files via upload

This commit is contained in:
kneutron 2024-04-30 13:38:34 -06:00 committed by GitHub
parent 85ed7c1b3a
commit 864c3443a8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 77 additions and 1 deletions

View File

@ -0,0 +1,46 @@
#!/bin/bash
#cd /mnt/toshtera10-xfs
#pwd
# XXX TODO EDITME
#isopath=/var/lib/vz/template/iso
isopath=/mnt/seatera4-xfs/template/iso
useiso=proxmox-ve_8.2-1.iso
answerfile=/root/proxmox-unattended-install.toml
echo "$(date) - Preparing $isopath/$useiso using $answerfile"
time proxmox-auto-install-assistant prepare-iso $isopath/$useiso --fetch-from iso --answer-file $answerfile
#ls -lrth |tail -n 5
#pwd
date;
exit;
# REF: https://pve.proxmox.com/wiki/Automated_Installation
# test vm config for pve install
BEGIN /etc/pve/qemu-server/126.conf
balloon: 2048
bios: ovmf
boot: order=virtio0;ide2
cores: 2
cpu: host,flags=+aes
efidisk0: local-lvm:vm-126-disk-0,efitype=4m,pre-enrolled-keys=1,size=4M
ide2: dir1:iso/proxmox-ve_8.2-1-auto-from-iso.iso,media=cdrom,size=1364160K
machine: q35
memory: 4096
meta: creation-qemu=8.1.5,ctime=1714504207
name: pve-test-unattended-install
net0: virtio=BC:24:11:B5:12:C2,bridge=vmbr0,queues=2
numa: 0
ostype: l26
scsihw: virtio-scsi-single
smbios1: uuid=0fc8815d-9727-480f-818c-0f390b19f8c7
sockets: 1
tablet: 0
vga: virtio
virtio0: tosh10-xfs-multi:126/vm-126-disk-0.qcow2,backup=0,cache=writeback,discard=on,iothread=1,size=256G

View File

@ -34,5 +34,5 @@ if [[ "$phase" == "post-start" ]]; then
echo "vm guest service not running"
exit 1
fi
fi
# REF: https://forum.proxmox.com/threads/windows-vm-time-not-updated-after-hibernate-resume.110517/page-2#post-624212

View File

@ -0,0 +1,30 @@
# This is the answer file for proxmox pve unattended install to VM (for testing)
# ext4 + LVM boot/root
# REF: https://pve.proxmox.com/wiki/Automated_Installation#Overview
# 2024.Apr kneutron
# xxx TODO EDITME before running ' proxmox-mkiso-unattended-install.sh '
[global]
keyboard = "en-us"
country = "us"
fqdn = "pveauto.testinstall"
mailto = "root@localhost"
timezone = "America/Denver"
root_password = "123456"
[network]
source = "from-dhcp"
[disk-setup]
filesystem = "ext4"
lvm.hdsize = 238
# for "256GB" disk - even if disk is bigger than this, pve lvm will only use this much and rest can be used for ZFS
#lvm.hdsize = "119"
# for "128GB" disk - REF: https://platinumdatarecovery.com/hard-drive-capacity-calculator
lvm.swapsize = 2
# ^^ in GB
lvm.maxroot = 40
# GB
lvm.minfree = 2
# Leave 2GB of space for future growth / safety factor
#disk_list = ["sda"]
disk_list = ["vda"]