mirror of
https://github.com/churchers/vm-bhyve.git
synced 2025-12-11 17:30:23 +01:00
Merge pull request #76 from oodgaard/adding-custom-disks
Added a how to for custom sparse zvol.
This commit is contained in:
18
README.md
Normal file → Executable file
18
README.md
Normal file → Executable file
@@ -225,6 +225,24 @@ a full shutdown and restart of the guest
|
||||
See the man page for a full description of all available commands.
|
||||
|
||||
# man vm
|
||||
|
||||
## Adding custom disks
|
||||
|
||||
Scenario: If you have a vm on one zpool and would like to add a new virtual disk to it that resides on a different zpool.
|
||||
|
||||
Manually create a sparse-zvol (in this case 50G in size).
|
||||
|
||||
# zfs create -sV 50G -o volmode=dev "zpool2/vm/yourvm/disk1"
|
||||
|
||||
Add it to your vm config file.
|
||||
|
||||
# vm configure yourvm
|
||||
|
||||
disk1_name="/dev/zvol/zpool2/vm/yourvm/disk1"
|
||||
disk1_type="virtio-blk"
|
||||
disk1_dev="custom"
|
||||
|
||||
Restart your vm.
|
||||
|
||||
## Windows Support
|
||||
|
||||
|
||||
Reference in New Issue
Block a user