From owner-freebsd-virtualization@FreeBSD.ORG Tue Dec 24 06:03:50 2013 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2A4B062D for ; Tue, 24 Dec 2013 06:03:50 +0000 (UTC) Received: from mail-la0-x234.google.com (mail-la0-x234.google.com [IPv6:2a00:1450:4010:c03::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A805D11C6 for ; Tue, 24 Dec 2013 06:03:49 +0000 (UTC) Received: by mail-la0-f52.google.com with SMTP id y1so2707749lam.11 for ; Mon, 23 Dec 2013 22:03:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=6JgEz1sjc6fvASCZVW0VoijljP8PWMhQPnInB1W+krw=; b=1FF/NriQZ9KBGwYYiohFWTLuuFnf7Duc6yy/STtEPgxRGQ+EoXlQPn4vOqhQlWRYS/ N6LB+xB7fhCJwrFdTwdVaKgYKLl0iwKveHhjYTQsN/OhcxRQ50TXAaJUvhYnmM82lOfC PVAmRZ1AqTkWoZjDnLSyvsaASJ6197DJ33gpvWhVHrOsLDgfA6j2dSkLRXKPSDWlC7/A 8qzwKPoYRT278bFwjCb7Ubwf+Vxb+5SO5VqAJdIBFBMQnuQTm7jk2DcnWKSK0O8tSGRN Vv0/jrbV4267WSC8lrJov4B0eBnj0nHy4veGydUt3Wyq9e1Gdb3XJxU3zc99wxDnHojX EZ6g== MIME-Version: 1.0 X-Received: by 10.112.168.199 with SMTP id zy7mr4620lbb.68.1387865027463; Mon, 23 Dec 2013 22:03:47 -0800 (PST) Sender: crodr001@gmail.com Received: by 10.114.181.101 with HTTP; Mon, 23 Dec 2013 22:03:47 -0800 (PST) Date: Mon, 23 Dec 2013 22:03:47 -0800 X-Google-Sender-Auth: VVP9iHkjyEhr90I9DBi9PpNtBpA Message-ID: Subject: Booting a disk image with GRUB in BHyve? From: Craig Rodrigues To: "freebsd-virtualization@freebsd.org" Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.17 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, 24 Dec 2013 06:03:50 -0000 Hi, I tried the following: (1) Downloaded SmartOS USB image from: http://wiki.smartos.org/display/DOC/Download+SmartOS (2) Uncompressed the bz2 file. (3) Ran "file" on the binary: # file smartos-latest-USB.img smartos-latest-USB.img: x86 boot sector; GRand Unified Bootloader, stage1 version 0x3, stage2 address 0x2000, stage2 segment 0x200; partition 1: ID=0xc, starthead 1, startsector 63, 3903732 sectors, extended partition table (last)\011, code offset 0x48 (4) Tried vmrun.sh: sh /usr/share/examples/bhyve/vmrun.sh -d ./smartos-latest-USB.img -m 4G smartos_vm1 I got this error: ================================================= Launching virtual machine "smartos_vm1" ... Consoles: userboot FreeBSD/amd64 User boot, Revision 1.1 (rodrigc@pcbsd-4708, Mon Oct 14 14:36:53 PDT 2013) \ can't load 'kernel' Type '?' for a list of commands, 'help' for more detailed help. OK ==================================================== How can I boot something which uses GRUB bootloader in BHyve? Thanks. --