diff --git a/crea_VM.sh b/0.crea_VM.sh similarity index 85% rename from crea_VM.sh rename to 0.crea_VM.sh index d3605b8..b462813 100755 --- a/crea_VM.sh +++ b/0.crea_VM.sh @@ -10,6 +10,9 @@ VMSTORAGE="local" ### VMNET="k8s" VMNET="vmbr0" +# hostname +VMHOST="k8scp" + # Genera la configuracion inicial de CLoudInit ./genera_yaml_k8s.sh @@ -17,7 +20,7 @@ VMNET="vmbr0" qm stop $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 importdisk $VMID /mnt/pve/ISOs_storage/template/iso/ubuntu-24.04-server-cloudimg-amd64.img VMs_storage-E --format qcow2