Age | Commit message (Collapse) | Author |
|
Pointed out by Jon Williams
OK mlarkin@ kn@ ccardenas@
|
|
|
|
I committed the manpage but accidentally forgot the main.c part.
OK ccardenas@
|
|
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@
|
|
|
|
|
|
Use it in /etc/rc.d/vmd accordingly.
OK sthen@
|
|
This also fixes a bug in vmm_sighdlr where it might have missed
forwarding the TERMINATE_EVENT to the vmd parent after a VM child
died, leading to an abandoned VM in the vmd parent process.
OK ccardenas@ mlarkin@ benno@ kn@
|
|
display the correct error message. This is a pattern found elsewhere in vmctl.
With input from deraadt@ and encouraged by mlarkin@
|
|
|
|
Also changes an error message in vmctl to reflect same.
|
|
|
|
Clear up ambiguous error message when attaching to a console fails as
the vm id is not guaranteed to be populated.
ok mlarkin@
|
|
|
|
*ctl programs
OK mlarkin@ benno@ deraadt@
|
|
|
|
* 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@
|
|
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
|
|
ok deraadt@ mlarkin@
|
|
diff provided by Carlos Cardenas, thanks
|
|
Noticed by Carlos Cardenas
|
|
OK mlarkin@, krw@. Thanks!
|
|
|
|
vm X" to "sent request to terminate vm X".
vmctl/vmd have not forcibly terminated VMs in a while, we try to let
vmmci(4) gracefully shutdown the VM, so "vmctl stop" commands are
really requests to stop, not forced stops. The new message indicates
that a shutdown is (possibly) in progress and not "complete".
|
|
These don't work today and present the user with a confusing error
message if an attempt is made to use them. This commit detects attempts
to use block or character devices and if detected, presents the user with
a better message.
ok jasper
From Carlos Cardenas, thanks!
|
|
ok deraadt
|
|
annotate the ones which are needed.
|
|
vmctl so that it can display proper errors for "disk missing" and "bios
missing" situations. Expands on an earlier idea/diff from jasper.
ok jasper@, pd@, tedu@
|
|
ok mlarkin@ pd@
|
|
invoking 'stop' for a non-existent vm
ok mlarkin@
|
|
|
|
not found
ok mlarkin@
|
|
|
|
associated with the vm upfront
as discussed with and ok mlarkin@ pd@
|
|
|
|
ok reyk@ and mlarkin@
|
|
With help from Ashwin Agrawal
ok reyk@ mlarkin@
|
|
strictly needed but matches the previous baudrate diff committed earlier
to vmd.
ok deraadt, phessler
|
|
OK mlarkin@
|
|
specifically: vmctl (load|reload|reset|log)
Reported by Christian Barthel
|
|
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@
|
|
Spotted by Ilya Kaliman, thanks.
|
|
Each VM has two IDs: one from the kernel (vmm) and a different one
from userland (vmd). The vmm ID is not consistent and incremented on
every boot during runtimg of the host system. The vmd ID remains the
same during the lifetime of a configured VM, even after reboots.
Configured VMs will even get and keep their IDs when the configuration
is loaded. This is more what users expect.
Pointed out and tested by otto@
OK deraadt@
|
|
sure the interfaces are up on startup.
OK deraadt@, reky@
|
|
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@
|
|
|
|
destination in snprintf(). Use a temporary variable instead.
Found and OK by jsg@
|
|
|
|
something from vmd.h . Temporary fix until the original committer can
fix it the way he desires.
|
|
This allows matching users to start or stop VMs that they "own" and to
access the console accordingly.
OK mlarkin@
|