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

Indra Suryatama indra_suryatama at hotmail.com
Thu Jan 27 09:09:06 UTC 2011


 

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

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-cloud/attachments/20110127/dbb40db2/attachment.html>


More information about the Ubuntu-cloud mailing list