This commit is contained in:
trigkeyb
2025-01-10 16:28:28 +01:00
parent 1aa42a5e95
commit 82d32c3dbc

View File

@@ -10,6 +10,9 @@ VMSTORAGE="local"
### VMNET="k8s" ### VMNET="k8s"
VMNET="vmbr0" VMNET="vmbr0"
# hostname
VMHOST="k8scp"
# Genera la configuracion inicial de CLoudInit # Genera la configuracion inicial de CLoudInit
./genera_yaml_k8s.sh ./genera_yaml_k8s.sh
@@ -17,7 +20,7 @@ VMNET="vmbr0"
qm stop $VMID qm stop $VMID
qm destroy $VMID qm destroy $VMID
qm create $VMID --name k8scp --memory 8192 --cores 4 --net0 virtio,bridge=$VMNET --cpu host --agent enabled=1 --tags k8s qm create $VMID --name $VMHOST --memory 8192 --cores 4 --net0 virtio,bridge=$VMNET --cpu host --agent enabled=1 --tags k8s
qm set $VMID --ide2 VMs_storage-E:cloudinit --boot c --bootdisk scsi0 --serial0 socket --vga serial0 qm set $VMID --ide2 VMs_storage-E:cloudinit --boot c --bootdisk scsi0 --serial0 socket --vga serial0
# qm importdisk $VMID /mnt/pve/ISOs_storage/template/iso/ubuntu-24.04-server-cloudimg-amd64.img VMs_storage-E --format qcow2 # qm importdisk $VMID /mnt/pve/ISOs_storage/template/iso/ubuntu-24.04-server-cloudimg-amd64.img VMs_storage-E --format qcow2