<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/clearspace/rss" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>VMware Communities: Message List - would like to script start of VM, so as to launch specific process after vm started?</title>
    <link>http://communities.vmware.com/community/vmtn/general/virtualization?view=discussions</link>
    <description>Most recent forum messages</description>
    <language>en</language>
    <pubDate>Mon, 20 Apr 2009 12:31:12 GMT</pubDate>
    <generator>Clearspace 1.10.12 (http://jivesoftware.com/products/clearspace/)</generator>
    <dc:date>2009-04-20T12:31:12Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>Re: would like to script start of VM, so as to launch specific process after vm started?</title>
      <link>http://communities.vmware.com/message/1230067?tstart=0#1230067</link>
      <description>Hello,&lt;br /&gt;
&lt;br /&gt;
You will look at using the VMware VI and VIX SDKs to achieve your ends. Note however that VIX (which allows you to run commands/programs within in a VM) is very easy to disable as well. from a security perspective this would be disabled.&lt;br /&gt;
&lt;br /&gt;
&lt;br&gt;Best regards,&lt;br /&gt;
Edward L. Haletky&lt;br /&gt;
VMware Communities User Moderator, VMware vExpert 2009&lt;br /&gt;
====&lt;br /&gt;
Author of the book &lt;a href="http://www.astroarch.com/wiki/index.php/VMWare_ESX_Server_in_the_Enterprise"&gt;'VMWare ESX Server in the Enterprise: Planning and Securing Virtualization Servers'&lt;/a&gt;, Copyright 2008 Pearson Education.&lt;br /&gt;
&lt;a href="http://www.astroarch.com/wiki/index.php/Blog_Roll"&gt;Blue Gears and SearchVMware Pro Blogs&lt;/a&gt; -- &lt;a href="http://www.astroarch.com/wiki/index.php/Top_Virtualization_Security_Links"&gt;Top Virtualization Security Links&lt;/a&gt; -- &lt;a href="http://www.astroarch.com/wiki/index.php/Virtualization_Security_Round_Table_Podcast"&gt;Virtualization Security Round Table Podcast&lt;/a&gt;</description>
      <pubDate>Mon, 20 Apr 2009 12:31:12 GMT</pubDate>
      <author>Texiwill</author>
      <guid>http://communities.vmware.com/message/1230067?tstart=0#1230067</guid>
      <dc:date>2009-04-20T12:31:12Z</dc:date>
      <clearspace:dateToText>7 months, 6 days ago</clearspace:dateToText>
    </item>
    <item>
      <title>Re: would like to script start of VM, so as to launch specific process after vm started?</title>
      <link>http://communities.vmware.com/message/1229200?tstart=0#1229200</link>
      <description>&lt;br /&gt;
No. That's a static setting - at least as far as I've ever seen it used. &lt;br /&gt;
&lt;p /&gt;
 What I mean is I have a VM B sitting on Computer A running OS A, inside the VM I have OS B. &lt;br /&gt;
&lt;p /&gt;
I want a script A on OS A to be executed to start VM B, and to specify that when VM B is loaded that it should start a process and pass  it a particular set of parameters specified by Script A. &lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
So if Script A takes ten different input parameters it can use those to decide exactly what parameters should be sent to a particular process in the VM. Thus the run settings in the registry doesn't work - I think - because Run is static. I can specify that Notepad must start at the beginning of every VM start, but I can't dynamically pass it text when it starts. &lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;br /&gt;</description>
      <pubDate>Sat, 18 Apr 2009 16:33:43 GMT</pubDate>
      <author>gank211</author>
      <guid>http://communities.vmware.com/message/1229200?tstart=0#1229200</guid>
      <dc:date>2009-04-18T16:33:43Z</dc:date>
      <clearspace:dateToText>7 months, 1 week ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>Re: would like to script start of VM, so as to launch specific process after vm started?</title>
      <link>http://communities.vmware.com/message/1227167?tstart=0#1227167</link>
      <description>Unless I'm missing something here, that can be accomplished on a Windows machine with an entry in the 'HKLM\software\windows\currentversion\run' hive of the registry.</description>
      <pubDate>Thu, 16 Apr 2009 12:21:41 GMT</pubDate>
      <author>AsherN</author>
      <guid>http://communities.vmware.com/message/1227167?tstart=0#1227167</guid>
      <dc:date>2009-04-16T12:21:41Z</dc:date>
      <clearspace:dateToText>7 months, 1 week ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
    <item>
      <title>would like to script start of VM, so as to launch specific process after vm started?</title>
      <link>http://communities.vmware.com/message/1226911?tstart=0#1226911</link>
      <description>&lt;br /&gt;
As per the subject, I am looking for a VM technology(ies) where I can write a script in the general OS that will be able to launch the VM and to specify that process X inside the VM should launch after the VM is loaded/launch. For example - pseudocode:&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
var x = new VM (location of VM)&lt;br /&gt;
&lt;p /&gt;
 when (x.isLaunched){&lt;br /&gt;
&lt;p /&gt;
x.runStartingProcess = "c:\runwhenlaunched.vbs -input " + y&lt;br /&gt;
&lt;p /&gt;
} &lt;br /&gt;
&lt;p /&gt;
x.launch&lt;br /&gt;
&lt;p /&gt;
 -the pseudocode above would assume you had a variable y that changed due to some user input. That input was then passed to the starting process inside the VM. &lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
I suppose this is probably doable with some sort of virtualization technology, please point me to which virtualization technology can be used for this, and if you know some example code anywhere to look at that would be good too. &lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
&lt;p /&gt;
Thanks!</description>
      <pubDate>Thu, 16 Apr 2009 05:19:58 GMT</pubDate>
      <author>gank211</author>
      <guid>http://communities.vmware.com/message/1226911?tstart=0#1226911</guid>
      <dc:date>2009-04-16T05:19:58Z</dc:date>
      <clearspace:dateToText>7 months, 1 week ago</clearspace:dateToText>
      <clearspace:replyCount>3</clearspace:replyCount>
    </item>
  </channel>
</rss>

