Preparing Machine Images for qemu/KVM

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 พ.ย. 2024

ความคิดเห็น • 48

  • @harunafaruk2971
    @harunafaruk2971 5 หลายเดือนก่อน +1

    This is the best video on youtube about this topic I have found. It has help save me a ton of work. Thanks a lot

  • @lamka02sk
    @lamka02sk 4 ปีที่แล้ว +3

    Amazing video as always!
    Thank you for more in-depth explanation how all this works. This is certainly better way than "binding" the IP address to the server's MAC address.

  • @wolfwingx1
    @wolfwingx1 ปีที่แล้ว +1

    You can use hostnamectl to set the hostname without rebooting. For example you can set a hostname to "cool-new-vm" by running `sudo hostnamectl --transient hostname cool-new-vm`.

  • @munir32
    @munir32 4 ปีที่แล้ว +8

    This is really COOL. I can't thank you enough to prepare such a video. Please keep doing :)

  • @krishnachaitanya1164
    @krishnachaitanya1164 4 ปีที่แล้ว

    Excellent Video! Taught me more in 20 mins than over 2 days of reading blogs and articles from google search. And a great companion blog to follow through.

  • @nathanservicesllc
    @nathanservicesllc 3 หลายเดือนก่อน

    fantastic details for cloning machines without using same ip address this is vitally necessary to know....

  • @anasir514
    @anasir514 3 ปีที่แล้ว +2

    amazing explanation, easy, clear, and right on point. thanks a million

  • @ericgorder1
    @ericgorder1 7 หลายเดือนก่อน

    Thank you Josh! You did a well job of explaining everything. I never got bored and it was well worth my time!

  • @StarFireG3
    @StarFireG3 3 ปีที่แล้ว

    Very helpful videos. I got into libvirt with your videos and had it up and running in no time. Bye bye to VirtualBox and expensive commercial tools I cannot afford. Thanks a lot and keep up the good work!

  • @varenneriocha8712
    @varenneriocha8712 4 ปีที่แล้ว +1

    Very valuable. Many thanks!
    On a side note, your video technique is perfect: Terminal full-size and the talking-head with transparent background. ;-)

  • @davidllanes7884
    @davidllanes7884 3 ปีที่แล้ว

    "pretty freaking cool" but very instructive and with a lot of different topics which show how you master them. Complementary web post is really appreciated. A cool feature would be to create a script that would be able not only to clone the image but also to automatically boot up the k8s cluster with one admin and the rest workers. Congratulations and thanks!

  • @hammerheadlemon
    @hammerheadlemon 4 ปีที่แล้ว

    I'm very new to visualisation and this and your other video on libvirt really helped me understand what's going on. Great delivery, really clear and we'll prepared - and thanks for using a sensible font size on your terminal so we can read it! So many TH-camrs omit that.
    Would love to see a video on networking options in QEMU/KVM and/or libvirt. Thanks again and all the very best.

  • @vandanasippy4970
    @vandanasippy4970 3 ปีที่แล้ว

    As usual, very informative. Simple workaround will be to clone the VM from existing VM. empty the /etc/machine-id file. change hostnamectl set-hostname and restart the cloned machine. We have so many versions of VMs running, will be difficult to manage so many base images.

  • @Mrhennayo
    @Mrhennayo ปีที่แล้ว

    been struggling with the reason for like 2 weeks now!
    thanks mate for the info

  • @shand7074
    @shand7074 2 ปีที่แล้ว

    Man this is amazing. Do you have something plan with Ansible and the Qemu/KVM/Libvirt stack or maybe with Packer?

  • @emmanuelaboagye4624
    @emmanuelaboagye4624 4 ปีที่แล้ว

    Great Video. Thanks very much for the in-depth explanation. I would like to also request that you give a tutorial on automating the image preparation process as you mentioned during this video. It will be very helpful to me. Kudos..., the Best so far videos I have seen on libvirt-Qemu-KVM is from you.

  • @arborrell
    @arborrell 3 ปีที่แล้ว

    Thanks again for a wonderful tutorial. The level of content, the exposition and quality production are very, very good. You've mentioned some kubernetes/ansible possible videos, I'll be looking for that, and would also like a video about migrating vm's to another machine.

  • @micleh
    @micleh 3 ปีที่แล้ว

    Good or bad? - definitely good or rather excellent. Just seeing you tinker with kvm is awesome, and I learned a lot. If you intend to extend the kvm series, perhaps you can do a more ordinary example of setting up a vm correctly. In my workplace I need to use Windows or a Mac, but I don't want to install those on my machine. Perhaps you can show how to set them up with passthrough.

  • @mortezaabbaspour
    @mortezaabbaspour ปีที่แล้ว

    Thank you Josh

  • @fusca14tube
    @fusca14tube 3 ปีที่แล้ว

    Awesome!! What about deleting the SSH keys in /etc/sshd in the Base Image Prep step? Is it a good idea? Thanks in advance.

  • @igielv
    @igielv 2 ปีที่แล้ว

    What about using 'virt-sysprep' for cleaning up stuff from base image? ...otherwise pretty good job and still lot of cool ideas to take from your videos, really like them, keep up. 👍

  • @Oswee
    @Oswee 3 ปีที่แล้ว

    Would be great to cover the topic about the kickstart.cfg installations. And then iPXE (my favorite part) setups with things like CoreOS, Matchbox, Tftp, etc.
    I personally use simple Pi Bastion (DHCP) server which provides all the configs for paticular mac addresses. Virt-install takes an --mac(--network) argument. You specify the MAC and the VM will get the config from the DHCP. Same for hostname etc. This way via DHCP you have centralized place to manage the network layout. Then you can extend it further into iPXE setup.
    I believe, you can integrate that into pfSense router directly as well if you wish.
    Bastion itself can be automated with Ansible.
    And isn't there a 'hostnamectl set-hostmame' utility?

  • @scottseymour8855
    @scottseymour8855 3 ปีที่แล้ว

    totally new to all of this, another great video! cheers :)

  • @michaelsegel8758
    @michaelsegel8758 ปีที่แล้ว

    Josh great video.
    While you're using Ubuntu, have you ever tried using KVM to create an instance of a different distro? Like running Rocky/Centos in a VM instance with Ubuntu as your main OS?
    Would it be the same except that you would specify a different iso image? (And of course use different linux command to modify the packages (yum vs apt) )

    • @joshrosso
      @joshrosso  ปีที่แล้ว +1

      Yeah, it should work just fine. My hypervisor is typically arch and runs anything atop, ubuntu, windows, etc 👍

  • @diegoclavijoflores4113
    @diegoclavijoflores4113 4 ปีที่แล้ว

    Awesome, pretty good explanation 👍

  • @syedsami6416
    @syedsami6416 3 ปีที่แล้ว

    Hi, excellent video in series! we would be grateful if you can explain as how we can move the existing storage to the new cloned VM. for example, we have volgroup1 assigned to VM1, we clone it to vm2 and wanted to assign the same volgroup1 to VM2 ??

  • @daxcor
    @daxcor 3 ปีที่แล้ว

    ok you are one of the best presenters I have seen a long time. Well done. I had this question as well so this is good. So the idea then is to make unique vms, is to start with a image that you can clone, and then have an after install script to do all heaving lifting after the fact. I am guessing this is how the big boys create the vm's when they allow you to add "user data". One thing I need to do is to be able to pass into the cloning process a hostname, that equates to the unique username for each of my customers. Any thoughts how to do that from the cli? Virsh. Again thanks this has been awesome.

  • @aliakbarhemmati31
    @aliakbarhemmati31 ปีที่แล้ว

    Hey, thanks for the good stuff. Is it possible to create a video about cloud-init? I think it is more flexible and exactly does this customizations.

    • @joshrosso
      @joshrosso  ปีที่แล้ว

      Great idea, I'd love to cover cloud-init in the future. As you said, cloud-init can be more flexible.
      I believe the really interesting concept, when looking at cloud-init, that is considering what is best baking into an image relative to cloud-init. In other words, I believe there's a case for certain things being baked/versioned within the image while others (and far fewer) can be initialized using cloud-init.

    • @aliakbarhemmati31
      @aliakbarhemmati31 ปีที่แล้ว

      @@joshrosso Yes, exactly. Like creating a template VM for Kubernetes with all needed binaries and files (kubeadm, kubelet, containerd/CRI-O, etc.) and using cloud-init for other stuff

  • @MarkConstable
    @MarkConstable 4 ปีที่แล้ว

    Excellent Josh. Now how about adding a full networking tutorial without kubernetes being involved? I'm still unclear how to access all the cloned VMs via a host bridge and setting up Pods just seems to muddy the waters (for me atm).

    • @MarkConstable
      @MarkConstable 4 ปีที่แล้ว

      Doh, really simple. I already had a host bridge setup so all I had to do was add "--network bridge=br0" to the virt-install invocation. Also, I'd like to thank you again for this particular video because it would have taken me forever to figure out the core tricks you outlined on how to clone an embryonic master image.

    • @MarkConstable
      @MarkConstable 4 ปีที่แล้ว

      @@joshrosso FWIW I just tripped over virt-sysprep which seems like it could do a lot of this work preparing a VM for cloning. Just testing it out now.

  • @vlmath314
    @vlmath314 4 ปีที่แล้ว

    great video.
    could also use vagrant to set up the machines based upon a custom box (equivalent of the base image model), and ansible to configure them (no need to worry about the ip and the hostname, managed by vagrant, but still love to know how to do it manually).

    • @MarkConstable
      @MarkConstable 4 ปีที่แล้ว

      Even bettter would be an orchestration-free plain shell method so we can see how it all really works and then we can then bolt on whatever management layers we each need.

  • @VIKOVO86
    @VIKOVO86 4 หลายเดือนก่อน

    neither of the links work. Is your site still up. It is a great video by the way.

  • @GrahamAtDesk
    @GrahamAtDesk 2 ปีที่แล้ว

    Awesome video, thank you! You've literally saved me hours with these two vids on libvirt.

  • @PiperUsmc
    @PiperUsmc 2 ปีที่แล้ว

    Very informative brosif! :P

  • @michaczerwonka8720
    @michaczerwonka8720 2 ปีที่แล้ว

    Whats about cloud-init images? Meta data userdata vendordata

  • @naziajahan1657
    @naziajahan1657 3 ปีที่แล้ว

    Thanks a lot.

  • @hustephen5134
    @hustephen5134 3 ปีที่แล้ว

    WoW, Very helpfull, Subscrided.

  • @jumpman1823
    @jumpman1823 4 ปีที่แล้ว +1

    Bruh where you been?

  • @paulmaydaynight9925
    @paulmaydaynight9925 3 ปีที่แล้ว

    how might you set up (the Live cd/USB script writer) Tomas's tiny Debian 'slax customize.php' as a primary virtual libvirt/qemu/kvm net pxe (v)lan boot server including apt dependencies so as too br0 boot any new vm (or even real hw) from it's faster web server transfer images you put there?
    use case :perhaps a home slax iSCSI with bods serving a bunch of vm's storage over 2.5Gb/10Gb direct lan br01Gb local wan

  • @HairEEck
    @HairEEck 2 หลายเดือนก่อน

    Your website seems to be down :(

  • @forrestkong3455
    @forrestkong3455 ปีที่แล้ว

    🎉🎉🎉nice

  • @beardyface8492
    @beardyface8492 2 ปีที่แล้ว

    Systemd is there, & *you've* learned to live with it.. I fought with it for some years, never found a good escape route or workable Linux alternative, & returned to Windows... Just saying.

    • @beardyface8492
      @beardyface8492 2 ปีที่แล้ว

      @@joshrosso Perhaps.
      I did briefly have Debian Buster (LXDE) installed & working with Open RC instead, which involved switching to using elogind, skipping a few unimportant packages from the base system, backporting (and patching) policykit from experimental, then hacking the depends on one of the LXDE packages to substitute elogind for systemd to get LXDE to install.
      Which was both too much effort to do, too much pain to maintain with pinned packages, and struck me as potentially too fragile for a system I actually use.
      Maybe I'll have another look at whatever Debian Stable is now Buster is Old-stable, if it's easier again maybe you will.
      As it was it was *PAINFUL* to escape after Jessie.