1. When installing the virtual machine, the virtual network 1 (eth1) cannot be found and does not appear.
1. Install virtualbox first
2. Then install vagrant
3. There is no VirtualBoxHost-OnlyNetWork solution when using ipconfig in windows
1) Solution
Find the Network and Internet option in Windows settings and select Change adapter options on the right
- You can see the adapter list and you can find the virtualbox adapter (if not, there are tutorials on the Internet to add network adapters)
- find details
- Check the ipv4 address of the adapter (see item 5 if there is no ipv4 address)
- If you don’t have an ipv4 address, set it yourself (click edit and use the ipv4 adapter to operate)
- Change automatic to manual
- select ipv4
- Customize ipv4 (within the allowed range) and click Save
- Connect the above adapter Ethernet 4 (for virtualbox adapter) and use ipconfig to view it.
4. There is no eth1 in ifconfig in the virtual machine.
When VirtualBox is installed, it does not automatically create a Host-Only network. If you need to communicate between the virtual machine and the host, you must manually create a host-only network. The creation method can be through the graphical interface or the command line. The function is the same.
The following is the operation path for creating a Host-only network in the graphical interface:
5. Install ifconfig command
1. If you directly enter yum install ifconfig to install, you will be prompted: There is no available software package ifconfig.
2. Then we need to use yum search ifconfig to search, which installation package to search for
3. It has been searched. You can enter yum install net-tools.x86_64 in the command line.
If you enter yum install net-tools.x86_64, it prompts: There is no available software package net-tool.x86_64.
Enter sudo yum update to update and enter yum install net-tools.x86_64 to succeed.