ajustados los recursos
This commit is contained in:
@@ -8,7 +8,7 @@ source config.sh
|
|||||||
qm stop $VMID
|
qm stop $VMID
|
||||||
qm destroy $VMID
|
qm destroy $VMID
|
||||||
|
|
||||||
qm create $VMID --name $VMHOST --memory 8192 --cores 4 --net0 virtio,bridge=$VMNET --cpu host --agent enabled=1 --tags docker
|
qm create $VMID --name $VMHOST --memory $VRAM --cores $VCORES --net0 virtio,bridge=$VMNET --cpu host --agent enabled=1 --tags docker
|
||||||
qm set $VMID --ide2 $VMSTORAGE:cloudinit --boot c --bootdisk scsi0 --serial0 socket --vga serial0
|
qm set $VMID --ide2 $VMSTORAGE:cloudinit --boot c --bootdisk scsi0 --serial0 socket --vga serial0
|
||||||
|
|
||||||
qm importdisk $VMID /mnt/pve/ISOs_storage/template/iso/ubuntu-24.04-minimal-cloudimg-amd64.img $VMSTORAGE --format qcow2
|
qm importdisk $VMID /mnt/pve/ISOs_storage/template/iso/ubuntu-24.04-minimal-cloudimg-amd64.img $VMSTORAGE --format qcow2
|
||||||
|
|||||||
@@ -8,6 +8,11 @@ VMID="920000"
|
|||||||
VMSTORAGE="VMs_storage-E"
|
VMSTORAGE="VMs_storage-E"
|
||||||
### VMSTORAGE="local"
|
### VMSTORAGE="local"
|
||||||
|
|
||||||
|
# recursos
|
||||||
|
VRAM=8192
|
||||||
|
VCORES=4
|
||||||
|
|
||||||
|
|
||||||
# network
|
# network
|
||||||
### VMNET="k8s"
|
### VMNET="k8s"
|
||||||
VMNET="vmbr0"
|
VMNET="vmbr0"
|
||||||
@@ -20,5 +25,8 @@ USER="curso"
|
|||||||
PASSWORD="1"
|
PASSWORD="1"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# calculos con lo que hay
|
||||||
|
|
||||||
PASSWORD_HASH=$(openssl passwd -6 "$PASSWORD")
|
PASSWORD_HASH=$(openssl passwd -6 "$PASSWORD")
|
||||||
PUB_KEY=$(cat ~/.ssh/id_rsa.pub)
|
PUB_KEY=$(cat ~/.ssh/id_rsa.pub)
|
||||||
|
|||||||
@@ -8,10 +8,9 @@ apt update
|
|||||||
# Instalación del agente
|
# Instalación del agente
|
||||||
apt install qemu-guest-agent -y
|
apt install qemu-guest-agent -y
|
||||||
systemctl enable --now qemu-guest-agent
|
systemctl enable --now qemu-guest-agent
|
||||||
#apt upgrade -y
|
apt upgrade -y
|
||||||
|
|
||||||
#./1.instala_docker.sh
|
|
||||||
|
|
||||||
|
./1.instala_docker.sh
|
||||||
|
|
||||||
|
|
||||||
reboot
|
reboot
|
||||||
|
|||||||
Reference in New Issue
Block a user