diff options
author | wangyaoguang <sunshine.wang@huawei.com> | 2016-04-19 08:49:09 +0800 |
---|---|---|
committer | wangyaoguang <sunshine.wang@huawei.com> | 2016-04-19 09:02:07 +0800 |
commit | 177def06a663796302a9b50abe931ca56b64d413 (patch) | |
tree | b41256b5d203237737917a189d24716865891760 /utils/dev_env/deploy/libvirt_template.xml | |
parent | e2b73bf29779412d3b0ceb7742e6a4bdcecb7f74 (diff) |
Add a common tool for creating libvirt vms w/o puppet
1.It requires two argumets, input config and output folder.
2.It can bring libvirt vms with puppet and trusted ssh keys.
3.It can also bring normal libvirt vms.
JIRA: BOTTLENECK-57
Change-Id: I47fd61c328b45d03b4d0daf25fd9e4fe79303f88
Signed-off-by: wangyaoguang <sunshine.wang@huawei.com>
Diffstat (limited to 'utils/dev_env/deploy/libvirt_template.xml')
-rw-r--r-- | utils/dev_env/deploy/libvirt_template.xml | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/utils/dev_env/deploy/libvirt_template.xml b/utils/dev_env/deploy/libvirt_template.xml new file mode 100644 index 00000000..eddeff00 --- /dev/null +++ b/utils/dev_env/deploy/libvirt_template.xml @@ -0,0 +1,41 @@ +<domain type='kvm'> + <name>REPLACE_NAME</name> + <memory unit='MiB'>REPLACE_MEM</memory> + <currentMemory unit='MiB'>REPLACE_MEM</currentMemory> + <vcpu placement='static'>REPLACE_CPU</vcpu> + <os> + <type arch='x86_64'>hvm</type> + <boot dev='hd'/> + </os> + <features> + <acpi/><apic/><pae/> + </features> + <clock offset="utc"/> + <on_poweroff>destroy</on_poweroff> + <on_reboot>restart</on_reboot> + <on_crash>restart</on_crash> + <devices> + <disk type='file' device='disk'> + <driver name='qemu' type='qcow2'/> + <source file='REPLACE_IMAGE'/> + <target dev='vda' bus='virtio'/> + </disk> + <disk type='file' device='cdrom'> + <driver name='qemu'/> + <source file='REPLACE_SEED_IMAGE'/> + <target dev='hdb'/> + <readonly/> + </disk> + <interface type='network'> + <source network='default'/> + <mac address='REPLACE_MAC_ADDR'/> + <model type='virtio'/> + </interface> + <input type='tablet' bus='usb'/> + <graphics type='vnc' port='-1' autoport='yes' listen='0.0.0.0'/> + <console type='pty'/> + <video> + <model type='cirrus'/> + </video> + </devices> +</domain> |