Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Maze
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Rafael László
Maze
Commits
9e514f06
Commit
9e514f06
authored
3 years ago
by
Rafael László
Browse files
Options
Downloads
Patches
Plain Diff
Add cloudinit docs
parent
33c485e6
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
terraform/README.md
+27
-0
27 additions, 0 deletions
terraform/README.md
with
27 additions
and
0 deletions
terraform/README.md
+
27
−
0
View file @
9e514f06
...
...
@@ -3,3 +3,30 @@
```
bash
source
./secret/login.sh
```
# How to create Cloudinit template
Download the ubuntu cloud image
`img`
file: https://cloud-images.ubuntu.com/
(It should work with debian)
Setup
```
bash
export
STORAGE_POOL
=
"ssd"
export
VM_ID
=
"10000"
export
VM_NAME
=
"ubuntu-cloudinit-20.04"
export
CLOUD_IMG_FILE
=
"focal-server-cloudimg-amd64.img"
qm create
$VM_ID
-name
$VM_NAME
-memory
1024
-net0
virtio,bridge
=
vmbr0
-cores
1
-sockets
1
qm importdisk
$VM_ID
$CLOUD_IMG_FILE
$STORAGE_POOL
qm
set
$VM_ID
-scsihw
virtio-scsi-pci
-virtio0
ssd:vm-
$VM_ID
-disk-0
qm
set
$VM_ID
-serial0
socket
qm
set
$VM_ID
-boot
c
-bootdisk
virtio0
qm
set
$VM_ID
-agent
1
qm
set
$VM_ID
-agent
1
qm
set
$VM_ID
-hotplug
network,usb
qm
set
$VM_ID
-vga
qxl
qm
set
$VM_ID
-ide2
ssd:cloudinit
qm resize
$VM_ID
virtio0 +4G
qm template
$VM_ID
```
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment