How to pass extra/custom values to Kernel cmdline during VM Guest bootup?
I'm new to this VM concept, and have a requirement of passing values/custom parameters to the VM Guest Kernel, which can be accessed during the bootup of the VM Guest.
I'm using VM OS templates downloaded from Oracle Edelivery. i think,Oracle VM Templates are configured to boot at runlevel 3, and i have a script which will get this extra/custom parameter passed from the command-line, accessed through "/proc/cmdline".
After grazing the net, i just got to know that there is a variable called "extra" , which can be included in "vm.cfg", for passing extra parameters to the kernel.
But when i try to get the command-line parameters from '+/proc/cmdline+", it always shows "+ro root=/dev/VolGroup00/LogVol00 rhgb quiet+", the one which is there in "+/boot/grub/grub.conf+".
--
+[vminstance ]# cat /proc/cmdline+
+ro root=/dev/VolGroup00/LogVol00 rhgb quiet+
--
My vm.cfg looks like this..
--
+disk = ['file:/OVS/running_pool/vminstance/System.img,xvda,w']+
+maxmem = 4096+
+memory = 4096+
+name = 'vminstance'+
+on_crash = 'restart'+
+on_reboot = 'restart'+
+vcpus = 4+
+extra = "testval"+
+vfb = ['type=vnc,vncunused=1,vnclisten=0.0.0.0,vncpasswd=password']+
+vif = ['bridge=xenbr0,mac=00:16:3e:ee:ab:cd,type=netfront']+
--
i even tried with "+bootloader = '/usr/bin/pygrub+'" (to change the bootloader) and also using "+args+' variable in vm.cfg. but still, i'm not able to get parameters during bootup.
can anyone please help me on this?