-
Notifications
You must be signed in to change notification settings - Fork 31
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 demo documentation #20
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
c7068e6
Doc for windows demo
lapentad d25f66d
Update demo-vagrant-windows.md
lapentad bb556f9
Update demo-vagrant-windows.md
lapentad 77b5daf
Update install-guide/demo-vagrant-windows.md
lapentad f8949ab
Removal of autocrlf step
lapentad File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Nephio demo on Windows | ||
|
||
## Steps: | ||
- install git | ||
- install virtualbox | ||
- install [vagrant](https://developer.hashicorp.com/vagrant/docs/installation) | ||
- open git bash | ||
- `git clone https://github.com/nephio-project/test-infra.git && cd test-infra/e2e/provision` | ||
- `vagrant up` | ||
- `vagrant ssh -- -L 7007:localhost:7007 -L 3000:172.18.0.200:3000` | ||
|
||
## Networking | ||
|
||
Also in order to access the nephio web-ui and gitea web-ui, the vagrant networking will not work on windows for [Hyper-V limitation](https://developer.hashicorp.com/vagrant/docs/providers/hyperv/limitations#limited-networking). | ||
Meanwhile for [Virtualbox](https://developer.hashicorp.com/vagrant/docs/providers/virtualbox/networking#virtualbox-nic-type) (used here) we can create an internal network adding this line to Vagrant.configure: | ||
|
||
`config.vm.network "private_network", ip: "192.168.50.4", virtualbox__intnet: true` | ||
|
||
But the easiest way is to force the port-forwarding in the common way (as shown before): | ||
|
||
`vagrant ssh -- -L 7007:localhost:7007 -L 3000:172.18.0.200:3000` | ||
|
||
## Tests were done on: | ||
|
||
1. Laptop : Windows 11 i7-10750H (16 T) 32GB ram (8VCPU 32GB) | ||
|
||
2. Laptop : Windows 10 i5-7200U (4T) 24GB ram (4VCPU 16RAM) | ||
|
||
## Notes | ||
|
||
**Warning**: for low end machines(less then 8T32GB) you need to alter the Vagrant file. This is not recommended! | ||
|
||
- In the Vagrant file "./Vagrantfile" there are *CPUS & RAM* parameters in `config.vm.provider`, it's possible to override them at runtime: | ||
|
||
-On Linux, or the Git Bash on Windows we can use one-liner command `CPUS=16 MEMORY=32768 vagrant up` | ||
|
||
- In the ansible "./playbooks/roles/bootstrap/tasks/prechecks.yml" there are the checks for *CPUS & RAM* | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Eventually, we have to define/test these values
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, as from my tests using the 4CPUs and 16GB RAM the provisioning it's possible. But, I wouldn't recommend it because:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was thinking to increase the current CPU/Memory requirements, but doing that we'll restrict the number of users.