Using the VMware Content Library Assistant Fling

Share on:

So VMware Flings have been on a roll recently. They have released what they call “VMware Content Library Assistant.” This is a java based CLI app, that connects to your vCenter and searchers for your templates and then automatically creates and uploads them.

You can find the fling at the following URL…https://labs.vmware.com/flings/vsphere-content-library-assistant)

Once you download the fling, you can just run the following command.

1java -jar sphere-content-library-assistant-1.0.jar -s servername -u username -p password

In my case my java home isn’t setup on my mac so I had to run the following command to get it to work.

1/Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java -jar /pathtofolder/vsphere-content-library-assistant-1.0.jar -s servername -u username -p password
 1Davids-MacBook-Pro:~ davidstamen$ /Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/bin/java -jar /Users/davidstamen/Downloads/vsphere-content-library-assistant-1.0.0/vsphere-content-library-assistant-1.0.jar -s vcsa6-01.lab.local -u administrator@vsphere.local -p Password
 2
 3This app can assist you to on-board VC Templates to Content Library by doing the following:
 41. Scan Datastores & Discover VC Templates (*.vmtx)
 52. Recommend optimal inventorying intelligently
 63. Create Content Libraries
 74. Import VC Templates as OVF to Content Libraries
 8
 9Connecting to Server vcsa6-01.lab.local
10Credentials: Username:administrator@vsphere.local
11Connected to: VMware VirtualCenter ServerSLF4J: Class path contains multiple SLF4J bindings.
12SLF4J: Found binding in [jar:file:/Users/davidstamen/Downloads/vsphere-content-library-assistant-1.0.0/vsphere-content-library-assistant-1.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
13SLF4J: Found binding in [jar:file:/Users/davidstamen/Downloads/vsphere-content-library-assistant-1.0.0/vsphere-content-library-assistant-1.0.jar!/lib/slf4j-log4j12-1.6.6.jar!/org/slf4j/impl/StaticLoggerBinder.class]
14SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
15SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
16
17
18Found the following VC templates to on-board
19
20┌─────────────────────────────────────────────────┬────────────────────────────────────────────────┐
21 Datastore                                        VC Templates                                   
22├─────────────────────────────────────────────────┼────────────────────────────────────────────────┤
23 NFS01                                            [WIN2016, 2012R2, UBUNTU1604]                  
24└─────────────────────────────────────────────────┴────────────────────────────────────────────────┘
25
26
27
28Recommending import flows
29
30High Import Speed
31
32┌────────────────────────┬────────────────────────┬────────────────────────┬───────────────────────┐
33 VC Template             Will be imported to     Created on this         Connected Hosts       
34                         new ContentLibrary      Datastore                                     
35├────────────────────────┼────────────────────────┼────────────────────────┼───────────────────────┤
36 [WIN2016, 2012R2,       NFS01_ContentLibrary_H  NFS01                   [nuc2.lab.local,      
37 UBUNTU1604]             S                                               nuc1.lab.local]       
38└────────────────────────┴────────────────────────┴────────────────────────┴───────────────────────┘
39
40
41
42
43
44High Availability
45
46┌────────────────────────┬────────────────────────┬────────────────────────┬───────────────────────┐
47 VC Template             Will be imported to     Created on this         Connected Hosts       
48                         new ContentLibrary      Datastore                                     
49├────────────────────────┼────────────────────────┼────────────────────────┼───────────────────────┤
50 [WIN2016, 2012R2,       NFS01_ContentLibrary_H  NFS01                   [nuc2.lab.local,      
51 UBUNTU1604]             A                                               nuc1.lab.local]       
52└────────────────────────┴────────────────────────┴────────────────────────┴───────────────────────┘
53
54
55
56
57Press 1 for High Import Speed
58Press 2 for High Availability
59
601
61
62Creating ContentLibrary 'NFS01_ContentLibrary_HS' on 'NFS01'                                               	Success
63	Importing 'WIN2016' to ContentLibrary 'NFS01_ContentLibrary_HS'                                    	Success
64	Importing '2012R2' to ContentLibrary 'NFS01_ContentLibrary_HS'                                     	Success
65	Importing 'UBUNTU1604' to ContentLibrary 'NFS01_ContentLibrary_HS'                                 	Success

Here is an example of what it looks like after the fling is run.

comments powered by Disqus