INITRD_MODULES
I am trying to take a CentOS 7 img and get hyperv to boot.
First step. qemu-img convert “CentOS7.img” -O vhdx -o subformat=dynamic “CentOS7.vhdx”
after adding new hyper-v I get dracut-timeout… So doing some searching it says add hv_vmbus hv_netvsc hv_storvsc to INITRD_MODULES.
which doesnt really exist any more in CentOS 7.
I did find /etc/dracut.conf and add_drivers… I uncommented the line for ‘#add_drivers += “” ‘ added the above modules and then ran:
grub2-mkconfig -o /boot/grub2/grub.cfg
Then redid the convert above… Hyper-V still gives me dracut-timeout errors.
Thoughts ? Did I miss something ?
Thanks
Jerry
5 thoughts on - INITRD_MODULES
Am 29.04.2020 um 21:48 schrieb Jerry Geis:
Why didn’t you run dracut to create the new initramfs image file?
Alexander
Sure – I’m game. I didn’t know to run dracut directly I guess (never done it). What is the command for that on CentOS 7. dracut ….
Jerry
Am 29.04.2020 um 22:07 schrieb Jerry Geis:
man dracut
Alexander
Sure there is always that – thanks. But for a person doing this the first time – one is always wondering if he did something wrong with the command –
that is why I asked.
I’m doing something like:
dracut -f /boot/initramfs-3.10.0-1062.el7.x86_64.img $(uname -r)
Thanks again. Is there not a “simpler” command that says take the current kernel and re-run – no command args – it just knows what the current kernel is and does it?
Jerry
This solution did work. thanks for the suggestion. on dracut.
Jerry