summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhc <hc@email.ch>2024-12-29 16:42:34 +0800
committerhc <hc@email.ch>2024-12-29 16:44:42 +0800
commit26d1a94dfd4eeb91b259bfd9d4b8f8d1cdfabd98 (patch)
tree01e11a6c260721f2a4cd1b3be60fc80ced68e992
parent885b76a594fc0a75e28152b2e806c2e0f46aee3d (diff)
udpate
-rw-r--r--others/.vm.sh2.swpbin0 -> 16384 bytes
-rw-r--r--others/meta-data2
-rw-r--r--others/user-data16
-rwxr-xr-xothers/vm3/compute/create.sh2
4 files changed, 19 insertions, 1 deletions
diff --git a/others/.vm.sh2.swp b/others/.vm.sh2.swp
new file mode 100644
index 0000000..bfa52a2
--- /dev/null
+++ b/others/.vm.sh2.swp
Binary files differ
diff --git a/others/meta-data b/others/meta-data
new file mode 100644
index 0000000..ce225e1
--- /dev/null
+++ b/others/meta-data
@@ -0,0 +1,2 @@
+instance-id: iid-fedora-vm
+local-hostname: fedora-cloudimg
diff --git a/others/user-data b/others/user-data
new file mode 100644
index 0000000..795fb19
--- /dev/null
+++ b/others/user-data
@@ -0,0 +1,16 @@
+#cloud-config
+users:
+ - name: fedora
+ ssh-authorized-keys:
+ -
+ sudo: ['ALL=(ALL) NOPASSWD:ALL']
+ groups: wheel
+ shell: /bin/bash
+runcmd:
+ - sudo growpart /dev/sda 1
+ - sudo xfs_growfs /
+ - sudo dnf install -y vim git
+ - cd /home/fedora
+ - git clone https://git.0nom.ch/setup
+ - sudo ./setup/setup.sh
+ - touch /home/fedora/runcmd_done
diff --git a/others/vm3/compute/create.sh b/others/vm3/compute/create.sh
index 84646d7..3e6c088 100755
--- a/others/vm3/compute/create.sh
+++ b/others/vm3/compute/create.sh
@@ -5,7 +5,7 @@
# default values
vcpu=8
-ram_gb=4
+ram_gb=8
disk_gb=32
os="fedora40"
ostype="linux"