mirror of
https://github.com/kneutron/ansitest.git
synced 2025-01-16 04:42:55 +08:00
Add files via upload
This commit is contained in:
parent
85ed7c1b3a
commit
864c3443a8
46
proxmox/proxmox-mkiso-unattended-install.sh
Normal file
46
proxmox/proxmox-mkiso-unattended-install.sh
Normal 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
|
@ -34,5 +34,5 @@ if [[ "$phase" == "post-start" ]]; then
|
|||||||
echo "vm guest service not running"
|
echo "vm guest service not running"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
# REF: https://forum.proxmox.com/threads/windows-vm-time-not-updated-after-hibernate-resume.110517/page-2#post-624212
|
# REF: https://forum.proxmox.com/threads/windows-vm-time-not-updated-after-hibernate-resume.110517/page-2#post-624212
|
||||||
|
30
proxmox/proxmox-unattended-install.toml
Normal file
30
proxmox/proxmox-unattended-install.toml
Normal 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"]
|
Loading…
x
Reference in New Issue
Block a user