 < ? x m l   v e r s i o n = " 1 . 0 "   e n c o d i n g = " I S O - 8 8 5 9 - 1 "   s t a n d a l o n e = " y e s " ? > 
 < d u n e s - s c r i p t - m o d u l e   n a m e = " c l o n e V M "   r e s u l t - t y p e = " V C : T a s k "   a p i - v e r s i o n = " 3 . 1 . 0 "     i d = " 8 A 8 0 8 0 8 0 8 0 8 0 8 0 8 0 8 0 8 0 8 0 8 0 8 0 8 0 8 0 8 0 7 4 8 2 8 0 8 0 0 1 3 0 6 7 7 3 4 2 4 2 6 7 a 2 c 0 d a e 5 6 b b "     v e r s i o n = " 0 . 2 . 0 "     a l l o w e d - o p e r a t i o n s = " v f e "   > < d e s c r i p t i o n > < ! [ C D A T A [ C r e a t e s   a   c l o n e   o f   t h i s   v i r t u a l   m a c h i n e .   I f   t h e   v i r t u a l   m a c h i n e   i s   u s e d   a s   a   t e m p l a t e ,   t h i s   m e t h o d   c o r r e s p o n d s   t o   t h e   d e p l o y   c o m m a n d .   
 A n y   %   ( p e r c e n t )   c h a r a c t e r   u s e d   i n   t h i s   n a m e   p a r a m e t e r   m u s t   b e   e s c a p e d ,   u n l e s s   i t   i s   u s e d   t o   s t a r t   a n   e s c a p e   s e q u e n c e .   C l i e n t s   m a y   a l s o   e s c a p e   a n y   o t h e r   c h a r a c t e r s   i n   t h i s   n a m e   p a r a m e t e r .   
 T h e   p r i v i l e g e   r e q u i r e d   o n   t h e   s o u r c e   v i r t u a l   m a c h i n e   d e p e n d s   o n   t h e   s o u r c e   a n d   d e s t i n a t i o n   t y p e s :   
 	 -   s o u r c e   i s   v i r t u a l   m a c h i n e ,   d e s t i n a t i o n   i s   v i r t u a l   m a c h i n e   -   V i r t u a l M a c h i n e . P r o v i s i o n i n g . C l o n e   
 	 -   s o u r c e   i s   v i r t u a l   m a c h i n e ,   d e s t i n a t i o n   i s   t e m p l a t e   -   V i r t u a l M a c h i n e . P r o v i s i o n i n g . C r e a t e T e m p l a t e F r o m V M 
 	 -   s o u r c e   i s   t e m p l a t e ,   d e s t i n a t i o n   i s   v i r t u a l   m a c h i n e   -   V i r t u a l M a c h i n e . P r o v i s i o n i n g . D e p l o y T e m p l a t e   
 	 -   s o u r c e   i s   t e m p l a t e ,   d e s t i n a t i o n   i s   t e m p l a t e   -   V i r t u a l M a c h i n e . P r o v i s i o n i n g . C l o n e T e m p l a t e   
 I f   c u s t o m i z a t i o n   i s   r e q u e s t e d   i n   t h e   C l o n e S p e c ,   t h e n   t h e   V i r t u a l M a c h i n e . P r o v i s i o n i n g . C u s t o m i z e   p r i v i l e g e   m u s t   a l s o   b e   h e l d   o n   t h e   s o u r c e   v i r t u a l   m a c h i n e . ] ] > < / d e s c r i p t i o n > 
 < p a r a m   n = " v m "   t = " V C : V i r t u a l M a c h i n e " > < ! [ C D A T A [ T h e   S o u r c e   V i r t u a l   M a c h i n e   o r   T e m p l a t e   f o r   t h e   C l o n e   O p e r a t i o n ] ] > < / p a r a m > < p a r a m   n = " v m F o l d e r "   t = " V C : V m F o l d e r " > < ! [ C D A T A [ T h e   l o c a t i o n   o f   t h e   n e w   v i r t u a l   m a c h i n e . ] ] > < / p a r a m > < p a r a m   n = " n a m e "   t = " s t r i n g " > < ! [ C D A T A [ T h e   n a m e   o f   t h e   n e w   v i r t u a l   m a c h i n e . ] ] > < / p a r a m > < p a r a m   n = " p o w e r O n "   t = " b o o l e a n " > < ! [ C D A T A [ S p e c i f i e s   w h e t h e r   o r   n o t   t h e   n e w   V i r t u a l M a c h i n e   s h o u l d   b e   p o w e r e d   o n   a f t e r   c r e a t i o n . ] ] > < / p a r a m > < p a r a m   n = " t e m p l a t e "   t = " b o o l e a n " > < ! [ C D A T A [ S p e c i f i e s   w h e t h e r   o r   n o t   t h e   n e w   v i r t u a l   m a c h i n e   s h o u l d   b e   m a r k e d   a s   a   t e m p l a t e . ] ] > < / p a r a m > < p a r a m   n = " d a t a s t o r e "   t = " V C : D a t a s t o r e " > < ! [ C D A T A [ T h e   d a t a s t o r e   w h e r e   t h e   v i r t u a l   m a c h i n e   s h o u l d   b e   l o c a t e d .   I f   n o t   s p e c i f i e d ,   t h e   c u r r e n t   d a t a s t o r e   i s   u s e d .   ] ] > < / p a r a m > < p a r a m   n = " h o s t "   t = " V C : H o s t S y s t e m " > < ! [ C D A T A [ T h e   d a t a s t o r e   w h e r e   t h e   v i r t u a l   m a c h i n e   s h o u l d   b e   l o c a t e d .   I f   n o t   s p e c i f i e d ,   t h e   c u r r e n t   d a t a s t o r e   i s   u s e d . ] ] > < / p a r a m > < p a r a m   n = " p o o l "   t = " V C : R e s o u r c e P o o l " > < ! [ C D A T A [ T h e   r e s o u r c e   p o o l   t o   w h i c h   t h i s   v i r t u a l   m a c h i n e   s h o u l d   b e   a t t a c h e d . ] ] > < / p a r a m > < p a r a m   n = " s n a p s h o t "   t = " V C : V i r t u a l M a c h i n e S n a p s h o t " > < ! [ C D A T A [ [ o p t i o n a l ]   S n a p s h o t   t o   c l o n e   f r o m   ( m u s t   b e   a   s n a p s h o t   o f   v m ) ] ] > < / p a r a m > < p a r a m   n = " t h i n P r o v i s i o n e d "   t = " b o o l e a n " > < ! [ C D A T A [ I f   t r u e ,   t h e   V M   d i s k   s i z e   u n u s e d   a r e   n o t   r e s e r v e d   o n   t h e   d a t a s t o r e ] ] > < / p a r a m > < s c r i p t   e n c o d e d = ' f a l s e ' > < ! [ C D A T A [ v a r   t r a n s f o r m   =   n u l l ; 
 i f   ( t h i n P r o v i s i o n e d )   { 
 	 t r a n s f o r m   =   V c V i r t u a l M a c h i n e R e l o c a t e T r a n s f o r m a t i o n . s p a r s e ; 
 	 S y s t e m . l o g ( " s p a r s e " ) ; 
 } 
 i f   ( d a t a s t o r e   = =   n u l l )   { 
 	 d a t a s t o r e   =   v m . d a t a s t o r e [ 0 ] ; 
 } 
 r e l o c a t e S p e c   =   S y s t e m . g e t M o d u l e ( " c o m . v m w a r e . l i b r a r y . v c . v m . s p e c " ) . g e t R e l o c a t e S p e c ( d a t a s t o r e , n u l l , h o s t , p o o l , t r a n s f o r m ) ; 
 c l o n e S p e c   =   S y s t e m . g e t M o d u l e ( " d e . v c o p o r t a l . l i b " ) . g e t C l o n e S p e c ( n u l l , n u l l , r e l o c a t e S p e c , p o w e r O n , s n a p s h o t , t e m p l a t e ) ; 
 
 
 
 
 
 r e t u r n   v m . c l o n e V M _ T a s k ( v m F o l d e r ,   n a m e ,   c l o n e S p e c ) ; ] ] > < / s c r i p t > 
 < / d u n e s - s c r i p t - m o d u l e >