<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Induction;
panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:"Monotype Corsiva";
panose-1:3 1 1 1 1 2 1 1 1 1;}
@font-face
{font-family:CMR10;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
color:black;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";
color:black;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0in;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";
color:black;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:"Courier New";}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";}
span.EmailStyle21
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:windowtext;}
span.EmailStyle22
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.EmailStyle23
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body bgcolor=white lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='color:#1F497D'>Ive tried to patch the file like you said ….<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>But I got this following output:<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Patch: **** Only garbage was found in the patch input?<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Whats that mean?<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><p class=MsoNormal><span style='font-family:Induction;color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Monotype Corsiva";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Monotype Corsiva";color:#1F497D'> Best Regards<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><img width=107 height=53 id="_x0000_i1026" src="cid:image001.jpg@01CBC457.041EB030" alt="Description: signature (Custom)"><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Monotype Corsiva";color:#1F497D'>Indra Suryatama<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Monotype Corsiva";color:#1F497D'>Phone: <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Monotype Corsiva";color:#1F497D'>+6285742865348<o:p></o:p></span></p></div><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'> ubuntu-cloud-bounces@lists.ubuntu.com [mailto:ubuntu-cloud-bounces@lists.ubuntu.com] <b>On Behalf Of </b>Indra Suryatama<br><b>Sent:</b> Saturday, January 29, 2011 12:45 AM<br><b>To:</b> 'Dave Walker'; ubuntu-cloud@lists.ubuntu.com<br><b>Subject:</b> Re: [ubuntu-cloud] hack on /usr/share/eucalyptus/gen_kvm_libvirt_xml<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='color:#1F497D'>How about line starting with “@”,<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>I’ve tried to remove the line with “-“ and adding line with “+” so her it goes<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> our $use_ramdisk = 0;</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> </span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> # deal with command-line parameters</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> </span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> GetOptions('ramdisk' => sub { $use_ramdisk = 0; },</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> 'ephemeral' => sub { }, # option ignored</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> ) or exit (1);</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> <name>NAME</name></span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> <os></span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> <type>hvm</type></span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> </span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> EOF</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> </span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> if ( $use_ramdisk ) {</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> </span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> }</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> </span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> print <<EOF;</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> </os></span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> <features></span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> <acpi/></span><o:p></o:p></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><p class=MsoNormal><span style='color:#1F497D'>But I still can’t ping my windows instance or RDP my windows instance… what should I do?<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>Anyway I’ll try to patch my gen_kvm_libvirt_xml with<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>$ sudo patch -p0 /usr/share/eucalyptus/gen_kvm_libvirt_xml < that_file_you_have.txt<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='color:#1F497D'>And I’ll keep informing the result…<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Monotype Corsiva";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Monotype Corsiva";color:#1F497D'> Best Regards<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><img width=107 height=53 id="Picture_x0020_1" src="cid:image001.jpg@01CBC457.041EB030" alt="Description: signature (Custom)"><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Monotype Corsiva";color:#1F497D'>Indra Suryatama<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Monotype Corsiva";color:#1F497D'>Phone: <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Monotype Corsiva";color:#1F497D'>+6285742865348<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Monotype Corsiva";color:#1F497D'>+6281325610080<o:p></o:p></span></p><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p></div><p class=MsoNormal><span style='color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext'> ubuntu-cloud-bounces@lists.ubuntu.com [mailto:ubuntu-cloud-bounces@lists.ubuntu.com] <b>On Behalf Of </b>Dave Walker<br><b>Sent:</b> Friday, January 28, 2011 8:19 PM<br><b>To:</b> ubuntu-cloud@lists.ubuntu.com<br><b>Subject:</b> Re: [ubuntu-cloud] hack on /usr/share/eucalyptus/gen_kvm_libvirt_xml<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>On 27/01/11 09:09, Indra Suryatama wrote: <o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>Hi, I need your help guys….<o:p></o:p></p><p class=MsoNormal>Sorry for my poor english<o:p></o:p></p><p class=MsoNormal>Many resources said that when we run on UEC 10.04,to run windows instances we should change the file on<o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:CMR10'>/usr/share/eucalyptus/gen_kvm_libvirt_xml</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:CMR10'> </span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:CMR10'>Is there any complete</span> file (gen_kvm_libvirt_xml)? <o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal>On my resources said that I must edit into:<o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> --- /usr/share/eucalyptus/gen_kvm_libvirt_xml</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> +++ gen_kvm_libvirt_xml.modified</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> @@ -75,7 +75,7 @@</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> our $use_ramdisk = 0;</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> </span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> # deal with command-line parameters</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> -GetOptions('ramdisk' => sub { $use_ramdisk = 1; },</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> +GetOptions('ramdisk' => sub { $use_ramdisk = 0; },</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> 'ephemeral' => sub { }, # option ignored</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> ) or exit (1);</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> </span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> @@ -84,7 +84,6 @@</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> <name>NAME</name></span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> <os></span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> <type>hvm</type></span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> - <kernel>BASEPATH/kernel</kernel></span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> EOF</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> </span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> if ( $use_ramdisk ) {</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> @@ -92,7 +91,6 @@</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> }</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> </span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> print <<EOF;</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> - <cmdline>root=/dev/sda1 console=ttyS0</cmdline></span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> </os></span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> <features></span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'> <acpi/></span><o:p></o:p></p><p class=MsoNormal><span style='font-family:"Times New Roman","serif"'> </span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:CMR10'>But I don’t think this is a complete gen_kvm_libvirt_xml file.</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt;font-family:CMR10'>Your help will be appreciated</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Monotype Corsiva"'> </span><o:p></o:p></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Monotype Corsiva"'> Best Regards</span><o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Monotype Corsiva"'>Indra Suryatama</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Monotype Corsiva"'>Phone: </span><o:p></o:p></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Monotype Corsiva"'>+6285742865348</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Monotype Corsiva"'>+6281325610080</span><o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal> <o:p></o:p></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman","serif"'>The snippet you have is a patch...<br>try:<br>$ cp /usr/share/eucalyptus/gen_kvm_libvirt_xml /usr/share/eucalyptus/gen_kvm_libvirt_xml.backup<br>$ sudo patch -p0 /usr/share/eucalyptus/gen_kvm_libvirt_xml < that_file_you_have.txt<br><br>Alternatively, manually edit the file - removing the lines starting "-", and adding the lines that start "+" (or edit where necessary to make it match).<br><br>Hope this helps.<br><br>Kind Regards,<br>Dave Walker<o:p></o:p></span></p></div></body></html>