diff options
author | zhouya <zhou.ya@zte.com.cn> | 2017-07-31 16:05:41 +0800 |
---|---|---|
committer | zhouya <zhou.ya@zte.com.cn> | 2017-08-01 15:35:43 +0800 |
commit | 48ec887dcf6d7e37d2bebece3bda357a7752dec2 (patch) | |
tree | b3f8277a17307535b99c7ddc94ed51a46099159b /templates/virtual_environment/vms/controller.xml | |
parent | 49829982ba955fea91ad56cc05fd526eab106f14 (diff) |
use template to replace duplicate xml file
Change-Id: I9764612171ef3bf2cdfc652420a2b162fcbfab43
Signed-off-by: zhouya <zhou.ya@zte.com.cn>
Diffstat (limited to 'templates/virtual_environment/vms/controller.xml')
-rw-r--r-- | templates/virtual_environment/vms/controller.xml | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/templates/virtual_environment/vms/controller.xml b/templates/virtual_environment/vms/controller.xml index 72d255e6..0b605104 100644 --- a/templates/virtual_environment/vms/controller.xml +++ b/templates/virtual_environment/vms/controller.xml @@ -1,5 +1,5 @@ <domain type='kvm' id='4'> - <name>controller</name> + <name>nodename</name> <memory unit='KiB'>12582912</memory> <currentMemory unit='KiB'>12582912</currentMemory> <vcpu placement='static'>4</vcpu> @@ -32,12 +32,20 @@ <emulator>/usr/libexec/qemu-kvm</emulator> <disk type='file' device='disk'> <driver name='qemu' type='qcow2'/> - <source file='/home/qemu/vms/controller.qcow2'/> + <source file='/home/qemu/vms/nodename.qcow2'/> <backingStore/> <target dev='hda' bus='ide'/> <alias name='ide0-0-0'/> <address type='drive' controller='0' bus='0' target='0' unit='0'/> </disk> + <disk type='file' device='disk'> + <driver name='qemu' type='qcow2'/> + <source file='/home/qemu/vms/nodename_data.qcow2'/> + <backingStore/> + <target dev='hdb' bus='ide'/> + <alias name='ide0-0-1'/> + <address type='drive' controller='0' bus='0' target='0' unit='1'/> + </disk> <controller type='usb' index='0' model='ich9-ehci1'> <alias name='usb'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x7'/> |