<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<STYLE type=text/css> <!--@import url(scrollbar.css); --></STYLE>

<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<STYLE>                   body{FONT-SIZE:12pt; FONT-FAMILY:宋体,serif;}         </STYLE>

<META name=GENERATOR content="MSHTML 10.00.9200.16521"><BASE 
target=_blank></HEAD>
<BODY 
style="BORDER-LEFT-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; MARGIN: 12px; LINE-HEIGHT: 1.3; BORDER-TOP-WIDTH: 0px" 
marginheight="0" marginwidth="0">
<DIV><FONT color=#000000 size=3 face=宋体>I check the 
master codes of nova several days ago, and find the first logical 
partition of root disk will be choosed to inject files, so you may have to 
change the nova code to implement what you want.</FONT></DIV>
<DIV>I also will try to fix this issue in the havana edition.</DIV>
<DIV> </DIV>
<DIV align=left><FONT color=#c0c0c0 size=2 face=Verdana>2013-04-25</FONT></DIV>
<DIV align=left><FONT size=2 face=Verdana>
<HR id=SignNameHR style="HEIGHT: 2px; WIDTH: 122px" align=left SIZE=2>
</FONT></DIV>
<DIV align=left><FONT color=#c0c0c0 size=2 face=Verdana><SPAN 
id=_FlashSignName>Wangpan</SPAN></FONT></DIV>
<DIV><FONT size=2 face=Verdana>
<HR>
</FONT></DIV>
<DIV><FONT size=2 face=Verdana><STRONG>发件人:</STRONG>Balamurugan V G</FONT></DIV>
<DIV><FONT size=2 
face=Verdana><STRONG>发送时间:</STRONG>2013-04-25 14:18</FONT></DIV>
<DIV><FONT size=2 face=Verdana><STRONG>主题:</STRONG>Re: Re: [Openstack] 
[OpenStack] Files Injection in to Windows VMs</FONT></DIV>
<DIV><FONT size=2 
face=Verdana><STRONG>收件人:</STRONG>"Wangpan"<hzwangpan@corp.netease.com></FONT></DIV>
<DIV><FONT size=2 
face=Verdana><STRONG>抄送:</STRONG>"openstack@lists.launchpad.net"<openstack@lists.launchpad.net></FONT></DIV>
<DIV><FONT size=2 face=Verdana></FONT> </DIV>
<DIV><FONT size=2 face=Verdana>
<DIV dir=ltr>
<DIV>Is there was way to inject in to the regular filesystem(C: drive) in 
Windows7/Windows8?<BR><BR></DIV>Regards,<BR>Balu<BR></DIV>
<DIV class=gmail_extra><BR><BR>
<DIV class=gmail_quote>On Thu, Apr 25, 2013 at 11:46 AM, Balamurugan V G <SPAN 
dir=ltr><<A href="mailto:balamuruganvg@gmail.com" 
target=_blank>balamuruganvg@gmail.com</A>></SPAN> wrote:<BR>
<BLOCKQUOTE class=gmail_quote 
style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
  <DIV dir=ltr>
  <DIV>Thanks for link! By running the OpenHiddenSystemDrive exe, I am able to 
  see the injected file.<BR><BR></DIV>Regards,<BR>Balu<BR></DIV>
  <DIV class=gmail_extra><BR><BR>
  <DIV class=gmail_quote>On Thu, Apr 25, 2013 at 10:30 AM, Wangpan <SPAN 
  dir=ltr><<A href="mailto:hzwangpan@corp.netease.com" 
  target=_blank>hzwangpan@corp.netease.com</A>></SPAN> wrote:<BR>
  <BLOCKQUOTE class=gmail_quote 
  style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><U></U>
    <DIV 
    style="BORDER-LEFT-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; MARGIN: 12px; LINE-HEIGHT: 1.3; BORDER-TOP-WIDTH: 0px" 
    marginheight="0" marginwidth="0">
    <DIV><FONT color=#000000 size=3 face=宋体>have you open and check 
    the 'system reserved partition'? see the refer at 
    bellow:</FONT></DIV>
    <DIV><A 
    href="http://www.techfeb.com/how-to-open-windows-7-hidden-system-reserved-partition/" 
    target=_blank>http://www.techfeb.com/how-to-open-windows-7-hidden-system-reserved-partition/</A></DIV>
    <DIV> </DIV>
    <DIV align=left><FONT color=#c0c0c0 face=Verdana>2013-04-25</FONT></DIV>
    <DIV align=left><FONT face=Verdana>
    <HR style="MIN-HEIGHT: 2px; WIDTH: 122px" align=left SIZE=2>
    </FONT></DIV>
    <DIV align=left><FONT color=#c0c0c0 
    face=Verdana><SPAN>Wangpan</SPAN></FONT></DIV>
    <DIV><FONT face=Verdana>
    <HR>
    </FONT></DIV>
    <DIV><FONT face=Verdana><STRONG>发件人:</STRONG>Balamurugan V G</FONT></DIV>
    <DIV><FONT 
    face=Verdana><STRONG>发送时间:</STRONG>2013-04-25 12:34</FONT></DIV>
    <DIV><FONT face=Verdana><STRONG>主题:</STRONG>Re: [Openstack] [OpenStack] 
    Files Injection in to Windows VMs</FONT></DIV>
    <DIV><FONT face=Verdana><STRONG>收件人:</STRONG>"Wangpan"<<A 
    href="mailto:hzwangpan@corp.netease.com" 
    target=_blank>hzwangpan@corp.netease.com</A>></FONT></DIV>
    <DIV><FONT face=Verdana><STRONG>抄送:</STRONG>"<A 
    href="mailto:openstack@lists.launchpad.net" 
    target=_blank>openstack@lists.launchpad.net</A>"<<A 
    href="mailto:openstack@lists.launchpad.net" 
    target=_blank>openstack@lists.launchpad.net</A>></FONT></DIV>
    <DIV><FONT face=Verdana></FONT> </DIV>
    <DIV><FONT face=Verdana>
    <DIV>Hi Wanpan, </DIV>
    <DIV> </DIV>
    <DIV>While I am able to inject files in to WindowsXP, CentOS5.9 and </DIV>
    <DIV>Ubuntu12.04. I am unable to do it for Windows8Entrprise OS. I did </DIV>
    <DIV>search the entire drive for the file I injected but couldnt file. </DIV>
    <DIV>Below is the log from nova-compute.log. </DIV>
    <DIV> </DIV>
    <DIV> </DIV>
    <DIV>2013-04-24 01:41:27.973 AUDIT nova.compute.manager </DIV>
    <DIV>[req-6b571df0-9608-4bc5-93a7-afb3a2f17ba5 </DIV>
    <DIV>117e0142ab40418eafc56955f0ab2ba3 7a416e3eaa814734bda41ffca7c2d01e] </DIV>
    <DIV>[instance: aa46445e-1f86-4a5a-8002-a7703ff98648] Starting instance... </DIV>
    <DIV>2013-04-24 01:41:28.170 AUDIT nova.compute.claims </DIV>
    <DIV>[req-6b571df0-9608-4bc5-93a7-afb3a2f17ba5 </DIV>
    <DIV>117e0142ab40418eafc56955f0ab2ba3 7a416e3eaa814734bda41ffca7c2d01e] </DIV>
    <DIV>[instance: aa46445e-1f86-4a5a-8002-a7703ff98648] Attempting claim: </DIV>
    <DIV>memory 1024 MB, disk 10 GB, VCPUs 1 </DIV>
    <DIV>2013-04-24 01:41:28.171 AUDIT nova.compute.claims </DIV>
    <DIV>[req-6b571df0-9608-4bc5-93a7-afb3a2f17ba5 </DIV>
    <DIV>117e0142ab40418eafc56955f0ab2ba3 7a416e3eaa814734bda41ffca7c2d01e] </DIV>
    <DIV>[instance: aa46445e-1f86-4a5a-8002-a7703ff98648] Total Memory: 3953 </DIV>
    <DIV>MB, used: 2048 MB </DIV>
    <DIV>2013-04-24 01:41:28.171 AUDIT nova.compute.claims </DIV>
    <DIV>[req-6b571df0-9608-4bc5-93a7-afb3a2f17ba5 </DIV>
    <DIV>117e0142ab40418eafc56955f0ab2ba3 7a416e3eaa814734bda41ffca7c2d01e] </DIV>
    <DIV>[instance: aa46445e-1f86-4a5a-8002-a7703ff98648] Memory limit: 5929 </DIV>
    <DIV>MB, free: 3881 MB </DIV>
    <DIV>2013-04-24 01:41:28.172 AUDIT nova.compute.claims </DIV>
    <DIV>[req-6b571df0-9608-4bc5-93a7-afb3a2f17ba5 </DIV>
    <DIV>117e0142ab40418eafc56955f0ab2ba3 7a416e3eaa814734bda41ffca7c2d01e] </DIV>
    <DIV>[instance: aa46445e-1f86-4a5a-8002-a7703ff98648] Total Disk: 225 GB, </DIV>
    <DIV>used: 15 GB </DIV>
    <DIV>2013-04-24 01:41:28.172 AUDIT nova.compute.claims </DIV>
    <DIV>[req-6b571df0-9608-4bc5-93a7-afb3a2f17ba5 </DIV>
    <DIV>117e0142ab40418eafc56955f0ab2ba3 7a416e3eaa814734bda41ffca7c2d01e] </DIV>
    <DIV>[instance: aa46445e-1f86-4a5a-8002-a7703ff98648] Disk limit not </DIV>
    <DIV>specified, defaulting to unlimited </DIV>
    <DIV>2013-04-24 01:41:28.173 AUDIT nova.compute.claims </DIV>
    <DIV>[req-6b571df0-9608-4bc5-93a7-afb3a2f17ba5 </DIV>
    <DIV>117e0142ab40418eafc56955f0ab2ba3 7a416e3eaa814734bda41ffca7c2d01e] </DIV>
    <DIV>[instance: aa46445e-1f86-4a5a-8002-a7703ff98648] Total CPU: 2 VCPUs, </DIV>
    <DIV>used: 2 VCPUs </DIV>
    <DIV>2013-04-24 01:41:28.173 AUDIT nova.compute.claims </DIV>
    <DIV>[req-6b571df0-9608-4bc5-93a7-afb3a2f17ba5 </DIV>
    <DIV>117e0142ab40418eafc56955f0ab2ba3 7a416e3eaa814734bda41ffca7c2d01e] </DIV>
    <DIV>[instance: aa46445e-1f86-4a5a-8002-a7703ff98648] CPU limit not </DIV>
    <DIV>specified, defaulting to unlimited </DIV>
    <DIV>2013-04-24 01:41:28.174 AUDIT nova.compute.claims </DIV>
    <DIV>[req-6b571df0-9608-4bc5-93a7-afb3a2f17ba5 </DIV>
    <DIV>117e0142ab40418eafc56955f0ab2ba3 7a416e3eaa814734bda41ffca7c2d01e] </DIV>
    <DIV>[instance: aa46445e-1f86-4a5a-8002-a7703ff98648] Claim successful </DIV>
    <DIV>2013-04-24 01:41:33.998 INFO nova.virt.libvirt.driver </DIV>
    <DIV>[req-6b571df0-9608-4bc5-93a7-afb3a2f17ba5 </DIV>
    <DIV>117e0142ab40418eafc56955f0ab2ba3 7a416e3eaa814734bda41ffca7c2d01e] </DIV>
    <DIV>[instance: aa46445e-1f86-4a5a-8002-a7703ff98648] Creating image </DIV>
    <DIV>2013-04-24 01:41:34.281 INFO nova.virt.libvirt.driver </DIV>
    <DIV>[req-6b571df0-9608-4bc5-93a7-afb3a2f17ba5 </DIV>
    <DIV>117e0142ab40418eafc56955f0ab2ba3 7a416e3eaa814734bda41ffca7c2d01e] </DIV>
    <DIV>[instance: aa46445e-1f86-4a5a-8002-a7703ff98648] Injecting files into </DIV>
    <DIV>image 65eaa160-d0e7-403e-a52c-90bea3c22cf7 </DIV>
    <DIV>2013-04-24 01:41:36.534 INFO nova.virt.libvirt.firewall </DIV>
    <DIV>[req-6b571df0-9608-4bc5-93a7-afb3a2f17ba5 </DIV>
    <DIV>117e0142ab40418eafc56955f0ab2ba3 7a416e3eaa814734bda41ffca7c2d01e] </DIV>
    <DIV>[instance: aa46445e-1f86-4a5a-8002-a7703ff98648] Called </DIV>
    <DIV>setup_basic_filtering in nwfilter </DIV>
    <DIV>2013-04-24 01:41:36.535 INFO nova.virt.libvirt.firewall </DIV>
    <DIV>[req-6b571df0-9608-4bc5-93a7-afb3a2f17ba5 </DIV>
    <DIV>117e0142ab40418eafc56955f0ab2ba3 7a416e3eaa814734bda41ffca7c2d01e] </DIV>
    <DIV>[instance: aa46445e-1f86-4a5a-8002-a7703ff98648] Ensuring static </DIV>
    <DIV>filters </DIV>
    <DIV>2013-04-24 01:41:38.555 13316 INFO nova.compute.manager [-] Lifecycle </DIV>
    <DIV>event 0 on VM aa46445e-1f86-4a5a-8002-a7703ff98648 </DIV>
    <DIV>2013-04-24 01:41:38.763 13316 INFO nova.virt.libvirt.driver [-] </DIV>
    <DIV>[instance: aa46445e-1f86-4a5a-8002-a7703ff98648] Instance spawned </DIV>
    <DIV>successfully. </DIV>
    <DIV>2013-04-24 01:41:38.996 13316 INFO nova.compute.manager [-] [instance: </DIV>
    <DIV>aa46445e-1f86-4a5a-8002-a7703ff98648] During sync_power_state the </DIV>
    <DIV>instance has a pending task. Skip. </DIV>
    <DIV>2013-04-24 01:41:59.494 13316 AUDIT nova.compute.resource_tracker [-] </DIV>
    <DIV>Auditing locally available compute resources </DIV>
    <DIV>2013-04-24 01:42:00.345 13316 AUDIT nova.compute.resource_tracker [-] </DIV>
    <DIV>Free ram (MB): 881 </DIV>
    <DIV>2013-04-24 01:42:00.346 13316 AUDIT nova.compute.resource_tracker [-] </DIV>
    <DIV>Free disk (GB): 200 </DIV>
    <DIV>2013-04-24 01:42:00.346 13316 AUDIT nova.compute.resource_tracker [-] </DIV>
    <DIV>Free VCPUS: -1 </DIV>
    <DIV>2013-04-24 01:42:00.509 13316 INFO nova.compute.resource_tracker [-] </DIV>
    <DIV>Compute_service record updated for openstack-dev:<A 
    href="http://openstack-dev.com" 
    target=_blank>openstack-dev.com</A> </DIV>
    <DIV>2013-04-24 01:42:00.514 13316 INFO nova.compute.manager [-] Updating </DIV>
    <DIV>bandwidth usage cache </DIV>
    <DIV>2013-04-24 01:43:06.442 13316 AUDIT nova.compute.resource_tracker [-] </DIV>
    <DIV>Auditing locally available compute resources </DIV>
    <DIV>2013-04-24 01:43:07.041 13316 AUDIT nova.compute.resource_tracker [-] </DIV>
    <DIV>Free ram (MB): 881 </DIV>
    <DIV>2013-04-24 01:43:07.042 13316 AUDIT nova.compute.resource_tracker [-] </DIV>
    <DIV>Free disk (GB): 200 </DIV>
    <DIV>2013-04-24 01:43:07.042 13316 AUDIT nova.compute.resource_tracker [-] </DIV>
    <DIV>Free VCPUS: -1 </DIV>
    <DIV>2013-04-24 01:43:07.266 13316 INFO nova.compute.resource_tracker [-] </DIV>
    <DIV>Compute_service record updated for openstack-dev:<A 
    href="http://openstack-dev.com" 
    target=_blank>openstack-dev.com</A> </DIV>
    <DIV>2013-04-24 01:43:07.267 13316 INFO nova.compute.manager [-] Updating host status </DIV>
    <DIV> </DIV>
    <DIV>Regards, </DIV>
    <DIV>Balu </DIV>
    <DIV> </DIV>
    <DIV>On Wed, Apr 24, 2013 at 12:19 PM, Balamurugan V G </DIV>
    <DIV><<A href="mailto:balamuruganvg@gmail.com" 
    target=_blank>balamuruganvg@gmail.com</A>> wrote: </DIV>
    <DIV>> Hi Wangpan, </DIV>
    <DIV>> </DIV>
    <DIV>> Thanks for the response. The file injection is actually working, sorry my </DIV>
    <DIV>> bad I was setting the dst-path incorrectly. I am using Nova 2013.1(Grizzly) </DIV>
    <DIV>> and Windows XP 32bit VM. </DIV>
    <DIV>> </DIV>
    <DIV>> When I used the following command, it worked: </DIV>
    <DIV>> </DIV>
    <DIV>> nova boot --flavor f43c36f9-de6a-42f4-bbbb-edcedafe371a --image </DIV>
    <DIV>> 3872c4c9-d8f7-4a18-a2cc-0406765d9379 --file balu.txt=balu.txt VM2 </DIV>
    <DIV>> </DIV>
    <DIV>> The file balu.txt ended up in C: drive. </DIV>
    <DIV>> </DIV>
    <DIV>> Thanks again. </DIV>
    <DIV>> </DIV>
    <DIV>> Regards, </DIV>
    <DIV>> Balu </DIV>
    <DIV>> </DIV>
    <DIV>> </DIV>
    <DIV>> </DIV>
    <DIV>> </DIV>
    <DIV>> </DIV>
    <DIV>> </DIV>
    <DIV>> </DIV>
    <DIV>> </DIV>
    <DIV>> On Wed, Apr 24, 2013 at 12:07 PM, Wangpan <<A 
    href="mailto:hzwangpan@corp.netease.com" 
    target=_blank>hzwangpan@corp.netease.com</A>> </DIV>
    <DIV>> wrote: </DIV>
    <DIV>>> </DIV>
    <DIV>>> Hi Balamurugan, </DIV>
    <DIV>>> What the edition of nova you are running? is there any trace log in </DIV>
    <DIV>>> nova-compute.log(default path: /var/log/nova/nova-compute.log)? </DIV>
    <DIV>>> and what the edition of your windows VM(winxp/win7/win8)? if it is win7 or </DIV>
    <DIV>>> win8, the injected files may exist in the system reserved partition, you can </DIV>
    <DIV>>> google to open and check the injected files is there.(this may be a bug we </DIV>
    <DIV>>> need to fix) </DIV>
    <DIV>>> </DIV>
    <DIV>>> </DIV>
    <DIV>>> 2013-04-24 </DIV>
    <DIV>>> ________________________________ </DIV>
    <DIV>>> Wangpan </DIV>
    <DIV>>> ________________________________ </DIV>
    <DIV>>> 发件人:Balamurugan V G </DIV>
    <DIV>>> 发送时间:2013-04-24 14:19 </DIV>
    <DIV>>> 主题:[Openstack] [OpenStack] Files Injection in to Windows VMs </DIV>
    <DIV>>> 收件人:"<A href="mailto:openstack@lists.launchpad.net" 
    target=_blank>openstack@lists.launchpad.net</A>"<<A 
    href="mailto:openstack@lists.launchpad.net" 
    target=_blank>openstack@lists.launchpad.net</A>> </DIV>
    <DIV>>> 抄送: </DIV>
    <DIV>>> </DIV>
    <DIV>>> Hi, </DIV>
    <DIV>>> </DIV>
    <DIV>>> I am able to get File Injection to work during a CentOS or Ubuntu VM </DIV>
    <DIV>>> instance creation. But it doesnt work for a Windows VM. Is there a way to </DIV>
    <DIV>>> get it to work for windows VM or it going to be a limitation we have to live </DIV>
    <DIV>>> with, perhaps due to filesystem differences? </DIV>
    <DIV>>> </DIV>
    <DIV>>> Regards, </DIV>
    <DIV>>> Balu </DIV>
    <DIV>>> </DIV>
    <DIV>>> _______________________________________________ </DIV>
    <DIV>>> Mailing list: <A 
    href="https://launchpad.net/~openstack" 
    target=_blank>https://launchpad.net/~openstack</A> </DIV>
    <DIV>>> Post to     : <A 
    href="mailto:openstack@lists.launchpad.net" 
    target=_blank>openstack@lists.launchpad.net</A> </DIV>
    <DIV>>> Unsubscribe : <A 
    href="https://launchpad.net/~openstack" 
    target=_blank>https://launchpad.net/~openstack</A> </DIV>
    <DIV>>> More help   : <A 
    href="https://help.launchpad.net/ListHelp" 
    target=_blank>https://help.launchpad.net/ListHelp</A> </DIV>
    <DIV>>> </DIV>
    <DIV>> </DIV></FONT></DIV></DIV></BLOCKQUOTE></DIV><BR></DIV></BLOCKQUOTE></DIV><BR></DIV></FONT></DIV></BODY></HTML>