Nutanix Acropolis – create RHEL 7.0 VM from qcow2 image

Nutanix Acropolis supports many different operating systems from both Windows and Linux world. The easiest way to deploy either Windows or Linux box on Nutanix Acropolis is to use image (template). Nutanix Acropolis has build in image service which supports different type of disks formats such as vmdk, vdi, vhd, iso, qcow2. Im this blog post I will show how to deploy Red Had 7 form qcow2 image.

  • Download qcow2 RHEL 7.0 image from Red Hat and upload to Linux system where  guestfish tools are installed. I will use guestfish tools to enable root user and set password for it, as by default root user is disabled in qcow2 images downloaded from Red Hat.
  • Mount image

    [box type=”info”] Do not exit from vi, you have to paste encrypted password for user root first.[/box]
  • On second terminal run command openssl command to generate hashtag for new root password
  • Paste root password hashtag into /etc/shadows
  • save file and exit from guesfish tools
  • Create new image in Nutanix Acropolis, use modified qcow2 image as disk
  • Deploy RHEL 7.0 VM from new image onto Nutanix Acropolis
  • Launch console and log in to VM with root password

As you can see and watch (video below) there is no need to convert qcow to RAW format as image services takes care of everything for you 🙂

Artur Krzywdzinski

Artur is Consulting Architect at Nutanix. He has been using, designing and deploying VMware based solutions since 2005 and Microsoft since 2012. He specialize in designing and implementing private and hybrid cloud solution based on VMware and Microsoft software stacks, datacenter migrations and transformation, disaster avoidance. Artur holds VMware Certified Design Expert certification (VCDX #077).