Commit Graph

21 Commits

Author SHA1 Message Date
Mateusz kwiatkowski
e1a0c5aaf0 Improve style 2018-10-17 12:05:15 +02:00
Mateusz kwiatkowski
3ffbb52d5c Initial support for cloud images
Ref. https://github.com/churchers/vm-bhyve/issues/256
2018-10-17 07:47:19 +02:00
Matt Churchyard
0cff09e2d8 may change this to "media" datastores at some point as it can be image files as well 2018-10-04 14:58:02 +01:00
Matt Churchyard
6b4b97584e Tidy some functions up and limit switch names to 12 chars 2018-06-27 08:34:12 +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
ac2cc9265c Add support for virtio_console devices 2016-11-11 15:50:13 +00:00
Matt Churchyard
b1d4a73b33 Add datastore option to vm recv 2016-08-03 18:48:27 +01:00
Matt Churchyard
42289f5ca8 Add "media" datastores and extend iso handling
If you have a directory (or network mount) containing iso files, you
can configure vm-bhyve to look there by adding it as
a media datastore. (vm datastore iso my-media /path/to/iso/dir).
Also we now look in the current dir for iso files, and accept full paths.
2016-08-01 16:02:57 +01:00
Matt Churchyard
08d50f3e7c Small tidy up before 1.1 release 2016-07-04 10:27:50 +01:00
Matt Churchyard
4b8dd3f756 Small fixes to previous tmux commit 2016-06-28 10:43:04 +01:00
Matt Churchyard
7663b5cdd4 Add basic tmux support + a few small fixes
Some users may prefer tmux to using nmdm/cu
Currently requires manually setting `console="tmux"` in $vm_dir/.config/system.conf
2016-06-28 10:38:14 +01:00
Matt Churchyard
52b9f2eb8b Follow some Google shell scripting advice
I already do pretty much everything they advise anyway
Grouping functions together by using "prefix::" is quite a nice feature though.
Nothing too clever, just makes use of the fact that a colon appears
to be a valid character in a shell function.
2016-06-09 10:47:47 +01:00
Matt Churchyard
71f9f90ca1 Don't try to remove default datastore 2016-05-29 17:40:40 +01:00
Matt Churchyard
5e7b0a361f Only read datastore list once 2016-04-27 16:18:00 +01:00
Matt Churchyard
650db5efc2 Small datastore fixes 2016-04-19 20:49:36 +01:00
Matt Churchyard
0e493ea651 Few small datastore fixes 2016-04-19 15:04:35 +01:00
Matt Churchyard
097a3e1542 Check datastore name is unique during add 2016-04-19 11:27:03 +01:00
Matt Churchyard
4d7d71acc1 Move switch/datastore config to global system.conf
Create functions to load and get values from this independently
Don't need to resort to sysrc for switch/datastore now due to worry
of loading their config over the top of current guest
2016-04-19 11:05:52 +01:00
Matt Churchyard
e852eb84f2 FIx more functions for datastore support 2016-04-18 21:56:02 +01:00
Matt Churchyard
76fe3a5c00 Add ability to remove datastore 2016-04-18 19:25:11 +01:00
Matt Churchyard
f7d9b66ff9 Add datastore library 2016-04-18 19:03:27 +01:00