In this section we show you how you can start using the new disk.
- On the UI, from the menu at the left pane select the Virtual Machines page under Virtual Resources. Create a new VM by selecting the Template you created in the previous step.
- Once the VM is in RUNNING state, ssh as root to the machine using your SSH-key.
- Run fdisk -l and see that your new datablock is there (Disk /dev/vdb: 10.5 GB).
- Mount the datadisk in the VM:
sudo mkdir /data
sudo mkfs -t xfs /dev/vdb
sudo mount /dev/vdb /data
sudo chmod 755 /etc/rc.local
sudo sh -c "echo '/dev/vdb /data xfs defaults 0 0' >> /etc/fstab"
NOTE:
The first two commands only need to be run once (and destroy everything on your disk!). The mount command (third one) only needs to be run once, the final line will do the mounting each time the VM is started.