{"id":298,"date":"2024-02-29T17:42:16","date_gmt":"2024-02-29T16:42:16","guid":{"rendered":"https:\/\/leren.ovh\/?p=298"},"modified":"2024-02-29T17:42:17","modified_gmt":"2024-02-29T16:42:17","slug":"cloudinit-with-proxmox","status":"publish","type":"post","link":"https:\/\/leren.ovh\/index.php\/2024\/02\/29\/cloudinit-with-proxmox\/","title":{"rendered":"CloudInit with Proxmox"},"content":{"rendered":"\n<p>Logon Proxmox machine in terminal ssh root<br>Download latest ubuntu cloud LTS x64 image<br>&#8211;> wget https:\/\/cloud-images.ubuntu.com\/jammy\/current\/jammy-server-cloudimg-amd64.img<\/p>\n\n\n\n<p>From the same command-line, create a virtual machine with a ProxMox VMID of 990, with 2GB of RAM,1 vcpu, and named ubuntu-cloud-test using default network interface bridge:<br>qm create 990 &#8211;memory 2048 &#8211;name ubuntu-cloud-test &#8211;net0 virtio,bridge=vmbr0<\/p>\n\n\n\n<p>Import the disk into the proxmox storage, into local-lvm in this case.<br>qm importdisk 990 .\/jammy-server-cloudimg-amd64.img local-lvm<\/p>\n\n\n\n<p>Add the new, imported disk to the VM (by VMID 990):<br>qm set 990 &#8211;scsihw virtio-scsi-pci &#8211;scsi0 local-lvm:vm-990-disk-0<\/p>\n\n\n\n<p>Add a CD-ROM for Cloudinit<br>qm set 990 &#8211;ide2 local-lvm:cloudinit<\/p>\n\n\n\n<p>Specify the boot disk:<br>qm set 990 &#8211;boot c &#8211;bootdisk scsi0<\/p>\n\n\n\n<p>Add support for VNC and a serial console:<br>qm set 990 &#8211;serial0 socket &#8211;vga serial0<\/p>\n\n\n\n<p>Convert to a template<br>qm template 990<\/p>\n\n\n\n<p>Create a VM based on the template<br>qm clone 900 123 &#8211;name ubuntu-test123<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Logon Proxmox machine in terminal ssh rootDownload latest ubuntu cloud LTS x64 image&#8211;> wget https:\/\/cloud-images.ubuntu.com\/jammy\/current\/jammy-server-cloudimg-amd64.img From the same command-line, create a virtual machine with a ProxMox VMID of 990, with 2GB of RAM,1 vcpu, and named ubuntu-cloud-test using default network interface bridge:qm create 990 &#8211;memory 2048 &#8211;name ubuntu-cloud-test &#8211;net0 virtio,bridge=vmbr0 Import the disk into the&hellip;&nbsp;<a href=\"https:\/\/leren.ovh\/index.php\/2024\/02\/29\/cloudinit-with-proxmox\/\" class=\"\" rel=\"bookmark\">Read More &raquo;<span class=\"screen-reader-text\">CloudInit with Proxmox<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","_themeisle_gutenberg_block_has_review":false,"_ti_tpc_template_sync":false,"_ti_tpc_template_id":"","footnotes":""},"categories":[23,20],"tags":[24,19],"class_list":["post-298","post","type-post","status-publish","format-standard","hentry","category-cloudinit","category-proxmox","tag-cloudinit","tag-proxmox"],"_links":{"self":[{"href":"https:\/\/leren.ovh\/index.php\/wp-json\/wp\/v2\/posts\/298","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/leren.ovh\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/leren.ovh\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/leren.ovh\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/leren.ovh\/index.php\/wp-json\/wp\/v2\/comments?post=298"}],"version-history":[{"count":1,"href":"https:\/\/leren.ovh\/index.php\/wp-json\/wp\/v2\/posts\/298\/revisions"}],"predecessor-version":[{"id":299,"href":"https:\/\/leren.ovh\/index.php\/wp-json\/wp\/v2\/posts\/298\/revisions\/299"}],"wp:attachment":[{"href":"https:\/\/leren.ovh\/index.php\/wp-json\/wp\/v2\/media?parent=298"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/leren.ovh\/index.php\/wp-json\/wp\/v2\/categories?post=298"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/leren.ovh\/index.php\/wp-json\/wp\/v2\/tags?post=298"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}