<packet xmlns:ns2="http://www.swsoft.com/webservices/vzp/4.0.0/vzptypes" xmlns:ns1="http://www.swsoft.com/webservices/vzl/4.0.0/types" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" timeout_limit="2147483647" uid="" priority="0" time="2013-12-31T10:54:04+0000" type="2" id="nl5vvqfms1aaagjucougts6hssejaaaa" version="4.5.0" log="on">
    <target>vzpsample_manager</target>
    <dst>
        <host><?php echo $nodeID; ?></host>
    </dst>
    <data>
        <vzpsample_manager>
            <set>
                <id><?php echo $templateID; ?></id>
                <sample>
                    <virtual_config>
                        <device_list>
                            <?php foreach($hddList as $disk): ?>
                                <device xsi:type="ns2:vm_hard_disk_device">
                                    <is_bootable/>
                                    <is_boot_in_use/>
                                    <boot_sequence_index>0</boot_sequence_index>
                                    <enabled>1</enabled>
                                    <connected>1</connected>
                                    <emulation_type>1</emulation_type>
                                    <sys_name><?php echo $disk['sys_name']; ?></sys_name>
                                    <interface_type><?php echo ($disk['interface_type'])?$disk['interface_type']:0; ?></interface_type>
                                    <stack_index>0</stack_index>
                                    <adapter_type></adapter_type>
                                    <size><?php echo $disk['size']; ?></size>
                                    <splitted></splitted>
                                    <disk_type>1</disk_type>
                                    <resize_fs/>
                                </device>
                            <?php endforeach; ?>
                        </device_list>
                    </virtual_config>
                </sample>
            </set>
        </vzpsample_manager>
    </data>
</packet>
