The documentation for this is somewhat scattered around the net; so, since I had to do this today, I thought I’d share it for others.
Create the disks in the Virtual Infrastructure Client
- Right click on the guest, click “Edit Settings…”
- Under the “Hardware” tab, click “Add”
- For the device type, select “Hard Disk”, click “Next”, and “Next” again
- Specify the size of your disk, optionally enable Thin Provisioning, and click “Next”, “Next”, “Finish”, “Ok”
Re-scan the scsi bus for new hardware
- cat /proc/partitions
- Note the list of devices
- sudo apt-get install scsitools
- sudo rescan-scsi-bus.sh
- cat /proc/partitions
- See what devices got added
Partition and format your disks
- sudo fdisk /dev/<newdevice>
- sudo mkfs -t ext3 /dev/<newdevice><partitionnumber>
Add the devices to /dev/disk/by-uuid/
- sudo partprobe
- sudo blkid /dev/<newdevice><partitionnumber>
- Note the UUID
Add the new mount to /etc/fstab, and mount the filesystem
- vi /etc/fstab
- mount -a