~justin-fathomdb/nova/raw-disk-images

« back to all changes in this revision

Viewing changes to nova/compute/libvirt.xml.template

  • Committer: Justin Santa Barbara
  • Date: 2010-07-20 07:32:42 UTC
  • Revision ID: justin@fathomdb.com-20100720073242-b1rsek29c5l0phul
Able to boot without kernel or ramdisk.  libvirt.xml.template is now a Cheetah template

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<domain type='kvm'>
2
 
    <name>%(name)s</name>
 
2
    <name>${name}</name>
3
3
    <os>
4
 
    <type>hvm</type>
5
 
        <kernel>%(basepath)s/kernel</kernel>
6
 
        <initrd>%(basepath)s/ramdisk</initrd>
 
4
        <type>hvm</type>
 
5
#if $getVar('kernel', None)
 
6
        <kernel>${kernel}</kernel>
 
7
    #if $getVar('ramdisk', None)
 
8
        <initrd>${ramdisk}</initrd>
 
9
    #end if
7
10
        <cmdline>root=/dev/vda1 console=ttyS0</cmdline>
 
11
#end if
8
12
    </os>
9
13
    <features>
10
14
        <acpi/>
11
15
    </features>
12
 
    <memory>%(memory_kb)s</memory>
13
 
    <vcpu>%(vcpus)s</vcpu>
 
16
    <memory>${memory_kb}</memory>
 
17
    <vcpu>${vcpus}</vcpu>
14
18
    <devices>
15
19
        <emulator>/usr/bin/kvm</emulator>
16
20
        <disk type='file'>
17
 
            <source file='%(basepath)s/disk'/>
 
21
            <source file='${disk}'/>
18
22
            <target dev='vda' bus='virtio'/>
19
23
        </disk>
20
24
        <interface type='bridge'>
21
 
            <source bridge='%(bridge_name)s'/>
22
 
            <mac address='%(mac_address)s'/>
 
25
            <source bridge='${bridge_name}'/>
 
26
            <mac address='${mac_address}'/>
23
27
            <!--   <model type='virtio'/>  CANT RUN virtio network right now -->
24
28
        </interface>
25
29
        <serial type="file">
26
 
            <source path='%(basepath)s/console.log'/>
 
30
            <source path='${basepath}/console.log'/>
27
31
            <target port='1'/>
28
32
        </serial>
29
33
    </devices>
30
 
    <nova>%(nova)s</nova>
 
34
    <nova>${nova}</nova>
31
35
</domain>