libvirt/src/bhyve
Fabian Freyer 8151b300fb bhyve: implement bhyve argument parser
A simpe getopt-based argument parser is added for the /usr/sbin/bhyve command,
loosely based on its argument parser, which reads the following from the bhyve
command line string:

* vm name
* number of vcpus
* memory size
* the time offset (UTC or localtime)
* features:
  * acpi
  * ioapic: While this flag is deprecated in FreeBSD r257423, keep checking for
    it for backwards compatibiility.
* the domain UUID; if not explicitely given, one will be generated.
* lpc devices: for now only the com1 and com2 are supported. It is required for
   these to be /dev/nmdm[\d+][AB], and the slave devices are automatically
   inferred from these to be the corresponding end of the virtual null-modem
   cable: /dev/nmdm<N>A <-> /dev/nmdm<N>B
* PCI devices:
  * Disks: these are numbered in the order they are found, for virtio and ahci
    disks separately. The destination is set to sdX or vdX with X='a'+index;
    therefore only 'z'-'a' disks are supported.
    Disks are considered to be block devices if the path
    starts with /dev, otherwise they are considered to be files.
  * Networks: only tap devices are supported. Since it isn't possible to tell
    the type of the network, VIR_DOMAIN_NET_TYPE_ETHERNET is assumed, since it
    is the most generic. If no mac is specified, one will be generated.

Signed-off-by: Fabian Freyer <fabian.freyer@physik.tu-berlin.de>
2016-07-10 15:40:10 -04:00
..
bhyve_capabilities.c nodeinfo: remove sysfs_prefix from all methods 2016-06-09 18:00:18 +01:00
bhyve_capabilities.h bhyve: add UTC clock support 2015-07-22 19:05:09 +03:00
bhyve_command.c conf: store bootindex as unsigned int 2016-04-06 09:27:23 +02:00
bhyve_command.h bhyve: Support /domain/bootloader configuration for non-FreeBSD guests. 2014-11-12 09:55:22 +01:00
bhyve_device.c bhyve: auto-assign addresses when <address type='pci'/> is specified 2016-05-20 13:54:26 -04:00
bhyve_device.h bhyve: implement PCI address allocation 2014-06-13 19:25:27 +04:00
bhyve_domain.c conf: refactor checking for unsupported memory devices 2016-03-09 10:09:16 +01:00
bhyve_domain.h bhyve: monitor: do not override domain's privateData 2015-11-17 12:44:26 +03:00
bhyve_driver.c bhyve: implement virConnectDomainXMLFromNative 2016-07-10 15:40:10 -04:00
bhyve_driver.h bhyve: fix preprocessor indentation 2016-02-06 05:26:51 +03:00
bhyve_monitor.c bhyve: monitor: do not override domain's privateData 2015-11-17 12:44:26 +03:00
bhyve_monitor.h drvbhyve: Automatically tear down guest domains on shutdown 2014-12-04 11:03:13 +01:00
bhyve_parse_command.c bhyve: implement bhyve argument parser 2016-07-10 15:40:10 -04:00
bhyve_parse_command.h bhyve: implement virConnectDomainXMLFromNative 2016-07-10 15:40:10 -04:00
bhyve_process.c bhyve: implement domainShutdown 2016-05-05 08:04:01 +03:00
bhyve_process.h bhyve: implement domainShutdown 2016-05-05 08:04:01 +03:00
bhyve_utils.h conf: Split virDomainObjList into a separate file 2015-11-30 13:55:10 +01:00