kubernetes-sigs / sig-windows-dev-tools

This is a batteries included local development environment for Kubernetes on Windows.
Apache License 2.0
80 stars 46 forks source link

(exp) Spike: Investigate Minikube and kvm/qemu driver interaction #299

Closed knabben closed 8 months ago

knabben commented 8 months ago

Understand inner interactions with qmeu and Minikube machinery to manage the lifecycle of the VM. POC the swdt start command in this first step.

knabben commented 8 months ago

Thus Minikube run the following command to start the VM

qemu-system-x86_64  -cpu max -display none -accel kvm -m 6000 -smp 2 -boot d -cdrom /home/aknabben/.minikube/machines/minikube/boot2docker.iso -qmp unix:/home/aknabben/.minikube/machines/minikube/monitor,server,nowait -pidfile /home/aknabben/.minikube/machines/minikube/qemu.pid -nic user,model=virtio,hostfwd=tcp::40417-:22,hostfwd=tcp::35403-:2376,hostname=minikube -daemonize /home/aknabben/.minikube/machines/minikube/disk.qcow2.

In the end minikube is bootingstrap a VM with boot2docker.iso on a formatted disk, Minikube does not uses a libvirt driver instead run the qemu-system-x86_64 binary and install the steps: bootstrapping certificates, precreate, saving, creating, waiting and finally provisioning.

/close

k8s-ci-robot commented 8 months ago

@knabben: Closing this issue.

In response to [this](https://github.com/kubernetes-sigs/sig-windows-dev-tools/issues/299#issuecomment-2021542598): >Thus Minikube run the following command to start the VM > >``` >qemu-system-x86_64 -cpu max -display none -accel kvm -m 6000 -smp 2 -boot d -cdrom /home/aknabben/.minikube/machines/minikube/boot2docker.iso -qmp unix:/home/aknabben/.minikube/machines/minikube/monitor,server,nowait -pidfile /home/aknabben/.minikube/machines/minikube/qemu.pid -nic user,model=virtio,hostfwd=tcp::40417-:22,hostfwd=tcp::35403-:2376,hostname=minikube -daemonize /home/aknabben/.minikube/machines/minikube/disk.qcow2. >``` > >In the end minikube is bootingstrap a VM with boot2docker.iso on a formatted disk, Minikube does not uses a libvirt driver instead run the qemu-system-x86_64 binary and install the steps: bootstrapping certificates, precreate, saving, creating, waiting and finally provisioning. > >/close Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.