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. 

Please or Register to create posts and topics.

Import a VHDX as a template via ssh

Is there a way to import a template via ssh and how would you do it?

 

Thanks Dennis

I received a response from support and in the interest of closing the loop and helping others here is what was sent:

First create a zfs for the antlet
    zfs create antlets/_templates/TEMPLATE_NAME
Copy the vhdx to /antlets/_templates/TEMPLATE_NAME/
Convert the .vhdx to .qcow2
    qemu-img convert -f vhdx -O qcow2 image.vhdx TEMPLATE_NAME.qcow2
Delete or move the .vhdx
    mv image.vhdx /some/other/dir/
    or
    rm image.vhdx
Create a snapshot named 'snap'
    zfs snapshot antlets/_templates/[email protected]
Create an xml Template
  cp /usr/local/antsleOS/xml/kvm-{Blank,TEMPLATE_NAME}.antlet.xml
If a Linux distro you can also try copying the kvm-Blank-virtio.antlet.xml
Just a heads up. Importing hyperV VMs seem to be the most finicky. Gen-1 is more likely to work than Gen-2.