From c08b82976d4ebde96340c742e7c752ca96b84ca3 Mon Sep 17 00:00:00 2001 From: Chose Carreras Date: Mon, 6 Oct 2025 10:20:23 +0200 Subject: [PATCH] adding new VM --- .gitea/workflows/241_DEPLOY_cloudINIT241.yaml | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .gitea/workflows/241_DEPLOY_cloudINIT241.yaml diff --git a/.gitea/workflows/241_DEPLOY_cloudINIT241.yaml b/.gitea/workflows/241_DEPLOY_cloudINIT241.yaml new file mode 100644 index 0000000..660137f --- /dev/null +++ b/.gitea/workflows/241_DEPLOY_cloudINIT241.yaml @@ -0,0 +1,33 @@ +name: DEPLOY VM at proxmox + +on: + workflow_dispatch: + +jobs: + deploy: + runs-on: ubuntu-latest + + steps: + + - name: Deploying VM to Proxmox + uses: appleboy/ssh-action@v1.2.0 + with: + host: 192.168.11.102 + username: root + password: ${{ secrets.PASSWORD }} + port: 22 + script: | + pveversion + qm create 241 --name cloudINIT241 --memory 2048 --net0 virtio,bridge=vmbr0 --cores 2 --sockets 1 --ostype l26 + qm set 241 --bios seabios + qm importdisk 241 /mnt/storage_sdb/template/iso/noble-server-cloudimg-amd64.img smallDisk + qm set 241 --virtio0 smallDisk:241/vm-241-disk-0.raw + qm set 241 --ide2 smallDisk:cloudinit + qm set 241 --boot order=virtio0 + qm set 241 --ipconfig0 ip=192.168.11.241/24,gw=192.168.11.1 + qm set 241 --ciuser chs --cipassword genius + qm set 241 --sshkey <(echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAE39D/Dep3EHMWXB6wiMTL0My1SlMZVk0Y80jEv7LOb xchose@freya.local") + qm set 241 --agent enabled=1 + qm start 241 + qm resize 241 virtio0 +30G + \ No newline at end of file