[ubuntu-cloud] hack on /usr/share/eucalyptus/gen_kvm_libvirt_xml

Indra Suryatama indra_suryatama at hotmail.com
Fri Feb 4 03:34:06 UTC 2011


Ive tried to patch the file like you said ..

But I got this following output:

 

Patch: **** Only garbage was found in the patch input?

Whats that mean?

 

 

 

    Best Regards

Description: signature (Custom)

Indra Suryatama

Phone:   

+6285742865348

 

From: ubuntu-cloud-bounces at lists.ubuntu.com
[mailto:ubuntu-cloud-bounces at lists.ubuntu.com] On Behalf Of Indra Suryatama
Sent: Saturday, January 29, 2011 12:45 AM
To: 'Dave Walker'; ubuntu-cloud at lists.ubuntu.com
Subject: Re: [ubuntu-cloud] hack on
/usr/share/eucalyptus/gen_kvm_libvirt_xml

 

How about line starting with "@",

I've tried to remove the line with "-" and adding line with "+" so her it
goes

 

        our $use_ramdisk = 0;

        

         # deal with command-line parameters

        

        GetOptions('ramdisk'        => sub { $use_ramdisk = 0; },

                    'ephemeral'      => sub { }, # option ignored

                           ) or exit (1);

        <name>NAME</name>

             <os>

             <type>hvm</type>

        

        EOF

        

         if ( $use_ramdisk ) {

        

        }

        

         print <<EOF;

                    </os>

             <features>

                 <acpi/>

 

But I still can't ping my windows instance or RDP my windows instance. what
should I do?

Anyway I'll try to patch my gen_kvm_libvirt_xml with

$ sudo patch -p0 /usr/share/eucalyptus/gen_kvm_libvirt_xml <
that_file_you_have.txt

 

And I'll keep informing the result.

 

    Best Regards

Description: signature (Custom)

Indra Suryatama

Phone:   

+6285742865348

+6281325610080

 

 

From: ubuntu-cloud-bounces at lists.ubuntu.com
[mailto:ubuntu-cloud-bounces at lists.ubuntu.com] On Behalf Of Dave Walker
Sent: Friday, January 28, 2011 8:19 PM
To: ubuntu-cloud at lists.ubuntu.com
Subject: Re: [ubuntu-cloud] hack on
/usr/share/eucalyptus/gen_kvm_libvirt_xml

 

On 27/01/11 09:09, Indra Suryatama wrote: 

 

Hi, I need your help guys..

Sorry for my poor english

Many resources said that when we run on UEC 10.04,to run windows instances
we should change the file on

/usr/share/eucalyptus/gen_kvm_libvirt_xml

 

Is there any complete file (gen_kvm_libvirt_xml)? 

 

On my resources said that I must edit into:

        --- /usr/share/eucalyptus/gen_kvm_libvirt_xml

        +++ gen_kvm_libvirt_xml.modified

        @@ -75,7 +75,7 @@

        our $use_ramdisk = 0;

        

         # deal with command-line parameters

        -GetOptions('ramdisk'        => sub { $use_ramdisk = 1; },

        +GetOptions('ramdisk'        => sub { $use_ramdisk = 0; },

                    'ephemeral'      => sub { }, # option ignored

                           ) or exit (1);

        

        @@ -84,7 +84,6 @@

             <name>NAME</name>

             <os>

             <type>hvm</type>

        -        <kernel>BASEPATH/kernel</kernel>

        EOF

        

         if ( $use_ramdisk ) {

        @@ -92,7 +91,6 @@

        }

        

         print <<EOF;

        -        <cmdline>root=/dev/sda1 console=ttyS0</cmdline>

             </os>

             <features>

                 <acpi/>

 

But I don't think this is a complete gen_kvm_libvirt_xml file.

Your help will be appreciated

 

    Best Regards

 

Indra Suryatama

Phone:   

+6285742865348

+6281325610080

 

 

The snippet you have is a patch...
try:
$ cp /usr/share/eucalyptus/gen_kvm_libvirt_xml
/usr/share/eucalyptus/gen_kvm_libvirt_xml.backup
$ sudo patch -p0 /usr/share/eucalyptus/gen_kvm_libvirt_xml <
that_file_you_have.txt

Alternatively, manually edit the file - removing the lines starting "-", and
adding the lines that start "+" (or edit where necessary to make it match).

Hope this helps.

Kind Regards,
Dave Walker

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-cloud/attachments/20110204/4603344a/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: application/octet-stream
Size: 1685 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/ubuntu-cloud/attachments/20110204/4603344a/attachment-0001.obj>


More information about the Ubuntu-cloud mailing list