{"id":213,"date":"2021-03-26T12:17:23","date_gmt":"2021-03-26T10:17:23","guid":{"rendered":"https:\/\/my-virt.alfadir.net\/?p=213"},"modified":"2021-04-07T13:56:12","modified_gmt":"2021-04-07T11:56:12","slug":"appvolumes-2103-4-4-tools-off-line-packaging-for-both-appvolumes-on-prem-and-on-azure","status":"publish","type":"post","link":"https:\/\/my-virt.alfadir.net\/index.php\/2021\/03\/26\/appvolumes-2103-4-4-tools-off-line-packaging-for-both-appvolumes-on-prem-and-on-azure\/","title":{"rendered":"AppVolumes 2103 (4.4) Tools &#8211; Off line packaging for both AppVolumes On-Prem and on Azure"},"content":{"rendered":"\n<p>One of the great update from AppVolumes 2103 (aka 4.4) is now you can install only App Volumes Tools and package applications <strong>offline from a simple VM on VMware Workstation for example<\/strong> and produce the same package for App Volumes on Prem (.vmdk file) and for App Volumes on Azure (.vhd files). So exactly the same package for both environment.<\/p>\n\n\n\n<p>So let me describe how I created my &#8220;Capture and Build&#8221; VM, how to capture and import your applications&#8230;.<\/p>\n\n\n\n<!--more-->\n\n\n\n<p><strong>I &#8211; Build a &#8220;Capture and Build&#8221; (CnB) VM :<\/strong><\/p>\n\n\n\n<p>Using VMware Workstation, I created a brand new VM, initially for ThinApp, but it&#8217;s to use it for App Volumes as well, so I&#8217;ll be able to use it for both packaging environment.<\/p>\n\n\n\n<p>The characteristics of my VMs are as follow:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>2 vCPU and 4Gb RAM<\/li><li>1 SATA drive for System of 60GB<\/li><li>1 SATA drive for ThinApp and repository of 100GB but set as Independent \/ Persistent so not affected by snapshot, this way I can keep ThinApp project safely and also move App Volumes apps on it. When I revert back to snapshop, all data on this drive are preserved.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"303\" height=\"325\" src=\"https:\/\/my-virt.alfadir.net\/wp-content\/uploads\/2021\/03\/3-26-2021-09-58-31.png\" alt=\"\" class=\"wp-image-214\" srcset=\"https:\/\/my-virt.alfadir.net\/wp-content\/uploads\/2021\/03\/3-26-2021-09-58-31.png 303w, https:\/\/my-virt.alfadir.net\/wp-content\/uploads\/2021\/03\/3-26-2021-09-58-31-280x300.png 280w\" sizes=\"(max-width: 303px) 100vw, 303px\" \/><\/figure>\n\n\n\n<p>I only installed : VMware Tools, ThinApp 5.2.9 and App Volumes Tools 4.4. Once apps installed: <\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>I moved ThinApp binaries in D:\\Bin\\ThinApp 5.2.9 and D:\\Bin\\Current<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"197\" height=\"244\" src=\"https:\/\/my-virt.alfadir.net\/wp-content\/uploads\/2021\/03\/image-4.png\" alt=\"\" class=\"wp-image-215\"\/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>I created shortcuts from D:\\Bin\\Current to the desktop (so in case of ThinApp update, I only have to put new version in this folder without the need to change shortcuts and create a new snapshot. I also add an Explorer shortcut of &#8220;C:\\ProgramData\\VMware\\AppCapture&#8221; in the desktop<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"123\" height=\"321\" src=\"https:\/\/my-virt.alfadir.net\/wp-content\/uploads\/2021\/03\/image-5.png\" alt=\"\" class=\"wp-image-216\" srcset=\"https:\/\/my-virt.alfadir.net\/wp-content\/uploads\/2021\/03\/image-5.png 123w, https:\/\/my-virt.alfadir.net\/wp-content\/uploads\/2021\/03\/image-5-115x300.png 115w\" sizes=\"(max-width: 123px) 100vw, 123px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>And finally run <a rel=\"noreferrer noopener\" href=\"https:\/\/flings.vmware.com\/vmware-os-optimization-tool\" data-type=\"URL\" data-id=\"https:\/\/flings.vmware.com\/vmware-os-optimization-tool\" target=\"_blank\">VMware OS Optimization Tools<\/a> to remove all unwanted apps and settings &#8230;<\/li><li>Once everything is ready, shutdown and take a snapshop..<\/li><\/ul>\n\n\n\n<p>I<strong>I &#8211; Capture an application:<\/strong><\/p>\n\n\n\n<p>Capturing an application is pretty easy :<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>From &#8220;<strong>C:\\Program Files (x86)\\VMware\\AppCapture<\/strong>&#8221; (<strong>don&#8217;t use<\/strong> C:\\Program Files (x86)\\CloudVolumes\\Agent\\appcapture.exe). run the following command (note : type appcapture \/? for a list of all options and examples):<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>appcapture.exe \/new \"My Apps\"<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"681\" height=\"420\" src=\"https:\/\/my-virt.alfadir.net\/wp-content\/uploads\/2021\/03\/image-8.png\" alt=\"\" class=\"wp-image-219\" srcset=\"https:\/\/my-virt.alfadir.net\/wp-content\/uploads\/2021\/03\/image-8.png 681w, https:\/\/my-virt.alfadir.net\/wp-content\/uploads\/2021\/03\/image-8-300x185.png 300w\" sizes=\"(max-width: 681px) 100vw, 681px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>Install your application&#8230; reboot if required&#8230;<\/li><li>Once your application is installed and you set the basic settings, run the following command :<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>appcapture.exe \/end<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\"><li>Your VM will automatically reboot and finish capture process<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"975\" height=\"509\" src=\"https:\/\/my-virt.alfadir.net\/wp-content\/uploads\/2021\/03\/image-9.png\" alt=\"\" class=\"wp-image-220\" srcset=\"https:\/\/my-virt.alfadir.net\/wp-content\/uploads\/2021\/03\/image-9.png 975w, https:\/\/my-virt.alfadir.net\/wp-content\/uploads\/2021\/03\/image-9-300x157.png 300w, https:\/\/my-virt.alfadir.net\/wp-content\/uploads\/2021\/03\/image-9-768x401.png 768w\" sizes=\"(max-width: 975px) 100vw, 975px\" \/><\/figure>\n\n\n\n<p>Once the capture is done, you&#8217;ll see 3 files : &lt;apps name&gt;.json, &lt;apps name&gt;.vhd and &lt;apps name&gt;_workstation.vmdk<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"772\" height=\"172\" src=\"https:\/\/my-virt.alfadir.net\/wp-content\/uploads\/2021\/03\/image-10.png\" alt=\"\" class=\"wp-image-221\" srcset=\"https:\/\/my-virt.alfadir.net\/wp-content\/uploads\/2021\/03\/image-10.png 772w, https:\/\/my-virt.alfadir.net\/wp-content\/uploads\/2021\/03\/image-10-300x67.png 300w, https:\/\/my-virt.alfadir.net\/wp-content\/uploads\/2021\/03\/image-10-768x171.png 768w\" sizes=\"(max-width: 772px) 100vw, 772px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>Copy files in a safe place (eg. D:\\Apps)<\/li><li>Shutdown your VM and revert to previous snapshot<\/li><\/ul>\n\n\n\n<p>II<strong>I &#8211; Import your application in App Volumes 2013 (4.4) On-Prem<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Now the application is packaged, copy both .json and .vmdk into &#8220;<em>C:\\Program Files (x86)\\CloudVolumes\\Manager\\ppv\\packages<\/em>&#8221; folder (by default the &#8220;packages&#8221; folder doesn&#8217;t exist so you have to create it)<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"785\" height=\"219\" src=\"https:\/\/my-virt.alfadir.net\/wp-content\/uploads\/2021\/03\/image-11.png\" alt=\"\" class=\"wp-image-222\" srcset=\"https:\/\/my-virt.alfadir.net\/wp-content\/uploads\/2021\/03\/image-11.png 785w, https:\/\/my-virt.alfadir.net\/wp-content\/uploads\/2021\/03\/image-11-300x84.png 300w, https:\/\/my-virt.alfadir.net\/wp-content\/uploads\/2021\/03\/image-11-768x214.png 768w\" sizes=\"(max-width: 785px) 100vw, 785px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>From App Volumes admin, go to &#8220;Configuration\\Storage&#8221; and select &#8220;Upload Templates&#8221;:<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"955\" height=\"308\" src=\"https:\/\/my-virt.alfadir.net\/wp-content\/uploads\/2021\/03\/image-12.png\" alt=\"\" class=\"wp-image-223\" srcset=\"https:\/\/my-virt.alfadir.net\/wp-content\/uploads\/2021\/03\/image-12.png 955w, https:\/\/my-virt.alfadir.net\/wp-content\/uploads\/2021\/03\/image-12-300x97.png 300w, https:\/\/my-virt.alfadir.net\/wp-content\/uploads\/2021\/03\/image-12-768x248.png 768w\" sizes=\"(max-width: 955px) 100vw, 955px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>Select the target datastore, tick the application and click Upload..<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"925\" height=\"667\" src=\"https:\/\/my-virt.alfadir.net\/wp-content\/uploads\/2021\/03\/image-13.png\" alt=\"\" class=\"wp-image-224\" srcset=\"https:\/\/my-virt.alfadir.net\/wp-content\/uploads\/2021\/03\/image-13.png 925w, https:\/\/my-virt.alfadir.net\/wp-content\/uploads\/2021\/03\/image-13-300x216.png 300w, https:\/\/my-virt.alfadir.net\/wp-content\/uploads\/2021\/03\/image-13-768x554.png 768w\" sizes=\"(max-width: 925px) 100vw, 925px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>Once uploaded , go to  &#8220;Inventory\\Application&#8221;, and can assign it Users\/Groups<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"917\" height=\"308\" src=\"https:\/\/my-virt.alfadir.net\/wp-content\/uploads\/2021\/03\/image-15.png\" alt=\"\" class=\"wp-image-226\" srcset=\"https:\/\/my-virt.alfadir.net\/wp-content\/uploads\/2021\/03\/image-15.png 917w, https:\/\/my-virt.alfadir.net\/wp-content\/uploads\/2021\/03\/image-15-300x101.png 300w, https:\/\/my-virt.alfadir.net\/wp-content\/uploads\/2021\/03\/image-15-768x258.png 768w\" sizes=\"(max-width: 917px) 100vw, 917px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\"><li>You can now delete files from &#8220;<em>C:\\Program Files (x86)\\CloudVolumes\\Manager\\ppv\\packages<\/em>&#8220;<\/li><\/ul>\n\n\n\n<p>Here a video gently provided by Hilko Lantinga \ud83d\ude42<\/p>\n\n\n\n<figure class=\"wp-block-video\"><video height=\"2160\" style=\"aspect-ratio: 3840 \/ 2160;\" width=\"3840\" controls src=\"https:\/\/my-virt.alfadir.net\/wp-content\/uploads\/2021\/04\/AppCapture.mp4\"><\/video><\/figure>\n\n\n\n<p>That&#8217;s all folks \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of the great update from AppVolumes 2103 (aka 4.4) is now you can install only App Volumes Tools and package applications offline from a simple&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[15,14,43,41,42,11],"class_list":["post-213","post","type-post","status-publish","format-standard","hentry","category-app-volumes","tag-app-volumes","tag-horizon","tag-packaging","tag-thinapp","tag-tools","tag-vmware"],"_links":{"self":[{"href":"https:\/\/my-virt.alfadir.net\/index.php\/wp-json\/wp\/v2\/posts\/213","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/my-virt.alfadir.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/my-virt.alfadir.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/my-virt.alfadir.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/my-virt.alfadir.net\/index.php\/wp-json\/wp\/v2\/comments?post=213"}],"version-history":[{"count":4,"href":"https:\/\/my-virt.alfadir.net\/index.php\/wp-json\/wp\/v2\/posts\/213\/revisions"}],"predecessor-version":[{"id":235,"href":"https:\/\/my-virt.alfadir.net\/index.php\/wp-json\/wp\/v2\/posts\/213\/revisions\/235"}],"wp:attachment":[{"href":"https:\/\/my-virt.alfadir.net\/index.php\/wp-json\/wp\/v2\/media?parent=213"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/my-virt.alfadir.net\/index.php\/wp-json\/wp\/v2\/categories?post=213"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/my-virt.alfadir.net\/index.php\/wp-json\/wp\/v2\/tags?post=213"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}