From 15fe474cef22bcf7869b11e3ad5aac119ebcadea Mon Sep 17 00:00:00 2001 From: Wong Hoi Sing Edison Date: Wed, 18 Sep 2024 16:47:20 +0800 Subject: [PATCH] https://github.com/kubernetes/minikube/issues/19639#issuecomment-2351430752 --- Vagrantfile | 2 ++ molecule/devel-22.04-virtualbox/molecule.yml | 2 ++ molecule/devel-24.04-virtualbox/molecule.yml | 2 ++ packer/devel-22.04-virtualbox/packer.json | 2 ++ packer/devel-24.04-virtualbox/packer.json | 2 ++ 5 files changed, 10 insertions(+) diff --git a/Vagrantfile b/Vagrantfile index 498011f..cba70ee 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -9,6 +9,8 @@ Vagrant.configure("2") do |config| virtualbox.customize ["modifyvm", :id, "--cpu-profile", "host"] virtualbox.customize ["modifyvm", :id, "--nested-hw-virt", "on"] virtualbox.customize ["modifyvm", :id, "--nat-localhostreachable1", "on"] + virtualbox.customize ["modifyvm", :id, "--graphicscontroller", "vboxsvga"] + virtualbox.customize ["modifyvm", :id, "--accelerate3d", "off"] override.vm.disk :disk, name: "sdb", size: "10GB" override.vm.synced_folder "./", "/vagrant" diff --git a/molecule/devel-22.04-virtualbox/molecule.yml b/molecule/devel-22.04-virtualbox/molecule.yml index 5de9720..cc53803 100644 --- a/molecule/devel-22.04-virtualbox/molecule.yml +++ b/molecule/devel-22.04-virtualbox/molecule.yml @@ -28,6 +28,8 @@ platforms: - customize ['modifyvm', :id, '--cpu-profile', 'host'] - customize ['modifyvm', :id, '--nested-hw-virt', 'on'] - customize ['modifyvm', :id, '--nat-localhostreachable1', 'on'] + - customize ['modifyvm', :id, '--graphicscontroller', 'vboxsvga'] + - customize ['modifyvm', :id, '--accelerate3d', 'off'] instance_raw_config_args: - vm.box_check_update = false - "vm.disk :disk, name: 'sdb', size: '10GB'" diff --git a/molecule/devel-24.04-virtualbox/molecule.yml b/molecule/devel-24.04-virtualbox/molecule.yml index 8be802d..dd504ed 100644 --- a/molecule/devel-24.04-virtualbox/molecule.yml +++ b/molecule/devel-24.04-virtualbox/molecule.yml @@ -28,6 +28,8 @@ platforms: - customize ['modifyvm', :id, '--cpu-profile', 'host'] - customize ['modifyvm', :id, '--nested-hw-virt', 'on'] - customize ['modifyvm', :id, '--nat-localhostreachable1', 'on'] + - customize ['modifyvm', :id, '--graphicscontroller', 'vboxsvga'] + - customize ['modifyvm', :id, '--accelerate3d', 'off'] instance_raw_config_args: - vm.box_check_update = false - "vm.disk :disk, name: 'sdb', size: '10GB'" diff --git a/packer/devel-22.04-virtualbox/packer.json b/packer/devel-22.04-virtualbox/packer.json index c99712c..ebb2ee0 100644 --- a/packer/devel-22.04-virtualbox/packer.json +++ b/packer/devel-22.04-virtualbox/packer.json @@ -25,6 +25,8 @@ "boot_wait": "1s", "cpus": 2, "disk_size": 131072, + "gfx_accelerate_3d": false, + "gfx_controller": "vboxsvga", "guest_additions_mode": "upload", "guest_os_type": "Ubuntu_64", "headless": true, diff --git a/packer/devel-24.04-virtualbox/packer.json b/packer/devel-24.04-virtualbox/packer.json index 32e6484..8b0e060 100644 --- a/packer/devel-24.04-virtualbox/packer.json +++ b/packer/devel-24.04-virtualbox/packer.json @@ -25,6 +25,8 @@ "boot_wait": "1s", "cpus": 2, "disk_size": 131072, + "gfx_accelerate_3d": false, + "gfx_controller": "vboxsvga", "guest_additions_mode": "upload", "guest_os_type": "Ubuntu_64", "headless": true,