diff options
Diffstat (limited to 'recipes-example/virt-example/files/example-guest-x86.xml')
-rw-r--r-- | recipes-example/virt-example/files/example-guest-x86.xml | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/recipes-example/virt-example/files/example-guest-x86.xml b/recipes-example/virt-example/files/example-guest-x86.xml new file mode 100644 index 0000000..a3d4f6a --- /dev/null +++ b/recipes-example/virt-example/files/example-guest-x86.xml | |||
@@ -0,0 +1,71 @@ | |||
1 | <!-- | ||
2 | Copyright (c) 2014 by Enea Software AB | ||
3 | All rights reserved. | ||
4 | |||
5 | Redistribution and use in source and binary forms, with or without | ||
6 | modification, are permitted provided that the following conditions are met: | ||
7 | * Redistributions of source code must retain the above copyright | ||
8 | notice, this list of conditions and the following disclaimer. | ||
9 | * Redistributions in binary form must reproduce the above copyright | ||
10 | notice, this list of conditions and the following disclaimer in the | ||
11 | documentation and/or other materials provided with the distribution. | ||
12 | * Neither the name of Enea Software AB nor the | ||
13 | names of its contributors may be used to endorse or promote products | ||
14 | derived from this software without specific prior written permission. | ||
15 | |||
16 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND | ||
17 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED | ||
18 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
19 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR | ||
20 | ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | ||
21 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; | ||
22 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | ||
23 | ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | ||
24 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
25 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
26 | --> | ||
27 | |||
28 | <domain type='kvm'> | ||
29 | <name>kvm-example-guest</name> | ||
30 | <memory unit='KiB'>2000000</memory> | ||
31 | <vcpu>2</vcpu> | ||
32 | <os> | ||
33 | <type arch='x86_64'>hvm</type> | ||
34 | </os> | ||
35 | <clock offset='utc'/> | ||
36 | <on_poweroff>destroy</on_poweroff> | ||
37 | <on_reboot>restart</on_reboot> | ||
38 | <on_crash>destroy</on_crash> | ||
39 | <devices> | ||
40 | <emulator>/usr/bin/qemu-system-x86_64</emulator> | ||
41 | <!-- Bootable cd-rom drive that will only be used | ||
42 | if pxe boot is unavailable. --> | ||
43 | <disk type='file' device='cdrom'> | ||
44 | <source file='/usr/share/virt-example/enea-image-kvm-example-guest.iso'/> | ||
45 | <target dev='hdb' bus='ide'/> | ||
46 | <boot order="2"/> | ||
47 | </disk> | ||
48 | <!-- Shared folder that is accessible from both guest and host --> | ||
49 | <filesystem type='mount' accessmode='passthrough'> | ||
50 | <source dir='/mnt/guest-example'/> | ||
51 | <target dir='guest-example-shared-folder'/> | ||
52 | </filesystem> | ||
53 | <!-- Network that we use to pxe boot, MAC address is assigned | ||
54 | a specific ip in the example network definition --> | ||
55 | <interface type='network'> | ||
56 | <mac address='98:99:99:99:99:90'/> | ||
57 | <model type='virtio'/> | ||
58 | <source network='virt-example-net'/> | ||
59 | <boot order="1"/> | ||
60 | </interface> | ||
61 | <serial type='pty'> | ||
62 | <target port='0'/> | ||
63 | </serial> | ||
64 | <console type='pty' > | ||
65 | <target type='serial' port='0'/> | ||
66 | </console> | ||
67 | <memballoon model='virtio'> | ||
68 | </memballoon> | ||
69 | </devices> | ||
70 | </domain> | ||
71 | |||