Re: Running FreeNAS under BHyve
On Sat, Oct 12, 2013 at 8:44 PM, Michael Dexter wrote: > > Hello, > > On 10/10/13 4:36 PM, Craig Rodrigues wrote: > > Here is what I have been doing to run FreeNAS under BHyve. > > Note that the script archive at bhvye.org has a script, nanobsd2bhyve.sh > that makes this a one step process to modify the FreeNAS .img file and > generates a launch script. > > Thanks for writing that script. I've found it to be generally unnecessary after my latest installer changes to FreeNAS itself. -- Craig ___ freebsd-virtualization@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization To unsubscribe, send any mail to "freebsd-virtualization-unsubscr...@freebsd.org"
Re: Running FreeNAS under BHyve
Hello, On 10/10/13 4:36 PM, Craig Rodrigues wrote: > Here is what I have been doing to run FreeNAS under BHyve. Note that the script archive at bhvye.org has a script, nanobsd2bhyve.sh that makes this a one step process to modify the FreeNAS .img file and generates a launch script. http://bhyve.org/bhyve-scripts.tar Michael ___ freebsd-virtualization@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization To unsubscribe, send any mail to "freebsd-virtualization-unsubscr...@freebsd.org"
Re: Running FreeNAS under BHyve
On Sat, Oct 12, 2013 at 2:39 PM, Aryeh Friedman wrote: > You can always run bhyve from the command line [we even provide a script >>> for this, to be documented in petitecloud 0.2]) in such cases how do >>> you get the IP address and other configurations on each lease change? >>> >> FreeNAS is using all the infrastructure of FreeBSD, so you would have to use the same technique when running FreeBSD under petitecloud to get this information. -- Craig ___ freebsd-virtualization@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization To unsubscribe, send any mail to "freebsd-virtualization-unsubscr...@freebsd.org"
Re: Running FreeNAS under BHyve
> > How do you find this out sort of asking your local DHCP server which may >> or may not be available depending on setup of DHCP >> >> > If a DHCP address is obtained, it will be displayed on the console. > This assumes that there is a visible console. petitecloud, for example only, currently shows the guest console once (the first reboot after installing. You can always run bhyve from the command line [we even provide a script for this, to be documented in petitecloud 0.2]) in such cases how do you get the IP address and other configurations on each lease change? ___ freebsd-virtualization@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization To unsubscribe, send any mail to "freebsd-virtualization-unsubscr...@freebsd.org"
Re: Running FreeNAS under BHyve
On Thu, Oct 10, 2013 at 6:31 PM, Aryeh Friedman wrote: > > > > On Thu, Oct 10, 2013 at 7:36 PM, Craig Rodrigues wrote: > >> >> If DHCP works, you should be able to access the FreeNAS web GUI >> using a web browser, via the IP address that the BHyve VM got from DHCP. >> >> >> > How do you find this out sort of asking your local DHCP server which may > or may not be available depending on setup of DHCP > > If a DHCP address is obtained, it will be displayed on the console. -- Craig ___ freebsd-virtualization@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization To unsubscribe, send any mail to "freebsd-virtualization-unsubscr...@freebsd.org"
Re: Running FreeNAS under BHyve
On Thu, Oct 10, 2013 at 7:36 PM, Craig Rodrigues wrote: > > If DHCP works, you should be able to access the FreeNAS web GUI > using a web browser, via the IP address that the BHyve VM got from DHCP. > > > How do you find this out sort of asking your local DHCP server which may or may not be available depending on setup of DHCP ___ freebsd-virtualization@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization To unsubscribe, send any mail to "freebsd-virtualization-unsubscr...@freebsd.org"
Running FreeNAS under BHyve
Hi, Here is what I have been doing to run FreeNAS under BHyve. (1) Download latest FreeNAS-9.2.0-ALPHA ISO from: http://sourceforge.net/projects/freenas/files/FreeNAS-nightlies/2013-10-09/x64/ (2) Run this script to set up tap device: = #!/bin/sh # Change following to your network interface iface=em0 ifconfig bridge0 create ifconfig tap0 create ifconfig bridge0 addm $iface addm tap0 up sysctl net.link.tap.user_open=1 sysctl net.link.tap.up_on_open=1 = (3) Create a 4G disk image: truncate -s 4G /tmp/disk.img (4) Run the FreeNAS installer under BHyve and install it to the disk created in step (3): sh /usr/share/examples/bhyve/vmrun.sh -I FreeNAS-9.2.0-ALPHA-a2fb413-x64.iso -d /tmp/disk.img -m 4096 -t tap0 freenas_vm (5) Once the installer has completed, select Shutdown. (6) In a separate window, kill the vm bhyvectl --destroy --vm=freenas_vm (7) Restart BHyve, but this time, do not boot off the ISO image: sh /usr/share/examples/bhyve/vmrun.sh -d /tmp/disk.img -m 4G -t tap0 freenas_vm If DHCP works, you should be able to access the FreeNAS web GUI using a web browser, via the IP address that the BHyve VM got from DHCP. -- Craig ___ freebsd-virtualization@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-virtualization To unsubscribe, send any mail to "freebsd-virtualization-unsubscr...@freebsd.org"