Specifying kernel and initrd manually

NoLine

Active Member
Oct 7, 2020
19
2
43
45
Hello,

I have a specific virtual machine.
the operating system is in ramdisk

I have this configuration on kvm

Code:
<domain type='kvm'>
  <name>Kaer-Morhen</name>
  <uuid>9f4e2e6e-0146-4536-95dc-87b968e5a555</uuid>
  <memory unit='KiB'>2097152</memory>
  <currentMemory unit='KiB'>2097152</currentMemory>
  <vcpu placement='static'>2</vcpu>
  <os>
    <type arch='x86_64' machine='pc-i440fx-xenial'>hvm</type>
    <kernel>/var/lib/libvirt/images/kernel-Kaer-Morhen-2.6.16.23-1</kernel>
    <initrd>/var/lib/libvirt/images/initrd-Kaer-Morhen.sqf</initrd>
    <cmdline>root=/dev/ram0 ramdisk_size=64000 init=/linuxrc</cmdline>
    <boot dev='hd'/>
  </os>
...
...

How do I transfer it to proxmox
I know I can run it via PXE, but is it possible otherwise?
 
there is no proxmox specific setting for that, but you can use the 'args' parameter of vms to add arbitrary qemu options