dmauser / AzureVM-Router

Deploy Azure VM (Linux or Windows) with IP forwarding enabled to be used as Router
MIT License
12 stars 10 forks source link

Deployment of Linux VM fails - Package `iptables-persistent` cannot be found. #1

Open cloudchristoph opened 1 year ago

cloudchristoph commented 1 year ago

Deployment of Linux VM fails - Package iptables-persistent cannot be found.

VM has reported a failure when processing extension 'CustomScript' (publisher 'Microsoft.Azure.Extensions' and type 'CustomScript'). Error message: "Enable failed: failed to execute command: command terminated with exit status=2 [stdout] net.ipv4.ip_forward = 1 net.ipv6.conf.all.forwarding = 1 net.ipv4.conf.all.accept_redirects = 0 net.ipv6.conf.all.accept_redirects = 0 Installing IPTables-Persistent Reading package lists... Building dependency tree... Reading state information...

[stderr] E: Unable to locate package iptables-persistent linuxrouter.sh: 24: linuxrouter.sh: cannot create /etc/iptables/rules.v4: Directory nonexistent ". More information on troubleshooting is available at https://aka.ms/VMExtensionCSELinuxTroubleshoot. (Code: VMExtensionProvisioningError)