Changes

Workaround Attach Additional Disk to VM

43 bytes added, 11:14, 2 May 2014
/* Part I */
= Abstract =
It is currently not possible to attach additional virtual disks directly via the default webinterface.
What you do in principle:
* Update the VMs configuration data in the LDAP directory
* Manually reate create the virtual disk
* Regenerate the VM configuration on the node
== Part I ==
* In the vm-manager: Expand the VM entry for the VM you want to add an additional disk to and note the UUID below VM name ('''$VMUUID''')* In a shell: Use <code>uuidgen</code> and generate a new UUID ('''$DISKUUID''')
* Calculate the size of the new disk in bytes: <code>N * 1073741824</code> for N gigabyte ('''$DISKSIZE''')
* Open the URL http://YOURSTONEYCLOUD/phpldapadmin/ and login using <code>dc=Manager,...</code>
* Navigate to: <code>sstDisk=vda,ou=devices,sstVirtualMachine='''$VMUUID''',ou=virtual machines,ou=virtualization,ou=services,dc=fossstoney-cloud,dc=org</code> using the tree structure on the left
* Click on <code>Copy or move this entry</code> and choose <code>sstDisk=vdb,ou=devices,sstVirtualMachine='''$VMUUID''',ou=virtual machines,ou=virtualization,ou=services,dc=foss-cloud,dc=org</code> as <code>Destination DN</code>
* Replace:
* Run: <code>chown root:vm-storage /var/virtualization/vm-*/'''$POOLUUID'''/'''$DISKUUID'''.qcow2</code>
* Run: <code>chmod g+rw /var/virtualization/vm-*/'''$POOLUUID'''/'''$DISKUUID'''.qcow2</code>
 == Part III == * Switch to Open the stoney cloud webinterface again and shutdown (vm-manager)* Shutdown the VM (if not already done)
* Click first on the <code>edit VM</code> icon and then <code>save</code> (without changing anything)
* Start the VM again
[[Category:Workarounds]]
Bureaucrat, administrator
425
edits