vmrun.sh (270513) | vmrun.sh (270754) |
---|---|
1#!/bin/sh 2# 3# Copyright (c) 2013 NetApp, Inc. 4# All rights reserved. 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions 8# are met: --- 10 unchanged lines hidden (view full) --- 19# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25# SUCH DAMAGE. 26# | 1#!/bin/sh 2# 3# Copyright (c) 2013 NetApp, Inc. 4# All rights reserved. 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions 8# are met: --- 10 unchanged lines hidden (view full) --- 19# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25# SUCH DAMAGE. 26# |
27# $FreeBSD: head/share/examples/bhyve/vmrun.sh 270513 2014-08-25 01:36:56Z rodrigc $ | 27# $FreeBSD: head/share/examples/bhyve/vmrun.sh 270754 2014-08-28 16:26:13Z rodrigc $ |
28# 29 30LOADER=/usr/sbin/bhyveload 31BHYVECTL=/usr/sbin/bhyvectl 32FBSDRUN=/usr/sbin/bhyve 33 34DEFAULT_MEMSIZE=512M 35DEFAULT_CPUS=2 --- 136 unchanged lines hidden (view full) --- 172echo "Launching virtual machine \"$vmname\" ..." 173 174virtio_diskdev="$disk_dev0" 175 176${BHYVECTL} --vm=${vmname} --destroy > /dev/null 2>&1 177 178while [ 1 ]; do 179 | 28# 29 30LOADER=/usr/sbin/bhyveload 31BHYVECTL=/usr/sbin/bhyvectl 32FBSDRUN=/usr/sbin/bhyve 33 34DEFAULT_MEMSIZE=512M 35DEFAULT_CPUS=2 --- 136 unchanged lines hidden (view full) --- 172echo "Launching virtual machine \"$vmname\" ..." 173 174virtio_diskdev="$disk_dev0" 175 176${BHYVECTL} --vm=${vmname} --destroy > /dev/null 2>&1 177 178while [ 1 ]; do 179 |
180 file ${virtio_diskdev} | grep "boot sector" > /dev/null | 180 file -s ${virtio_diskdev} | grep "boot sector" > /dev/null |
181 rc=$? 182 if [ $rc -ne 0 ]; then | 181 rc=$? 182 if [ $rc -ne 0 ]; then |
183 file ${virtio_diskdev} | grep ": Unix Fast File sys" > /dev/null | 183 file -s ${virtio_diskdev} | grep ": Unix Fast File sys" > /dev/null |
184 rc=$? 185 fi 186 if [ $rc -ne 0 ]; then 187 need_install=1 188 else 189 need_install=0 190 fi 191 --- 63 unchanged lines hidden --- | 184 rc=$? 185 fi 186 if [ $rc -ne 0 ]; then 187 need_install=1 188 else 189 need_install=0 190 fi 191 --- 63 unchanged lines hidden --- |