Thanks Anton for the infos,
So I test to create my new script very basic to test :
#!/bin/bash echo "$NAME $ID" > /tmp/variables
I add in my oned.conf :
VM_MAD = [ name = "xen", executable = "one_vmm_exec", arguments = "-t 15 -r 0 xen4 -l deploy=createvm.sh", default = "vmm_exec/vmm_exec_xen4.conf", type = "xen" ]
So when I launch my vm, it returns me nothing…
You said yesterday I can retrieve this variable : (onevm show $mylastcreatedvm)
`
VIRTUAL MACHINE 22 INFORMATION
ID : 22
NAME : hello
USER : oneadmin
GROUP : oneadmin
STATE : ACTIVE
LCM_STATE : UNKNOWN
RESCHED : No
HOST : 10.10.10.12
CLUSTER ID : 101
CLUSTER : cluster
START TIME : 09/08 14:18:31
END TIME : -
DEPLOY ID : -
VIRTUAL MACHINE MONITORING
PERMISSIONS
OWNER : um-
GROUP : —
OTHER : —
VM DISKS
ID DATASTORE TARGET IMAGE SIZE TYPE SAVE
0 - hda CONTEXT -/- - -
VM NICS
ID NETWORK VLAN BRIDGE IP MAC
0 bridge stockage no xenbr1.42 10.42.0.200 02:00:0a:2a:00:c8
1 bridge it no xenbr1.10 10.10.10.100 02:00:0a:0a:0a:64
SECURITY
NIC_ID NETWORK SECURITY_GROUPS
0 bridge stockage 0
1 bridge it 0
SECURITY GROUP TYPE PROTOCOL NETWORK RANGE
ID NAME VNET START SIZE
0 default OUTBOUND ALL
0 default INBOUND ALL
VIRTUAL MACHINE HISTORY
SEQ HOST ACTION DS START TIME PROLOG
0 10.10.10.12 none 0 09/08 14:18:53 0d 00h12m 0h00m00s
USER TEMPLATE
HYPERVISOR="xen"
LOGO=“images/logos/debian.png"
SCHED_DS_RANK=”-FREE_MB"
SCHED_RANK="RUNNING_VMS"
SCHED_REQUIREMENTS="ID="2""
SERVICE="testsetset"
USER_INPUTS=[
SERVICE=“M|text|service” ]
VIRTUAL MACHINE TEMPLATE
AUTOMATIC_REQUIREMENTS=“CLUSTER_ID = 101 & !(PUBLIC_CLOUD = YES)“
CONTEXT=[
DISK_ID=“0”,
ETH0_IP=“10.42.0.200”,
ETH0_MAC=“02:00:0a:2a:00:c8”,
ETH1_IP=“10.10.10.100”,
ETH1_MAC=“02:00:0a:0a:0a:64”,
NETWORK=“YES”,
SERVICE=“testsetset”,
TARGET=“hda” ]
CPU=“1"
MEMORY=“512"
OS=[
INITRD=”/boot/initrd.img-3.16.0-4-amd64-vms”,
KERNEL=”/boot/vmlinuz-3.16.0-4-amd64-vms”,
KERNEL_CMD=“ip=10.42.0.32:10.42.0.2:10.42.0.254:255.255.0.0:toto.mydomain:eth0:static root=/dev/nfs nfsroot=10.42.0.2:/shares/vms_nfsroot/it/toto,rw” ]
TEMPLATE_ID="1"
VCPU="1"
VMID=“22”
`
I don’t understand why the script return nothing …
Mura,