Commit 0aba0a8
committed
kvm: Unbreak minikube on Fedora/RHEL
Since #20852 minikube is broken on Fedora/RHEL. We add console.log
(~/.minikube/machines/NAME/console.log) for dumping the console logs
during startup. Libvirt is blocked by selinux policy:
$ sudo ausearch -m AVC --start today
...
----
time->Sat Sep 13 22:14:10 2025
type=AVC msg=audit(1757790850.921:4801): avc: denied { open } for pid=215452 comm="virtlogd" path="/home/nsoffer/.minikube/machines/minikube/console.log" dev="vda3" ino=197349579 scontext=system_u:system_r:virtlogd_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=1
----
Having better logs in the kvm driver can be helpful but it cannot break
basic functionality. Remove the code to create the log file and dump the
logs.
This is a manual revert of commit
2b81ce2. We cannot do a clean revert
since all commits in #20852 were squashed during merge.
Tested using:
$ make out/docker-machine-driver-kvm2
$ cp out/docker-machine-driver-kvm2 ~/.minikube/bin/
$ out/minikube start --driver kvm
😄 minikube v1.37.0 on Fedora 42 (kvm/amd64)
✨ Using the kvm2 driver based on user configuration
👍 Starting "minikube" primary control-plane node in "minikube" cluster
🔥 Creating kvm2 VM (CPUs=2, Memory=6144MB, Disk=20000MB) ...
🐳 Preparing Kubernetes v1.34.0 on Docker 28.4.0 ...
🔗 Configuring bridge CNI (Container Networking Interface) ...
🔎 Verifying Kubernetes components...
▪ Using image gcr.io/k8s-minikube/storage-provisioner:v5
🌟 Enabled addons: storage-provisioner, default-storageclass
❗ /usr/local/bin/kubectl is version 1.32.1, which may have incompatibilities with Kubernetes 1.34.0.
▪ Want kubectl v1.34.0? Try 'minikube kubectl -- get pods -A'
🏄 Done! kubectl is now configured to use "minikube" cluster and "default" namespace by default1 parent 574f958 commit 0aba0a8
3 files changed
+1
-54
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
| 73 | + | |
81 | 74 | | |
82 | 75 | | |
83 | 76 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | 58 | | |
60 | 59 | | |
61 | 60 | | |
| |||
66 | 65 | | |
67 | 66 | | |
68 | 67 | | |
69 | | - | |
70 | 68 | | |
71 | 69 | | |
72 | 70 | | |
73 | 71 | | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | 72 | | |
78 | 73 | | |
79 | 74 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
314 | 314 | | |
315 | 315 | | |
316 | 316 | | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | 317 | | |
336 | 318 | | |
337 | 319 | | |
| |||
355 | 337 | | |
356 | 338 | | |
357 | 339 | | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | 340 | | |
365 | 341 | | |
366 | 342 | | |
| |||
377 | 353 | | |
378 | 354 | | |
379 | 355 | | |
380 | | - | |
381 | 356 | | |
382 | 357 | | |
383 | 358 | | |
384 | 359 | | |
385 | 360 | | |
386 | | - | |
387 | | - | |
388 | | - | |
389 | | - | |
390 | | - | |
391 | | - | |
392 | | - | |
393 | | - | |
394 | | - | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
399 | | - | |
400 | | - | |
401 | 361 | | |
402 | 362 | | |
403 | 363 | | |
| |||
416 | 376 | | |
417 | 377 | | |
418 | 378 | | |
419 | | - | |
420 | 379 | | |
421 | 380 | | |
422 | 381 | | |
| |||
0 commit comments