renombra
This commit is contained in:
@@ -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
|
||||||
Reference in New Issue
Block a user