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

Add support for Windows #11

Open
AnwarYagoub opened this issue Oct 3, 2016 · 10 comments · May be fixed by #20
Open

Add support for Windows #11

AnwarYagoub opened this issue Oct 3, 2016 · 10 comments · May be fixed by #20

Comments

@AnwarYagoub
Copy link
Owner

AnwarYagoub commented Oct 3, 2016

Add support to use Windows as host machine for this environment.

suggestions:

  • use babun to install ansible.
  • use vagrant ansible_local provisioner.
@smartbit
Copy link
Collaborator

Does #18 fix this issue?

@AnwarYagoub
Copy link
Owner Author

It fix it partially. we need to add documentation & also check if everything is running smoothly on Windows

@AnwarYagoub
Copy link
Owner Author

@smartbit

As I got from a previous conversation you have macOS & everything is okay with you. so why not to add documentation for macOS?

As for Linux everything is okay & I have Linux machine to test changes.

@smartbit
Copy link
Collaborator

I suggest in README.md we

  • make sections for each guest OS
  • remove the $ to enable easier copying
  • remove 32bit
    What do you think?

I'll take a look at OSX and make a proposal for README.md

@AnwarYagoub
Copy link
Owner Author

  • I prefer .md file for every OS WINDOWS.md LINUX.md OSX.md & link all the file to the READEME.md
  • What about linking to Vagrant & VirtualBox website for download instruction instead of giving it here.
  • Okay with remove of 32-bit instruction.
  • the propmt $ make it clear that you need to type in a terminal if we remove it may lead to some confusion. what do you think?

@smartbit
Copy link
Collaborator

smartbit commented Nov 14, 2016

  • separate files is fine with me, OSX is now called macOS. Instructions for Fedora are different due to dnf, so Linux.md will have to be two separate files or have 2 different chapters. I'm not going to test Oracle Linux, are you? If not, I suggest we remove.
  • download instructions for Vagrant & VirtualBox RHEL/CentOS on their respective site are IMHO not complete. See below for an example of more complete instructions.
  • ok, no 32bit any more
  • I like to copy a few lines and paste them in the terminal. $ makes that impossible.
  • how about sudo? I prefer su - as first command. On macOS I'll keep using sudo though....
  • what versions of Debian/Ubuntu do we want to test? 16.04 seems fine, but testing all others....

sample:

RHEL/CentOS 64-bit

su - 
wget http://download.virtualbox.org/virtualbox/rpm/el/virtualbox.repo -O /etc/yum.repos.d/virtualbox.repo
yum clean dbcache; yum -y repolist    # Import the GPG keys
yum -y install epel-release           # should be 7.8
export virtualbox_version=`yum search VirtualBox | grep "VirtualBox-" | sed 's/ : Oracle VM VirtualBox//' | sed 's/.x86_64//' | tail -1`
yum -y install git gcc make kernel-devel $virtualbox_version
/sbin/vboxconfig                      # load the vboxdrv kernel module
systemctl status vboxdrv              # enabled?
VBoxManage --version                  # should return no errors
reboot
su - 
export vagrant_version=`wget --quiet -O - https://releases.hashicorp.com/vagrant/ | sed -n 's/.*href="\([^"]*\)".*/\1/p' | sort -r | head -1 | sed 's/[\/|vagrant]//g'`
yum -y install https://releases.hashicorp.com/vagrant/"$vagrant_version"/vagrant_"$vagrant_version"_x86_64.rpm

@smartbit smartbit linked a pull request Nov 15, 2016 that will close this issue
@epicavic
Copy link

epicavic commented Apr 16, 2017

i can help with adding support for windows
i'm using babun and ansible on win7
in fact you don't need use babun + ansible (as soon as you're using ansible_local)
the only issue i've encountered so far was the detecting Virtualbox home dir and "example.com" domain is registered already so it cannot be used by ipa server. i will test and will try to add pull request

@AnwarYagoub
Copy link
Owner Author

@epicavic You are more than welcomed to do so

@smartbit
Copy link
Collaborator

@epicavic indeed welcome, please submit a PR. Some remarks and questions for giving you a good start.

  • Personally I never heard of Babun before. Given the current low penetration of Win10, on first sight, Babun seems a viable alternative to Windows Subsystem for Linux. Do you think aspirant RHCSA/RHCE would install Babun?
  • Would it be possible to add support for both Babun and WSL in a combined set of instructions/batch/bash file(s)?
  • The vagrant images lack certain features and not al exercises can be done on them. All exercises can (probably) be done on the V3.0.3 images by Sander. @AnwarYagoub created a sample Packer repository which could be a starting point for overcoming the limitations of the vagrant images.

Hopes this helps, if you have any questions, please don't hesitate to discuss or ask.

@epicavic
Copy link

epicavic commented Apr 16, 2017 via email

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 a pull request may close this issue.

3 participants