Commit Graph

428 Commits

Author SHA1 Message Date
Matt Churchyard
ab73130132 Move master to next version 2018-06-26 09:56:51 +00:00
Matt Churchyard
6ea3ad8af9 Fix #225 - no command specified 2018-06-25 13:24:19 +00:00
Matt Churchyard
4169a47875 Add support for vm destroy guest@snap. Fixes #126 2018-06-25 12:20:47 +00:00
Matt Churchyard
058ec6da67 Remove nat setting from info as it's meaningless 2018-06-25 08:36:08 +00:00
Matt Churchyard
728fb8d603 Fix vlan device naming and check all calls to switch::standard::id
return id is always set so we need to check return status
2018-06-25 08:21:22 +00:00
Matt Churchyard
c67fc3758e Fix #223 - switch::standard::id failure
Test causes an error return value on successful ifconfig
2018-06-25 08:01:58 +00:00
Matt Churchyard
ec61996eac Remove the NAT commands other than the core command with a warning message
It's actually far easier and less error-prone to create a standard or manual
switch, then configure whichever NAT service the user wants to use manually.
2018-06-22 13:21:51 +00:00
Matt Churchyard
7db395ff76 Exiting early on a bad command broke option handling 2018-06-22 12:13:49 +00:00
Matt Churchyard
056b30d85e Rework switches to use the switch name as the actual bridge name
Makes identifying the correct interface easier and looks nicer in ifconfig
2018-06-22 11:54:20 +00:00
Matt Churchyard
1edf7155fa Don't output an entire screen of usage info for an invalid command 2018-06-22 08:33:43 +00:00
Matt Churchyard
769d030f26 remove defunct nmdm code 2018-06-22 08:00:21 +00:00
Matt Churchyard
8d11d35dce Add support for named nmdm consoles, and partial commands
It's now possible to run commands such as "vm l" or "vm conf <guest>"
Also named console ports allows us to not bother trying to find the next nmdm number
2018-06-22 07:41:53 +00:00
Matt Churchyard
6b74268c7b Simply code to check existance of custom bridge interface 2018-06-21 14:41:02 +00:00
Matt Churchyard
f720c67791 switch::vale::create broken - switch name is not passed as an argument 2018-06-21 13:40:49 +00:00
Matt Churchyard
9a908b95fc Add bhyveload_loader and also vtcon list to "vm info" 2018-06-21 12:22:35 +00:00
Matt Churchyard
ea58aaf6d7 Rewrite virtio-console support
Guest "virt_consoleX" option now supports both numbered & named ports.
Up to 16 can be added to a guest.
2018-06-21 11:12:20 +00:00
Matt Churchyard
1dc6135cc9 Fix #147. Exit with message if grub-bhyve requested but not found 2018-06-20 12:30:41 +00:00
Matt Churchyard
cb600bcc22 Add listing to guest info for issue #97
Think adding this to `vm list` adds too much complexity when the zfs commands
do a much better job. Having this in info output as commented is a nice idea though.
2018-06-20 12:14:40 +00:00
Matt Churchyard
b4c24b33e8 Finally address #110
Use the -f option to force commands such as reset/destroy/poweroff.
Unfortunately this same option is used for foreground mode when running a vm,
but -f ties up with the force option for many other commands.
2018-06-20 11:59:09 +00:00
Matt Churchyard
9f76d63817 Address #211 - default.conf should be availble by default
This allows basic guests to be created without getting an error about a missing
template, or requiring the user to manually create/copy it.
2018-06-20 09:39:35 +00:00
Matt Churchyard
6a75c20ca3 Try to address #221 - clone not changing mac address
Create new "generalise" function specifically to remove any fixed configuration
from a guest. This can then be used in any situation where a guest may be copied.
Tested with clone and both uuid & mac are removed. (Note this just removes settings, based
on the fact that these will be generated on next boot)
2018-06-20 09:18:00 +00:00
Matt Churchyard
2c77228708 Add ability to configure standard switch address 2018-06-18 08:22:17 +00:00
Matt Churchyard
805c074237 Minor fixes 2018-04-19 13:36:36 +00:00
Matt Churchyard
b71a71642e Merge pull request #200 from handcode/master
fixed typo in var name
2018-04-19 14:56:24 +01:00
nihr43
a36728f4fe check for amdvi support 2018-03-20 22:08:17 -05:00
nihr43
ad6bde19df check for amdvi support 2018-03-20 22:03:25 -05:00
Jens Giessmann
f420282d1c fixed typo in var name 2018-02-13 21:21:00 +01:00
Matt Churchyard
a85ef7c4e9 Make sure owner the owner can read disk image files 2018-02-09 09:52:23 +00:00
Matt Churchyard
8746a656c2 Add -S wired memory option to bhyveload if specified in custom options 2018-02-09 09:48:57 +00:00
Matt Churchyard
fa5e02cede Merge pull request #166 from wheelcomplex/master
Bring tap device up after added to bridge
2018-02-09 09:17:13 +00:00
Mark Johnston
4c931a7e01 Fix exit status for many vm commands
The pattern "[ $? -ne 0 ] && util::err ..." is problematic since it
leaves an exit status of 1 if the test fails, which is the non-error
case. So various commands (e.g., vm datastore add) return status 1 even
when they succeed if this pattern appears as the last line of a command
implementation.

Fix this by mechanically converting this pattern to
"[ $? -eq 0 ] || util:err ...".
2018-02-06 17:39:30 -05:00
Matt Churchyard
ae8c20b30b Merge pull request #172 from olgeni/quoting
Fix variable quoting in zfs::init.
2017-07-21 16:32:41 +01:00
olgeni
f1dfa4183a Fix variable quoting in zfs::init. 2017-07-02 21:59:49 +02:00
Matt Churchyard
ab2229fa20 Add bhyve_options configuration option 2017-06-08 11:13:13 +01:00
Matt Churchyard
f4e4585424 Allow user to specific the -w bhyve option (ignore_bad_msr=yes) 2017-06-07 13:12:42 +01:00
David NewHamlet
5914b703e8 Bring tap device up after added to bridge
In some systems the sysctl entry net.link.tap.up_on_open is set to 0,
the tap device should be bringed up manual.
2017-05-28 10:55:35 +12:00
Matt Churchyard
6de318504c Ignore error if there are no console .sock files 2017-04-18 13:59:14 +01:00
Matt Churchyard
8384a1b813 Merge fixes from 1.1-stable 2017-03-10 10:55:32 +00:00
Matt Churchyard
22512d7dc1 Declare all local variables
Doesn't actually affect anything, more for correctness and documentation than anything
2017-01-17 14:47:27 +00:00
matias pizarro
57e9005e39 Make vm-bhyve compatible with verbose boot dmesg output 2017-01-15 21:22:11 +01:00
Matt Churchyard
40f1b9ebe1 Add ability to configure private mode on existing switches
Note that we don't bother reconfiguring running guests, so changing
the setting only affects guests started from cold-boot afterwards.
2016-11-18 09:48:19 +00:00
Matt Churchyard
d1515cd04f Add support for switch address/mtu/private
New options to 'vm switch create' to allow an ip and/or mtu to
be assigned to standard/vxlan switches. Also standard,vxlan &
custom switches can be set as private so no guest interfaces can
communicate.
2016-11-16 20:38:23 +00:00
Matt Churchyard
ac2cc9265c Add support for virtio_console devices 2016-11-11 15:50:13 +00:00
Matt Churchyard
d988e52d2d Rework switch support while getting some SDN on
We already had 3 types of switch (although you could only test vale manually),
with fairly ugly code to handle the differences. Now that a fourth has been added,
split each type into their own 'module'. This adds test vxlan support which can
create arbitrary virtual L2 networks by tunneling traffic over UDP L3.
2016-11-10 11:16:43 +00:00
Matt Churchyard
af3f1a5216 Skip cpu checks if no dmesg.boot log
I don't want to fully rely on these checks as it could stop us from running
on a system that actually supports bhyve. If the system doesn't support bhyve,
and doesn't have dmesg.boot, then bhyve will just fail to run.
2016-10-19 09:07:44 +01:00
Matt Churchyard
11329ec421 Allow vm names up to 32 characters 2016-10-18 16:00:06 +01:00
olgeni
a1a4caa1fa Use column to reduce width of 'vm image list' output 2016-09-09 15:37:48 +02:00
Matt Churchyard
b77b7f80b6 Use column to reduce width of 'vm list' output 2016-08-30 14:36:25 +01:00
Matt Churchyard
7afd26a8b2 Reset member type for each interface 2016-08-24 09:54:46 +01:00
Matt Churchyard
cba3a71782 Slight tidy up of network_span 2016-08-23 09:03:09 +01:00