 < ? 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 = " g e t C l o n e S p e c "   r e s u l t - t y p e = " A n y "   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 6 D 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 [ S p e c i f i c a t i o n   f o r   a   v i r t u a l   m a c h i n e   c l o n i n g   o p e r a t i o n .   ] ] > < / d e s c r i p t i o n > 
 < p a r a m   n = " c o n f i g "   t = " A n y " > < ! [ C D A T A [ [ o p t i o n a l ]   V i r t u a l M a c h i n e C o n f i g S p e c :   A n   o p t i o n a l   s p e c i f i c a t i o n   o f   c h a n g e s   t o   t h e   v i r t u a l   h a r d w a r e . ] ] > < / p a r a m > < p a r a m   n = " c u s t o m i z a t i o n "   t = " A n y " > < ! [ C D A T A [ [ o p t i o n a l ]   C u s t o m i z a t i o n S p e c :   A n   o p t i o n a l   g u e s t   o p e r a t i n g   s y s t e m   c u s t o m i z a t i o n   s p e c i f i c a t i o n . ] ] > < / p a r a m > < p a r a m   n = " l o c a t i o n "   t = " A n y " > < ! [ C D A T A [ V i r t u a l M a c h i n e R e l o c a t e S p e c :   A   t y p e   o f   R e l o c a t e S p e c   t h a t   s p e c i f i e s   t h e   l o c a t i o n   o f   r e s o u r c e s   t h e   n e w l y   c l o n e d   v i r t u a l   m a c h i n e   w i l l   u s 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 = " 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   o f   V M   t o   c l o n e   f r o m ] ] > < / 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 > < s c r i p t   e n c o d e d = ' f a l s e ' > < ! [ C D A T A [ t r y   { 
 	 c h e c k P a r a m ( ) ; 
 	 v a r   c l o n e S p e c   =   n e w   V c V i r t u a l M a c h i n e C l o n e S p e c ( ) ; 
 	 a f f e c t P a r a m ( ) ; 
 	 r e t u r n   c l o n e S p e c ; 
 } 
 c a t c h   ( e x )   { 
 	 t h r o w   " U n a b l e   t o   c r e a t e   C l o n e S p e c :   "   +   e x ; 
 } 
 
 f u n c t i o n   a f f e c t P a r a m ( )   { 
 	 c l o n e S p e c . c o n f i g   =   c o n f i g ; 
 	 c l o n e S p e c . c u s t o m i z a t i o n   =   c u s t o m i z a t i o n ; 
 	 c l o n e S p e c . l o c a t i o n   =   l o c a t i o n ; 
 	 c l o n e S p e c . p o w e r O n   =   p o w e r O n ; 
 	 c l o n e S p e c . s n a p s h o t   =   s n a p s h o t ; 
 	 c l o n e S p e c . t e m p l a t e   =   t e m p l a t e ; 
 } 
 
 f u n c t i o n   c h e c k P a r a m ( )   { 
 	 i f   ( c o n f i g   ! =   n u l l   & &   ( c o n f i g   i n s t a n c e o f   V c V i r t u a l M a c h i n e C o n f i g S p e c )   = =   f a l s e )   t h r o w   " c o n f i g   m u s t   b e   o f   t y p e   ' V c V i r t u a l M a c h i n e C o n f i g S p e c ' " ; 
 	 i f   ( c u s t o m i z a t i o n   ! =   n u l l   & &   ( c u s t o m i z a t i o n   i n s t a n c e o f   V c C u s t o m i z a t i o n S p e c )   = =   f a l s e ) 	 t h r o w   " c u s t o m i z a t i o n   m u s t   b e   o f   t y p e   ' V c C u s t o m i z a t i o n S p e c ' " ; 
 	 i f   ( l o c a t i o n   = =   n u l l )   t h r o w   " l o c a t i o n   m u s t   b e   d e f i n e d   ( t y p e :   V c V i r t u a l M a c h i n e R e l o c a t e S p e c ) " ; 
 	 i f   ( ( l o c a t i o n   i n s t a n c e o f   V c V i r t u a l M a c h i n e R e l o c a t e S p e c )   = =   f a l s e )   t h r o w   " l o c a t i o n   m u s t   b e   o f   t y p e   ' V c V i r t u a l M a c h i n e R e l o c a t e S p e c ' " ; 
 
 	 i f   ( s n a p s h o t   ! =   n u l l   & &   ( s n a p s h o t   i n s t a n c e o f   V c V i r t u a l M a c h i n e S n a p s h o t )   = =   f a l s e )   t h r o w   " s n a p s h o t   m u s t   b e   o f   t y p e   ' V c V i r t u a l M a c h i n e S n a p s h o t ' " ; 
 	 
 	 i f   ( p o w e r O n   = =   n u l l )   t h r o w   " p o w e r O n   m u s t   b e   d e f i n e d   ( t y p e :   b o o l e a n ) " ; 
 	 i f   ( t e m p l a t e   = =   n u l l )   t h r o w   " t e m p l a t e   m u s t   b e   d e f i n e d   ( t y p e :   b o o l e a n ) " ; 
 } ] ] > < / s c r i p t > 
 < / d u n e s - s c r i p t - m o d u l e >