From owner-freebsd-virtualization@freebsd.org Tue Oct 13 11:43:31 2015 Return-Path: Delivered-To: freebsd-virtualization@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5F8D3A11837 for ; Tue, 13 Oct 2015 11:43:31 +0000 (UTC) (envelope-from matt.churchyard@userve.net) Received: from smtp-outbound.userve.net (smtp-outbound.userve.net [217.196.1.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.userve.net", Issuer "Go Daddy Secure Certificate Authority - G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 10BA0C97 for ; Tue, 13 Oct 2015 11:43:30 +0000 (UTC) (envelope-from matt.churchyard@userve.net) Received: from owa.usd-group.com (owa.usd-group.com [217.196.1.2]) by smtp-outbound.userve.net (8.15.1/8.15.1) with ESMTPS id t9DBHlIv001769 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Tue, 13 Oct 2015 12:17:49 +0100 (BST) (envelope-from matt.churchyard@userve.net) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=userve.net; s=201508; t=1444735069; bh=B4qcQHvh5Qy0jAZ2UXDo+aM3Uw+FDlpYjsr39pD/Ogw=; h=From:To:Subject:Date; b=ARk++UUdsWCmA3xkMc3E83rgWaufL64DjhUbql/09HZnmK5PC1FzJuWhticSqS9al E7OWDwgqLGGwnuO4swbR4whiOfWsALStf4bn9RddyaLN2TpR5N84qmEpDgCn3m9qz3 bYdlznHcVnTTLNbMSdDVe1K/OKUWdAjkBvEUCTiU= Received: from SERVER.ad.usd-group.com (192.168.0.1) by SERVER.ad.usd-group.com (192.168.0.1) with Microsoft SMTP Server (TLS) id 15.0.847.32; Tue, 13 Oct 2015 12:17:41 +0100 Received: from SERVER.ad.usd-group.com ([fe80::b19d:892a:6fc7:1c9]) by SERVER.ad.usd-group.com ([fe80::b19d:892a:6fc7:1c9%12]) with mapi id 15.00.0847.030; Tue, 13 Oct 2015 12:17:41 +0100 From: Matt Churchyard To: "freebsd-virtualization@freebsd.org" Subject: Illumos boot Thread-Topic: Illumos boot Thread-Index: AdEFpuLuEiXyF4rFT0iOg0wo9KoWVQ== Date: Tue, 13 Oct 2015 11:17:40 +0000 Message-ID: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [192.168.0.10] MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.20 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Oct 2015 11:43:31 -0000 Hello In my quest to continue expanding guest support in my vm-bhyve utility (See= https://github.com/churchers/vm-bhyve :) ), I've found the Windows support= pretty solid once I got clear on the slot requirements. I'm now trying an = OS that requires CSM (Illumos) but unfortunately I'm currently struggling t= o get it to boot up correctly. Here's an example of the command I'm generating at the moment (This is runn= ing on an Intel Core-i3): bhyve -c 2 -m 2G -s 0,hostbridge -s 31,lpc \ -s 3,ahci-cd,/data/vm/.iso/smartos-latest.iso \ -s 4:0,ahci-hd,/data/vm/smartos/disk0.img \ -s 5:0,virtio-net,tap0 \ -l com1,stdio -l com2,/dev/nmdm2A \ -H -l bootrom,/data/vm/.config/BHYVE_UEFI_CSM.fd \ smartos I have com1 set to stdio so I can easily watch the output as it runs. It tends to get as far as "Legacy INT19 Boot...", then fall over. Depending on whether I put the network interface directly in the slot after= the HDD, I seem to get different errors - slot 3 - cd slot 4 - hdd slot 5 - virtio-net panic[cpu0]/thread=3Dffffff01457cdb40: BAD TRAP: type=3De (#pf Page fault) = rp=3Dffffff0004a69a60 addr=3D40 occurred in module "genunix" due to a NULL = pointer dereference slot 3 - cd slot 4 - hdd slot 7 - virtio-net panic[cpu1]/thread=3Dffffff0004002c40: BAD TRAP: type=3Dd (#gp General prot= ection) rp=3Dffffff0004002740 addr=3D0 On com2 I see the boot menu, then one and a half lines of dots. The second = line of dots stops about 2/3 of the way across. Interestingly, my code normally puts the CD after the HDD, which Windows se= ems happy with as long as the slots are consecutive. In SmartOS this gives me a different error: slot 3 - hdd slot 4 - cd slot 5 - virtio-net PlatformBdsBootFail Boot Failed. Harddisk 1 !!!! Find PE image /home/grehan/proj/stock_edk2/Build/BhyveX64/DEBUG_GCC48/= X64/UefiCpuPkg/CpuDxe/CpuDxe/DEBUG/CpuDxe.dll (ImageBase=3D000000007F8DC000= , EntryPoint=3D000000007F8DC2AF) !!!! Regards, Matt Churchyard