diff options
author | QiLiang <liangqi1@huawei.com> | 2015-12-17 14:09:28 +0000 |
---|---|---|
committer | QiLiang <liangqi1@huawei.com> | 2015-12-17 14:32:21 +0000 |
commit | 459ddd6e4bcd28b37b675eaba01501e17e50de39 (patch) | |
tree | fc4b9b22d3691b97ca0bf88c15ec6f9f562e2d63 /utils/rubbos_dev_env_setup/libvirt_template.xml | |
parent | 833d16b53e59967db779b0eba37d4f7481cb94e9 (diff) |
Add scripts to setup development env
Usage:
apt-get install -y genisoimage \
libvirt-bin \
qemu-kvm
service libvirt-bin restart
cd bottlenecks/utils/rubbos_dev_env_setup
./deploy.sh
The deploy.sh will create 9 vms (ip from 192.168.122.11 ~ 19):
control,httpd,mysql,tomcat,client1,client2,client3,client4,benchmark
TODO: add scripts to build initial disk.img
JIRA:BOTTLENECK-24
Change-Id: I99b5bcae8b795cee80e8688aae18b69e46249548
Signed-off-by: QiLiang <liangqi1@huawei.com>
Diffstat (limited to 'utils/rubbos_dev_env_setup/libvirt_template.xml')
-rw-r--r-- | utils/rubbos_dev_env_setup/libvirt_template.xml | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/utils/rubbos_dev_env_setup/libvirt_template.xml b/utils/rubbos_dev_env_setup/libvirt_template.xml new file mode 100644 index 00000000..eddeff00 --- /dev/null +++ b/utils/rubbos_dev_env_setup/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> |