posts/cloud-init-cloud-image/ #194
Replies: 8 comments 20 replies
-
Thanks Tim for the awesome guides! Not sure if its just me but I get this error when trying to mount the disk Successfully imported disk as 'unused0:fastboi:8000/vm-8000-disk-0.raw' What I found is for some reason it creates it under the VM ID Just a note for anyone struggling with that portion |
Beta Was this translation helpful? Give feedback.
-
Awesome tutorial but to make it even better I would suggest to do this: Install necessary tools: Then import install the package: And don't forget to enable the agent in the settings to be able to see the IP of your newly created VM: |
Beta Was this translation helpful? Give feedback.
-
If the image file creates a too small of a hard drive space add this after downloading your image file (adds 2Gb to the drive)
|
Beta Was this translation helpful? Give feedback.
-
Thanks Tim! I am trying to automate the whole process and write a bash script for this. And I think it's worth making changes, as in the official example (https://pve.proxmox.com/wiki/Cloud-Init_Support#_preparing_cloud_init_templates) "--scsihw virtio-scsi-pci " should be used in "qm create " In this case, the correct controller will be used and the disk will connect to it without problems Changes like this: qm set 8000 --scsi0 local-lvm:8000/vm-8000-disk-0.raw |
Beta Was this translation helpful? Give feedback.
-
To further enhance this you can add a vendor config. With cloud-init you can attatch four config files, three of which proxmox will manage through the UI. The vendor config is unset but you can add one without compromising the UIs functionality. It also ensures that you still have a clean image that has never been booted which is not the case when you use First you will need to enable a snipplets storage on your PVE host. Then you can add your vendor config there. I for example called mine the template-ID combined with a description of what it is: 100000-civendor.yaml To give an example of how this can look, here is mine:
I highly recommend all of you to include this into your project as it will keep you from having to configure your VMs individually after boot without having to compromise their integrity. I would also encourage you to look into theh cloud-init documentation to find more usefull data you can pass to your image. |
Beta Was this translation helpful? Give feedback.
-
Im actually having an issue with accessing a clone over ssh. I confirmed that Open SH is installed, and I am able to login to other virtual machines not created through Tim's provisioning method. "The client has disconnected from the server. Reason: |
Beta Was this translation helpful? Give feedback.
-
Hello. Just wanted to give input that these days you can import the image to the harddrive in one command, like this: |
Beta Was this translation helpful? Give feedback.
-
hello i did every thing it said but my problem is when i ssh into the clone and after i select yes to :yes/no/ (fingerprint)? i get: "Warning: Permanently added '192.168.1.111' (ED?????) to the list of known hosts." |
Beta Was this translation helpful? Give feedback.
-
posts/cloud-init-cloud-image/
Documentation for Techno Tim YouTube videos for all your copy pasta needs!
https://technotim.live/posts/cloud-init-cloud-image/
Beta Was this translation helpful? Give feedback.
All reactions