Hi,
Following instructions from various posts/articles, I'm trying to install Red Hat as bhyve guest in jail. Now I can start the jail successully, and inside jail running install.sh script gives me error:
Here is the install.sh script
Here is jail.conf
I have these lines in /etc/rc.conf
Following instructions from various posts/articles, I'm trying to install Red Hat as bhyve guest in jail. Now I can start the jail successully, and inside jail running install.sh script gives me error:
Code:
Could not set interface flags
device emulation initialization error: Operation not permitted
Here is the install.sh script
Code:
bhyve -c 1 -m 15G -w -H \
-s 0,hostbridge \
-s 3,ahci-cd,/bhyve/redhat/iso/rhel-91.iso \
-s 4,ahci-hd,/bhyve/redhat/img/redhat.img \
-s 5,virtio-net,tap0 \
-s 29,fbuf,tcp=0.0.0.0:5900,w=800,h=600,wait \
-s 30,xhci,tablet \
-s 31,lpc \
-l com1,stdio \
-l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \
redhat
Here is jail.conf
Code:
exec.start = "/bin/sh /etc/rc";
exec.stop = "/bin/sh /etc/rc.shutdown";
exec.clean;
mount.devfs;
bhyve {
path = "/jails";
host.hostname = "bhyve";
devfs_ruleset = 20;
interface = lo0;
ip4.addr = 127.0.0.10;
allow.vmm;
persist;
}
I have these lines in /etc/rc.conf
Code:
jail_enable="YES"
cloned_interfaces="bridge0 tap0"
ifconfig_bridge0_name="re1bridge"
ifconfig_re1bridge="addm re1 addm tap0 up"