bhyve
Добавлено: 12 окт 2024, 23:29
vm init
version
init
set [setting=value] [...]
get [all|setting] [...]
switch list
switch info [name] [...]
switch create [-t type] [-i interface] [-n vlan-id] [-m mtu] [-a address/prefix-len] [-b bridge] [-p] <name>
switch vlan <name> <vlan|0>
switch nat <name> <on|off>
switch private <name> <on|off>
switch add <name> <interface>
switch remove <name> <interface>
switch destroy <name>
datastore list
datastore add <name> <spec>
datastore remove <name>
datastore add <name> <path>
list
info [name] [...]
create [-d datastore] [-t template] [-s size] [-m memory] [-c vCPUs] <name>
install [-fi] <name> <iso>
start [-fi] <name> [...]
stop <name> [...]
restart <name>
console <name> [com1|com2]
configure <name>
rename <name> <new-name>
add [-d device] [-t type] [-s size|switch] <name>
startall
stopall
reset [-f] <name>
poweroff [-f] <name>
destroy [-f] <name>
passthru
clone <name[@snapshot]> <new-name>
snapshot [-f] <name[@snapshot]>
rollback [-r] <name@snapshot>
iso [url]
img [url]
image list
image create [-d description] [-u] <name>
image destroy <uuid>
image provision [-d datastore] <uuid> <newname>
# ll /dev/vmm
total 0
crw------- 1 root wheel 0xbc Jul 29 15:17 test
crw------- 1 root wheel 0xc2 Jul 29 15:53 vhp3k-01
bhyvectl --vm=vhp3k-01 --destroy
ll /dev/vmm
total 0
crw------- 1 root wheel 0xbc Jul 29 15:17 test
vm start vhp3k-01
Starting vhp3k-01
* found guest in /zroot/vm/vhp3k-01
* booting...
version
init
set [setting=value] [...]
get [all|setting] [...]
switch list
switch info [name] [...]
switch create [-t type] [-i interface] [-n vlan-id] [-m mtu] [-a address/prefix-len] [-b bridge] [-p] <name>
switch vlan <name> <vlan|0>
switch nat <name> <on|off>
switch private <name> <on|off>
switch add <name> <interface>
switch remove <name> <interface>
switch destroy <name>
datastore list
datastore add <name> <spec>
datastore remove <name>
datastore add <name> <path>
list
info [name] [...]
create [-d datastore] [-t template] [-s size] [-m memory] [-c vCPUs] <name>
install [-fi] <name> <iso>
start [-fi] <name> [...]
stop <name> [...]
restart <name>
console <name> [com1|com2]
configure <name>
rename <name> <new-name>
add [-d device] [-t type] [-s size|switch] <name>
startall
stopall
reset [-f] <name>
poweroff [-f] <name>
destroy [-f] <name>
passthru
clone <name[@snapshot]> <new-name>
snapshot [-f] <name[@snapshot]>
rollback [-r] <name@snapshot>
iso [url]
img [url]
image list
image create [-d description] [-u] <name>
image destroy <uuid>
image provision [-d datastore] <uuid> <newname>
# ll /dev/vmm
total 0
crw------- 1 root wheel 0xbc Jul 29 15:17 test
crw------- 1 root wheel 0xc2 Jul 29 15:53 vhp3k-01
bhyvectl --vm=vhp3k-01 --destroy
ll /dev/vmm
total 0
crw------- 1 root wheel 0xbc Jul 29 15:17 test
vm start vhp3k-01
Starting vhp3k-01
* found guest in /zroot/vm/vhp3k-01
* booting...