Antsle Forum

Welcome to our Antsle community! This forum is to connect all Antsle users to post experiences, make user-generated content available for the entire community and more. 

Please note: This forum is about discussing one specific issue at a time. No generalizations. No judgments. Please check the Forum Rules before posting. If you have specific questions about your Antsle and expect a response from our team directly, please continue to use the appropriate channels (email: [email protected]) so every inquiry is tracked. 

Forum breadcrumbs - You are here:ForumGeneral: GeneralVPN
Please or Register to create posts and topics.

VPN

Hey All

I use Nordvpn for a lot of my VPN work...this is mainly on normal PC.. Based on what i do, i decided to use an antlet to duplicate the work i do with VPN. I created a windows 11 antlet and installed nordvpn... I found that 90% of the time nord wont connect and has errors. I am talking to Nord but wanted to see if other users have the same issues with Nord or and other VPN providers..

thanks

Hi @kryten

Thanks for letting us know about Nord VPN.

Our team has updated the Win11StdGui template with the latest updates.
You will need to remove the old template and download new one.

Can you let us know if problem persists with new Win11StdGui template?

Thanks,
antsle Support

Do i need to delete and redownload the Win11StdGui template?

Hi @kryten

Yes, you will need to delete and then re-download Win11StdGui template.

After deleting the template, you don't see it available for download, please restart antMan and check status with these commands:

service antman restart
service antman status

Thank you,
antsle Support

Hi Daniel

I get the following message:

DESTEMPL-1: Error while trying to delete template file system. cannot destroy 'antlets/_templates/Win11StdGui.kvm': filesystem has dependent clones
use '-R' to destroy the following datasets:
antlets/Win11xxxxxx@xxx
antlets/Win11xxxxxx

Is there any way I can save these antlets without having to rebuild them?

 

 

Hi @kryten

Yes, we have a script that allows one to remove the zfs dependencies from your antlet.  It is advised to backup your antlet just in case.

Please save this script as:  rmzfsdeps

Change the script to executable by typing:
chmod +x rmzfsdeps

Execute the script by typing:
./rmzfsdeps
then type in the name of the antlet you'd like to remove the zfs dependencies

#!/bin/bash

if [ $# -ne 1 ]; then
echo "Usage: rmzfsdeps <antlet-name>"
echo " "
exit 1
fi

antlet_name=$1

#######################################################
# Functions

# Text color
red=$'\e[1;31m'
grn=$'\e[1;32m'
wht=$'\e[1;0m'

isAntlet() {
# Desc: Verify the antlet exists
# Args: $1 -> name of the antlet

antlet_name=$1

if [ `virsh -c qemu:///system list --name --all | grep "^${antlet_name}$"|wc -l` -eq "1" ]; then
echo "true"
return 0
elif [ `virsh -c lxc:/// list --name --all | grep "^${antlet_name}$"|wc -l` -eq "1" ]; then
echo "true"
return 0
else
echo "false"
return 1
fi
}

isAntletRunning() {

# Desc: Verify the antlet exists
# Args: $1 -> name of the antlet

antlet_name=$1

if [ `virsh -c qemu:///system list --name | grep "^${antlet_name}$"|wc -l` -eq "1" ]; then
echo "true"
return 0
elif [ `virsh -c lxc:/// list --name | grep "^${antlet_name}$"|wc -l` -eq "1" ]; then
echo "true"
return 0
else
echo "false"
return 1
fi
}

antletType() {
# Desc: Get the antlet type - qemu or lxc
# Args: $1 -> name of the antlet

antlet_name=$1

if [ `virsh -c qemu:///system list --name --all | grep "^${antlet_name}$"|wc -l` -eq "1" ]; then
echo "qemu"
return 0
elif [ `virsh -c lxc:/// list --name --all|grep "^${antlet_name}$"|wc -l` -eq "1" ]; then
echo "lxc"
return 0
else
echo ""
return 1
fi
}

getAntletZpool() {
# Desc: get the zpool name of the antlet
# Args: $1 -> antlet name

echo `zfs list -H -o name | grep "/${1}$" | cut -d '/' -f1`
}

######################################################################

 

# Does antlet exist
if [ `isAntlet $antlet_name` == "false" ]; then
echo "antlet '${antlet_name}' does ${red}not exist!${wht}"
exit 1
fi

# Is the antlet running
if [ `isAntletRunning $antlet_name` == "true" ]; then
echo "'${red}${antlet_name}' is running!${wht} Please stop the antlet before running this script!"
exit 1
fi

# Set virsh cmd
if [ `antletType $antlet_name` == "lxc" ]; then
virshcmd="virsh -c lxc:///"
else
virshcmd="virsh -c qemu:///system"
fi

# Get antlet zpool
antlet_zpool=`getAntletZpool $antlet_name`

# Backup xml to antlet directory
$virshcmd dumpxml $antlet_name > /${antlet_zpool}/${antlet_name}/${antlet_name}.antlet.xml

# create snapshot
zfs snapshot ${antlet_zpool}/${antlet_name}@rmzfsdeps

# Set virsh cmd
if [ `antletType $antlet_name` == "lxc" ]; then
virshcmd="virsh -c lxc:///"
else
virshcmd="virsh -c qemu:///system"
fi

# Get antlet zpool
antlet_zpool=`getAntletZpool $antlet_name`

# Backup xml to antlet directory
$virshcmd dumpxml $antlet_name > /${antlet_zpool}/${antlet_name}/${antlet_name}.antlet.xml

# create snapshot
zfs snapshot ${antlet_zpool}/${antlet_name}@rmzfsdeps

# v undefine
$virshcmd undefine $antlet_name

# rename zfs with temporary name
zfs rename ${antlet_zpool}/${antlet_name} ${antlet_zpool}/${antlet_name}.tmp

# zfs send/recv
zfs send ${antlet_zpool}/${antlet_name}[email protected] | zfs recv ${antlet_zpool}/${antlet_name}

# Re-define antlet
$virshcmd define /${antlet_zpool}/${antlet_name}/${antlet_name}.antlet.xml

# destroy the snap
zfs destroy ${antlet_zpool}/${antlet_name}@rmzfsdeps

# destroy orig zfs
zfs destroy -r ${antlet_zpool}/${antlet_name}.tmp

Hi @kryten

I had posted with syntax error earlier, but I corrected and tried the code using an antlet that was using LEMP-Stack and it removed the ZFS dependencies.

Thank you,
antsle Support

I ran the script and got this error message

cannot create snapshot 'antlets/[email protected]': dataset already exists
Domain Win11Kadenz has been undefined

Now i cannot see the antlet at all. BUT I noticed there was no reduction in storage usage. How do i solve this? Can i restore from my backup?

p

 

Uploaded files:
  • antlse-error.png

Hi @kryten:

I'm sorry to hear that you are having issues.

Can you run this command and let us know the results?

ls -la /antlets/Win11Kadenz

You should see Win11Kadenz.antlet.xml file.
Then you can try to redefine the antlet with this command:

virsh define /antlets/Win11Kadenz/Win11Kadenz.antlet.xml

I was looking at this portion of the code below:

# Re-define antlet
$virshcmd define /${antlet_zpool}/${antlet_name}/${antlet_name}.antlet.xml

Hope that works for you.

Thank you,
antsle Support

Hi Daniel

when i use that command the response is:

ls -la /antlets/Win11Kadenz
ls: cannot access /antlets/Win11Kadenz: No such file or directory

I also used "zfs list" and see it as a .tmp file 55GB in size. does this help?

Uploaded files:
  • zpool-Antlets.png