Skip to content

Commit

Permalink
Update the setup host grub steps
Browse files Browse the repository at this point in the history
Tracked-On: OAM-105416
Signed-off-by: HeYue <yue.he@intel.com>
  • Loading branch information
yhe39 authored and sysopenci committed Feb 8, 2023
1 parent 830529e commit 7dd1b49
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/setup_host.sh
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,9 @@ function install_vm_manager() {

function ubu_enable_host_gvt(){
if [[ ! `cat /etc/default/grub` =~ "i915.enable_gvt=1 intel_iommu=on i915.force_probe=*" ]]; then
read -p "The grub entry in '/etc/default/grub' will be updated for enabling GVT-g and GVT-d, do you want to continue? [Y/n]" res
read -p "Do you want to update the grub entry in '/etc/default/grub' for enabling GVT-g and GVT-d? [Y/n]" res
if [ x$res = xn ]; then
exit 0
return
fi
sed -i "s/GRUB_CMDLINE_LINUX=\"/GRUB_CMDLINE_LINUX=\"i915.enable_gvt=1 intel_iommu=on i915.force_probe=*/g" /etc/default/grub
update-grub
Expand All @@ -183,9 +183,9 @@ function ubu_enable_host_gvt(){

function ubu_enable_host_sriov(){
if [[ ! `cat /etc/default/grub` =~ "i915.enable_guc=0x7" ]]; then
read -p "The grub entry in '/etc/default/grub' will be updated for enabling SRIOV, do you want to continue? [Y/n]" res
read -p "Do you want to update the grub entry in '/etc/default/grub' for enabling SRIOV? [Y/n]" res
if [ x$res = xn ]; then
exit 0
return
fi
sed -i "s/GRUB_CMDLINE_LINUX=\"/GRUB_CMDLINE_LINUX=\"i915.enable_guc=0x7 udmabuf.list_limit=8192 /g" /etc/default/grub
update-grub
Expand Down

0 comments on commit 7dd1b49

Please sign in to comment.