~heber013/ubuntu-server-iso-testing/fixing-default-distro-error

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<!-- 
  Copyright (C) 2010, Canonical Ltd (http://www.canonical.com/)
 
  This file is part of ubuntu-server-iso-testing.
  
  ubuntu-server-iso-testing is free software: you can redistribute it 
  and/or modify it under the terms of the GNU General Public License 
  as published by the Free Software Foundation, either version 3 of 
  the License, or (at your option) any later version.
  
  ubuntu-server-iso-testing is distributed in the hope that it will 
  be useful, but WITHOUT ANY WARRANTY; without even the implied warranty 
  of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.
  
  You should have received a copy of the GNU General Public License
  along with ubuntu-server-iso-testing.  If not, see 
  <http://www.gnu.org/licenses/>.
-->  
<domain type='kvm'>
	<name>{{ name }}</name>
	<uuid>{{ uuid }}</uuid>
	<memory>450000</memory>
	<vcpu>1</vcpu>
	<features>
		<acpi/>
	</features>
  	<os>
		<type>hvm</type>
		<boot dev='hd' />
		<boot dev='network' />
	</os>
	<clock offset='utc'/>
	<on_poweroff>destroy</on_poweroff>
	<on_reboot>restart</on_reboot>
	<on_crash>destroy</on_crash>
	<devices>
{% for  disk in disks  %}
		<disk type='file' device='disk'>
      			<driver name='qemu' type='qcow2'/>
			<source file='{{ disk.source }}'/>
			<target dev='{{ disk.target }}' bus='{{ disk.bus }}'/>
		</disk>
{% endfor %}
        	<disk type='file' device='cdrom'>
			<source file='{{ iso_file }}'/>
			<target dev='hdc'/><readonly/>
		</disk>
		<interface type='network'>
		        <mac address='{{ mac }}'/>
      			<source network='iso-testing' />
			<model type='virtio'/>
       		</interface>
      		<graphics type='vnc' listen='0.0.0.0'/>
        <serial type="file">
            <source path="/tmp/{{ uuid }}.syslog.log"/>
            <target port="0"/>
        </serial>
        </devices>
</domain>