Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 Aug 2014 16:22:21 +0200
From:      Nikolay Denev <ndenev@gmail.com>
To:        freebsd-virtualization@freebsd.org
Subject:   vmrun.sh and zvols
Message-ID:  <CA%2BP_MZHP4TfBQfZbQxTMDwjFRJqN0CieZbvAVep%2B8t2Wu4jSbA@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BP_MZHP4TfBQfZbQxTMDwjFRJqN0CieZbvAVep%2B8t2Wu4jSbA>