Commit Graph

107 Commits

Author SHA1 Message Date
Jason Tubnor
bf1d6211a5 Update for uefi-custom usage
Change adds the uefi-custom option so $vm_dir/.config/BHYVE_UEFI.fd works again after regression between 1.2.x and 1.3
2019-04-24 11:47:04 +10:00
Jov
73e95b3b02 fix missing name for switch address/private cmd 2018-10-15 15:07:38 +08:00
Matt Churchyard
5df10f2408 Add a "vm restart guest" command
This causes a guest shutdown but then restarts the guest without requiring a full
reload or destroying/re-creating network devices.
2018-10-09 11:09:09 +01:00
Matt Churchyard
edbcf6eed3 Remove uefi setting entirely and use loader=bhyveload/grub/uefi/uefi-csm
This provides a single, consistent way to configure boot method. the guest listing
now shows uefi and uefi-csm guests without having to fudge the uefi setting into loader column.
2018-10-09 10:34:25 +01:00
Matt Churchyard
0cf424198c Allow guests to have a system priority using renice 2018-10-08 15:43:59 +01:00
Matt Churchyard
f235a8ebbd Change loader="" to support bhyveload/grub/uefi
Makes some sense as we display "uefi" under "Loader" when listing guests and only one can be set.
Old uefi="" setting can still be set to "csm" to choose the csm firmware.
2018-10-08 11:39:49 +01:00
Eric van Gyzen
a7a020f583 Fix a few man page typos; no content change 2018-08-27 10:56:36 -05:00
Matt Churchyard
d4532f6da3 Config option for vga=on/off/io and support for ahci-hd install media
Also force install media to be opened read-only
2018-08-14 11:53:50 +01:00
Matt Churchyard
8bc51d4397 Add ability to configure CPU topology 2018-08-13 10:48:19 +01:00
Matt Churchyard
a44d6be56b Add "wired_memory" option to control the -S argument to bhyveload/bhyve
Note that this removes the ability to use bhyve_options="-S"
2018-08-13 09:32:24 +01:00
Matt Churchyard
3deb348668 Various style changes 2018-07-02 13:53:35 +01:00
Matt Churchyard
a8e3b1c5cc Change all option handling to be "vm subcommand <opts>"
To reduce code we originally parsed some options globally, such as "vm -f start ...".
However this was confusing and inconsistent, especially in relation to other commands
such as zfs(8).
2018-06-29 09:03:27 +00:00
Matt Churchyard
8c117b33a5 Change prestart to pass ZFS dataset instead of filesystem path
Dataset is only of use if running on ZFS, but in that case it is very
useful if the script wants to create snapshots/etc, and the path can
be retrieved from pwd/cwd if needed.
2018-06-28 09:31:42 +00:00
Matt Churchyard
151a2f375c Add a prestart option to allow user code to run before guest starts 2018-06-28 09:17:45 +00:00
Matt Churchyard
6b4b97584e Tidy some functions up and limit switch names to 12 chars 2018-06-27 08:34:12 +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
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
2382826f8c Remove docs for send/recv for now
This feature requires a lot more testing/development
2018-06-19 07:53:08 +00:00
Matt Churchyard
15c383fa9c Few changes to the manpage 2018-06-18 08:31:44 +00:00
Matt Churchyard
b4f2aa68f0 Merge branch 'master' into doc 2018-06-12 17:01:56 +01:00
Mateusz Piotrowski
221440b95b Use .Lk for hyperlinks 2018-05-26 02:19:21 +02:00
Mateusz Piotrowski
806e7c4fa4 Use .Fx, .Ox and .Nx macros when referring to BSDs 2018-05-26 02:19:21 +02:00
Mateusz Piotrowski
6d42d5ac97 Fix other mandoc -Tlint warnings and style issues 2018-05-26 02:19:21 +02:00
Mateusz Piotrowski
3cd77a1700 Pet mandoc -Tlint: WARNING: new sentence, new line 2018-04-30 02:50:49 +02:00
Mateusz Piotrowski
92ed793f8d Remove trailing whitespace 2018-04-30 02:11:27 +02:00
Linus Nordberg
55f716b048 Argument to create -s is in bytes, not GB. 2018-04-24 16:23:02 +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
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
shonjir
7f5e21aec6 Initial support for span port switch interfaces 2016-08-21 11:56:23 -07:00
Matt Churchyard
895490ee64 Update send/recv docs in man page 2016-08-10 11:41:45 +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
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
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
44438e5403 Update some documentation
I should really read through the whole thing but it's so
damn big now...
2016-08-02 13:29:46 +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
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
c764b3bef0 Document known bugs that are not likely to be fixed in the near future.
This is either because it's not directly a vm-bhyve issue, or because possible
side-effects outweight the seriousness of the bug.
2016-07-28 16:09:20 +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
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
olgeni
edeafb094b Fix a few typos in vm.8. 2016-07-13 04:25:14 +02: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
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
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
96e82a4cc2 Issue #91, auto set graphics_wait for install mode 2016-05-30 11:29:46 +01:00