Moving VM to Proxmox with custom kernel/initrd

Ed Eastman

New Member
Jul 20, 2018
1
0
1
43
I've got a KVM image running on CentOS that I'm trying to get running on a Proxmox (5.20) Hypervisor. The current VM (I think it may have been a p-v at some point) has the following options in the vm definition:

<os>
<type arch='x86_64' machine='rhel6.5.0'>hvm</type>
<kernel>/srv/vm/boot/vmlinuz-2.6.18-371.9.1.el5</kernel>
<initrd>/srv/vm/boot/initrd-2.6.18-371.9.1.el5.img</initrd>
<bootmenu enable='no'/>
</os>

If I just copy the main disk image the VM won't boot (hangs at GRUB) I guess because that image doesn't include the boot partition.

Is there a way to either specify the kernel/initrd in Proxmox, or rebuild the original image to include those? Or some other option I'm missing entirely?
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!