thinkingserious / github-monolith

Sample code for OSCON 2019 tutorial: https://conferences.oreilly.com/oscon/oscon-or/public/schedule/detail/76039
MIT License
3 stars 3 forks source link

issues with virtualbox #1

Open suvroroy opened 5 years ago

suvroroy commented 5 years ago

It's giving issues w/ Virutalbox. Can we have alternate way to install without VirtualBox?

error below for docker-machine create -d virtualbox github-manager-monolith step

(github-manager-monolith) Creating VirtualBox VM... (github-manager-monolith) Creating SSH key... (github-manager-monolith) Starting the VM... (github-manager-monolith) Check network to re-create if needed... (github-manager-monolith) Creating a new host-only adapter produced an error: /usr/local/bin/VBoxManage hostonlyif create failed: (github-manager-monolith) 0%... (github-manager-monolith) Progress state: NS_ERROR_FAILURE (github-manager-monolith) VBoxManage: error: Failed to create the host-only adapter (github-manager-monolith) VBoxManage: error: VBoxNetAdpCtl: Error while adding new interface: failed to open /dev/vboxnetctl: No such file or directory (github-manager-monolith) VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component HostNetworkInterfaceWrap, interface IHostNetworkInterface (github-manager-monolith) VBoxManage: error: Context: "RTEXITCODE handleCreate(HandlerArg *)" at line 94 of file VBoxManageHostonly.cpp (github-manager-monolith) (github-manager-monolith) This is a known VirtualBox bug. Let's try to recover anyway... Error creating machine: Error in driver during machine creation: Error setting up host only network on machine start: The host-only adapter we just created is not visible. This is a well known VirtualBox bug. You might want to uninstall it and reinstall at least version 5.0.12 that is is supposed to fix this issue

jondavidi commented 5 years ago

I’m having the exact same issue. Theres an error on the virtual box install, but then it still creates the app somehow. Tried redownloading and reinstalling and still get same issues

jondavidi commented 5 years ago

@suvroroy the issue for me was resolved in Mac OS by going to privacy and clicking on "allow" for oracle software install (it was just a button on the "general" tab)

mbronk commented 5 years ago

Can we have alternate way to install without VirtualBox?

@suvroroy Assuming you have docker installed on our host, you should be able to just skip the docker-machine step, and run with 1 virtualization layer less (I have in fact used a t2.micro AWS EC2 VM for the entire lab). Just remember that if you're not using VirtualBox, you need to do stuff like: export GITHUB_MANAGER_IP="localhost"


Unrelated, but on to the 2nd part (uServices lab) - while this is a bit strange of a setup, you can also run minikube without the VM overlay (yes, it can support docker). Here's what has worked for me: sudo CHANGE_MINIKUBE_NONE_USER=true minikube start --vm-driver=none --cpus=1 --disk-size=2g --memory=512 --extra-config=kubeadm.ignore-preflight-errors=SystemVerification,NumCPU