Commit Graph

26 Commits (4eb2cdb1203967d3e2d2986ee88173d02e8540b2)

Author SHA1 Message Date
Marcus Heese 4eb2cdb120
inlining deleteNetwork into if statement 2018-09-24 14:04:01 -07:00
Marcus Heese 5e38bf4819
kvm2 driver: fixed documentation link in error text 2018-09-21 10:28:52 -07:00
Marcus Heese 34ee59192b
kvm2 driver: be more robust with creating of the network, don't delete the network if it is in use 2018-09-21 10:28:47 -07:00
Marcus Heese b35e908dec
kvm2 driver: generate separate random MACs for default and private network NICs 2018-09-21 10:28:43 -07:00
Marcus Heese c4ef7ad197
kvm2 driver: separated activating and creating of networks 2018-09-21 10:28:37 -07:00
Marcus Heese d1995d24f0
kvm2 driver: fixed private network creation and setup 2018-09-21 10:28:33 -07:00
AdamDang 22ab50aa7e Correct typo in the returned message
coundn't->couldn't
2018-09-04 05:49:04 -05:00
dlorenc 23fc22e532 Fix docs for kvm2 2018-07-23 09:02:33 -07:00
Rohit Agarwal 87d7a3208a Update KVM driver installation instructions.
Move the latest instructions out of the comments and move old instructions into the comments.
2018-07-20 07:57:14 -07:00
Rohit Agarwal 268c932240 Add GPU support to minikube. 2018-07-08 22:25:48 -07:00
Luke Weber 05161c1b18 Fixes https://github.com/kubernetes/minikube/issues/2274 2018-07-04 09:26:50 -07:00
Rohit Agarwal 0df67ee4af Changes to make 'virsh console minikube' work. 2018-06-11 08:45:59 -07:00
dlorenc b54950fb2b Start the default network for the kvm2 driver. 2018-05-11 13:07:19 -07:00
Viktor Safronov 9ad5b4a190 Disable dnsmasq on minikube-net network for kvm driver 2018-04-20 07:40:43 -07:00
Fabian Deutsch ee58133538 kvm2: Switch to CPU passthrough mode by default
With passthrough mode we can enable KVM nesting for guests.

Fixes #2553

Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
2018-02-22 10:42:20 -08:00
Fabian Deutsch b08b8ab8ae Revert "kvm: Passthrough host CPU in order to allow nesting"
This reverts commit 7a4babe1d6.

For now we just hard-code passthrough.

Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
2018-02-22 10:42:20 -08:00
Fabian Deutsch 3ddf9d65f6 kvm: Passthrough host CPU in order to allow nesting
Before this patch the virtual CPU was the stock qemu CPU, in the sense that
the virtual CPU features were set according to the default qemu CPU.

With this change the CPU features of the host will be copied at start to the
domain definition. This includes features like svm and vmx, which in turn allow
to run nested virtualization if the host is configured accordingly i.e.
`kvm_intel nested=y` in `/etc/modprobe.d/kvm.conf`.

To turn on nesting, a user has to specify `--kvm-cpu-model host-model` when
creating the VM.

Resolves #2553

Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>
2018-02-22 10:42:20 -08:00
dlorenc 8f91c37bba Properly support the "minikube-net" network. 2017-12-13 21:18:00 -08:00
Zak B. Elep 56608e418d kvm2: Set group executable bit on machine-specific directory and up
Ensure that the directories leading to the KVM image have enough
permission for libvirt/QEMU to traverse, especially in the case where
libvirt/QEMU group is set to to `kvm`/`users`.
2017-12-10 17:49:54 -08:00
Matt Rickard 9fc8eed51d
Merge pull request #2076 from r2d4/kvm-mac
Use mac instead of hostname to find IP
2017-11-01 08:40:55 -07:00
Matt Rickard 2c2c45d7a6 DOM_SHUTDOWN should return state.Running
Technically, DOMAIN_SHUTDOWN just means that the VM is in the process
of shutting down.  We should still return state.Running so that we
don't return from `minikube stop` before the domain is actually
stopped.  This should fix a few flakes.
2017-10-23 11:23:58 -07:00
Matt Rickard b7012aefcc Use mac instead of hostname to find IP 2017-10-19 09:16:24 -07:00
Matt Rickard 547d22f638 Clean up unused files, add tar rules 2017-09-19 15:45:18 -07:00
Matt Rickard ebbc34d2ba Move drivers to pkg/drivers, share utils
Share most of the disk image setup between hyperkit and kvm drivers.
Move and remove a lot of shared configuration between all the in-tree
drivers: kvm, hyperkit, none.
2017-09-12 14:29:22 -07:00
Matt Rickard 53341aa30d golint, go vet, etc. changes 2017-09-11 14:17:58 -07:00
Matt Rickard 48b165808c Bring KVM driver in-tree
Add boilerplate

Review feedback
2017-08-28 11:52:35 -07:00