OpenBSD CVS

CVS log for src/usr.sbin/vmd/vm.conf.5


[BACK] Up to [local] / src / usr.sbin / vmd

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.63 / (download) - annotate - [select for diffs], Fri May 12 00:06:53 2023 UTC (12 months, 4 weeks ago) by kn
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, HEAD
Changes since 1.62: +3 -3 lines
Diff to previous 1.62 (colored)

staggered deployment parallelism defaults to number of *online* CPUs

vmd looks at hw.ncpuonline not hw.ncpu[found], which can differ w/o SMT.

Revision 1.62 / (download) - annotate - [select for diffs], Sun Feb 19 17:10:38 2023 UTC (15 months, 2 weeks ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_7_3_BASE, OPENBSD_7_3
Changes since 1.61: +3 -3 lines
Diff to previous 1.61 (colored)

describe what qcow2 is, in sufficient simple terms

Revision 1.61 / (download) - annotate - [select for diffs], Fri Oct 14 06:43:26 2022 UTC (19 months, 3 weeks ago) by jmc
Branch: MAIN
Changes since 1.60: +63 -58 lines
Diff to previous 1.60 (colored)

some macro fixes, mostly Cm -> Ic;
from josiah frentsos

Revision 1.60 / (download) - annotate - [select for diffs], Sat Sep 24 15:22:59 2022 UTC (20 months, 2 weeks ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2
Changes since 1.59: +17 -23 lines
Diff to previous 1.59 (colored)

macro tweaks; from josiah frentsos
ok deraadt

Revision 1.59 / (download) - annotate - [select for diffs], Tue Sep 13 10:28:19 2022 UTC (20 months, 3 weeks ago) by martijn
Branch: MAIN
Changes since 1.58: +15 -2 lines
Diff to previous 1.58 (colored)

Add (partial) support for agentx in vmd.

Metrics can be found under mib-2.236 and VM-MIB (RFC7666).

Stress tested by and happy noises from Mischa Peters
OK dv@

Revision 1.58 / (download) - annotate - [select for diffs], Thu Aug 4 11:50:51 2022 UTC (22 months ago) by stsp
Branch: MAIN
Changes since 1.57: +3 -3 lines
Diff to previous 1.57 (colored)

SWITCH section in ifconfig(8) no longer exists; point people at VEB instead

Revision 1.57 / (download) - annotate - [select for diffs], Thu Nov 11 09:33:36 2021 UTC (2 years, 6 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_7_1_BASE, OPENBSD_7_1
Changes since 1.56: +5 -10 lines
Diff to previous 1.56 (colored)

switch(4) is being retired, sthen@ already removed the bits in the code
adjust the man page as well.
OK sthen@ kn@ patrick@

Revision 1.56 / (download) - annotate - [select for diffs], Mon Mar 1 14:27:44 2021 UTC (3 years, 3 months ago) by kn
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9
Changes since 1.55: +7 -5 lines
Diff to previous 1.55 (colored)

Document veb(4) support

Feedback jmc
OK dlg

Revision 1.55 / (download) - annotate - [select for diffs], Wed Sep 23 19:18:18 2020 UTC (3 years, 8 months ago) by martijn
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8
Changes since 1.54: +0 -13 lines
Diff to previous 1.54 (colored)

Revert agentx support for now, we're too close to release.

requested by deraadt@

Revision 1.54 / (download) - annotate - [select for diffs], Wed Sep 23 15:52:06 2020 UTC (3 years, 8 months ago) by martijn
Branch: MAIN
Changes since 1.53: +15 -2 lines
Diff to previous 1.53 (colored)

Add support for agentx to vmd.

This is based around VM-MIB from RFC7666,but  does not export the full
spec. People more knowledgeable of vmd are encouraged to expand on this.

Revision 1.53 / (download) - annotate - [select for diffs], Sun Feb 16 11:03:25 2020 UTC (4 years, 3 months ago) by kn
Branch: MAIN
CVS Tags: OPENBSD_6_7_BASE, OPENBSD_6_7
Changes since 1.52: +3 -3 lines
Diff to previous 1.52 (colored)

Backout "DHCP is configured on the first interface only"

I completely missed that part from vmctl.5's "LOCAL INTERFACES" section.
Reading `-L's description itself and the fact that it functions as a
boolean switch contrary to how `-i' expects a number, I made the wrong
assumption that it can only work for the first interface.

"vmctl -Li2" configures two interfaces, one witch DHCP and one without.
"vmctl -L -L" however configures two interfaces with DHCP IPs each.

My second mistake was to imply analogue behaviour for the configuration.
Now that you stated the obvious about `local' being per `interface' line,
it makes absoloutely no sense to above mentioned behaviour for static VM
definitions.

Pointed out by tb

Revision 1.52 / (download) - annotate - [select for diffs], Sat Feb 15 21:03:18 2020 UTC (4 years, 3 months ago) by kn
Branch: MAIN
Changes since 1.51: +3 -3 lines
Diff to previous 1.51 (colored)

DHCP is configured on the first interface only

A VM can have multiple interfaces, but only the first one gets DHCP
if "-L" (vmctl) or "local" (vm.conf) is specified.

Positive feedback Mike Larkin

Revision 1.51 / (download) - annotate - [select for diffs], Mon Feb 10 13:18:22 2020 UTC (4 years, 3 months ago) by schwarze
Branch: MAIN
Changes since 1.50: +7 -2 lines
Diff to previous 1.50 (colored)

briefly mention /etc/examples/ in the FILES section of all the
manual pages that document the corresponding configuration files;
OK jmc@, and general direction discussed with many

Revision 1.50 / (download) - annotate - [select for diffs], Wed Jan 15 14:08:26 2020 UTC (4 years, 4 months ago) by phessler
Branch: MAIN
Changes since 1.49: +10 -1 lines
Diff to previous 1.49 (colored)

Guest VMs require some resources that are managed outside of vmm(4), so
try to document and enumerate them.

This is most helpful when you try to assign the 5th interface to a guest,
and are confused why vmd(8) won't start the guest when only 4 tap devices
exist.

OK jmc@, kn@, pamela@

Revision 1.49 / (download) - annotate - [select for diffs], Tue Dec 17 19:57:22 2019 UTC (4 years, 5 months ago) by kn
Branch: MAIN
Changes since 1.48: +3 -3 lines
Diff to previous 1.48 (colored)

"allow instance {...}" requires options

The parameter block must not be omitted, so remove the Op markup.

Revision 1.48 / (download) - annotate - [select for diffs], Tue Dec 17 10:17:05 2019 UTC (4 years, 5 months ago) by jmc
Branch: MAIN
Changes since 1.47: +12 -6 lines
Diff to previous 1.47 (colored)

kn pointed out that the changes i made to "socket owner" can be
applied to "owner" too;

Revision 1.47 / (download) - annotate - [select for diffs], Tue Dec 17 06:59:23 2019 UTC (4 years, 5 months ago) by jmc
Branch: MAIN
Changes since 1.46: +13 -7 lines
Diff to previous 1.46 (colored)

combine "socket owner user[:group]" and "socket owner :group"
into one logical item;

ok pd

Revision 1.46 / (download) - annotate - [select for diffs], Fri Dec 13 07:03:46 2019 UTC (4 years, 5 months ago) by jmc
Branch: MAIN
Changes since 1.45: +13 -12 lines
Diff to previous 1.45 (colored)

tweak previous; ok pd

Revision 1.45 / (download) - annotate - [select for diffs], Thu Dec 12 03:53:38 2019 UTC (4 years, 5 months ago) by pd
Branch: MAIN
Changes since 1.44: +11 -1 lines
Diff to previous 1.44 (colored)

vmd: start vms defined in vm.conf in a staggered fashion

This addresses 'thundering herd' problem when a lot of
vms are configured in vm.conf.  A lot of vms booting in parallel can
overload the host and also mess up tsc calibration in openbsd guests as
it uses PIT which doesn't fire reliably if the host is overloaded.

We default to starting vms with parallelism of ncpuonline and a delay 30 seconds
between batches.  This is configurable in vm.conf.

ok mlarkin@ (also addressed comments from cheloha@)

Revision 1.44 / (download) - annotate - [select for diffs], Tue May 14 12:47:17 2019 UTC (5 years ago) by schwarze
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.43: +3 -7 lines
Diff to previous 1.43 (colored)

Delete some .Sx macros that were used in a wrong way.
Part of a patch from Stephen Gregoratto <dev at sgregoratto dot me>.

Revision 1.43 / (download) - annotate - [select for diffs], Tue May 14 06:05:45 2019 UTC (5 years ago) by anton
Branch: MAIN
Changes since 1.42: +33 -2 lines
Diff to previous 1.42 (colored)

Add support for `boot device' to vm.conf grammar which is the `-B device'
counterpart from vmctl.

ok mlarkin@

Revision 1.42 / (download) - annotate - [select for diffs], Thu Mar 7 18:54:06 2019 UTC (5 years, 3 months ago) by kn
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.41: +6 -4 lines
Diff to previous 1.41 (colored)

Clarify that VM names must start with a letter

`start' requires an alphanumeric VM name, must not be a number and in fact
must not start with a digit.  Improve and simplify the current requirements
as starting with a letter directly implies all of the above.

OK mlarkin, feedback jmc

Revision 1.41 / (download) - annotate - [select for diffs], Wed Nov 21 13:48:20 2018 UTC (5 years, 6 months ago) by jmc
Branch: MAIN
Changes since 1.40: +3 -3 lines
Diff to previous 1.40 (colored)

avoid unwanted double space;

Revision 1.40 / (download) - annotate - [select for diffs], Wed Nov 21 12:31:47 2018 UTC (5 years, 6 months ago) by reyk
Branch: MAIN
Changes since 1.39: +24 -2 lines
Diff to previous 1.39 (colored)

Add support for "local inet6" interfaces.

ok & test ccardenas@, additional review from kn@

Revision 1.39 / (download) - annotate - [select for diffs], Tue Oct 30 17:56:54 2018 UTC (5 years, 7 months ago) by anton
Branch: MAIN
Changes since 1.38: +3 -3 lines
Diff to previous 1.38 (colored)

add missing Pf macro; ok jmc@

Revision 1.38 / (download) - annotate - [select for diffs], Mon Oct 1 09:31:15 2018 UTC (5 years, 8 months ago) by reyk
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.37: +6 -6 lines
Diff to previous 1.37 (colored)

Try to derive the qcow2 file format from an image file automatically.

This makes the "-d qcow2:" and "format qcow" arguments optional as vmctl
and vmd will read the magic bytes at the beginning of a file to guess if
it is a raw or a qcow image file.

The "vmctl create" command has been changed by removing the -f qcow2 option
and replacing it with the same syntax as -d: "vmctl create qcow2:foo.img".
In a slightly ununixy but intended way, the create command now also
considers the file extension for the format as "vmctl create foo.qcow2"
creates a qcow2 disk and not a raw image file.

Ok mlarkin@ (and ccardenas@ on an earlier version of the diff)

Revision 1.37 / (download) - annotate - [select for diffs], Sun Sep 30 19:13:55 2018 UTC (5 years, 8 months ago) by solene
Branch: MAIN
Changes since 1.36: +8 -4 lines
Diff to previous 1.36 (colored)

Add size limitation of group-name and a reference to ifconfig about it

ok mlarkin@ jmc@ jca@

Revision 1.36 / (download) - annotate - [select for diffs], Sun Sep 9 04:09:32 2018 UTC (5 years, 9 months ago) by ccardenas
Branch: MAIN
Changes since 1.35: +9 -2 lines
Diff to previous 1.35 (colored)

Add initial qcow2 image support.

Users are able to declare disk images as 'raw' or 'qcow2' using either
vmctl and vm.conf.  The default disk image format is 'raw' if not specified.

Examples of using disk format:

vmctl start bsd -Lc -r cd64.iso -d qcow2:current.qc2
or
vmctl start bsd -Lc -r cd64.iso -d raw:current.raw
is equivalent to
vmctl start bsd -Lc -r cd64.iso -d current.raw

in vm.conf
vm "current" {
    disable
    memory 2G
    disk "/home/user/vmm/current.qc2" format "qcow2"
    interface { switch "external" }
}

or

vm "current" {
    disable
    memory 2G
    disk "/home/user/vmm/current.raw" format "raw"
    interface { switch "external" }
}

is equivlanet to

vm "current" {
    disable
    memory 2G
    disk "/home/user/vmm/current.raw"
    interface { switch "external" }
}

Tested by many.

Big Thanks to Ori Bernstein.

Revision 1.35 / (download) - annotate - [select for diffs], Fri Jul 13 17:48:30 2018 UTC (5 years, 10 months ago) by jmc
Branch: MAIN
Changes since 1.34: +14 -14 lines
Diff to previous 1.34 (colored)

tweak previous; ok reyk

Revision 1.34 / (download) - annotate - [select for diffs], Fri Jul 13 15:18:59 2018 UTC (5 years, 10 months ago) by anton
Branch: MAIN
Changes since 1.33: +4 -4 lines
Diff to previous 1.33 (colored)

network -> interface; ok reyk@

Revision 1.33 / (download) - annotate - [select for diffs], Fri Jul 13 08:42:49 2018 UTC (5 years, 10 months ago) by reyk
Branch: MAIN
Changes since 1.32: +67 -12 lines
Diff to previous 1.32 (colored)

Add "allow instance" option.

This allows users to create VM instances and change desired options,
for example a user can be allowed to run a VM with all the
pre-configured options but specify an own disk image.

(mlarkin@ was fine with iterating over it)

OK ccardenas@

Revision 1.32 / (download) - annotate - [select for diffs], Thu Jul 12 12:04:49 2018 UTC (5 years, 10 months ago) by reyk
Branch: MAIN
Changes since 1.31: +19 -1 lines
Diff to previous 1.31 (colored)

Allow to use configured/running VMs as templates for other VM instances.

This introduces new grammar and the -t optional in vmctl start.

(For now, only root can create VM instances; but it is planned to allow
users to create their own VMs based on permissions and quota.)

OK ccardenas@ mlarkin@ jmc@

Revision 1.31 / (download) - annotate - [select for diffs], Tue Jun 26 11:34:25 2018 UTC (5 years, 11 months ago) by jmc
Branch: MAIN
Changes since 1.30: +3 -3 lines
Diff to previous 1.30 (colored)

space between macro args and punctuation;

Revision 1.30 / (download) - annotate - [select for diffs], Tue Jun 26 10:00:08 2018 UTC (5 years, 11 months ago) by reyk
Branch: MAIN
Changes since 1.29: +12 -2 lines
Diff to previous 1.29 (colored)

Add "socket owner" to allow changing the owner of the vmd control socket.

This allows to open vmctl control or console access to other users
that are not in group wheel.  Access for non-root users still defaults
to read-only actions unless you change the owner (user/group) of each
individual VM.

Requested by Mischa Peters

OK mlarkin@

Revision 1.29 / (download) - annotate - [select for diffs], Mon Jun 18 06:04:25 2018 UTC (5 years, 11 months ago) by jmc
Branch: MAIN
Changes since 1.28: +4 -4 lines
Diff to previous 1.28 (colored)

remove the SECTIONS header, since a one line DESCRIPTION is a bit silly;
use a more general text for the sections, and avoid the catchup issue
that was trying to document how many there were;

ok benno rob

Revision 1.28 / (download) - annotate - [select for diffs], Sun May 13 22:48:11 2018 UTC (6 years ago) by pd
Branch: MAIN
Changes since 1.27: +4 -3 lines
Diff to previous 1.27 (colored)

vmd(8): enable pause / unpause for vm owners

Patch from Mohamed Aslan.  Thanks!
ok kn@

Revision 1.27 / (download) - annotate - [select for diffs], Wed Jan 3 05:39:56 2018 UTC (6 years, 5 months ago) by ccardenas
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3
Changes since 1.26: +3 -1 lines
Diff to previous 1.26 (colored)

Add initial CD-ROM support to VMD via vioscsi.

* Adds 'cdrom' keyword to vm.conf(5) and '-r' to vmctl(8)
* Support various sized ISOs (Limitation of 4G ISOs on Linux guests)
* Known working guests: OpenBSD (primary), Alpine Linux (primary),
  CentOS 6 (secondary), Ubuntu 17.10 (secondary).
  NOTE: Secondary indicates some issue(s) preventing full/reliable
  functionality outside the scope of the vioscsi work.
* If the attached disks are non-bootable (i.e. empty), SeaBIOS (vmd's
  default BIOS) will boot from CD-ROM.

ok mlarkin@, jca@

Revision 1.26 / (download) - annotate - [select for diffs], Sat Nov 11 07:36:56 2017 UTC (6 years, 6 months ago) by jmc
Branch: MAIN
Changes since 1.25: +3 -3 lines
Diff to previous 1.25 (colored)

reads better as *an* rdomain, i think;

Revision 1.25 / (download) - annotate - [select for diffs], Sat Nov 11 02:50:07 2017 UTC (6 years, 6 months ago) by mlarkin
Branch: MAIN
Changes since 1.24: +8 -15 lines
Diff to previous 1.24 (colored)

update switch handling in vmd(8). vmd now gets switch information (rdomain,
etc) from underlying switch interface instead of handling this on its
own.

Diff from carlos cardenas, Thanks!

ok reyk@

Revision 1.24 / (download) - annotate - [select for diffs], Sun Nov 5 20:01:09 2017 UTC (6 years, 7 months ago) by reyk
Branch: MAIN
Changes since 1.23: +3 -3 lines
Diff to previous 1.23 (colored)

Add minimal DHCP support to vmd's built-in DHCP/BOOTP server.

This fixes "local interface" mode with the udhcpc client.  udhcpc, a
DHCP client that is used by busybox and many embedded Linux distributions,
does not support BOOTP which is the predecessor and a valid subset of DHCP.

OK mlarkin@, Carlos Cardenas

Revision 1.23 / (download) - annotate - [select for diffs], Mon Oct 30 03:37:33 2017 UTC (6 years, 7 months ago) by mlarkin
Branch: MAIN
Changes since 1.22: +3 -7 lines
Diff to previous 1.22 (colored)

vmd no longer creates bridges by default. users should create bridges in
/etc/hostname.bridge* files, and specify which bridge to use for a given
virtual switch in vm.conf.

diff from Carlos Cardenas, thanks

Revision 1.22 / (download) - annotate - [select for diffs], Thu Aug 31 06:11:45 2017 UTC (6 years, 9 months ago) by jasper
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.21: +5 -3 lines
Diff to previous 1.21 (colored)

match vmctl.8 vm name constraints

from Carlos Cardenas

Revision 1.21 / (download) - annotate - [select for diffs], Wed Jul 19 01:36:31 2017 UTC (6 years, 10 months ago) by mlarkin
Branch: MAIN
Changes since 1.20: +8 -5 lines
Diff to previous 1.20 (colored)

Don't recommend using /var/vmm for VM images.

Discussed with deraadt

Revision 1.20 / (download) - annotate - [select for diffs], Thu May 4 08:26:06 2017 UTC (7 years, 1 month ago) by reyk
Branch: MAIN
Changes since 1.19: +11 -2 lines
Diff to previous 1.19 (colored)

Add support for rdomains.

This allows to configure VM interfaces and switches in individual rdomains.

OK mlarkin@

Revision 1.19 / (download) - annotate - [select for diffs], Fri Apr 21 07:03:26 2017 UTC (7 years, 1 month ago) by reyk
Branch: MAIN
Changes since 1.18: +19 -3 lines
Diff to previous 1.18 (colored)

Add global configuration option "local prefix" to change prefix for -L.

The default prefix is 100.64.0.0/10 from RFC6598.

Requested by sthen@ chris@
OK mlarkin@

Revision 1.18 / (download) - annotate - [select for diffs], Wed Apr 19 15:38:32 2017 UTC (7 years, 1 month ago) by reyk
Branch: MAIN
Changes since 1.17: +11 -3 lines
Diff to previous 1.17 (colored)

Add support for dynamic "NAT" interfaces (-L/local interface).

When a local interface is configured, vmd configures a /31 address on
the tap(4) interface of the host and provides another IP in the same
subnet via DHCP (BOOTP) to the VM.  vmd runs an internal BOOTP server
that replies with IP, gateway, and DNS addresses to the VM.  The
built-in server only ever responds to the VM on the inside and cannot
leak its DHCP responses to the outside.

Thanks to Uwe Werler, Josh Grosse, and some others for testing!

OK deraadt@

Revision 1.17 / (download) - annotate - [select for diffs], Sat Mar 25 16:28:25 2017 UTC (7 years, 2 months ago) by reyk
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.16: +9 -10 lines
Diff to previous 1.16 (colored)

Boot using BIOS from /etc/firmware/vmm-bios by default.

Instead of using the internal "vmboot", VMs will now be booted using
the external BIOS firmware in /etc/firmware/vmm-bios (which is subject
to a LGPLv3 license).  Direct booting of OpenBSD kernels or
non-default BIOS images is still supported for now using the -b/boot
option that is replacing the -k/kernel option.

As requested by Theo, vmd(8) fails if neither the default BIOS is
found nor a kernel has been specified in the VM configuration.  The
"vmm" BIOS has to be installed using fw_update(1), which will be done
automatically in most cases where the OpenBSD can fetch it after
install/upgrade.

OK mlarkin@

Revision 1.16 / (download) - annotate - [select for diffs], Thu Mar 2 07:33:37 2017 UTC (7 years, 3 months ago) by reyk
Branch: MAIN
Changes since 1.15: +12 -2 lines
Diff to previous 1.15 (colored)

Add "locked lladdr" option to prevent VMs from spoofing MAC addresses.

This is especially useful when multiple VMs share a switch, the
implementation is independent from the underlying switch or bridge.

no objections mlarkin@

Revision 1.15 / (download) - annotate - [select for diffs], Wed Mar 1 12:29:06 2017 UTC (7 years, 3 months ago) by jmc
Branch: MAIN
Changes since 1.14: +3 -4 lines
Diff to previous 1.14 (colored)

tweak previous; ok reyk

Revision 1.14 / (download) - annotate - [select for diffs], Wed Mar 1 07:43:33 2017 UTC (7 years, 3 months ago) by reyk
Branch: MAIN
Changes since 1.13: +8 -2 lines
Diff to previous 1.13 (colored)

Add "owner" option to set a user/group ownership for pre-configured VMs

This allows matching users to start or stop VMs that they "own" and to
access the console accordingly.

OK mlarkin@

Revision 1.13 / (download) - annotate - [select for diffs], Tue Feb 28 08:35:56 2017 UTC (7 years, 3 months ago) by reyk
Branch: MAIN
Changes since 1.12: +7 -7 lines
Diff to previous 1.12 (colored)

Sort vm.conf(5) config options alphabetically

OK mlarkin@

Revision 1.12 / (download) - annotate - [select for diffs], Sat Nov 26 19:49:11 2016 UTC (7 years, 6 months ago) by reyk
Branch: MAIN
Changes since 1.11: +5 -4 lines
Diff to previous 1.11 (colored)

If -m/memory is not specified, use 512M by default.

Default value picked with mlarkin - not too small and not too large.

OK mlarkin@

Revision 1.11 / (download) - annotate - [select for diffs], Thu Oct 20 19:44:09 2016 UTC (7 years, 7 months ago) by jmc
Branch: MAIN
Changes since 1.10: +27 -14 lines
Diff to previous 1.10 (colored)

some readability fixes for the SWITCH CONFIGURATION section,
from edd barrett;

while here, there seems to be three sections to the config file, not two;

Revision 1.10 / (download) - annotate - [select for diffs], Tue Oct 18 05:33:57 2016 UTC (7 years, 7 months ago) by reyk
Branch: MAIN
Changes since 1.9: +4 -7 lines
Diff to previous 1.9 (colored)

When the guest OS gets a zero MAC address on a network interface, it should
create a randomized locally administrated address.  OpenBSD as a guest OS
does this correctly but we cannot rely on it for other guests, so randomize
the MAC address in vmd(8) on the host side if it is not specified by the
user.  I incremented the prefix by one to differentiate from the ones
that are generated by OpenBSD in the kernel; fe:e1:bb:xx:xx:xx.

OK deraadt@ mlarkin@

Revision 1.9 / (download) - annotate - [select for diffs], Mon Oct 17 16:26:20 2016 UTC (7 years, 7 months ago) by reyk
Branch: MAIN
Changes since 1.8: +11 -2 lines
Diff to previous 1.8 (colored)

Add the option to specify an interface group per virtual switch as well;
this group will be added to all VM tap(4) interfaces in the switch.

Tested by martijn@

Revision 1.8 / (download) - annotate - [select for diffs], Sat Oct 15 14:02:11 2016 UTC (7 years, 7 months ago) by reyk
Branch: MAIN
Changes since 1.7: +11 -2 lines
Diff to previous 1.7 (colored)

Allow to add an interface to an interface group; with the group keyword.

Requested and tested by martijn@

Revision 1.7 / (download) - annotate - [select for diffs], Thu Oct 6 10:59:14 2016 UTC (7 years, 8 months ago) by jmc
Branch: MAIN
Changes since 1.6: +5 -6 lines
Diff to previous 1.6 (colored)

tweak previous;

Revision 1.6 / (download) - annotate - [select for diffs], Wed Oct 5 17:30:13 2016 UTC (7 years, 8 months ago) by reyk
Branch: MAIN
Changes since 1.5: +123 -6 lines
Diff to previous 1.5 (colored)

Add support for enhanced networking configuration and virtual switches.
See vm.conf(5) for more details.

OK mlarkin@

Revision 1.5 / (download) - annotate - [select for diffs], Thu May 5 09:00:44 2016 UTC (8 years, 1 month ago) by schwarze
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.4: +3 -3 lines
Diff to previous 1.4 (colored)

Fix a pasto; from Michal Mazurek <akfaew at jasminek dot net>.
OK mlarkin

Revision 1.4 / (download) - annotate - [select for diffs], Mon Dec 7 13:30:06 2015 UTC (8 years, 6 months ago) by reyk
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.3: +2 -2 lines
Diff to previous 1.3 (colored)

Most common strings in vm.conf are pathnames, so allow unquoted
slashes in strings.  Slashes were excluded because the parser came
from pfctl and bgpd were IP prefixes are parsed this way but we can
handle such cases differently if vmd ever has to parse IPs with prefix
length.  This change also allows to concatenate pathnames with macros.

Revision 1.3 / (download) - annotate - [select for diffs], Thu Dec 3 22:18:37 2015 UTC (8 years, 6 months ago) by jmc
Branch: MAIN
Changes since 1.2: +3 -3 lines
Diff to previous 1.2 (colored)

sort SEE ALSO;

Revision 1.2 / (download) - annotate - [select for diffs], Thu Dec 3 21:45:45 2015 UTC (8 years, 6 months ago) by reyk
Branch: MAIN
Changes since 1.1: +3 -3 lines
Diff to previous 1.1 (colored)

Replace vmmctl with vmctl.  Also remove parse.y from the "new" vmctl.

As discussed with mlarkin@ and deraadt@

Revision 1.1 / (download) - annotate - [select for diffs], Thu Dec 3 16:11:32 2015 UTC (8 years, 6 months ago) by reyk
Branch: MAIN

Add support for an optional vm.conf(5) file in vmd.  This will replace
vmm.conf(5) in vmmctl.  For a short time, both vmd and vmmctl will
support a configuration file, but vmmctl will be changed to send
"load" requests to vmd instead of loading and parsing the file
directly.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.