What to do if you get an error when vagrant up when you enable public_network or private_network on Vagrant + Arch Linux → Install netctl

Solution procedure

$ sudo pacman -S netctl --noconfirm Install the package netctl. (--Noconfirm: option to run without confirmation)

Situation in trouble

I get an error when I do vagrant up with the following lines of Vagrantfile enabled in the guest operating system ʻarchlinux / archlinux`.

Example 1: public_network enabled

config.vm.network "public_network"

Example 2: Private_network enabled

config.vm.network "private_network", ip: "192.168.33.10"

Error details in Example 1

==> default: Configuring and enabling network interfaces...
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

# Configure eth1
mv '/tmp/vagrant-network-eth1-xxxxxxxxxx-x' '/etc/netctl/eth1' &&
ip link set 'eth1' down &&
netctl restart 'eth1' &&
netctl enable 'eth1'

Stdout from the command:



Stderr from the command:

mv: cannot move '/tmp/vagrant-network-eth1-xxxxxxxxxx-x' to '/etc/netctl/eth1': No such file or directory

Error meaning and resolution mechanism

mv: cannot move '/tmp/vagrant-network-eth1-xxxxxxxxxx-x' to '/etc/netctl/eth1' I'm angry that I can't find the directory / etc / netctl / eth1.

This is the directory created by installing netctl.

The guest operating system box ʻarchlinux / archlinuxdoes not containnetctl. The solution is to install with sudo pacman -S netctl`.

environment

--Host OS: Windows 10 Pro (version 1809) --Guest OS: archlinux / archlinux (virtualbox, 2020.02.04) --VirtualBox version 6.0.16 r135674 (Qt5.6.2)

Recommended Posts

What to do if you get an error when vagrant up when you enable public_network or private_network on Vagrant + Arch Linux → Install netctl
What to do if you get the error ʻERR_FEATURE_UNAVAILABLE_ON_PLATFORM` when using ts-node-dev on Linux
What to do when you get an error saying "Name resolution temporarily failed" on linux
What to do if you get an error when trying to load mnist
What to do if you get an error when installing Dlib (Ubuntu)
What to do if you get an error when installing python with pyenv
EC2 / Amazon Linux2: What to do if you get an "unable to execute'gcc': No such file or directory" error with pip install
What to do if you get an OpenSSL error when installing Python 2 with pyenv
What to do if you get an error when importing matplotlib in Python (Mac)
What to do if you get an Import Error when importing matplotlib with Jupyter
What to do if you get an error when running "certbot renew" in CakePHP environment
What to do if you get an Undefined error when trying to use pip with pyenv
What to do if you get a Permission denied (public key) error when trying to pull on Github
Workaround if you get an error when trying to install PySide with pip
What to do if you get an error when trying to send a message in tasks.loop () immediately after startup
What to do if you get an "unknown service" error from your gRPC server
What to do if you get a memory error when converting from PySparkDataFrame to PandasDataFrame
What to do if you can't use WiFi on Linux
What to do if you get an Undefined error:'Module_six_moves_urllib_parse' object has no attribute'urlencode' on MacOS
What to do if you get a UnicodeDecodeError with pip install
What to do if you get an error saying c compiler cannot create executables in configure
What to do if you get a must override `get_config` error when trying to model.save in Keras
What to do if you get angry if you don't have libxml / xmlversion.h when installing lxml on CentOS
What to do if you forget your login password on Manjaro Linux
What to do if pyenv install does not proceed with an error
What to do if an error occurs when importing numpy with VScode
What to do if you get "The session could not be opened" when installing CentOS on VirtualBox
What to do if you get an error like'Qstring' has already been set to version 1 using mne python
What to do if you get a "No versions found" error in pipenv
What to do if an SSL connection error (ssl.SSLError: [SSL: DH_KEY_TOO_SMALL]) occurs on Ubuntu 20.04
What to do if you can't pip install mysqlclient
What to do if you get "(35,'SSL connect error')" in pycurl (one of them)
What to do if you run python in IntelliJ and end with an error
What to do if you get the error "Error: opencv3: Does not support building both Python 2 and 3 wrappers" when installing openCV 3
What to do if you get an error like dyld: mach-o, but built for simulator or dyld: attempt to run simulator program outside simulator (DYLD_ROOT_PATH not set) in golang
What to do if you get "coverage unknown" in Coveralls
What to do if you get Swagger-codegen in python and Import Error: No module named
What to do if `pip install matplotlib` fails on Mac
What to do if pip install mysqlclient fails on MacOS
What to do if you get a Cannot retrieve metalink for repository error in yum
I built an environment from centos installation to php source expansion on linux, but what to do when a browser error occurs
What to do if you can't install pyaudio with pip #Python
What to do if you get a minus zero in Python
[Beanstalk] What to do when an error occurs with import uuid
I get an error when trying to install maec 4.0.1.0 with pip
What to do if the inode is exhausted on EC2 Linux
What to do when you get "I can't see the site !!!!"
What to do if you get the message "" ~ .pkg "is corrupted and cannot be opened" when installing wxPython on Mac OS X
What to do if you get a "Wrong Python Platform" warning when using Python with the NetBeans IDE
What to do if you get angry with "Value Error: unknown local: UTF-8" in python manage.py syncdb
[Django] What to do if an Integrity Error occurs when registering data from the management site to the database
[Python] What to do if you get a ModuleNotFoundError when importing pandas using Jupyter Notebook in Anaconda
What to do if you get the error Target WSGI script'/var/www/xxx/xxx.wsgi' cannot be loaded as python module
What to do if an error occurs in TensorFlow RNN related import or RNN (LSTM) Cell (v 0.11r ~)
What to do if you can't find PDO in Laravel or CakePHP
What to do if you couldn't send an email to Yahoo with Python.
What to do if you get lost in file reference with FileNotFoundError
What to do if you get angry in TensorFlow v2 without attribute'app'
[Python] What to do when an error related to SSL authentication is returned
What to do if you can't install with pip in babun environment
What to do if you get Could not fetch URL 443 with pip