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
-- 
Ubuntu-cloud mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-cloud

Reply via email to