complexorganizations / wireguard-manager

✔️ WireGuard-Manager is an innovative tool designed to streamline the deployment and management of WireGuard VPNs. Emphasizing user-friendliness and security, it simplifies the complexities of VPN configuration, offering a robust yet accessible solution for both personal and professional use.
Other
1.59k stars 203 forks source link

AWS Lightsail Ubuntu 22.04.1 LTS (GNU/Linux 5.15.0-1017-aws x86_64) amazon virtualization is not supported (yet). #342

Closed Zonder730 closed 1 year ago

Zonder730 commented 1 year ago

Hello, I am trying to install WireGuard using your script on AWS lightsail Ubuntu 22.04.1 LTS (GNU/Linux 5.15.0-1017-aws x86_64). After update from 20.04 to 22.04.1 I get this issue:

ubuntu@MyWireGuard:~$ sudo bash /usr/local/bin/wireguard-manager.sh amazon virtualization is not supported (yet).

Zonder730 commented 1 year ago

Hello guys do you have any updates here?

Rebelllious commented 1 year ago

Run "hostnamectl" in the VM and provide the output.

Zonder730 commented 1 year ago

ubuntu@MyWireGuard:~$ hostnamectl Static hostname: MyWireGuard Icon name: computer-vm Chassis: vm Machine ID: ec22fbb044b1ba56729ad946da4981f8 Boot ID: 85d28a5bb82f47c8968946859cc79cf6 Virtualization: amazon Operating System: Ubuntu 22.04.1 LTS Kernel: Linux 5.15.0-1017-aws Architecture: x86-64 Hardware Vendor: Amazon EC2 Hardware Model: t3.nano

Rebelllious commented 1 year ago

https://github.com/complexorganizations/wireguard-manager/issues/248#issuecomment-1004488652

From this, adjust it to "amazon" virtualization and tell us if it works.

To be honest, I have zero idea what stands behind "amazon" virtualization in this scenario... Probably some sort of KVM home brewed one

Zonder730 commented 1 year ago

I don’t understand what should I do? If you tell me, how to adjust it to Amazon virtualization, I will do it.

Zonder730 commented 1 year ago

The same result Снимок экрана 2022-08-23 104201

Zonder730 commented 1 year ago

I just create new vm. Upgrade it from 20.04 to 22.04.1. And everything works fine, so I have this issue only with VM with already installed Wireguard. Script does not work.

Rebelllious commented 1 year ago

It looks like the DNS resolution gets broken somewhere in between. I remember I reported this bug earlier and we reworked the way it does resolution (order of actions changed), but cannot recollect what exactly was changed from the top of my head. @fX4N1DmH311X39SpxXLWxMWy49n6o8zb you know the code better, probably.

Zonder730 commented 1 year ago

Guys do you have any updates here?

Prajwal-Koirala commented 1 year ago

Any cloud config you guys might want to share to how exactly you got this instance or what metadata or what am I missing?

I want to replicate this environment on my aws; but missing the terraform data of what you guys are using.

Like what changes did you make?

How did you get Amazon virtualization?

Prajwal-Koirala commented 1 year ago

https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/virtualization_types.html

Prajwal-Koirala commented 1 year ago

This is completed.