Commit Graph

57 Commits (dependabot/go_modules/golang.org/x/term-0.35.0)

Author SHA1 Message Date
Nir Soffer 5d4d03623b
drivers: Extract drivers/common package (#21266)
Move all files and packages which are not a driver to the drivers/common
package. This helps to understand the structure of the code.

While moving, move the iso_test.iso into testdata/test.iso to separate
code and test data.

While fixing the test iso path fix few bugs in the tests using wrong iso
path. The test failed because the iso path was wrong instead of issue
with source or destination path.

New directory structure:

    % tree -L1 pkg/drivers
    pkg/drivers
    ├── common
    ├── hyperkit
    ├── kic
    ├── krunkit
    ├── kvm
    ├── none
    ├── qemu
    ├── ssh
    └── vfkit
2025-08-08 22:50:57 -07:00
Medya Ghazizadeh 97d8a293a9
ci: add smoke test to github action (#21095)
* smoke test

* add logic to detect nested VMs

* increase memory to 8gb for tesT

* use the network flag for both qemu and vfkit

* code review comments

* separate minikube download

* separate minikube download

* force cpu1

* add docker for smoke test

* exclude envs dont need in matrix

* change back to 3

* remove unused code

* add info block for linux as well
2025-07-19 18:29:44 -07:00
Nir Soffer 10fb3bb8f4
qemu: Add serial log (#20894)
Log serial console to ~/.minikube/machines/NAME/serial.log to make
it easy to debug boot issues.
2025-06-06 10:29:10 -07:00
Steven Powell eea20cd06f fix lint errors 2024-11-12 10:18:20 -05:00
Nir Soffer c090344bb4
More robust MAC address matching (#19750)
On darwin bootp uses non-standard MAC address format[1]:
"8e:1:99:9c:54:b1" instead of "8e:01:99:9c:54:b1". We fixed this by
trimming leading "0" in the string before looking up the IP address.

There are several issues with the current code:
- Fragile, will break if bootp changes the format (unlikely)
- Fixing the wrong place, the drivers should not care about the MAC
  address format.
- The tests were confusing, showing that we can match standard MAC
  addresses while the actual code could match only non-standard bootp
  addresses.
- Logging wrong MAC address since we trimmed leading zeros before
  logging

This change replace trimming leading zeros with parsing MAC address
strings and comparing the bytes. The test includes now both standard and
non-standard MAC addresses.

[1] https://openradar.appspot.com/FB15382970
2024-10-14 10:21:04 -07:00
Steven Powell 250786e3d7 log what hardware acceleration value is used 2024-07-16 18:53:26 -05:00
Steven Powell 3f865e4da7 QEMU: refactor selecting hardware selection into func 2024-07-15 15:53:55 -05:00
Steven Powell b08324a354 Support running x86 QEMU on arm64 2024-07-10 13:37:30 -05:00
Steven Powell 0345e29c97 QEMU: Fix addons failing to enable 2023-10-11 08:03:14 -07:00
Raghavendra Talur 08233d0333 qemu: increase the timeout for detecting the IP address
Signed-off-by: Raghavendra Talur <raghavendra.talur@gmail.com>
2023-09-08 06:58:43 -04:00
Steven Powell 233e5b6d6c fix typo 2023-06-28 14:30:18 -07:00
Steven Powell 86dbac0bed improved messaging 2023-06-28 14:19:43 -07:00
Steven Powell 084630dfd3 Unblock bootpd if detected blocked 2023-06-26 14:13:53 -07:00
Steven Powell 2b31e761a8
Merge pull request #15887 from BlaineEXE/qemu2-add-extra-disk-capability
Add ability to create extra disks on qemu2 vms
2023-06-09 14:31:57 -07:00
Blaine Gardner 12c4bf5f1d
Add ability to create extra disks on qemu2 vms
Add the ability to create and attach extra disks to qemu2 vms.

Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
2023-06-06 16:28:19 -06:00
Steven Powell 261c8bd8a2 add sudo to advice and fix panic 2023-06-06 15:09:59 -07:00
Steven Powell e0442f35ec QEMU: Add advice if bootpd blocked by firewall 2023-06-06 14:56:00 -07:00
Medya Ghazizadeh 8848aad3c7
Merge pull request #15781 from spowelljr/windows
Implement basic QEMU on Windows code
2023-02-14 10:25:03 -08:00
Steven Powell 0046eba5c3 rename IsBuiltin to IsBuiltinQEMU 2023-02-09 12:07:17 -08:00
Steven Powell 0b7c0810c9 add support to new builtin value on existing cluster 2023-02-09 10:27:16 -08:00
Steven Powell c417258f9c change user network to builtin 2023-02-09 09:48:43 -08:00
Steven Powell 62b5c51a96 fix linting 2023-02-03 15:04:39 -08:00
Steven Powell f5eacdf2a5 qemu on windows 2023-02-03 10:37:06 -08:00
Medya Ghazizadeh 625c53787e
Merge pull request #15686 from spowelljr/addMEssage
Add solution message for socket_vmnet permission denied
2023-01-26 10:09:51 -08:00
Steven Powell 0fbb9a6a31 update comments and store socket_vmnet paths in machine config 2023-01-25 10:45:20 -08:00
Steven Powell 46e9cc24ee check brew install paths for socket_vmnet 2023-01-24 11:51:17 -08:00
Steven Powell 27e7050844 add solution message for socket_vmnet permission denied 2023-01-23 08:04:42 -08:00
Steven Powell ad1951ab80 rename socket to socket_vmnet 2022-10-03 15:14:39 -07:00
Steven Powell 8c12c40853 implement socket_vmnet 2022-10-03 15:14:36 -07:00
klaases d03b4a2bfb clean exit pending socket_vmnet flags 2022-09-20 16:42:38 -07:00
klaases e064ba16cf return error on qemu socket_vmnet network flags not yet implemented 2022-09-20 16:42:38 -07:00
klaases 602528ca39 resolve unknown network 2022-09-20 16:42:38 -07:00
klaases 18fda4be13 add socket vmnet and client path flags 2022-09-20 16:41:13 -07:00
klaases 0c1b8ea6ca if socket network with, start with socket_vmnet 2022-09-20 16:41:13 -07:00
klaases 68a51d8a83 use socket_vmnet 2022-09-20 16:41:13 -07:00
Steven Powell 31dd75b826 shorten response to resp 2022-09-13 14:23:23 -07:00
Steven Powell 3d8bf996f8 fix typo 2022-09-13 13:53:24 -07:00
Steven Powell 27abc8a98b fix QEMU delete errors 2022-09-13 13:29:51 -07:00
klaases 536e17360e fix defaultSSHUser and string formats 2022-09-07 15:00:14 -07:00
klaases ce5a5b5c81 scope inline err, set %s, hold error return 2022-08-10 16:25:39 -07:00
klaases 9659186df7 improve qemu driver code for readability 2022-08-09 16:59:07 -07:00
Steven Powell 0b1fb8230e fix linting errors 2022-08-02 12:37:28 -07:00
Sharif Elgamal 85b90ab5be Merge branch 'master' of github.com:sharifelgamal/minikube into restart-qemu 2022-05-17 11:22:20 -07:00
Sharif Elgamal 177d2b9808 sanity check port range 2022-05-17 10:13:47 -07:00
Sharif Elgamal 4115024320 virt is still the machine type, duh 2022-05-16 23:21:11 -07:00
Sharif Elgamal 823ea12bc2 let's try kvm accel again 2022-05-16 23:12:39 -07:00
Sharif Elgamal f02e977544 re-establish apiserver tunnel on restart 2022-05-16 19:07:51 -07:00
Sharif Elgamal 6f32c7e742 comment out kvm stuff for now 2022-05-16 16:01:58 -07:00
Sharif Elgamal f99096fbcc support hardware accel for more machine types 2022-05-16 15:32:24 -07:00
Sharif Elgamal e1517954fb dynamically determine darwin qemu firmware location 2022-05-16 15:08:35 -07:00