Commit Graph

725 Commits

Author SHA1 Message Date
Mateusz Kwiatkowski
31358b639c Merge pull request #536 from churchers/issue/535
Resize file backed images after writting cloud image with qemu-img
2024-09-10 10:59:39 +02:00
Mateusz Kwiatkowski
e392f82df5 Merge pull request #545 from mzary/master
Remove dependency on genisoimage
2024-09-04 11:08:03 +02:00
Marek Zarychta
d88bc164ff Replace genisoimage with makefs(8) from the base 2024-03-15 17:05:51 +01:00
Marek Zarychta
6f17f66b29 Revert "Remove dependency on genisoimage, use tar and libarchive from base system instead"
This reverts commit 4fa2cbaf6f.
2024-03-15 16:59:58 +01:00
Marek Zarychta
4fa2cbaf6f Remove dependency on genisoimage, use tar and libarchive from base system instead 2024-02-29 16:57:03 +01:00
Mateusz Kwiatkowski
350cd9ee47 Resize file backed images after writting cloud image with qemu-img
Fixes #535
2023-11-29 12:25:55 +01:00
Mateusz Kwiatkowski
e45b81d72e Merge pull request #517 from ctuffli/list-running
Add option to only list running VMs
2023-11-28 11:32:09 +01:00
Mateusz Kwiatkowski
eb532d2b88 Merge pull request #531 from 0x1F680/master 2023-11-15 16:42:30 +01:00
0x1F680
e56d2ea875 Fix and update OpenBSD template
OpenBSD does not support kopenbsd from grub anymore: using uefi. Increaced minimum ram requirement. Added graphics: com0/1, stdio are currently not working.
2023-11-02 00:49:53 -04:00
Mateusz Kwiatkowski
e284e88475 Merge pull request #504 from antranigv/patch-1
Fix typo in vm.8
2023-09-21 10:57:19 +02:00
Chuck Tuffli
378d95e946 Add option to only list running VMs 2023-07-05 14:13:05 -07:00
Antranig Vartanian
8c67332178 Fix typo in vm.8 2023-02-28 14:07:39 +04:00
Mateusz Kwiatkowski
635e5abad5 Merge pull request #495 from iMilnb/doc-fix
fix: s/qemu-utils/qemu-tools/g
2023-01-03 10:45:06 +01:00
Emile 'iMil' Heitor
56da39dc9e fix: s/qemu-utils/qemu-tools/g 2022-12-27 10:13:02 +01:00
Emile 'iMil' Heitor
5d151b0ff0 fix: s/qemu-utils/qemu-tools/g 2022-12-19 08:52:32 +01:00
Matt Churchyard
bda366b92a Merge pull request #490 from huskyii/fix_ng_create_typo
switch::netgraph:create -> switch::netgraph::create
2022-11-08 09:41:52 +00:00
Jiang Zhu
532a86d685 switch::netgraph:create -> switch::netgraph::create 2022-10-28 23:50:38 +08:00
Matt Churchyard
84bbd040b5 Merge pull request #479 from madpilot78/bhyveload_pass_vm_hostname
Pass the vm name to bhyveload guests as a variable.
2022-10-25 12:04:17 +01:00
Matt Churchyard
984ce46284 Merge pull request #480 from madpilot78/sound_recording
Sound recording
2022-10-25 12:03:13 +01:00
Matt Churchyard
7348628f99 Merge pull request #485 from moracca/fix-vm-switch-info
fix bad "_netgraph," variable
2022-10-25 12:02:27 +01:00
moracca
45286351c4 fix bad _netgraph, variable
Fix "local: _netgraph,: bad variable name" warning when running `vm switch info`
2022-10-13 19:27:47 -04:00
Guido Falsi
f2296e20b4 Correctly quote variable being tested. 2022-09-19 18:26:17 +02:00
Guido Falsi
9073190604 Correct name of option. 2022-09-19 17:35:32 +02:00
Guido Falsi
4f8357df24 Update man page with information about sound recording device configuration. 2022-09-19 11:18:12 +02:00
Guido Falsi
48576f6905 Add support for defining a sound recording device. 2022-09-19 10:48:43 +02:00
Guido Falsi
3b7925fd7e Pass the vm name to bhyveload guests as a variable. 2022-09-17 18:16:16 +02:00
Matt Churchyard
07f96108ea Merge pull request #472 from galdor/master
fix ifconfig data matching in info::guest_networking
2022-08-02 14:10:50 +01:00
Nicolas Martyanoff
0c291329b9 fix ifconfig data matching in info::guest_networking
The description field uses '/' as separator since 52a504e.

close #471
2022-08-02 08:03:16 +02:00
Matt Churchyard
714475f556 Fix #462 makes sense to pass uuid to bhyveload 2022-07-29 12:29:25 +01:00
Matt Churchyard
07013f7d25 Move interface init code into emulation specific switch modules 2022-07-22 11:50:07 +01:00
Matt Churchyard
e323640b88 Merge pull request #458 from stephen-fox/removed-unsafe-shell-source
security: Removed unsafe relative path sourcing.
2022-07-21 09:30:20 +01:00
Matt Churchyard
9614e81049 Set to 1.5 for importing into ports v1.5.0 2022-07-19 09:40:23 +01:00
Matt Churchyard
ab539a182c Merge pull request #459 from benoitc/vm-switch-netgraph
add netgraph switch support
2022-07-19 09:35:16 +01:00
benoitc
d940e51c49 add netgraph switch support
This change add simiular support to VALE for netgraph switches. Switches
must be configured manually. Devices will be added using the bhyve
support of netgraph.

Link Num of a peer in the bridge is found by iterrating all devices
already setup in. (Similiar hack is found in jail example).
2022-04-18 06:17:19 +02:00
Stephen Fox
9537cb32ed security: Removed unsafe relative path sourcing.
The "vm" script is responsible for executing shell script
functions found in other vm-bhyve scripts. It does this by
sourcing other vm-bhyve shell scripts, which automatically
execute code that handles the user's input.

One of the first actions "vm" takes is to check if the relative
file "./lib/vm-core" exists. If this file exists, it sets
the parent directory for sourcing scripts to "./lib",
resulting in all shell scripts being sourced from a path
relative to the user's current working directory.

This is unsafe because sourcing from a relative file path
may result in execution of untrusted code.

For example, imagine the user cloned a git repository that
contains malicious code stored at "<git-dir>/lib/". If the
user were to "cd" to this imaginary cloned repository and
execute the "vm" script, they would inadvertently source and
execute code from that directory.

This commit removes this behavior. The "vm" script now
sources scripts exclusively from "/usr/local/lib/vm-bhyve/".
2022-04-09 17:08:43 -04:00
Matt Churchyard
ec0e12e974 Merge pull request #457 from cgull/fix-utctime-default
The default of utctime=yes was lost; restore it.
2022-04-06 16:08:41 +01:00
John Hood
d7d23bc6fd The default of utctime=yes was lost; restore it. 2022-04-05 15:16:21 -04:00
Mateusz Kwiatkowski
779b730fad Merge pull request #377 from dstolfa/master
Replace uname -U with uname -K when loading if_tuntap.ko
2022-03-22 11:38:14 +01:00
Mateusz Kwiatkowski
a4e277063e Merge pull request #394 from pasztor/fix/zfs-provision
Fix provision issue in case of zfs datasets
2022-03-22 11:38:00 +01:00
Mateusz Kwiatkowski
e1ab269106 Merge pull request #448 from driesmp/nodescription
Don't set interface description on manual bridges
2022-03-22 11:37:29 +01:00
Matt Churchyard
43da9ed519 Don't override maxlen if a caller sets it 2022-03-07 09:01:30 +00:00
Matt Churchyard
357d57be9b Merge pull request #452 from EricKrausser/EricKrausser-patch-1
Fix variable __maxlen to _maxlen
2022-03-07 08:57:42 +00:00
EricKrausser
14d9a716de Fix variable __maxlen to _maxlen
I did not test this, but it looks obviously like a bug.
2022-03-05 09:55:38 +01:00
Matt Churchyard
8be5f5fcb4 Merge pull request #451 from driesmp/Update-manpage-for-issue-251
Update manpage for issue 251
2022-02-28 10:51:56 +00:00
Matt Churchyard
c8b7c1d204 Hopefully fix #427 not a NetBSD user but looks like disk naming has changed 2022-02-25 10:15:40 +00:00
Matt Churchyard
be2203540f Add documentation for uefi_vars setting 2022-02-25 09:56:52 +00:00
Matt Churchyard
b977c60896 Add support for persistent uefi vars with uefi_vars=yes config option 2022-02-25 09:40:20 +00:00
Dries Michiels
1e8b79442b Fix formatting 2022-02-24 13:58:03 +01:00
Dries Michiels
81cd2d5767 Improve usage 2022-02-24 13:50:49 +01:00
Dries Michiels
e09cd8720f Add usage 2022-02-24 13:43:12 +01:00