Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Windows] Provide workaround to install Hyper-V without CPU check #1744

Merged
merged 4 commits into from
Jan 16, 2021

Conversation

ruicao93
Copy link
Contributor

Provide workaround to install Hyper-V without CPU virtualization
capability check. In this way, users could deploy antrea on the
testbed without virtualization capability.

Signed-off-by: Rui Cao rcao@vmware.com

Provide workaround to install Hyper-V without CPU virtualization
capability check. In this way, users could deploy antrea on the
testbed without virtualization capability.

Signed-off-by: Rui Cao <rcao@vmware.com>
@ruicao93
Copy link
Contributor Author

/skip-all

docs/windows.md Outdated Show resolved Hide resolved
docs/windows.md Outdated Show resolved Hide resolved
docs/windows.md Outdated Show resolved Hide resolved
docs/windows.md Outdated Show resolved Hide resolved
docs/windows.md Outdated Show resolved Hide resolved
Provide workaround to install Hyper-V without CPU virtualization
capability check. In this way, users could deploy antrea on the
nodes without virtualization capability.

Signed-off-by: Rui Cao <rcao@vmware.com>
@ruicao93
Copy link
Contributor Author

ruicao93 commented Jan 14, 2021

Thanks @tnqn . Address the comments.

@ruicao93
Copy link
Contributor Author

/skip-all

@codecov-io
Copy link

codecov-io commented Jan 14, 2021

Codecov Report

Merging #1744 (94f9233) into master (9d3d10b) will decrease coverage by 1.94%.
The diff coverage is 65.26%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1744      +/-   ##
==========================================
- Coverage   63.31%   61.37%   -1.95%     
==========================================
  Files         170      192      +22     
  Lines       14250    16371    +2121     
==========================================
+ Hits         9023    10048    +1025     
- Misses       4292     5270     +978     
- Partials      935     1053     +118     
Flag Coverage Δ
kind-e2e-tests 50.25% <56.15%> (-5.14%) ⬇️
unit-tests 42.63% <39.78%> (+1.35%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
.../agent/apiserver/handlers/networkpolicy/handler.go 58.33% <ø> (ø)
...gent/controller/noderoute/node_route_controller.go 45.83% <0.00%> (-0.64%) ⬇️
pkg/agent/proxy/proxier.go 75.92% <ø> (+1.11%) ⬆️
pkg/agent/proxy/proxier_linux.go 33.33% <ø> (+8.33%) ⬆️
pkg/agent/proxy/service.go 100.00% <ø> (ø)
pkg/agent/proxy/types/groupcounter.go 95.23% <ø> (+0.23%) ⬆️
pkg/agent/proxy/types/types.go 46.66% <ø> (-37.95%) ⬇️
pkg/agent/querier/querier.go 88.46% <ø> (+0.30%) ⬆️
pkg/agent/route/route_linux.go 44.48% <ø> (+0.38%) ⬆️
pkg/agent/stats/collector.go 97.72% <ø> (ø)
... and 153 more

docs/windows.md Outdated Show resolved Hide resolved
docs/windows.md Outdated Show resolved Hide resolved
docs/windows.md Outdated Show resolved Hide resolved
docs/windows.md Outdated Show resolved Hide resolved
docs/windows.md Outdated Show resolved Hide resolved
Copy link
Contributor

@antoninbas antoninbas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so this PR is not directly related to #1733?

and this is purely a documentation PR, we don't need to update any script?

docs/windows.md Outdated Show resolved Hide resolved
Provide workaround to install Hyper-V without CPU virtualization
capability check. In this way, users could deploy antrea on the
nodes without virtualization capability.

Signed-off-by: Rui Cao <rcao@vmware.com>
@ruicao93
Copy link
Contributor Author

ruicao93 commented Jan 15, 2021

so this PR is not directly related to #1733?

and this is purely a documentation PR, we don't need to update any script?

@antoninbas No, these two PRs are for different purposes.

#1733 is for the Windows Nodes which don't install the Hyper-V feature at all. And the change in script is for the following OVS which supports Hyper-V disablement:

  • Current NSX-OVS
  • The future OVS which supports Hyper-V disablement.

@vicky-liu
Copy link

@ruicao93 , NSXT OVS is not applied for upstream, so do you think it possible to move the installation change #1733 out of Antrea upstream? After upstream OVS really supports hyper-v disablement, then we can add the installation script back to upstream.

@ruicao93
Copy link
Contributor Author

ruicao93 commented Jan 15, 2021

@ruicao93 , NSXT OVS is not applied for upstream, so do you think it possible to move the installation change #1733 out of Antrea upstream? After upstream OVS really supports hyper-v disablement, then we can add the installation script back to upstream.

@vicky-liu , actually the PR #1733 is not specific for Hyper-V disablement. I just changed some installation operations to make them more generic. The result is it could also provide compatibility for Hyper-V disablement very well.

So it's ok to merge the PR. I may need to update the commit msg to avoid confusion. Curently I use the workds "Hyper-V disablement" because reviewers may hard to unstand the PR if I put two many details.

@ruicao93
Copy link
Contributor Author

/skip-all

docs/windows.md Outdated
@@ -328,3 +330,47 @@ the HNS Network created by antrea-agent is removed, and the Open vSwitch
Extension is disabled by default. In this case, the stale OVS bridge and ports
should be removed. A help script [Clean-AntreaNetwork.ps1](https://raw.githubusercontent.com/vmware-tanzu/antrea/master/hack/windows/Clean-AntreaNetwork.ps1)
can be used to clean the OVS bridge.

2. Hyper-V feature cannot be installed on Windows node due to the processor not
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Windows node -> the Windows Node

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

docs/windows.md Outdated
2. Hyper-V feature cannot be installed on Windows node due to the processor not
having the required virtualization capabilities.

If the processor of the Windows node does not have the required
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

node -> Node

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

Signed-off-by: Rui Cao <rcao@vmware.com>
@ruicao93
Copy link
Contributor Author

/skip-all

@ruicao93 ruicao93 merged commit 30ba724 into antrea-io:master Jan 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants