Page 1 of 1

custom template error

Posted: Thu Sep 12, 2019 5:09 pm
by xuyou
Hi,I follow the guide created yml and php,but when I edd node,it print error,could anyone help me?

——————————————
type: qemu
name: vtsmart
cpulimit: 1
icon: vsmart.png
cpu:1
ram: 2048
ethernet: 7
eth_name:
eth_format:eth{0}
console: telnet
shutdown: 1
qemu_arch: x86_64
qemu_arch:2.12.0
qemu_nic: virtio-net-pci
qemu_options: -machine type=pc,accel=kvm -vga std -usbdevice tablet -boot order=dc
————————————————
<?php
/* TEMPLATE MODE .missing or .hided
*
* .hided: will hide all template not present on system ( no image installed )
* .missing: will display not selectable template not present ( no image installed )
*
*/
DEFINE('TEMPLATE_DISABLED','.missing') ;

/* Define custom templates:
*
* Create for exemple /opt/unetlab/html/templates/mytemplate.php and Create
/opt/unetlab/html/templates/othertemplate.php
* Then uncomment lines below
*/
$custom_templates = Array(
'vtsmart' => 'Cisco vSmart','vtmgmt' => 'Cisco vNMS','vtedge' => 'Cisco Edge','vtbond' => 'Cisco vBond'
);
?>

Re: custom template error

Posted: Mon Feb 24, 2020 3:41 pm
by Uldis (UD)
You must read eve cookbook dear
all is diff way now
All templates for viptela are included in new eve versions
and community and pro

Re: custom template error

Posted: Mon Feb 24, 2020 3:48 pm
by Uldis (UD)
vsmart template content:

---
type: qemu
name: vSmart
cpulimit: 1
icon: vSmart.png
cpu: 2
ram: 2048
ethernet: 2
eth_format: eth{0}
console: telnet
shutdown: 1
qemu_arch: x86_64
qemu_version: 2.12.0
qemu_nic: virtio-net-pci
qemu_options: -machine type=pc,accel=kvm -cpu host -vga std -usbdevice tablet -boot order=dc -cpu host
...


and follow syntax DEAR !!!
In your template is wrong NAME !
case sensitive in linux

Read cook book mate
init file as well is scred