Commit Graph

428 Commits

Author SHA1 Message Date
shonjir
7f5e21aec6 Initial support for span port switch interfaces 2016-08-21 11:56:23 -07:00
Matt Churchyard
abcd642a77 Fix use of dots in vm name when using tmux
Tmux won't allow a dot in a session name as dot has a specific purpose.
Replace it with a ~, which we don't normally allow, so no risk of accidently
using a name that actually exists.
2016-08-19 09:59:37 +01:00
Matt Churchyard
df39ddde90 Don't wait if only running one stage 2016-08-10 10:00:27 +01:00
Matt Churchyard
a3d9a6cff7 More work on send/recv 2016-08-08 19:23:35 +01:00
Matt Churchyard
76803eaeaf Document and extend send/recv functions
Provide more control over how snapshots are sent and
allow users to use an existing snapshot if applicable.
2016-08-08 15:21:36 +01:00
Matt Churchyard
a0b1018f35 Improve compat checking for send/recv
There are a few guest settings that could break a guest
being sent to another host.
2016-08-04 09:42:38 +01:00
Matt Churchyard
90872d4b2d Simplify migration stop code 2016-08-03 20:17:59 +01:00
Matt Churchyard
b1d4a73b33 Add datastore option to vm recv 2016-08-03 18:48:27 +01:00
Matt Churchyard
8c15dae56c Default the utctime setting to yes
I think it's more consistent to have every guest use a UTC clock
by default. Apparently OpenBSD actually assumes a UTC clock. As long
as the guest is configured correctly it will show correct time (although
something like ntp should be used to keep accurate time)
2016-08-03 16:19:07 +01:00
Matt Churchyard
7019052db9 don't allow migration for guest with pci passthru 2016-08-03 10:17:38 +01:00
Matt Churchyard
6cbaa4b01b Few improvements to send/recv & tmux support
*Show tmux in console-ports info output
*Look for an available port for recv operation
The recieve command will output the port it is waiting on.
Send should be run as "vm send guestname remotehost:port"
2016-08-03 10:10:44 +01:00
Matt Churchyard
715a8aeba7 Actually increment counter so we dont wait forever 2016-08-02 22:20:31 +01:00
Matt Churchyard
8f7f89ade8 Slight typo in error message 2016-08-02 22:19:21 +01:00
Matt Churchyard
062683f4da Use slightly more obscure ports 2016-08-02 22:15:57 +01:00
Matt Churchyard
d7687ddfae Trial some send/recv commands
This allows a guest to be sent between two ZFS based systems with minimal downtime.
Just a toy atm but shows promise as a pretty nifty feature.
2016-08-02 22:11:11 +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
f1d507cce4 Issue #106 - allow xz to use all cores when compressing 2016-07-31 17:05:20 +01:00
Matt Churchyard
55fa19f9b7 Add multiple guest support for the info commands
Don't think any of the remaining commands really need the ability
to specify multiple guests.
2016-07-29 10:40:27 +01:00
Matt Churchyard
8990032422 Update documentation
Add information on supported global config (one console so far).
mention foreground/interactive mode under start/install.
mention ability to start multiple guests with start command.
update windows details as 11 will have vnc support.
2016-07-28 10:43:02 -04:00
Matt Churchyard
48d2836b4f Allow multiple guests in start command 2016-07-28 10:17:23 -04:00
Matt Churchyard
cfe4d0dcd2 Typo in last commit 2016-07-27 07:40:35 -04:00
Matt Churchyard
fc60d1ed53 Generate a UUID at runtime if we don't have one
This is now consistent with mac addresses which are also generated
at runtime. If a guest is copied manually, these settings can be removed
and new values will be generated automatically on next run.
2016-07-27 07:38:13 -04:00
Matt Churchyard
4443562ccf Fix #103. Switch functions don't pick up config changes properly 2016-07-25 11:17:14 +01:00
Matt Churchyard
0315ea266c Remove any whitespace from the end of config lines 2016-07-20 13:43:16 +01:00
Matt Churchyard
5cb6e336fb point at the right bhyve binary
Been using a custom bhyve binary on my dev machine but
the path for that shouldn't have made it into GitHub...
2016-07-19 21:13:32 +01:00
Matt Churchyard
b88b41381a Add a way to manage global configuration settings.
So far we only have a "console" setting, but there may be more
in the future. This change provides 'vm get' & 'vm set' commands,
that can view or change these config settings.
2016-07-19 15:05:03 +01:00
Matt Churchyard
4ced0019e7 Add an 'interactive' mode (vm -i start|install guest)
This is supported when using tmux for the guest console.
The guest is started on a tmux session, but the session is not
detached so you are immediately placed inside the guest. Similar to
foreground mode, but you can leave the guest running and return to host
using the tmux detach keys (Ctrl+b d)
2016-07-18 13:56:50 +01:00
Matt Churchyard
09f7df676b On shutdown, only call destroy if vmm exists 2016-07-15 19:49:54 +01:00
Matt Churchyard
0da99953c0 Modify and document new AHCI multi-device support
Get rid of ahci_multi_device="yes" and replace with
ahci_device_limit="X", where X is between 2-32. This allows
users to control the number of devices that will be put on
a single controller. If set to 1 (the default), we use the
original bhyve syntax.
2016-07-12 10:34:06 +01:00
Matt Churchyard
59fa02d6bc Consolidate disk code and fix two bugs
1. _atype set to hd, even for a cd
2. slot not incremented for non ahci device
2016-07-11 20:29:51 +01:00
Matt Churchyard
d564a15548 Support multiple devices on one ahci controller.
Not documented yet and requires ahci_multi_device="yes" in
guest config, but this is only supported on 12-CURRENT anyway.
This currently allows up to 8 devices per controller, but could
allow up to 32. With 3 available slots in UEFI, and 8 per controller,
this means Win guests can now have up to 24 disks, or 96 if we increase
limit to 32 per controller.
2016-07-11 19:30:07 +01:00
Matt Churchyard
fbb851961b uefi firmware port has changed install path 2016-07-11 08:25:54 +01:00
Matt Churchyard
e590a5ec8a Add support for sysutils/uefi-edk2-bhyve port
Rather than getting user to download firmware and place in a specific place,
just look in the above port's installation directory.
2016-07-08 13:54:31 +01:00
Matt Churchyard
97dbfb0d5e Tiny style fix 2016-07-05 10:08:43 +01:00
Matt Churchyard
52ac025448 Update docs now we only wait once in install mode with graphics_wait=auto
Also sneak in support for vnc password so it's there if the bhyve code makes it in.
2016-07-04 16:40:02 +01:00
Matt Churchyard
08d50f3e7c Small tidy up before 1.1 release 2016-07-04 10:27:50 +01:00
Matt Churchyard
0fa293016c Add some v11 checks for uefi graphics and remove alpha tag
Now that graphics are in current, will try and get this in ports/pkg
for the release.
2016-07-04 09:36:52 +01:00
Matt Churchyard
466c7fe67b Only need to try and remove wait once 2016-06-29 11:51:52 +01:00
Matt Churchyard
baa2b7b4ad In auto mode, remove wait option after first run (Issue #91) 2016-06-29 11:25:53 +01:00
Matt Churchyard
918d6f491d Don't try to use cu to connect to a vnc console port 2016-06-28 10:54:10 +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
d7d0a2b247 Fix #99 - Set vlan interfaces up when created 2016-06-26 22:51:47 +01:00
Matt Churchyard
73974f5d5d Fix #98 - load pf rc variables before checking pf_enable 2016-06-17 08:52:54 +01:00
Matt Churchyard
12aa3fd037 Move guest_config_set into config:: 2016-06-15 13:06:54 +01:00
Matt Churchyard
7036138bdd Small tidy up 2016-06-13 14:02:31 +01:00
Matt Churchyard
e1bedb5be5 Fix some more function names 2016-06-09 15:13:20 +01:00
Matt Churchyard
9d8a5b5762 Was supposed to call this function guest_show... 2016-06-09 11:00:18 +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
872fb319ce Possible fix for some passthru devices not working 2016-06-06 16:01:57 +01:00