cheribsd icon indicating copy to clipboard operation
cheribsd copied to clipboard

Arm64 vmrun.sh for bhyve

Open bsdjhb opened this issue 1 year ago • 1 comments
trafficstars

This let me run a VM similar to what I use for amd64 as a single line:

name="installer"
tap="tap0"
sudo sh /path/to/vmrun.sh -c 1 -t ${tap} -m 4G -d /path/to/disks/${name}.img "$@" ${name}

I have not figured out the right incantation of bsd.files.mk magic to install the file. It would be simplest to add a Makefile in share/examples/bhyve I think. For upstream I would probably rename the existing vmrun.sh to vmrun.amd64.sh so it always had MACHINE_ARCH in the source file name. Not sure I wanted to do that in this downstream PR yet though.

bsdjhb avatar Feb 10 '24 16:02 bsdjhb

I'd rather have this in a port so we can update it easily (e.g. as firmware gets more featureful)

jrtc27 avatar Feb 13 '24 18:02 jrtc27