Commit Graph

428 Commits

Author SHA1 Message Date
Matt Churchyard
fcef78eee6 Try not to fall over if clone fails to create new guest config 2016-06-02 11:08:31 +01:00
Matt Churchyard
9b14e72a02 Fix #94. remove snapshot from cloned guest name before looking for it & fix error msg 2016-05-31 11:30:23 +01:00
Matt Churchyard
f56285f1b5 Fix #93. Return success if test for no iommu fails 2016-05-31 11:23:14 +01:00
Matt Churchyard
96e82a4cc2 Issue #91, auto set graphics_wait for install mode 2016-05-30 11:29:46 +01:00
Matt Churchyard
71f9f90ca1 Don't try to remove default datastore 2016-05-29 17:40:40 +01:00
Matt Churchyard
51b47836ff Don't try adding frame buffer if not uefi 2016-05-27 15:07:22 +01:00
Matt Churchyard
6b40f8f224 Show vnc details for guest that is locked locally (fbuf wait) 2016-05-27 14:28:24 +01:00
Matt Churchyard
f7b6e08312 Add fbuf wait support and rename mouse to xhci_mouse 2016-05-27 13:49:49 +01:00
Matt Churchyard
47e22c574a Dynamically find an available port for vnc to listen on
We also store this in $guest/console so that it can be shown in 'vm list'
2016-05-27 11:22:08 +01:00
Matt Churchyard
e90ae0e1d4 Initial test support for graphics/vnc
Needs latest bhyve from projects/bhyve_graphics - (see msg on freebsd-virt for build instructions)
UEFI guests need below config adding, see wiki for more details
graphics="yes"
mouse="yes"
2016-05-27 10:23:35 +01:00
Joel Knighton
921aeb8221 Fix usage of incorrect config getters/setters in vm-switch 2016-05-15 21:17:11 -05:00
Matt Churchyard
6f49eee278 Send errors/warnings to stderr 2016-05-13 10:24:02 +01:00
Matt Churchyard
22590f8df7 Slightly tidy up uefi bootrom code 2016-05-12 16:09:08 +01:00
Matt Churchyard
8d1aa66731 Add checks for vt-d and user friendly log message if passthru won't work 2016-05-11 15:12:08 +01:00
Matt Churchyard
84edb0f112 Test possible solution for #84 2016-05-04 14:54:10 +01:00
Matt Churchyard
417671ea8a Don't actually exit on error in _start
Juts return otherwise it will cause startall to exit, even
if further guests would of started fine.
2016-05-04 14:37:10 +01:00
Matt Churchyard
c9c551fac8 Left an extra 1 in cpu check while testing 2016-05-04 14:36:21 +01:00
Matt Churchyard
d80bb4fee4 Add check for virt cpu features
Makes sense to display obvious error if host doesn't support bhyve
Also, apparently only FreeBSD guests work on Intel without unrestricted guest, so
display an error if any other guests are started, and limit to 1 vcpu
Gotta keep up with the competition... :)
2016-05-04 14:31:14 +01:00
Matt Churchyard
5e7b0a361f Only read datastore list once 2016-04-27 16:18:00 +01:00
Matt Churchyard
f28ae5eea6 Fix #80, allow uncompressed images
Also make some fixes to the image functions and allow datastore
to be specified when provisioning a guest
2016-04-26 14:35:10 +01:00
Matt Churchyard
b4e8e23ad6 Fix small bug in foreground mode 2016-04-25 12:29:32 +01:00
Matt Churchyard
8176814fe7 Small code tidy up 2016-04-21 14:33:12 +01:00
Matt Churchyard
15f4b53b88 Handle missing datastore path gracefully 2016-04-20 14:29:19 +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
ee962d5eb5 Fix in configure() 2016-04-19 14:54:10 +01:00
Matt Churchyard
92a2ee1906 Typo in rename function for non-zfs datastore 2016-04-19 14:52:37 +01:00
Matt Churchyard
e99e5416b0 Add datastore commands to man page 2016-04-19 11:47:52 +01:00
Matt Churchyard
097a3e1542 Check datastore name is unique during add 2016-04-19 11:27:03 +01:00
Matt Churchyard
11e4925c42 Hide errors due to missing configuration files during migration 2016-04-19 11:23:20 +01:00
Matt Churchyard
4ce7e20f16 Few more fixes and remove guest setting 2016-04-19 11:18:25 +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
Matt Churchyard
1b04706a8b Initial work on multiple datastores 2016-04-18 19:02:37 +01:00
Matt Churchyard
00fefc55d2 Pass directory to _run, just in case specified with -d 2016-04-18 14:08:00 +01:00
Matt Churchyard
bb7c67bc7f Send kill twice in stopall 2016-04-16 08:32:51 +01:00
Matt Churchyard
a8a5c64edc Fix typo in rctl function name and send kill twice
Windows guests seem to shutdown if kill sent twice
2016-04-16 08:27:19 +01:00
Matt Churchyard
2c004adcdc Few fixes to multi-guest stop command 2016-04-16 08:13:16 +01:00
Matt Churchyard
62f45b6780 Standadise VERSION_ vars and start on function names 2016-04-16 08:08:18 +01:00
Matt Churchyard
54237aeb4e Add version command to usage and man page
Been in 1.0 beta for 5 minutes and already found a (very minor) issue...
2016-04-15 19:22:28 +01:00
Matt Churchyard
fc3ed2fd3e Go for 1.0-beta
Reduce main version number to maj.min
Add a seperate integer build number that is MNNRRR (M = Major, N = Minor, R = Revision)
We may write this int to .config directory in future versions (poss even 1.0-rel) and
use this to perform automated upgrades when there are changes required between versions.
2016-04-15 19:13:14 +01:00
Matt Churchyard
7ef4f7e244 Fix #47 - we need to init before dnsmasq on boot
Bit more tidying up. Really considering setting version to 1.0-beta now
Choice between leaving graphics for 1.1, or waiting
2016-04-15 16:59:48 +01:00
Matt Churchyard
ae68dc1bec Allow multiple disks in templates
We now allow a template to specify multiple disk, which
will all be created automatically when provisioning a new guest.
The template can also specify the size of each disk, using diskX_size settings.
These settings are removed from the guest configuration file as they
serve no purpose and would become misleading if a disk were resized manually.
2016-04-14 16:24:47 +01:00
Matt Churchyard
ec3279d7db Tidy up vm-sysrc 2016-04-14 13:35:23 +01:00
Matt Churchyard
76a579007a Tidy up of vm-common 2016-04-14 13:30:08 +01:00
Matt Churchyard
51823a25f5 Fix guest_load desc. re-order some switch_init stuff 2016-04-14 13:18:27 +01:00
Matt Churchyard
980ac6f985 Need to use rm for patterns 2016-04-13 12:42:39 +01:00
Matt Churchyard
14fb01b52b Switch to using a return value in__guest_load 2016-04-13 12:20:28 +01:00