Created
December 22, 2015 16:29
-
-
Save p7cq/65564519fc337fc547da to your computer and use it in GitHub Desktop.
SmartOS - Add a disk to an existing VM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"add_disks": [ | |
{ | |
"media": "disk", | |
"model": "virtio", | |
"nocreate": true, | |
"boot": false, | |
"path": "/dev/zvol/rdsk/tank0/s1node1", | |
"size": 20480 | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Stop VM:
# vmadm stop 1c46e62c-2b65-472d-a0d9-522de950d643
Create ZFS volume:
# zfs create -V 20G tank0/s1node1
Update VM:
# vmadm update 1c46e62c-2b65-472d-a0d9-522de950d643 -f kvm-add-disk.json