Code Review
/
kvmfornfv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Add Livemigration testcase for KVMFORNFV
[kvmfornfv.git]
/
ci
/
envs
/
guest-setup0.sh
diff --git
a/ci/envs/guest-setup0.sh
b/ci/envs/guest-setup0.sh
index
4f9eaa4
..
fb3133b
100755
(executable)
--- a/
ci/envs/guest-setup0.sh
+++ b/
ci/envs/guest-setup0.sh
@@
-8,9
+8,15
@@
## http://www.apache.org/licenses/LICENSE-2.0
###############################################################################
## http://www.apache.org/licenses/LICENSE-2.0
###############################################################################
+source utils.sh
+KERNEL_VERSION=$( getKernelVersion )
+if [ -z $KERNEL_VERSION ];then
+ echo "Kernel RPM not found"
+ exit 1
+fi
rpmdir=${1:-"/root/workspace/rpm"}
rpmdir=${1:-"/root/workspace/rpm"}
-rpmpat="kernel-
4.4
*.rpm"
+rpmpat="kernel-
${KERNEL_VERSION}
*.rpm"
guest_isolcpus=1
# The script's caller should passing the rpm directory that is built out from
guest_isolcpus=1
# The script's caller should passing the rpm directory that is built out from
@@
-58,5
+64,6
@@
config_grub 'idle' 'poll'
## Disable clocksource verification at runtime
config_grub 'tsc' 'reliable'
## Disable clocksource verification at runtime
config_grub 'tsc' 'reliable'
-grub2-mkconfig -o /boot/grub2/grub.cfg
+sed -ie 's/saved/0/g' /etc/default/grub
install_kernel
install_kernel
+grub2-mkconfig -o /boot/grub2/grub.cfg