Example XCP-ng Import File

The main difference to the XenServer import file is the -x parameter:

 -x 820,xcp 

There is no need for a license server configuration.

parameter from mkx

fsictl tool mkx

example file

#
# comment lines with a # as first char or with space before
#
  # like this
#
# will be ignored.
 
# Same with empty lines
 
# XenPool 3 - Citrix Hypervisor 8.20
xen## -c 00-50-56-02-56-01,v2xcp-6,172.16.2.56,172.16.2.1,255.255.255.0
-x 820,xcp
-p XCPOOL3,False
 
-r vcvm,' -v 172.16.0.12 -u administrator -d vsphere.local -p SECRETPW -s v2xen-6'
 
-n Management,100,INTERNAL_XEN,'Private Subnets used by Xen Hypervisor to access Storage',9000
-n Management,150,STORAGE,'Storage',9000 -i STORAGE,10.1.1.11,storage
 
-j DOMAIN,domain.lab2.schnuerle.com,server/xensrv,tec_user,'SECRETPW',icmp
 
-g g-xcp-pool-admin,pool-admin
-g g-xcp-pool-operator,pool-operator
-g g-xcp-read-only,read-only
-g g-xcp-vm-operator,vm-operator
-g g-xcp-vm-power-admin,vm-power-admin
-g g-xcp-vm-admin,vm-admin
 
-o lab2.schnuerle.com
-d lab2.schnuerle.com
 
-a 172.16.2.10 -a 172.16.0.14
-y 172.16.0.5
 
-e 172.16.2.1
-w SECRETPW
-z LAB -S ext -L disable
-t h_2nic_1500_active_backup_3hd
-D 10240 -T 'Europe/Berlin'
 
-s SR_STORAGE01,172.16.2.5,/xen_lab2,nfs,new,true,false
-s cifs_ISO-LIB,172.16.0.5,'\xen_lab2\SMBISO',ciso,shared,,,,user,'SECRETPW'
-s nfs_ISO-LIB,172.16.0.5,'/xen_lab2/NFSISO',niso,new
 
# Now one big line with all parameters
xen## -c 00-50-56-02-57-01,v2xen-7,172.16.2.57,172.16.2.1,255.255.255.0 -x 820,xcp -p XENPOOL3,False -r vcvm,' -v 172.16.0.12 -u administrator -d vsphere.local -p SECRETPW -s v2xen-7' -n Management,100,INTERNAL_XEN,'Private Subnets used by Xen Hypervisor to access Storage',9000 -n Management,150,STORAGE,'Storage',9000 -i STORAGE,10.1.1.11,storage -j DOMAIN,domain.lab2.schnuerle.com,server/xensrv,tec_user,'SECRETPW',icmp -g g-xen-pool-admin,pool-admin -g g-xen-pool-operator,pool-operator -g g-xen-read-only,read-only -g g-xen-vm-operator,vm-operator -g g-xen-vm-power-admin,vm-power-admin -g g-xen-vm-admin,vm-admin -o lab2.schnuerle.com -d lab2.schnuerle.com -a 172.16.2.10 -a 172.16.0.14 -y 172.16.0.5 -e 172.16.2.1 -w SECRETPW -z LAB -S ext -L disable -t h_2nic_1500_active_backup_3hd -D 10240 -T 'Europe/Berlin' -s SR_STORAGE01,172.16.2.5,/xen_lab2,nfs,new,true,false  -s cifs_ISO-LIB,172.16.0.5,'\xen_lab2\SMBISO',ciso,shared,,,,lab2,'SECRETPW' -s nfs_ISO-LIB,172.16.0.5,'/xen_lab2/NFSISO',niso,new
 
xen## -c 00-50-56-02-58-01,v2xen-8,172.16.2.58,172.16.2.1,255.255.255.0 -x 820,xcp -p XENPOOL3,False -r vcvm,' -v 172.16.0.12
-u administrator -d vsphere.local -p SECRETPW -s v2xen-8'
-n Management,100,INTERNAL_XEN,'Private Subnets used by Xen Hypervisor to access Storage',9000
-n Management,150,STORAGE,'Storage',9000 -i STORAGE,10.1.1.11,storage
-j DOMAIN,domain.lab2.schnuerle.com,server/xensrv,tec_user,'SECRETPW',icmp -g g-xen-pool-admin,pool-admin -g g-xen-pool-operator,pool-operator -g g-xen-read-only,read-only -g g-xen-vm-operator,vm-operator -g g-xen-vm-power-admin,vm-power-admin -g g-xen-vm-admin,vm-admin
-o lab2.schnuerle.com -d lab2.schnuerle.com -a 172.16.2.10 -a 172.16.0.14 -y 172.16.0.5  -e 172.16.2.1 -w SECRETPW
-z LAB -S ext -L disable -t h_2nic_1500_active_backup_3hd -D 10240 -T 'Europe/Berlin'
-s SR_STORAGE01,172.16.2.5,/xen_lab2,nfs,new,true,false  -s cifs_ISO-LIB,172.16.0.5,'\xen_lab2\SMBISO',ciso,shared,,,,lab2,'SECRETPW' -s nfs_ISO-LIB,172.16.0.5,'/xen_lab2/NFSISO',niso,new