How do you create more than one VM from the same ISO? #839
-
Hi. This is a question / feature request, with that I mean I want to create more than one VM from the same ISO and I can't find a way to do so, let's say for example I already downloaded Ubuntu Mate 22.04 ISO but now I want to create not only one VM but two or more, the problem I'm facing now is that just one .conf file is created and even if I copy that file again, they would be pointing to the same .qcow file and I don't know if there's a way to create one using all of quickemu's advantages. With that being said, I think that It would be really great if quickemu uses a directory structure to organize VMs, allowing an option to create another VM out of an ISO |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Quick edit. I also found that even if you create two different qcow files, the IP assigned to each VM is the same |
Beta Was this translation helpful? Give feedback.
-
You really need a separate .conf file pointing to a separate directory for each VM (to keep the log files, pid file, port assignment records and virtual disks together and avoid getting in a mess). Just create the first/template using for clone in 1 2 3 ; do
mkdir ubuntu-mate-24.04-${clone} && \
ln ubuntu-mate-24.04/*.iso ubuntu-mate-24.04-${clone}/ && \
sed "s/ubuntu-mate-24.04\//ubuntu-mate-24.04-${clone}\//" \
ubuntu-mate-24.04.conf >ubuntu-mate-24.04-${clone}.conf
chmod --reference ubuntu-mate-24.04.conf ubuntu-mate-24.04-${clone}.conf
done That will skip directories that already exist but should end up with something like this: where only the original and "clone-2" have been started and all the installation isos are hard links so reference "the same file".
You can give the config files/directories more meaningful names if you wish: they will be reflected in the VM name (and default hostname). |
Beta Was this translation helpful? Give feedback.
You really need a separate .conf file pointing to a separate directory for each VM (to keep the log files, pid file, port assignment records and virtual disks together and avoid getting in a mess). Just create the first/template using
quickget
and then make new directories and config files pointing to them with a little editing. The simple thing (to my simple mind) is to link the fetched ISO into the new directories, adjust the paths in the new config and letquickemu
take care of the rest. Something like :