I have a Debian 10 server running on the GCE (Google Cloud Engine) that runs an Apache web server. I created a snapshot of the server and exported that as an image (vmdk) and have that setup in VirtualBox on my Development Laptop (running Mint). I can boot into the system fine, however it has no network interfaces.
Code: Select all
root@debian:/# ls /sys/class/net/
lo
root@debian:/# cat /etc/network/interfaces
# Include files from /etc/network/interfaces.d
source-directory /etc/network/interfaces.d
# Cloud images dynamically generate config fragments for newly
# attached interfaces. see /etc/udev/rules.d/75-cloud-ifupdown.rules
# and /etc/network/cloud-ifupdown-helper. Dynamically generated
# configuration fragments are stored in /run:
source-directory /run/network/interfaces.d
I know that for general VM dev setup I would want a static ip setup, but I have a lot to brush up on as it pertains to networking. I am looking setup an interface that will work with a basic bridged connection from VirtualBox.
I commented out the two source-directory calls from /etc/network/interfaces and added the following:
Code: Select all
auto wlp1s0
allow-hotplug wlp1s0
iface wlp1s0 inet dhcp
Code: Select all
root@debian:/# systemctl restart networking
Job for networking.service failed because the control process exited with error code.
See "systemctl status networking.service" and "journalctl -xe" for details.
root@debian:/# systemctl status networking.service
` networking.service - Raise network interfaces
Loadedf: loaded(...)
Active: failed (Result: exit-code) ...
Docs: man:interfaces(5)
Process: ...
Main PID: ...
...
debian systemd[1]: Failed to start Raise network interfaces.
Code: Select all
auto wlp1s0
allow-hotplug wlp1s0
iface wlp1s0 inet dhcp
hwaddress ether 00:11:22:33:44:55
Code: Select all
root@debian:/# systemctl status networking.service
` networking.service - Raise network interfaces
Loadedf: loaded(...)
Active: failed (Result: exit-code) ...
Docs: man:interfaces(5)
Process: ...
Main PID: ...
...
debian systemd[1]: Starting Raise network interfaces...
debian ifup[4468]: Cannot find device "wlp1s0"
debian ifup[4468]: ifup: failed to bring up wlp1s0
...
debian systemd[1]: Failed to start Raise network interfaces.
Please let me know if there steps that I missed or anything that I am fundamentally not understanding. Thanks for any help or direction!