Score:0

How can I create Ubuntu bionic or focal Vm's using Vmbuilder tool?

in flag

The project I've been working on uses VmBuilder (https://launchpad.net/vmbuilder) tool to create custom Xenial images that were then packaged into ovf using ovftool to run on VmWare Exsi hypervisor.

Recent requirement changes requires the newer Vm's to be build on Bionic or Focal images, however the VmBuilder package do not support these suites. Is there a way to make things work? Or, are there any alternatives that could be used in this scenario?

  • The VmBuilder package is no longer maintained actively and since it is built on python 2.X a newer alternative is a much welcome solution.
rksanjeev avatar
in flag
I guess so, but looks like the project is abandoned. So needed to post here.
rksanjeev avatar
in flag
Thanks, I have added this info.
Score:1
in flag

You might want to give Packer a try. This is a tool that make headless installations from ISO images and can generate multiple types of VM images.

Basically you would do something like this:

  1. Write (or find) a build template. These are JSON formatted and can be named anything, like bionic-production.json or focal-uat.json.
  2. Confirm that the template is complete:
    packer verify focal-uat.json
    
  3. Build the image:
    packer build focal-uat.json
    

There are a remarkable number of output formats and builder templates available for you to start with.

rksanjeev avatar
in flag
There's a catch, we have IP addr, gateway and dns addr that need to be configured during the build and we're also using local apt mirror. However I don't find a way to configure these in the documentation. Is there a way around?
in flag
Perhaps someone on [the Packer forums](https://discuss.hashicorp.com/c/packer/23) can help out. I have not needed to configure systems the way you are attempting.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.