Proxmox VE - How to build an Ubuntu 22.04 Template (Updated Method)

Ғылым және технология

Proxmox Virtual Environment is a powerful and easy to use virtualization platform with many features. Virtual machine templates help to minimize the amount of time spent building new instances, and in this video we'll take a look at how you can utilize Ubuntu's cloud images to automate the process of deploying new Linux instances.
Also, be sure to check out Learn Linux TV's full tutorial course on Proxmox Virtual Environment:
Class 01 - Getting Started: linux.video/pve1
Class 02 - Installation Process: linux.video/pve2
Class 03 - Web Console Overview: linux.video/pve3
Class 04 - Containers vs Virtual Machines: linux.video/pve4
Class 05 - Launching a Virtual Machine: linux.video/pve5
Class 06 - Setting up Virtual Machine Templates: linux.video/pve6
Class 07 - Creating Containers: linux.video/pve7
Class 08 - Setting up Container Templates: linux.video/pve8
Class 09 - User Management: linux.video/pve9
Class 10 - Backups and Snapshots: linux.video/pve10
Class 11 - Integrated Firewall: linux.video/pve11
Class 12 - Command-line Interface: linux.video/pve12
Class 13 - Networking: linux.video/pve13
Class 14 - Shared storage: linux.video/pve14
Class 15 - Clustering: linux.video/pve15
Class 16 - High availability: linux.video/pve16
Bonus video 1 - Launching a Windows VM: linux.video/pve-win
Bonus video 2 - Getting started with Proxmox Backup Server: linux.video/pbs
Bonus video 3 - Proxmox VE - How to build an Ubuntu 22.04 Template (Updated Method): linux.video/pve-2204
Bonus video 4 - Build a Kubernetes Cluster on Proxmox: linux.video/proxmox-k8s
Video Specific Links
Ubuntu 22.04 "Jammy Jellyfish" minimal cloud image download page ➜ cloud-images.ubuntu.com/minim...
Official blog post for this video ➜ www.learnlinux.tv/?p=2015
Proxmox Import And Use Cloud Images ➜ codingpackets.com/blog/proxmo...
🎓 CROWDSTRIKE CRASH SURVIVOR T-SHIRT
Commemorate the largest outage in history with the latest addition to the LLTV merch shop.
Get yours here ➜ learnlinux.link/crash-shirt
🎓 BRAND NEW UDEMY COURSES AVAILABLE!
Check out my new courses on Udemy and learn something new!
• Getting Started with Ansible ➜ learnlinux.link/ansible
• LPI Linux Essentials Complete Workshop ➜ learnlinux.link/linux-essentials
🐧 SUPPORT LINUX LEARNING!
• Grab some Linux swag ➜ merch.learnlinux.tv
• Become a Channel Member ➜ learnlinux.link/member
• Become a Patron ➜ learnlinux.link/patron
• 5% discount on LPI exam vouchers ➜ learnlinux.link/lpi-voucher
• Check out my latest book ➜ ubuntuserverbook.com
• Grab an awesome Pi-powered KVM ➜ learnlinux.link/tinypilot
• Jay's Gear - Server, Computer and Video Production Stuff ➜ learnlinux.link/amazon
Note: Royalties and/or commission is earned from each of the above links
🌐 LEARN LINUX TV ON THE WEB
• Main site ➜ www.learnlinux.tv
• Community ➜ community.learnlinux.tv
• Official Github Account ➜ github.com/LearnLinuxTV
• Enterprise Linux Security Podcast ➜ enterpriselinuxsecurity.show
• The Homelab Show Podcast ➜ thehomelab.show
• Jay on Udemy ➜ www.udemy.com/user/jay-lacroix-3
• Jay on Twitter ➜ x.com/JayTheLinuxGuy
• Content Ethics ➜ www.learnlinux.tv/content-ethics
• Request Assistance ➜ www.learnlinux.tv/request-ass...
Learn Linux TV provides technical content that will hopefully be helpful to you and teach you something new. However, this content is provided without any warranty (expressed or implied). Learn Linux TV is not responsible for any damages that may arise from any use of this content. The person viewing Learn Linux TV's content is expected to follow their best judgement and to make their best decisions while working with any related technology. Always make sure you have written permission before working with any infrastructure. Also, be sure that you're compliant with all company rules, change control procedures, and local laws.
#Proxmox #Ubuntu #DevOps

Пікірлер: 173

  • @aramsmith4162
    @aramsmith41622 ай бұрын

    Thanks Jay!! As a Linux noob (I am a Windows Server guy) and new to Proxmox, the way you teach, the tranquility you radiate, its awesome and helps me a lot. many many thanks!

  • @DeliberateGeek

    @DeliberateGeek

    20 күн бұрын

    Absolutely agree. I've been in tech for over 35 years. Did hardware and Windows admin for quite a while and then moved over to cloud and software development. I'm now diving into Home Lab stuff and Proxmox, so it's finally time to drive my skills up in the Linux space. I love Jay's content.

  • @FilipeNeto616
    @FilipeNeto616 Жыл бұрын

    According to "the internet" you can install the qemu-agent running a command directly on the image previous the the qm importdisk command. Which is this "virt-customize -a ubuntu-22.04-minimal-cloudimg-amd64.qcow2 --install qemu-guest-agent". I tried myself and it worked fine. This way the template already have the qemu-agent and you don't need to install it in every new deployed VM.

  • @chromerims

    @chromerims

    Жыл бұрын

    Fantastic tip 👍

  • @overmastermisterio

    @overmastermisterio

    4 ай бұрын

    i watched the whole video expecting Jay to mention that , but he did it manually still, the comment gave me enough insurance to try it myself tho , thanks!

  • @Uhlatek

    @Uhlatek

    4 ай бұрын

    For future note, I had to install tools for accessing and modifying virtual machine disk images with "apt-get install libguestfs-tools"

  • @danbrown586

    @danbrown586

    2 ай бұрын

    Note that this will result in a /etc/machine-id file being generated on that disk image. If it isn't removed, every machine you create by cloning it is going to get the same IP via DHCP, which will cause problems on your network.

  • @overmastermisterio

    @overmastermisterio

    2 ай бұрын

    @@danbrown586 how would I create an image with a custom set of tools installed without the issues of machines having same ID

  • @djstraussp
    @djstraussp2 жыл бұрын

    Great and easy steps. Now Imagine an automated process for creating and provisioning this clone with Ansible or similar. This will be an awesome tutorial. Nice work Jay.

  • @ThonkerGuns
    @ThonkerGuns Жыл бұрын

    Hello Jay! It's rare to find someone who explains things in a simple way and also describe the 'why'. It helps engrave the learning process when you do something a certain way, there's a reason for it. Great job!

  • @ScottMooreConsultingLLC
    @ScottMooreConsultingLLC8 ай бұрын

    Your videos are always so clear. Step-by-step. Very helpful. Very much appreciate the videos you produce on KZread!

  • @andrebalsa203
    @andrebalsa203 Жыл бұрын

    Great video, and exactly what I needed to generate an efficient Ubuntu template for my ProxMox VMs. Thanks a bunch !

  • @JeffMijares
    @JeffMijares Жыл бұрын

    this is cleaner than the 20.04 tutorial. Thank you so much

  • @JohnMatthew1
    @JohnMatthew1 Жыл бұрын

    WOW! Thank you, other sites make this process seem so complicated, but your video got me going in minutes, Thank you!!!!

  • @scockman
    @scockman Жыл бұрын

    As always another awesome video, thanks Jay!!! I am in the process of moving back to Proxmox from XCP-ng/Xen-Orchestra, so I am re-watching this entire series again. I have found that Proxmox is easier to get around in. In the step where you import the disk into the template, I have found that if you are using NFS it will import it as RAW file instead of QCOW2. If a person wants to stick with QCOW2 then just add the switch "--format qcow2" at the end of the command.

  • @sudocheese

    @sudocheese

    9 ай бұрын

    Thank you, I added the "--format qcow2" flag at the end of the import disk command, worked perfectly.

  • @leadwhite1249
    @leadwhite1249 Жыл бұрын

    Thanks Jay! I was able to apply these same instructions to setting up a template for Rocky 9 using the generic-cloud/openstack images. worked on the 1st try.

  • @aqueous67
    @aqueous67 Жыл бұрын

    I did and liked your whole proxmox course when you would release each module/video in parts. I followed along all the way to adding another node for clustering, but I couldn't get it to work. I also screwed up SSD trying. No problem. I reinstalled proxmox again today and did this module. It's the starting point for your Kubernetes cluster install on proxmox video!

  • @tarasvytrykush6295
    @tarasvytrykush62958 ай бұрын

    This is literally the best guidance and so well delivered. Definitely like and subscribe!

  • @weidongxu1377
    @weidongxu137711 ай бұрын

    great video, accurate instructions and work like a charm, thanks Jay

  • @michaelwaterman3553
    @michaelwaterman35532 жыл бұрын

    Learned something today, thanks a million Jay!

  • @yasaralzakout7691
    @yasaralzakout76916 ай бұрын

    Great work, Jay. you can't make it easier than this. Thanks for the excellent work.

  • @pauldowling2160
    @pauldowling2160 Жыл бұрын

    Thanks very much. So easy to follow with great explanations at each step. Fabulous work.

  • @danr2513
    @danr2513 Жыл бұрын

    Great video Jay! Thanks again!

  • @Michael201078
    @Michael2010782 жыл бұрын

    Very good explanation! Right the thing I need. Many thanks.

  • @xDSticker
    @xDSticker8 ай бұрын

    Your are great and explain everything in detail. I like your work!

  • @doop9713
    @doop97134 ай бұрын

    Thank you so much, these videos are tremendously helpful!

  • @chrisumali9841
    @chrisumali9841 Жыл бұрын

    Thanks for the demo and info, have a great day

  • @LearnLinuxTV

    @LearnLinuxTV

    Жыл бұрын

    Thanks, you too!

  • @bibelstudiet7580
    @bibelstudiet7580 Жыл бұрын

    Thank you very much, again. Very useful.

  • @terbeest
    @terbeest Жыл бұрын

    QCOW2 format provides more advanced features than IMG, such as copy-on-write, snapshots, compression, and encryption. The format is more flexible and can grow dynamically, whereas a plain ".img" file that must be preallocated to its maximum size. Further, the qcow2 format provides better performance, as it avoids the overhead of updating an entire ".img" file whenever a small change is made to a virtual disk.

  • @justaramdomkid7404
    @justaramdomkid74042 жыл бұрын

    Bro ur so good at making tutorials

  • @silentnight4618
    @silentnight4618 Жыл бұрын

    the reason why you have to add a Cloudinit Drive CD-ROM to vm is because the custom cloud-init config will be "burned" to this CD-ROM, so when the attached vm is being started, the cloud-init inside of it can detect the corresponding filesystem (with fs label `cidata` and fs type `iso9660`) the CD-ROM provides, you can observe the `mount and umount of /dev/sr0 (which is cloud-init drive CD-ROM)` behaviour within /var/log/cloud-init.log, hopefully this helps!

  • @AppleGreenmusic
    @AppleGreenmusic2 жыл бұрын

    I haven't dabbled with Linux in a while so it's been a long time since I've checked out the channel, however I really wanted to say that beard looks great on you.

  • @AndreasLenze
    @AndreasLenze Жыл бұрын

    Brilliant, thank you!

  • @ostinatarg
    @ostinatarg6 ай бұрын

    Very good, excelent tutorial, recomended

  • @saibaneko
    @saibaneko11 ай бұрын

    Great video! Thnx a lot!

  • @jus4027
    @jus4027 Жыл бұрын

    cracking good tutorial Jay

  • @vasilemoraru89
    @vasilemoraru89 Жыл бұрын

    I appreciate your youtube videos, and the way you explain. Looking at the video I found that you have more Bridges for different purposes. On the internet it is not explained clearly how to route traffic between these bridges to have the machines encapsulated under one bridge. There are some examples with NAT. Also is possible to do with VLANS instead of bridges but also is not clear. If you have time, it will be nice to cover this theme, because there is very little info on the net. Thank you very much.

  • @jesperbeltman
    @jesperbeltman11 ай бұрын

    For those that want to use machine q35 use the following command to change the cloudinit from ide2 to scsi qm set {VMID} --scsi1 local-lvm:cloudinit

  • @OriginalResponsibleUser

    @OriginalResponsibleUser

    2 ай бұрын

    Thanks, this is exactly what I needed! Mine wasn't running any of the cloudinit scripts or setting the user.

  • @RicardoWagner
    @RicardoWagner Жыл бұрын

    Hi Jay, I just noticed that the minimal image that you are working with in your tutorial is the same as the one used for the Container image. Cheers

  • @przemysawpakua9619
    @przemysawpakua961911 ай бұрын

    Hello Jay, first i want to thank You for great tutorial. But always when i setup template and using cloud-init from Proxmox (without configuring SSH public key option) i have problem to login to VM (created from template) via ssh - Permission denied (publickey) . Can you give me some advise how to do it? Many thanks.

  • @cchimozmin

    @cchimozmin

    8 ай бұрын

    I'm having exactly the same problem. Did you manage to fix it? :)

  • @kaliyuga3422

    @kaliyuga3422

    6 ай бұрын

    youtube.com/@LearnLinuxTV I'm having this problem also...can you help?

  • @lionking10222

    @lionking10222

    4 ай бұрын

    Same problem here... Someone knows how to fix it or can explain? Would really appreciate!

  • @cristian-danielbarbis5161

    @cristian-danielbarbis5161

    2 ай бұрын

    same problem

  • @Ajhidri
    @Ajhidri9 ай бұрын

    thanks Jay !

  • @ritchie1950
    @ritchie1950 Жыл бұрын

    Am i the only one that struggles with cloud-init in Proxmox? I got it to work with OpenSuse Leap 15 sp3 but no luck with Ubuntu 20.04 or 22.04, (i use Proxmox 6.4.8). Any suggestions?

  • @LucS0042
    @LucS0042 Жыл бұрын

    Was there a way to queue up the apt commands as part of the template / cloud-init phase to not have to run them every time you clone?

  • @AndreCataldi
    @AndreCataldi Жыл бұрын

    You don't have to rename the image from .img to .qcow2 if you pass the parameter --format qcow2 to the qm importdisk command!

  • @hamidouz31
    @hamidouz31 Жыл бұрын

    You are the best

  • @AlexB-op7kb
    @AlexB-op7kb7 ай бұрын

    Set up with network storage by adjusting the command like 'qm importdisk 900 ubuntu-22.04.qcow2 nfsstorage' - the disk showed up as a '.raw' format but still worked flawlessly.

  • @MuhammadIqbal-gu2ql
    @MuhammadIqbal-gu2ql Жыл бұрын

    Hi, by using this method is it possible to directly install the qemu-agent + add my own script? and if can, which step should i install and add my script before creating the template?

  • @DeliberateGeek
    @DeliberateGeek20 күн бұрын

    Hey Jay. I love this video. The idea of just grabbing a live image rather than having to do an install each time I want a new image type is very appealing. I have one question though. Having gone through some of your previous videos, I've created a custom cloud-int cloud.cfg file for a few use cases. Is there a relatively simple way to use the specific file I've created without having to spin up the new template, replace the existing file, and then clean it up before turning into a template?

  • @BigFourHead
    @BigFourHead Жыл бұрын

    Great video and helped me a lot. Question can i use the same method to build a Ubuntu desktop template, would i just use another image say "Cloud image for 64-bit computers (USB image)"

  • @gintarasp2
    @gintarasp22 жыл бұрын

    Today i have told my coleague to take a look at cloud init if you are going for templates, what a coinsidence. I have not noticed, was the secure boot option enabled?

  • @filmonseare4597
    @filmonseare45978 ай бұрын

    Great video Jay! Thanks :) i am trying to create Ubuntu 22.04 Template but i don't understand when you add the ssh key to it . i mean where you get the ssh key ? Thanks

  • @mikequinn8780
    @mikequinn87802 жыл бұрын

    You can convert a template back to a regular vm. It's in the vm config file. Template=1 or template=0 IIRC.

  • @hotstovejer

    @hotstovejer

    2 жыл бұрын

    That would be handy to make changes to said template. I would love to be able to add my own packages and still use cloudinit... Now I need to try that. :)

  • @THEMithrandir09
    @THEMithrandir09 Жыл бұрын

    I've tried to follow this guide but have ran into 2 caveats: Cloud init just wasn't executed for VMs of type q35. Switching it in the template worked and cloud-init seemed to work, at least I got cloud-init related output in the console after starting up a fresh clone. But when I want to login it doesn't accept the user and password combination set in cloud-init. Any hints?

  • @AlehLitasau
    @AlehLitasau Жыл бұрын

    Thanks for a great tutorial! Just a comment: I've replaced image with [/jammy/current/jammy-server-cloudimg-amd64.img] and default console works fine, no need to add serial.

  • @pablouesc
    @pablouesc5 ай бұрын

    Wow. This was amazing. Jay, when you create these templates, every New vm from The same template will have different Host Keys (ssh) and Mac Address, or they will be idênticas to the template?

  • @gineraso
    @gineraso4 ай бұрын

    Great video as usual. Only question is what is the advantage over the traditional downloading the iso, building a VM, install what I need, seal it and create a template? Are you just demonstrating a new way of creating a template or a better way? After following your procedures I was missing many packages (vi, vim) that I would need to install manually whenever using this template.

  • @THEMithrandir09
    @THEMithrandir09 Жыл бұрын

    How to actually boot into the image and customize it/how to customize the steps cloud-init is doing a bit more? E.g. the default ssh-host-keys and sshd_config is geared towards compatability over security, but if I don't need to be backward compatible, how where could one define it so it generates stronger keys and sets my desired sshd_config? Or is that something that we'll have to keep using ansible for?

  • @JustinHoMi
    @JustinHoMi3 ай бұрын

    The major thing missing from this is how to customize the Ubuntu image prior to converting it to a template. That’s the reason many people would use a template to begin with.

  • @telecomcraft
    @telecomcraft Жыл бұрын

    I got up to the point of logging in, but authentication keeps failing on the credentials I installed in CloudInit. I'm seeing “Failed to start Execute cloud user/final scripts.” and wondering if that's the issue?

  • @huubyasterday3776
    @huubyasterday3776 Жыл бұрын

    Tnx, fyi with command qm importdisk I added -format qcow2 leaving extension to img seems to work

  • @aaronpaul5588
    @aaronpaul5588 Жыл бұрын

    Hello Jay, Really love your videos. Just wanted to know how to install 'qemu-guest-agent' (or any other package) in the template itself so we don't have to install it in each VM cloned from that template?

  • @ashishsinghdev

    @ashishsinghdev

    7 ай бұрын

    sudo apt install libguestfs-tools sudo virt-customize -a image-name.qcow2 --install qemu-guest-agent

  • @mathieuleclerc4136
    @mathieuleclerc41368 ай бұрын

    I wish I could put more than one like on this video ;)

  • @fabianoslack4269
    @fabianoslack42698 ай бұрын

    Nice video! Covered the basics. Now going to more advanced question: How to create customized template? Lets say I want to have a template with the qemu-guest-agent already installed instead of me going to the server and installing it manually, then how to proceed?

  • @ahmedyo2
    @ahmedyo27 ай бұрын

    Perfect explanation. Can I install qemu agent on template itself ? Can I regenerate cloud image on new template based machine to have different user name Can templates also be backed up to PBS .

  • @khanhthedag7269
    @khanhthedag72695 ай бұрын

    thank very match. i have a question, about ssh-key. where is this ssh key? i don't put in the box. than i want to connect from (laptop 1), permission denied (publickey). i must put ssh-key inside the box, right? must i have ssh-keygen for each pc? please help, how do the best way.

  • @Xavier_BE
    @Xavier_BE4 ай бұрын

    Hi, thanks for the video; at first, i tought a vm template would look like a DockerFile, so i can setup some stuff already, like "all my vms have python, nano, or whatever"; is something like that possible ?

  • @am7-p
    @am7-p Жыл бұрын

    The cloud-init images are very minimal. Is there any way to use full featured Ubuntu server for this?

  • @ajanardhanan
    @ajanardhanan Жыл бұрын

    To all the folks you suffer SSH not available once they spin up the VMs from the template. Please run the following command in the proxmox console of all the VMs you created from the template. This will solve your SSH problem. sudo dpkg-reconfigure openssh-server

  • @GreggInternationalCollege

    @GreggInternationalCollege

    Жыл бұрын

    THANK YOU!

  • @ZeeKay80

    @ZeeKay80

    8 ай бұрын

    I ran this command in the VM I created from the template and still had the issue

  • @cchimozmin
    @cchimozmin8 ай бұрын

    Is there another step if I don't have an ssh public key? If i try to log on from powershell I get permission denied (public key). Any help would be greatly appreciated. :)

  • @trissylegs
    @trissylegs Жыл бұрын

    13:00 qemu can use qcow2 or raw filesystem images. With Raw there's now way for qemu to determine it's actually format because there's not file header say "This is disk image" it just has to guess. (A raw file image could be completely blank). If you pass raw direclty to qemu it'll give a warning say you should use the format=raw option to avoid issues. With the file extension qemu assumes it's a qcow2 image. It could guess based on filestrcture if it's qcow2 file anyway, it's very unlinkly it could be a raw image with data that looks like qcow2 anwyay.

  • @trissylegs

    @trissylegs

    Жыл бұрын

    Now that i've checked you can import without renaming the file like this (replacing VMID with your vm id and STORAGE with your image storage) qm disk import VMID ubuntu-22.04-minimal-cloudimg-amd64.img STORAGE --format qcow2

  • @Ecker00
    @Ecker006 ай бұрын

    Seems that downside with this approach that installing custom things won't be part of the template? Such as the Qemu agent, and any other default packages you want setup in the template. Any way to solve that with this method, or follow the old video?

  • @sda2911
    @sda2911 Жыл бұрын

    Love the guide, except for several "...now BEFORE you click on this" (as I'm clicking on it...)

  • @escanorsama7922
    @escanorsama7922Ай бұрын

    Hello, hope you're doing well. I want to try building an Ubuntu template with version 24.04. Are the steps the same, or are there any changes I should be aware of? Thanks for your video!

  • @guilherme5094
    @guilherme50942 жыл бұрын

    👍

  • @alfrye68
    @alfrye689 ай бұрын

    Hello Jay! Great video. When I clone the template and boot the VM I get the Grub rescue prompt everytime

  • @Skullfurious
    @SkullfuriousАй бұрын

    Hello, when I create the clone'd machine it shows up as "Ubuntu" on my network. Why is that? The hostname and hosts file both read "gameserver" so I don't understand why my router can't assign it a normal name like when I create a regular VM straight through Proxmox with an ubuntu ISO.

  • @cd-stephen
    @cd-stephen Жыл бұрын

    i have kvm running raw and cloudinit installs the qemu agent as part of update to cloudimage. - can proxmox not do that

  • @DrMerciless
    @DrMerciless3 ай бұрын

    very important step before you clone your template it to remove the Machine-IDs.

  • @Gabe_K
    @Gabe_K9 ай бұрын

    11:30 or just read the manual 12:22 no need, you can 'qm set 900 --scsi0 local-lvm:0,import-from=/root/ubuntu-22.04-minimal-cloudimg-amd64.img' and resize via GUI later.

  • @aHondaAccord
    @aHondaAccord Жыл бұрын

    What are ssh public key used for? (referencing @7:03)

  • @LearnLinuxTV

    @LearnLinuxTV

    Жыл бұрын

    I have an ssh key video that’s dedicated to that topic.

  • @srdjanmarjanovic
    @srdjanmarjanovic Жыл бұрын

    Could qemu-guest-agent somehow be installed on the template so it gets automatically installed on every VM ?

  • @ritchie1950

    @ritchie1950

    Жыл бұрын

    You could just start the machine and install the preferred software and then do a second template.

  • @MrPDC-jr5yl

    @MrPDC-jr5yl

    Жыл бұрын

    yep: virt-customize -a ubuntu-22.04.img --install qemu-guest-agent

  • @joeortega9930
    @joeortega9930 Жыл бұрын

    I didn't use an SSH key, but when I try to putty in to the VM I get an error: Permission denied (publickey). Any ideas?

  • @rraymakers

    @rraymakers

    Жыл бұрын

    I had the same issue. Setting one solved it.

  • @fabiosuriano5433
    @fabiosuriano5433Ай бұрын

    Is it possible to create a template for Debian with LVM included?

  • @speedyg5
    @speedyg5 Жыл бұрын

    why wouldn't you install the qemu-guest-agent as part of the template?

  • @daviddunkelheit9952

    @daviddunkelheit9952

    Жыл бұрын

    Probably to prevent replication of the ID or secret

  • @MrEric377
    @MrEric3774 ай бұрын

    Hello, a quick question to the community. I created a VM using the ubuntu.23.10.minimalist and I can't mount a cifs share. After a lot of research and no solutions I think it is the minimalist build that is the issue. I have installed cifs-utils and a bunch of other packages to no avail. I will most likely install the full server version in the next day or two, but want to know if anyone else had this issue? The actual error I get after I run the mount command and put in my password is: mount error: cifs filesystem not supported by the system mount error(19): No such device

  • @EmilioAyala
    @EmilioAyala Жыл бұрын

    Is it possible to create a template with the qemu agent already installed so it's ready to go? #linuxnoobalert

  • @caseyknolla8419
    @caseyknolla8419 Жыл бұрын

    Unfortunately this isn't working for me on Proxmox 7.2-11. The console isn't working on VM startup even though I executed the qm set command as shown (I only see "starting serial terminal on interface serial0). One of the CPU cores maxes out on the VM generated from the template, but it's inaccessible and never gets an IP, making it useless.

  • @BH-rw9co

    @BH-rw9co

    Жыл бұрын

    I had the same issue. I just went into the UI and changed the interface back to default and it worked for me.

  • @caseyknolla8419

    @caseyknolla8419

    Жыл бұрын

    I discovered that this was due to upgrading to Proxmox 7 without rebooting afterwards. Once I rebooted the server, this tutorial worked as described!

  • @TheBoyNamedR
    @TheBoyNamedR6 ай бұрын

    Linux n00bie. I've tried this 3 times and I always end up with vms that get stuck on "starting serial terminal on interface ". This doesn't happen all the time, the first time it was because of my network settings, but now it's just intermittent and I can't figure out why. Any pointers on where to look?

  • @TheBoyNamedR

    @TheBoyNamedR

    6 ай бұрын

    Sometimes I can just press enter and I'm good, other times no response.

  • @nandurx
    @nandurx2 жыл бұрын

    Can we do something similar for debian,

  • @hendranatasaputra2826
    @hendranatasaputra2826 Жыл бұрын

    without qemu guess agent i think we also able to shutdown ? hemm..what is actually the purpose? can u give tutorial to enlarge entire disk automatically?

  • @bobkoss280
    @bobkoss2808 ай бұрын

    Is this for all Linux distros or just for Ubuntu?

  • @user-hn9si4pj9w
    @user-hn9si4pj9w8 ай бұрын

    Hi, thanks for this tutorial, I have one issue please if you could help, I have followed the same instruction but when I typed ip a to see the @ip, I dont see it, (I have choosed DHCP in cloud-init as you did), do you know please what could be the problem ?

  • @LearnLinuxTV

    @LearnLinuxTV

    8 ай бұрын

    What do you see instead? I'm not sure I'm following.

  • @ashishsinghdev

    @ashishsinghdev

    7 ай бұрын

    Looks like a network issue when leasing IP from DHCP server,

  • @MrDenisJoshua
    @MrDenisJoshua9 ай бұрын

    Can you install qemu directly in the template ? Thanks for the video

  • @scerons

    @scerons

    8 ай бұрын

    See @FilipeNeto616 comment

  • @marahradil
    @marahradil Жыл бұрын

    how can i solve the ssh login problem?

  • @voiceoftreason1760
    @voiceoftreason17605 ай бұрын

    why do you make the template BIOS instead of UEFI?

  • @sudocheese
    @sudocheese9 ай бұрын

    I found this useful, so I'm leaving a vapid comment to appease our algorithmic overlords.

  • @MrWhereIsYourGodNow
    @MrWhereIsYourGodNow2 жыл бұрын

    But there is already an LXC template available in proxmox with Ubuntu 22.04. Why not use that?

  • @mhavock

    @mhavock

    2 жыл бұрын

    IKR 😀, I was about to ask why he did it this way.

  • @djstraussp

    @djstraussp

    2 жыл бұрын

    Learning from scratch... This is the way !!

  • @examen1996

    @examen1996

    2 жыл бұрын

    LXC is not a VM , it acts like a VM compared to docker, but it is not a fully fledged VM

  • @mhavock

    @mhavock

    2 жыл бұрын

    @@examen1996 Yes, but if he is going to install Ubuntu as server it is more efficient to use LXC. If he was using it for things other than terminal apps them it would make sense to install to a VM. Maybe you can tell us an example of why using and Ubuntu server in a VM is better?

  • @hotstovejer

    @hotstovejer

    2 жыл бұрын

    @@mhavock I've run into several dependencies issues when trying to run certain things in a container. For example, I have rport running just fine in a LXC container, but I couldn't get netbox running right. Same way with the Fedora container. I tried to do freeipa in it, didn't work.

  • @datanuke
    @datanuke Жыл бұрын

    Anyone else having troubles running docker swarm on VMs created this way? More specifically: trouble accessing services (stacks) deploy on docker swarm? Problem seems specifically for docker swarm: I can publish services using "docker compose" without a problem, but when deploying the same configuration in docker swarm mode, the service isn't accessible (logs show that it is running correctly). Deploying those very same services on a VM installed in the 'classic' way works without any problems. Have been scratching my head for 2 days on this problem now, starting to go bald here :(

  • @ahmednishaal9432
    @ahmednishaal94326 ай бұрын

    "it is what it is" bruhhh i had been wondering for a while why my command wouldnt execute even thought i was doing the same as the tutorial i was looking at the time lol

  • @stevegailey770
    @stevegailey770 Жыл бұрын

    Thanks for this - very helpful - though my problem is that the machine-id of every clone of the image is the same --> cloud-init does not seem to reset this, so I get the same machine with the same dhcp ip address every time.

  • @Ecker00

    @Ecker00

    6 ай бұрын

    Found any solution to this?

  • @stevegailey770

    @stevegailey770

    6 ай бұрын

    @@Ecker00 Yes, it ended up being simple, you just have to make sure you do not login at any stage. That seems to set it. You have to do all of the work creating the image and setting it up before first use.

  • @Ecker00

    @Ecker00

    6 ай бұрын

    @@stevegailey770 alright so delete the machine id, shutdown, convert to template, clone, clone, clone and then it will be regenerated on first boot/login.

  • @stevegailey770

    @stevegailey770

    6 ай бұрын

    @@Ecker00 virt-customize, virt-filesystems and qemu-img are your friends... Managed to find the commands I regularly use getting the image ready for first use...

  • @bclso
    @bclso2 жыл бұрын

    I followed the steps to create a VM, but cannot SSH into it. Have tried cloud-init clean and dpkg-reconfigure openssl-server, but in vain. Is there any help here?

  • @Wallf0

    @Wallf0

    Жыл бұрын

    Did you find a solution for this? Thank you!

  • @MrPDC-jr5yl

    @MrPDC-jr5yl

    Жыл бұрын

    Same problem. Had to: edit the /etc/ssh/sshd_config file and change the following entries. Then later can configure properly ie to allow just key auth instead user #PermitRootLogin prohibit-password #PasswordAuthentication yes The above entries should be as shown below: PermitRootLogin yes PasswordAuthentication yes

  • @landonsaunders3860

    @landonsaunders3860

    Жыл бұрын

    @@MrPDC-jr5yl THANKS SOOOOO MUCH!!!

  • @ZeeKay80

    @ZeeKay80

    8 ай бұрын

    @@MrPDC-jr5yl there is a file under /etc/ssh/sshd_config.d/ directory that overrides this. You have to set PasswordAuthentication yes in there.

  • @volodyaevv7120
    @volodyaevv71202 жыл бұрын

    Why you did not integrate (install) QEMU agent into your template?

  • @kolyacpp

    @kolyacpp

    2 жыл бұрын

    Для этого перед созданием шаблона нужно запустить виртуалку, а тогда сразу запустится cloud init для настройки, и больше не получится сделать такую настройку под каждую клонированную виртуалку с помощью cloud init диска. Если нужно много всего поставить, то можно вручную поставить систему, а потом подготовить её для конвертации в шаблон. На этом канале есть урок. Но мне больше понравился этот способ, потому что получается меньше ненужного говна в шаблоне. Единственное, с чем пока не разобрался - это как в самом шаблоне разрешить ssh аутентификацию по паролю, а не по ключу. После каждого клонирования лень редактировать sshd_config

  • @MrPDC-jr5yl

    @MrPDC-jr5yl

    Жыл бұрын

    @@kolyacpp Не обязательно, можно через команду: qemu-img resize ubuntu-20.04.img 32G сразу увеличить и потом: virt-customize -a ubuntu-20.04.img --install qemu-guest-agent. Работает на ура

  • @kolyacpp

    @kolyacpp

    Жыл бұрын

    @@MrPDC-jr5yl Круто! Я погуглил, у этой штуки есть ещё --run-command. По идее можно запустить команду, которая отредактирует PasswordAuthentication в sshd_confing. Но если openssh ставится с помощью cloud-init, то этого файла там ещё не будет. Как костыль можно добавить это в греп) и потом туда костыль, чтобы почистить греп, когда замена удастся)

  • @Sherlock-Homeless
    @Sherlock-Homeless Жыл бұрын

    During the setup, I noticed that we never specified the root password. I am kind of struggling to get something working, where I need to be root. Can someone help me please?

  • @cychong12

    @cychong12

    Жыл бұрын

    I guess you have already found an answer for it. It is recommended to use sudo in case root permission is required. If you really want to do something in root account, then just become to the root with `sudo su -` and type the password of your account.

  • @pompei2
    @pompei2 Жыл бұрын

    How to make template already WITH qemu-quest-agent? Is it possible?

  • @ritchie1950

    @ritchie1950

    Жыл бұрын

    just create a vm of that template, install preferred packages and then make that vm a template.

  • @MrPDC-jr5yl

    @MrPDC-jr5yl

    Жыл бұрын

    simple: virt-customize -a ubuntu-22.04.img --install qemu-guest-agent

  • @BillCClinton

    @BillCClinton

    Жыл бұрын

    @@MrPDC-jr5yl I receive command not found and apt is unable to install it. How do you get it installed on proxmox?

  • @GayBoucheryGonzague
    @GayBoucheryGonzague Жыл бұрын

    I have a few problems with that method 1. SSH will not work, unless you reboot the VM after the 1st boot 2. All ProxMox (7.2-3) commands related to the VM = Stop, Reboot, Shutdown are not working. You will need to type all these in the VM itself to have it to work, which is... a pain

  • @fanuchman

    @fanuchman

    Жыл бұрын

    After downloading the image at 10:26 : (solves for 2.) virt-customize -a ubuntu-22.04-minimal-cloudimg-amd64.img --install qemu-guest-agent (solves for 1.) virt-customize -a ubuntu-22.04-minimal-cloudimg-amd64.img --run-command "sudo echo > /etc/machine-id; sudo ln -sf /etc/machine-id /var/lib/dbus/machine-id" Then rename the image to qcow2 etc

  • @BillCClinton

    @BillCClinton

    Жыл бұрын

    @@fanuchman Thanks for this. I already have it setup as per the video steps. Do I need to blow that away and start from scratch and add your two commands to the image or can I do this with my image already modified and renamed as per the steps in the video with my template created?

  • @BillCClinton

    @BillCClinton

    Жыл бұрын

    @@fanuchman The virt-customize package is not installed in proxmox. The package cannot be found either. Can you share how to get it installed?

  • @ComMcNeil

    @ComMcNeil

    Жыл бұрын

    @@BillCClinton It is the "libguestfs-tools" package, so "apt install libguestfs-tools"

  • @BillCClinton

    @BillCClinton

    Жыл бұрын

    @@ComMcNeil It will not install inside proxmox. It is not compatible. It can be installed in a VM but not via the proxmox terminal.

  • @dlupascu
    @dlupascu2 жыл бұрын

    How about machine-id and dhcp issue ?

  • @hotstovejer

    @hotstovejer

    2 жыл бұрын

    DHCP is just going to hand out leases, so that shouldn't be a problem, and as far as hostname goes, you're going to have to change it, but you can have 100 localhost names on the network and there is no collision.

Келесі