We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Phalcon box no internet connection (VMWare)

I opened a issue on the github so if need deets its here: https://github.com/phalcon/box/issues/89

But my phalcon box cant build because the VM has no internet connection. Does anyone know how to fix this?

Don't know about VMWare but I use virtual box and can access to internet through network interface and its free :
https://www.virtualbox.org/
https://www.virtualbox.org/manual/ch06.html



9.7k

The error message mentions provisioning. That usually means downloading stuff from the Internet. You would have to download and install it yourself before it is needed.

edited Sep '17

The error message mentions provisioning. That usually means downloading stuff from the Internet. You would have to download and install it yourself before it is needed.

I know that, but the box has no internet connection, which is why I posted this. I cant install anything manually without internet conneciton.

Don't know about VMWare but I use virtual box and can access to internet through network interface and its free :
https://www.virtualbox.org/
https://www.virtualbox.org/manual/ch06.html

VMWare network can connect to internet, https://docs.vmware.com/en/VMware-Workstation-Pro/12.0/com.vmware.ws.using.doc/GUID-6F7ECBA6-A29A-40AE-B565-3D0F2E74FEA4.html

I tried VBox and I got driver errors or something. I can run VMs in VBox manually but when using vagrant they all throw driver errors. Which coinsides with vmware, too. if i make a VM manually it has internet connection (given i give it a connected network) but even when given vagrant a connected network it still has no internet connection.

I'm at work atm, but when i get home Ill boot up the Vbox and post the errors.

Well wait, your server does not have Internet? You plan to use it only for local development?

Then simply compile Phalcon from source - no other way really. Repositories naturally require Internet.

Well wait, your server does not have Internet? You plan to use it only for local development?

Then simply compile Phalcon from source - no other way really. Repositories naturally require Internet.

Its the provision that requires the internet to do apt-get i assume.

Also here if the error I get with VBox

There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["startvm", "756f4ea4-b257-42cf-ae9d-1d4980096fce", "--type", "headless"]

Stderr: VBoxManage.exe: error: Failed to open/create the internal network 'HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter #7' (VERR_SUPDRV_COMPONENT_NOT_FOUND).
VBoxManage.exe: error: Failed to attach the network LUN (VERR_SUPDRV_COMPONENT_NOT_FOUND)
VBoxManage.exe: error: Details: code E_FAIL (0x80004005), component ConsoleWrap, interface IConsole
edited Sep '17

Update, problem with virtual box was Hyper-v, uninstalled hyper-v and all works now, unfortuantly this wasnt the problem with VMWare.

Further infomation, the vmware image has 3 adapters mounted, NAT, Host-only and bridged. When running ifconfig on the vm, it only shows 1 adapter being host-only i assume since NAT and bridged provides internet connection.