~ntt-pf-lab/nova/monkey_patch_notification

« back to all changes in this revision

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

  • Committer: Jesse Andrews
  • Date: 2010-05-28 06:05:26 UTC
  • Revision ID: git-v1:bf6e6e718cdc7488e2da87b21e258ccc065fe499
initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!-- 
 
2
# Copyright [2010] [Anso Labs, LLC]
 
3
 
4
#    Licensed under the Apache License, Version 2.0 (the "License");
 
5
#    you may not use this file except in compliance with the License.
 
6
#    You may obtain a copy of the License at
 
7
 
8
#        http://www.apache.org/licenses/LICENSE-2.0
 
9
 
10
#    Unless required by applicable law or agreed to in writing, software
 
11
#    distributed under the License is distributed on an "AS IS" BASIS,
 
12
#    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 
13
#    See the License for the specific language governing permissions and
 
14
#    limitations under the License.
 
15
 -->
 
16
<domain type='kvm'>
 
17
    <name>%(name)s</name>
 
18
    <os>
 
19
    <type>hvm</type>
 
20
        <kernel>%(basepath)s/kernel</kernel>
 
21
        <initrd>%(basepath)s/ramdisk</initrd>
 
22
        <cmdline>root=/dev/vda1 console=ttyS0</cmdline>
 
23
    </os>
 
24
    <features>
 
25
        <acpi/>
 
26
    </features>
 
27
    <memory>%(memory_kb)s</memory>
 
28
    <vcpu>%(vcpus)s</vcpu>
 
29
    <devices>
 
30
        <emulator>/usr/bin/kvm</emulator>
 
31
        <disk type='file'>
 
32
            <source file='%(basepath)s/disk'/>
 
33
            <target dev='vda' bus='virtio'/>
 
34
        </disk>
 
35
        <interface type='bridge'>
 
36
            <source bridge='%(bridge_name)s'/>
 
37
            <mac address='%(mac_address)s'/>
 
38
            <!--   <model type='virtio'/>  CANT RUN virtio network right now -->
 
39
        </interface>
 
40
        <serial type="file">
 
41
            <source path='%(basepath)s/console.log'/>
 
42
            <target port='1'/>
 
43
        </serial>
 
44
    </devices>
 
45
    <nova>%(nova)s</nova>
 
46
</domain>