From owner-freebsd-virtualization@FreeBSD.ORG Wed Feb 19 08:50:36 2014 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 79DF2D29 for ; Wed, 19 Feb 2014 08:50:36 +0000 (UTC) Received: from mail.monkeybrains.net (mail.monkeybrains.net [208.69.40.19]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 5E7CF1AED for ; Wed, 19 Feb 2014 08:50:35 +0000 (UTC) Received: from Birdhouse-o-My.local (208-90-212-98.PUBLIC.monkeybrains.net [208.90.212.98]) (authenticated bits=0) by mail.monkeybrains.net (8.14.7/8.14.7) with ESMTP id s1J8oZwj004400 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Wed, 19 Feb 2014 00:50:35 -0800 (PST) (envelope-from crapsh@monkeybrains.net) X-Authentication-Warning: mail.monkeybrains.net: Host 208-90-212-98.PUBLIC.monkeybrains.net [208.90.212.98] claimed to be Birdhouse-o-My.local Message-ID: <5304705B.8000901@monkeybrains.net> Date: Wed, 19 Feb 2014 00:50:35 -0800 From: "Rudy (bulk)" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 MIME-Version: 1.0 To: freebsd-virtualization@freebsd.org Subject: SOLVED - Re: New to Bhyve -- help setting up /dev/sda1 and /dev/vda1 References: <53046315.5090804@monkeybrains.net> In-Reply-To: <53046315.5090804@monkeybrains.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.98.1 at mail.monkeybrains.net X-Virus-Status: Clean 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: Wed, 19 Feb 2014 08:50:36 -0000 On 2/18/14, 11:53 PM, Rudy (bulk) wrote: > > I am trying this method and can't quite figure out what root device to > pass grub. > > # Step 0, clear old vm1 > bhyvectl --vm=vm1 --destroy > > # Step 1, Launch grub-bhyve and configure grub. > grub-bhyve -r hd0 -m ./device.map -v -M 2048 vm1 > > # Step 2, type in the following commands > set root=(hd0,msdos1) > linux /vmlinuz root=/dev/vda1 > initrd /initrd.img > boot > > # Step 3, launch bhyve > bhyve -c 2 -m 2048M -A -H -P -s 0:0,amd_hostbridge -s 1:0,lpc -s > 2:0,virtio-net,tap0 -s 3:0,virtio-blk,vm1.img -l com1,stdio -W vm1 Getting rid of the W flag fixed my issues. I have a Ubnutu log-in prompt! Also, I switched to zvol. cat device.map (hd0) /dev/zvol/data/vm1 (cd0) /data/images/vm1/vm1.iso Here was the installation step: bhyvectl --vm=vm1 --destroy grub-bhyve -r cd0 -m ./device.map -v -M 2048 vm1 bhyve -c 2 -m 2048M -H -P -s 0:0,hostbridge -s 1:0,lpc -s 2:0,virtio-net,tap0 -s 4,virtio-blk,/dev/zvol/data/vm1 -s 3,ahci-cd,vm1.iso -l com1,stdio -A vm1 And here is how to launch: bhyvectl --vm=vm1 --destroy grub-bhyve -r hd0 -m ./device.map -v -M 2048 vm1 set root=(hd0,msdos1) linux /vmlinuz root=/dev/vda1 initrd /initrd.img boot bhyve -c 2 -m 2048M -H -P -s 0:0,hostbridge -s 1:0,lpc -s 2:0,virtio-net,tap0 -s 4,virtio-blk,/dev/zvol/data/vm1 -s 3,ahci-cd,vm1.iso -l com1,stdio -A vm1 Rudy