Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

NodeBB

  1. Home
  2. Selfhosted
  3. Virtual Machines- is there a better way to jump start a VM?

Virtual Machines- is there a better way to jump start a VM?

Scheduled Pinned Locked Moved Selfhosted
selfhosted
24 Posts 14 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A [email protected]

    I’ve been using VirtualBox for a year now and I’m getting pretty ticked every time I have to start a new Ubuntu VM. I speed more time going to root shell prompt to add myself to sudoers file, add myself to groups, the addons, shared folder and storage not mounting right away….. etc etc.
    I’m sure I might be not using VirtualBox to its full potential to avoid long setup times but I feel like I shouldn’t have to deal with this. It should act is it being installed on a bare metal machine. Is there a more modern approach? Something more streamlined?
    FYI I’m learning containers and miniKube so I’m not jumping in the deep end yet.

    A This user is from outside of this forum
    A This user is from outside of this forum
    [email protected]
    wrote last edited by
    #8

    Some combination of Ansible and cloud-init is probably what you're looking for.

    C 1 Reply Last reply
    11
    • A [email protected]

      I’ve been using VirtualBox for a year now and I’m getting pretty ticked every time I have to start a new Ubuntu VM. I speed more time going to root shell prompt to add myself to sudoers file, add myself to groups, the addons, shared folder and storage not mounting right away….. etc etc.
      I’m sure I might be not using VirtualBox to its full potential to avoid long setup times but I feel like I shouldn’t have to deal with this. It should act is it being installed on a bare metal machine. Is there a more modern approach? Something more streamlined?
      FYI I’m learning containers and miniKube so I’m not jumping in the deep end yet.

      B This user is from outside of this forum
      B This user is from outside of this forum
      [email protected]
      wrote last edited by
      #9

      Some good advice already in this thread.

      Also worth considering QEMU as an alternative to VirtualBox. The Virt-manager tool is decent way of managing machines, and it's relatively straight forward to create a base machine if you're duplicating it. Virtualbox is perhaps initially more user friendly for absolute beginners, but once you have any familiarity with virtualization I'd suggest QEMU offers much more.

      Also I find integration between the guest and the host linux system is generally more straight forward. Most linux systems already ship with samba and other relevant tools QEMU uses to interact between host and guest. There isn't a need to faff around with the guest-additions stuff. Plus KVM virtual machines can run with near native performance.

      A 1 Reply Last reply
      5
      • A [email protected]

        Some combination of Ansible and cloud-init is probably what you're looking for.

        C This user is from outside of this forum
        C This user is from outside of this forum
        [email protected]
        wrote last edited by
        #10

        This. Cloud-init, or autoinstall for Ubuntu, to get the install done, then use ansible for anything more.

        1 Reply Last reply
        4
        • A [email protected]

          I’ve been using VirtualBox for a year now and I’m getting pretty ticked every time I have to start a new Ubuntu VM. I speed more time going to root shell prompt to add myself to sudoers file, add myself to groups, the addons, shared folder and storage not mounting right away….. etc etc.
          I’m sure I might be not using VirtualBox to its full potential to avoid long setup times but I feel like I shouldn’t have to deal with this. It should act is it being installed on a bare metal machine. Is there a more modern approach? Something more streamlined?
          FYI I’m learning containers and miniKube so I’m not jumping in the deep end yet.

          deathbydenim@lemmy.worldD This user is from outside of this forum
          deathbydenim@lemmy.worldD This user is from outside of this forum
          [email protected]
          wrote last edited by
          #11

          There is also Vagrant which lets you specify VM specs, but also lets you install software in the VMs automatically. It also works for other VM software then just Virtualbox.

          A 1 Reply Last reply
          7
          • A [email protected]

            I’ve been using VirtualBox for a year now and I’m getting pretty ticked every time I have to start a new Ubuntu VM. I speed more time going to root shell prompt to add myself to sudoers file, add myself to groups, the addons, shared folder and storage not mounting right away….. etc etc.
            I’m sure I might be not using VirtualBox to its full potential to avoid long setup times but I feel like I shouldn’t have to deal with this. It should act is it being installed on a bare metal machine. Is there a more modern approach? Something more streamlined?
            FYI I’m learning containers and miniKube so I’m not jumping in the deep end yet.

            mangopenguin@lemmy.blahaj.zoneM This user is from outside of this forum
            mangopenguin@lemmy.blahaj.zoneM This user is from outside of this forum
            [email protected]
            wrote last edited by
            #12

            Simple method is just keep a ready to go VM and clone it.

            A 1 Reply Last reply
            2
            • A [email protected]

              I’ve been using VirtualBox for a year now and I’m getting pretty ticked every time I have to start a new Ubuntu VM. I speed more time going to root shell prompt to add myself to sudoers file, add myself to groups, the addons, shared folder and storage not mounting right away….. etc etc.
              I’m sure I might be not using VirtualBox to its full potential to avoid long setup times but I feel like I shouldn’t have to deal with this. It should act is it being installed on a bare metal machine. Is there a more modern approach? Something more streamlined?
              FYI I’m learning containers and miniKube so I’m not jumping in the deep end yet.

              W This user is from outside of this forum
              W This user is from outside of this forum
              [email protected]
              wrote last edited by
              #13

              snapshots, clones, or automated setup with ansible or such

              1 Reply Last reply
              3
              • A [email protected]

                I’ve been using VirtualBox for a year now and I’m getting pretty ticked every time I have to start a new Ubuntu VM. I speed more time going to root shell prompt to add myself to sudoers file, add myself to groups, the addons, shared folder and storage not mounting right away….. etc etc.
                I’m sure I might be not using VirtualBox to its full potential to avoid long setup times but I feel like I shouldn’t have to deal with this. It should act is it being installed on a bare metal machine. Is there a more modern approach? Something more streamlined?
                FYI I’m learning containers and miniKube so I’m not jumping in the deep end yet.

                Z This user is from outside of this forum
                Z This user is from outside of this forum
                [email protected]
                wrote last edited by
                #14

                Use qemu, or proxmox (it includes qemu).

                Create one VM to your liking, then make it a template.

                So when you need a new VM, you clone the template, and that's it.

                1 Reply Last reply
                13
                • R [email protected]

                  I'd take a look at packer and ansible. Packer can be used to prepare a new base image for your VMs. And ansible can be used to automate the provisioning of a VM once it's booted.

                  A This user is from outside of this forum
                  A This user is from outside of this forum
                  [email protected]
                  wrote last edited by
                  #15

                  Mandible is on my list of things to learn and play with. I’ll check it out thank you.

                  1 Reply Last reply
                  0
                  • B [email protected]

                    Some good advice already in this thread.

                    Also worth considering QEMU as an alternative to VirtualBox. The Virt-manager tool is decent way of managing machines, and it's relatively straight forward to create a base machine if you're duplicating it. Virtualbox is perhaps initially more user friendly for absolute beginners, but once you have any familiarity with virtualization I'd suggest QEMU offers much more.

                    Also I find integration between the guest and the host linux system is generally more straight forward. Most linux systems already ship with samba and other relevant tools QEMU uses to interact between host and guest. There isn't a need to faff around with the guest-additions stuff. Plus KVM virtual machines can run with near native performance.

                    A This user is from outside of this forum
                    A This user is from outside of this forum
                    [email protected]
                    wrote last edited by
                    #16

                    Thank! I’ll check out QEMU. Sounds like something I need.

                    1 Reply Last reply
                    0
                    • scrubbles@poptalk.scrubbles.techS [email protected]

                      There's many ways to do this. Saving the disk state is one, I believe that's what the other person suggested - essentially stores the disk as an image which then you use for future vms as your jumping off point. This is also essentially how workstations are deployed at companies. (Essentially being the key word). Cloud providers have different names for this too, in AWS this is called their AMI.

                      Another option is Ansible, which essentially handles deploying a VM by running your scripts for you. I haven't played too much with this, and I doubt it works with VirtualBox, but it's something you may want to look into, it would definitely uplevel your skills.

                      Thirdly is dependent on what you actually use your VM for, you haven't given your use cases but this is one of the reasons containerization became such a thing - because when running an app we mostly don't care about the underlying system. It may be worth it to learn about docker.

                      A This user is from outside of this forum
                      A This user is from outside of this forum
                      [email protected]
                      wrote last edited by
                      #17

                      I’m playing with a multicast data delivery software I’m building. Doing tests from a sever (VM) to 20+ clients and/or other server (VMs). All running through a Open5GS gNodeB (5G network core). Also testing out potential software to be a docker image. I’m slowly converting to containers but I might just need to make the leap.

                      scrubbles@poptalk.scrubbles.techS 1 Reply Last reply
                      0
                      • deathbydenim@lemmy.worldD [email protected]

                        There is also Vagrant which lets you specify VM specs, but also lets you install software in the VMs automatically. It also works for other VM software then just Virtualbox.

                        A This user is from outside of this forum
                        A This user is from outside of this forum
                        [email protected]
                        wrote last edited by
                        #18

                        Thank you I’ll check it out.

                        1 Reply Last reply
                        0
                        • mangopenguin@lemmy.blahaj.zoneM [email protected]

                          Simple method is just keep a ready to go VM and clone it.

                          A This user is from outside of this forum
                          A This user is from outside of this forum
                          [email protected]
                          wrote last edited by
                          #19

                          Thank you!

                          mangopenguin@lemmy.blahaj.zoneM 1 Reply Last reply
                          1
                          • A [email protected]

                            I’m playing with a multicast data delivery software I’m building. Doing tests from a sever (VM) to 20+ clients and/or other server (VMs). All running through a Open5GS gNodeB (5G network core). Also testing out potential software to be a docker image. I’m slowly converting to containers but I might just need to make the leap.

                            scrubbles@poptalk.scrubbles.techS This user is from outside of this forum
                            scrubbles@poptalk.scrubbles.techS This user is from outside of this forum
                            [email protected]
                            wrote last edited by
                            #20

                            Sounds like it, I think docker is exactly what you're looking for

                            1 Reply Last reply
                            1
                            • A [email protected]

                              Thank you!

                              mangopenguin@lemmy.blahaj.zoneM This user is from outside of this forum
                              mangopenguin@lemmy.blahaj.zoneM This user is from outside of this forum
                              [email protected]
                              wrote last edited by
                              #21

                              NP! That's how I do it on proxmox, I'll start the VM every so often and update it. Only takes a few seconds to clone so it's nice and quick to do.

                              A 1 Reply Last reply
                              1
                              • A [email protected]

                                I’ve been using VirtualBox for a year now and I’m getting pretty ticked every time I have to start a new Ubuntu VM. I speed more time going to root shell prompt to add myself to sudoers file, add myself to groups, the addons, shared folder and storage not mounting right away….. etc etc.
                                I’m sure I might be not using VirtualBox to its full potential to avoid long setup times but I feel like I shouldn’t have to deal with this. It should act is it being installed on a bare metal machine. Is there a more modern approach? Something more streamlined?
                                FYI I’m learning containers and miniKube so I’m not jumping in the deep end yet.

                                K This user is from outside of this forum
                                K This user is from outside of this forum
                                [email protected]
                                wrote last edited by
                                #22

                                Incus has a great selection of images that are ready to go, plus gives scripted access to VMs (and LXC containers) very easily; after incus launch to create a VM, incus exec can immediately run commands as root for provisioning.

                                1 Reply Last reply
                                2
                                • A [email protected]

                                  I’ve been using VirtualBox for a year now and I’m getting pretty ticked every time I have to start a new Ubuntu VM. I speed more time going to root shell prompt to add myself to sudoers file, add myself to groups, the addons, shared folder and storage not mounting right away….. etc etc.
                                  I’m sure I might be not using VirtualBox to its full potential to avoid long setup times but I feel like I shouldn’t have to deal with this. It should act is it being installed on a bare metal machine. Is there a more modern approach? Something more streamlined?
                                  FYI I’m learning containers and miniKube so I’m not jumping in the deep end yet.

                                  L This user is from outside of this forum
                                  L This user is from outside of this forum
                                  [email protected]
                                  wrote last edited by [email protected]
                                  #23

                                  I make a unique user for each VM - root account is secured with SSH login disabled and a unique password, which is stored in my password manager.

                                  Also, don't use Virtualbox. It's Oracle garbage. Use virt-manager instead.

                                  1 Reply Last reply
                                  3
                                  • mangopenguin@lemmy.blahaj.zoneM [email protected]

                                    NP! That's how I do it on proxmox, I'll start the VM every so often and update it. Only takes a few seconds to clone so it's nice and quick to do.

                                    A This user is from outside of this forum
                                    A This user is from outside of this forum
                                    [email protected]
                                    wrote last edited by
                                    #24

                                    Just read their doc and saw a video about. Very streamlined. I love it.

                                    1 Reply Last reply
                                    0
                                    Reply
                                    • Reply as topic
                                    Log in to reply
                                    • Oldest to Newest
                                    • Newest to Oldest
                                    • Most Votes


                                    • Login

                                    • Login or register to search.
                                    Powered by NodeBB Contributors
                                    • First post
                                      Last post
                                    0
                                    • Categories
                                    • Recent
                                    • Tags
                                    • Popular
                                    • World
                                    • Users
                                    • Groups