mirror of https://github.com/apache/cloudstack.git
bug 14215: Fix SSVM on Xen kernel panic due to "too many env var"
Just add different delimitor for VM and extract them from cmdline later. status 14215: resolved fixed
This commit is contained in:
parent
f21263364f
commit
e8c27c1978
|
|
@ -860,7 +860,7 @@ public abstract class CitrixResourceBase implements ServerResource, HypervisorRe
|
|||
String bootArgs = vmSpec.getBootArgs();
|
||||
if (bootArgs != null && bootArgs.length() > 0) {
|
||||
String pvargs = vm.getPVArgs(conn);
|
||||
pvargs = pvargs + vmSpec.getBootArgs();
|
||||
pvargs = pvargs + vmSpec.getBootArgs().replaceAll(" ", "%");
|
||||
if (s_logger.isDebugEnabled()) {
|
||||
s_logger.debug("PV args are " + pvargs);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -180,7 +180,7 @@ public class XenServer56FP1Resource extends XenServer56Resource {
|
|||
String bootArgs = vmSpec.getBootArgs();
|
||||
if (bootArgs != null && bootArgs.length() > 0) {
|
||||
String pvargs = vm.getPVArgs(conn);
|
||||
pvargs = pvargs + vmSpec.getBootArgs();
|
||||
pvargs = pvargs + vmSpec.getBootArgs().replaceAll(" ", "%");
|
||||
if (s_logger.isDebugEnabled()) {
|
||||
s_logger.debug("PV args are " + pvargs);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -89,6 +89,7 @@ get_boot_params() {
|
|||
case $hyp in
|
||||
xen-domU)
|
||||
cat /proc/cmdline > /var/cache/cloud/cmdline
|
||||
sed -i "s/%/ /g" /var/cache/cloud/cmdline
|
||||
;;
|
||||
kvm)
|
||||
# KVM needs to mount another disk, to get cmdline
|
||||
|
|
|
|||
Loading…
Reference in New Issue