ISO -> VHD -> RAW -> TGZ | Deployment got fail


#1

Hi All,

I have downloaded a centos ISO file from the following site (http://isoredirect.centos.org/centos/7/isos/x86_64/CentOS-7-x86_64-Minimal-1810.iso) and downloaded this iso (http://centos.mirrors.estointernet.in/7.6.1810/isos/x86_64/CentOS-7-x86_64-Minimal-1810.iso) and installed the os on my local Oracle VirtualBox and configured required packages like httpd,tomcat,mysql,rabbitmq then converted this VHD file as RAW then mounted the raw file and compressed the raw file as tgz and pushed the tgz file into maas then deployed the machine using this tgz.

while deploying the os i got this below error
Reason: -Stdout: grub2-pc not installed, not doing anything Stderr: ''Unexpected error while running command.Command: [‘sh’, ‘-c’, ‘exec “$0” “$@” 2>&1’, ‘install-grub’, ‘–os-family=redhat’, ‘/tmp/tmpnj410rlx/target’, ‘/dev/sda’]Exit code: 1Reason: -Stdout: grub2-pc not installed, not doing anything Stderr: ''curtin: Installation failed with exception: Unexpected error while running command.Command: [‘curtin’, ‘curthooks’]

can anyone help me what i did wrong in this process

Note:grub2 has been already installed on this image

TIA!!!
John


#2

You also need to install the grub2-pc package in the image. Below are all the grub packages installed in the official image.

grub2-common
grub2
grub2-efi-x64-modules
grub2-tools
grub2-tools-extra
grub2-pc-modules
grubby
grub2-tools-minimal
grub2-pc
efibootmgr


#3

Hi Ltrager.

Noted Thanks for your response!!! will check and let you know …