Skip to content

Commit

Permalink
Add some missing packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik-Lamers1 committed Oct 31, 2023
1 parent db68713 commit 0e5f672
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vnet_manager/environment/lxc.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,10 @@ def execute_and_log(command: str, **kwargs) -> Tuple[int, AnyStr, AnyStr]:
return result

# Check for DNS
logger.debug("Checking for DNS connectivity")
logger.debug("Checking for internet connectivity")
dns = False
for _ in range(0, settings.LXC_MAX_STATUS_WAIT_ATTEMPTS):
if execute_and_log("ping -w 2 -c 1 google.com > /dev/null")[0] == 0:
if execute_and_log("ping -w 2 -c 1 google.com")[0] == 0:
dns = True
break
# No DNS connectivity (yet), try again
Expand Down
5 changes: 5 additions & 0 deletions vnet_manager/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@
"guest_packages": [
"man", # List of packages to install on the guest
"net-tools",
# We use Netplan since we build the config here in YAML for the old Ubuntu images
# TODO: Refactor this to systemd-networkd
"netplan.io",
"dnsutils",
"traceroute",
"nano",
Expand All @@ -70,6 +73,8 @@
"avahi-daemon",
"avahi-utils",
"curl",
"apt-utils",
"networkd-dispatcher",
],
"frr_packages": [
"frr",
Expand Down

0 comments on commit 0e5f672

Please sign in to comment.