Jump to content

Automatic quick deployment of a virtual machine


Recommended Posts

I often create virtual machines in scaleway or aws to test this or that software, put it on a clean machine, play around, and delete everything without dirtying the machines in production. That's handy. I'd like to do the same thing on unraid, but unfortunately the current process of creating a virtual machine is very much lost compared to the server creation interfaces in scaleway. 

In order for me to create a server there, all I have to do is: select the operating system, host name, disk capacity, wait two minutes, and you have a working virtual machine. 

In order for me to create a server on unraid, I have to: select machine parameters, ISO, disk capacity, run, wait for the installer to load, answer installation questions via vnc, then wait for packages to download and deploy the operating system, and so on. 

 

I see two ways to do this: 

The first is to do it once, and then only copy the image of the finished configured virtual machine. But simple copying causes problems with the files in /etc/libvirt/qemu/nvram, it is not enough just to copy the image of the machine, you must also understand what is the UUID of the machine and copy the nvram file so the machine will boot. This process has no GUI and every time I forget exactly what to do. 

 

The second is to have an ISO image that contains the basic packages and doesn't ask too many questions other than the hostname. The installation will still not be very fast, but at least it won't require as much attention. I found how to create such an image, but it's complicated and will take time. I'd like to know if anyone has done this before? 

In any case, I accept other comments on how I can solve the problem of quickly deploying test virtual machines with a preconfigured environment. I found a plugin: 

 


But it was made a very long time ago, and is apparently unsupported. It also lacks a "copy machine" button. 

 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...