From owner-freebsd-virtualization@FreeBSD.ORG Sat Aug 30 14:22:22 2014 Return-Path: Delivered-To: freebsd-virtualization@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 74F0086A for ; Sat, 30 Aug 2014 14:22:22 +0000 (UTC) Received: from mail-vc0-x22e.google.com (mail-vc0-x22e.google.com [IPv6:2607:f8b0:400c:c03::22e]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3897D1FAA for ; Sat, 30 Aug 2014 14:22:22 +0000 (UTC) Received: by mail-vc0-f174.google.com with SMTP id hy4so3790089vcb.33 for ; Sat, 30 Aug 2014 07:22:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=del/lAbATadOL7Ae1+Lp3Z0Kl1ceweywYx04DWoEqeI=; b=OmDSXMKpI4qEsDY/kBY0c5gA/aAPQecItlBOxaMBGtnoTyjMpn5BE8DHh1NuSCVAzW njjWEfXmV+gU5ee9KdUmydHeX8HjoZ1TjGiul81u6Ikrdh1pfaYXmbvUBqm3bMTjJ6F0 sDR2B+9JWKWfQzBF/Y+4bY8ryBAMlSBFyNr0dWPpkFEP5S47G8uFANFEpD36w1RnIhwk ZB6KH2qBfiovQ5pE/i/BWd4F8gBcATc7npKbakbAyqj8hFkehtX7pYbnp7qsJ6iK+pcX o3HWgSFQbiksCzINhwFzxa7UrPU6xP9TykHCf3HxWFB+0D9wvN5YgLTD0wOY04X2HDcM 7C4g== MIME-Version: 1.0 X-Received: by 10.220.168.210 with SMTP id v18mr15856753vcy.3.1409408541063; Sat, 30 Aug 2014 07:22:21 -0700 (PDT) Received: by 10.221.46.133 with HTTP; Sat, 30 Aug 2014 07:22:21 -0700 (PDT) Date: Sat, 30 Aug 2014 16:22:21 +0200 Message-ID: Subject: vmrun.sh and zvols From: Nikolay Denev To: freebsd-virtualization@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.18-1 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: Sat, 30 Aug 2014 14:22:22 -0000 I had to to this so that zvols used for bhyve can be booted with vmrun.sh. Without this vmrun.sh does not detect the filesystem and always wants the installation CD. Index: share/examples/bhyve/vmrun.sh =================================================================== --- share/examples/bhyve/vmrun.sh (revision 270295) +++ share/examples/bhyve/vmrun.sh (working copy) @@ -176,10 +176,10 @@ while [ 1 ]; do ${BHYVECTL} --vm=${vmname} --destroy > /dev/null 2>&1 - file ${virtio_diskdev} | grep "boot sector" > /dev/null + file -s ${virtio_diskdev} | grep "boot sector" > /dev/null rc=$? if [ $rc -ne 0 ]; then - file ${virtio_diskdev} | grep ": Unix Fast File sys" > /dev/null + file -s ${virtio_diskdev} | grep ": Unix Fast File sys" > /dev/null rc=$? fi if [ $rc -ne 0 ]; then --Nikolay