[PATCH v1 11/12] bhyve: command: enable booting from hostdevs

Ryan Moeller ryan at ixsystems.com
Mon Feb 24 06:46:23 UTC 2020


It is possible to boot from virtio-scsi with UEFI-devel, for example.

Signed-off-by: Ryan Moeller <ryan at iXsystems.com>
---
 src/bhyve/bhyve_command.c | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/bhyve/bhyve_command.c b/src/bhyve/bhyve_command.c
index 9f4030f6a3..048c26733a 100644
--- a/src/bhyve/bhyve_command.c
+++ b/src/bhyve/bhyve_command.c
@@ -993,11 +993,8 @@ virBhyveGetBootDisk(virDomainDefPtr def)
     virDomainDiskDefPtr match = NULL;
     int boot_dev = -1;
 
-    if (def->ndisks < 1) {
-        virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
-                       _("Domain should have at least one disk defined"));
+    if (def->ndisks == 0)
         return NULL;
-    }
 
     if (def->os.nBootDevs > 1) {
         virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s",
-- 
2.24.1





More information about the libvir-list mailing list