*New 11.3 series Release:
2019-10-05: XigmaNAS 11.3.0.4.6928 - released, 11.2 series are soon unsupported!

*New 12.0 series Release:
2019-10-05: XigmaNAS 12.0.0.4.6928 - released!

*New 11.2 series Release:
2019-09-23: XigmaNAS 11.2.0.4.6881 - released!

We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!

Producing and hosting XigmaNAS costs money. Please consider donating for our project so that we can continue to offer you the best.
We need your support! eg: PAYPAL

[HOWTO] bhyve under NAS4Free

Only Admin's or Moderators can move thread's to this sub-forum.
Nobody should start a new thread on this sub-forum.
Anybody can reply to a thread on this sub-forum.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
User avatar
daoyama
Developer
Developer
Posts: 423
Joined: 25 Aug 2012 09:28
Location: Japan
Status: Offline

[HOWTO] bhyve under NAS4Free

#1

Post by daoyama » 25 Sep 2015 04:01

bhyve is BSD hypervisor introduced in FreeBSD 10.0. For more detail, see also:
https://wiki.freebsd.org/bhyve

You can use bhyve on NAS4Free 10.2.0.2.1831 and later.
You need at least 4GB memory on NAS4Free server. (8GB or more is recommended.)
Also you need 64bit CPU with VT-x + EPT or AMD-V + RVI(NPT).

You can use device pass-through on Intel CPU(VT-d).
https://wiki.freebsd.org/bhyve/pci_passthru

Preparation:
1. Load VM module. It will fail to initialize if your CPU does not support. (only once)
# kldload vmm

2. Create bridge network if you don't have. (You can create it from WebGUI.)
Add your LAN interface device to the bridge. em0 is an example.
# ifconfig bridge0 create
# ifconfig bridge0 addm em0


3. Create and add tap device (loopback tunnel) to the bridge.
# ifconfig tap0 create
# ifconfig bridge0 addm tap0


Note that if you want two or more VMs, you need tap1, tap2, ...

4. Add sysctl to change UP state of tap device when open.
# sysctl net.link.tap.up_on_open=1

Create FreeBSD VM:
1. Create empty disk image. (or re-use existing image)
# truncate -s 32G freebsd-10.2.img

2. Boot with CDROM image. (-i and -I iso name)
This example use vCPU=2, mem=2G, network=tap0 and VM name=freebsd-10.2.
# sh /usr/share/examples/bhyve/vmrun.sh -c 2 -m 2G -t tap0 -d freebsd-10.2.img -i -I FreeBSD-10.2-RELEASE-amd64-disc1.iso freebsd-10.2

Note that it use stdin as serial console by default. (No GUI exists.)
You can increase vCPU more than physical CPU for testing purpose.

3. Install FreeBSD by normal way.
All network traffic will go to LAN device via vtnet0 on the VM.

Destroy VM:
Before destroy (force terminate), you should try to shutdown in VM. (shutdown -p now)
# bhyvectl --destroy --vm=freebsd-10.2

Boot with stdin (serial console):
# sh /usr/share/examples/bhyve/vmrun.sh -c 2 -m 2G -t tap0 -d freebsd-10.2.img freebsd-10.2

Boot without stdin (back ground):
You can use null modem device to pass I/O to serial console in VM.
You can connect/disconnect console anytime.

1. Load null modem module. (only once)
# kldload nmdm

2. Boot with null modem. (/dev/nmdm0A is one side of /dev/nmdm0)
# sh /usr/share/examples/bhyve/vmrun.sh -C /dev/nmdm0A -c 2 -m 2G -t tap0 -d freebsd-10.2.img freebsd-10.2 >/dev/null &

3. Connect to the console via other side of nmdm0.
# cu -l /dev/nmdm0B

Note that cu can be terminated by the sequence of ~. (tilde followed by period).
If you want more VMs, you need tap1, nmdm1A, tap2, nmdm2A, ...

Create NAS4Free VM:
1. Create empty disk image. (boot and data disks you want)
# truncate -s 4G nas4free.img
# truncate -s 10G nas4free-data1.img
# truncate -s 10G nas4free-data2.img

It is intended to use mirror volume in NAS4free.
You might need more disks for other level like RAID-Z.

2. Boot with NAS4Free LiveCD.
# sh /usr/share/examples/bhyve/vmrun.sh -c 2 -m 2G -t tap0 -d nas4free.img -i -I NAS4Free-x64-LiveCD-10.2.0.2.1839.iso nas4free

3. Install NAS4Free to vtbd0.
After install, run "8) Shutdown Server" of Console Menu.

Boot with stdin for "2) Configure Network IP Address":
# sh /usr/share/examples/bhyve/vmrun.sh -c 2 -m 2G -t tap0 -d nas4free.img -d nas4free-data1.img -d nas4free-data2.img nas4free

Boot without stdin for normal operation:
# sh /usr/share/examples/bhyve/vmrun.sh -C /dev/nmdm0A -c 2 -m 2G -t tap0 -d nas4free.img -d nas4free-data1.img -d nas4free-data2.img nas4free >/dev/null &
NAS4Free 10.2.0.2.2115 (x64-embedded), 10.2.0.2.2258 (arm), 10.2.0.2.2258(dom0)
GIGABYTE 5YASV-RH, Celeron E3400 (Dual 2.6GHz), ECC 8GB, Intel ET/CT/82566DM (on-board), ZFS mirror (2TBx2)
ASRock E350M1/USB3, 16GB, Realtek 8111E (on-board), ZFS mirror (2TBx2)
MSI MS-9666, Core i7-860(Quad 2.8GHz/HT), 32GB, Mellanox ConnectX-2 EN/Intel 82578DM (on-board), ZFS mirror (3TBx2+L2ARC/ZIL:SSD128GB)
Develop/test environment:
VirtualBox 512MB VM, ESXi 512MB-8GB VM, Raspberry Pi, Pi2, ODROID-C1

User avatar
daoyama
Developer
Developer
Posts: 423
Joined: 25 Aug 2012 09:28
Location: Japan
Status: Offline

Re: [HOWTO] bhyve under NAS4Free

#2

Post by daoyama » 02 Oct 2015 10:30

You cannot boot non-FreeBSD based OS directly since BHyVe has no BIOS emulation.
However, you can load it by grub-bhyve.

This is an example of Pandora FMS 5.1 SP3. (Appliance CD based on CentOS)
http://pandorafms.com/Community/download/en

Preparation:
1. Download iso image and transfer it to NAS4Free.
Current image is PandoraFMS5.1SP3.x86_64.iso.

2. Create bridge network if you don't have.
Add your LAN interface device to the bridge. em0 is an example.
# ifconfig bridge0 create
# ifconfig bridge0 addm em0


3. Create and add tap device to the bridge.
# ifconfig tap2 create
# ifconfig bridge0 addm tap2


Create Linux VM:
1. Create empty disk image.
# truncate -s 8G pandorafms.img

2. Create device map for HD and CDROM.
# nano pandorafms.map

This file should contains two lines like:

Code: Select all

(hd0) pandorafms.img
(cd0) PandoraFMS5.1SP3.x86_64.iso
3. Find root parameter from config on CD image.
This example use vCPU=2, mem=2G, network=tap2 and VM name=pandorafms
grub-bhyve creates VM in memory. If you put wrong data, you can remove by "bhyvectl --destroy --vm=pandorafms".

# grub-bhyve -m pandorafms.map -r cd0 -M 2G pandorafms

Code: Select all

grub> ls
(cd0) (cd0,msdos2) (host)
grub> ls (cd0)
Device cd0: Filesystem type iso9660 - Label `PandoraFMS5.1SP3' - Last modification time
2015-06-24 15:04:55 Wednesday, UUID 2015-06-24-17-04-55-00 - Total size 1748992 sectors
grub> ls (cd0)/
EFI/ GPL isolinux/ LiveOS/
grub> ls (cd0)/isolinux/
boot.cat efiboot.img initrd0.img isolinux.bin isolinux.cfg memtest splash.jpg vesamenu.c32 vmli
nuz0
grub> cat (cd0)/isolinux/isolinux.cfg
(snip...)
label install0
  menu label Install
  kernel vmlinuz0
  append initrd=initrd0.img root=live:CDLABEL=PandoraFMS5.1SP3 rootfstype=auto ro liveimg livei
nst noswap nolvmmount  rd_NO_LUKS rd_NO_MD rd_NO_DM
label textinstall0
  menu label Install (Text Mode)
  kernel vmlinuz0
  append initrd=initrd0.img root=live:CDLABEL=PandoraFMS5.1SP3 rootfstype=auto ro liveimg texti
nst noswap nolvmmount  rd_NO_LUKS rd_NO_MD rd_NO_DM
(snip...)
"root=live:CDLABEL=PandoraFMS5.1SP3" is required one.

4. Load kernel from grub-bhyve.
We need Text Mode installer on BHyVe.

Code: Select all

grub> linux (cd0)/isolinux/vmlinuz0 root=live:CDLABEL=PandoraFMS5.1SP3 rootfstype=auto ro liveimg textinst
grub> initrd (cd0)/isolinux/initrd0.img
grub> boot
After this step, you back to NAS4Free's shell prompt.

5. Boot with CDROM image. (stdio console)
(You can use any tap device other than tap2.)

# bhyve -c 2 -m 2G -A -H -P -s 0:0,hostbridge -s 1:0,lpc -s 2:0,virtio-net,tap2 -s 3:0,virtio-blk,pandorafms.img -s 4:0,ahci-cd,PandoraFMS5.1SP3.x86_64.iso -l com1,stdio pandorafms

6. Install CentOS from text mode.
You can install to HDD image by normal way.

7. Destroy VM.
After installation, you need power off to remove install CD image.
You can destroy the VM from other ssh terminal.

# bhyvectl --destroy --vm=pandorafms

Boot from HDD image (serial console):

1. Find root parameter from HDD.

# grub-bhyve -m pandorafms.map -r hd0,msdos1 -M 2G pandorafms

Code: Select all

grub> ls
(hd0) (hd0,msdos2) (hd0,msdos1) (cd0) (cd0,msdos2) (host) (lvm/vg_livecd-lv_swap) (lvm/vg_livec
d-lv_root)
grub> ls (hd0,msdos1)/
lost+found/ memtest86+-4.10 vmlinuz-2.6.32-504.23.4.el6.x86_64 efi/ elf-memtest86+-4.10 config-
2.6.32-504.23.4.el6.x86_64 symvers-2.6.32-504.23.4.el6.x86_64.gz grub/ extlinux/ System.map-2.6
.32-504.23.4.el6.x86_64 initramfs-2.6.32-504.23.4.el6.x86_64.img
"lvm/vg_livecd-lv_root" is installed device.

2. Load kernel from grub-bhyve.

Code: Select all

grub> linux (hd0,msdos1)/vmlinuz-2.6.32-504.23.4.el6.x86_64 root=/dev/mapper/vg_livecd-lv_root
grub> initrd (hd0,msdos1)/initramfs-2.6.32-504.23.4.el6.x86_64.img
grub> boot
3. Boot from HDD image.

# bhyve -c 2 -m 2G -A -H -P -s 0:0,hostbridge -s 1:0,lpc -s 2:0,virtio-net,tap2 -s 3:0,virtio-blk,pandorafms.img -l com1,stdio pandorafms

Code: Select all

(snip)
cnic: Broadcom NetXtreme II CNIC Driver cnic v2.5.20 (March 14, 2014)
bnx2fc: Broadcom NetXtreme II FCoE Driver bnx2fc v2.4.2 (Dec 11, 2013)
netlink: 12 bytes leftover after parsing attributes.
netlink: 12 bytes leftover after parsing attributes.
netlink: 12 bytes leftover after parsing attributes.

CentOS release 6.6 (Final)
Kernel 2.6.32-504.23.4.el6.x86_64 on an x86_64

localhost.localdomain login:
Now you can login to CentOS on BHyVe.

Create script for background boot:
You need grub-bhyve and bhyve for next Linux boot.
This section creates boot script for simple booting.

1. Create boot parameters.

# nano pandorafms.cfg

This file should contains:

Code: Select all

linux (hd0,msdos1)/vmlinuz-2.6.32-504.23.4.el6.x86_64 root=/dev/mapper/vg_livecd-lv_root
initrd (hd0,msdos1)/initramfs-2.6.32-504.23.4.el6.x86_64.img
boot
2. Create script using /dev/nmdm

# nano pandorafms.sh
# chmod 755 pandorafms.sh


pandorafms.sh:

Code: Select all

#!/bin/sh
cat pandorafms.cfg | grub-bhyve -m pandorafms.map -r hd0,msdos1 -M 2G pandorafms > /dev/null
bhyve -c 2 -m 2G -A -H -P -s 0:0,hostbridge -s 1:0,lpc -s 2:0,virtio-net,tap2 -s 3:0,virtio-blk,pandorafms.img -l com1,/dev/nmdm2A pandorafms > /dev/null 2>&1 &
3. Boot by the script
# ./pandorafms.sh

Now you can connect to /dev/nmdm2B anytime.

4. Connect to the console
# cu -l /dev/nmdm2B

Using Pandora FMS Web Console:
After booting HDD, you can use PandoraFMS console. (ID: admin PW:pandora)
The initial user account on CentOS is "artica" without password.
First check your VM's IP address by ifconfig:

Code: Select all

localhost.localdomain login: artica
Last login: Fri Oct  2 23:55:01 on ttyS0
-bash-4.1$ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:A0:98:A9:A7:E1
          inet addr:172.18.0.161  Bcast:172.18.255.255  Mask:255.255.0.0
          inet6 addr: fe80::2a0:98ff:fea9:a7e1/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2877 errors:0 dropped:0 overruns:0 frame:0
          TX packets:81 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:537099 (524.5 KiB)  TX bytes:69237 (67.6 KiB)
Open http://IPADDRESS/ from your browser.
(above example case, it's http://172.18.0.161/)

For more detail, please read official documents:
http://wiki.pandorafms.com/index.php?ti ... uick_Guide
NAS4Free 10.2.0.2.2115 (x64-embedded), 10.2.0.2.2258 (arm), 10.2.0.2.2258(dom0)
GIGABYTE 5YASV-RH, Celeron E3400 (Dual 2.6GHz), ECC 8GB, Intel ET/CT/82566DM (on-board), ZFS mirror (2TBx2)
ASRock E350M1/USB3, 16GB, Realtek 8111E (on-board), ZFS mirror (2TBx2)
MSI MS-9666, Core i7-860(Quad 2.8GHz/HT), 32GB, Mellanox ConnectX-2 EN/Intel 82578DM (on-board), ZFS mirror (3TBx2+L2ARC/ZIL:SSD128GB)
Develop/test environment:
VirtualBox 512MB VM, ESXi 512MB-8GB VM, Raspberry Pi, Pi2, ODROID-C1

User avatar
ernie
Forum Moderator
Forum Moderator
Posts: 1416
Joined: 26 Aug 2012 19:09
Location: France - Val d'Oise
Status: Offline

Re: [HOWTO] bhyve under NAS4Free

#3

Post by ernie » 02 Oct 2015 13:58

Hello

I seen your post and it is very interesting. One question: is it different of the extension phpvirtualbox ? Perhaps there are advantages in comparison of phpvirtualbox.
Thanks
NAS 1&2:
System: GA-6LXGH(BIOS: R01 04/30/2014) / 16 Go ECC
XigmaNAS 12.0.0.4.6766 embedded
NAS1: Xeon E3 1241@3.5GHz, 4HDD@2To/raidz2 (WD red), 3HDD@300Go/sas/raidz1 (Hitachi), 1SSD cache, Zlog on sas mirror
NAS2: G3220@3GHz, 3HDD@2To/raidz1 (Seagate), 1SSD cache, 1HDD@300Go/UFS
UPS: APC Back-UPS RS 900G
Case : Fractal Design XL R2

Extensions & services:
NAS1: OBI (Plex, extendedGUI, BTSync, zrep, rclone), nfs, UPS,
NAS2: OBI (extendedGUI, zrep (backup mode))

User avatar
MikeMac
Forum Moderator
Forum Moderator
Posts: 498
Joined: 07 Oct 2012 23:12
Location: Moscow, Russia
Contact:
Status: Offline

Re: [HOWTO] bhyve under NAS4Free

#4

Post by MikeMac » 30 Jan 2016 23:59

After upgrading BIOS, virtual machine starts

But only for crashing with nessage panic: CPU0 does not support X87 or SSE: 1

(Pentium(R) CPU G2120 on ASUS P8H77-M PRO)

I try to google - but not found solution

Code: Select all

nas4free Test/ root~$ sh /usr/share/examples/bhyve/vmrun.sh -c 2 -m 2G -t tap0 -d freebsd-10.2.img -i -I FreeBSD-10.2-RELEASE-amd64-disc1.iso freebsd-10.2
Launching virtual machine "freebsd-10.2" ...
Consoles: userboot

FreeBSD/amd64 User boot, Revision 1.1
(root@releng1.nyi.freebsd.org, Wed Aug 12 15:21:01 UTC 2015)
Loading /boot/defaults/loader.conf
-
  ______               ____   _____ _____
 |  ____|             |  _ \ / ____|  __ \
 | |___ _ __ ___  ___ | |_) | (___ | |  | |
 |  ___| '__/ _ \/ _ \|  _ < \___ \| |  | |
 | |   | | |  __/  __/| |_) |____) | |__| |
 | |   | | |    |    ||     |      |      |
 |_|   |_|  \___|\___||____/|_____/|_____/    ```                        `
                                             s` `.....---.......--.```   -/
 +============Welcome to FreeBSD===========+ +o   .--`         /y:`      +.
 |                                         |  yo`:.            :o      `+-
 |  1. Boot Multi User [Enter]             |   y/               -/`   -o/
 |  2. Boot [S]ingle User                  |  .-                  ::/sy+:.
 |  3. [Esc]ape to loader prompt           |  /                     `--  /
 |  4. Reboot                              | `:                          :`
 |                                         | `:                          :`
 |  Options:                               |  /                          /
 |  5. [K]ernel: kernel (1 of 2)           |  .-                        -.
 |  6. Configure Boot [O]ptions...         |   --                      -.
 |                                         |    `:`                  `:`
 |                                         |      .--             `--.
 |                                         |         .---.....----.
 +=========================================+


/boot/kernel/kernel text=0xfc8de8 data=0x1283b0+0x207880 syms=[0x8+0x145350+0x8+0x15fe20]
Booting...
panic: CPU0 does not support X87 or SSE: 1
cpuid = 0
KDB: stack backtrace:
#0 0xffffffff80984e30 at ??+0
#1 0xffffffff809489e6 at ??+0
#2 0xffffffff809488b3 at ??+0
#3 0xffffffff80d3222b at ??+0
#4 0xffffffff80d35dac at ??+0
#5 0xffffffff802dfc94 at ??+0
Uptime: 1s


User avatar
alexey123
Moderator
Moderator
Posts: 1563
Joined: 19 Aug 2012 08:22
Location: Israel, Karmiel
Contact:
Status: Offline

Re: [HOWTO] bhyve under NAS4Free

#5

Post by alexey123 » 31 Jan 2016 00:24

For me - work on E350, but not work on Athlon

Code: Select all

 nasbox: bhyve# sh vmrun.sh -d FreeBSD-11.0-CURRENT-amd64.raw vm0                              Launching virtual machine "vm0" ...
Consoles: userboot

FreeBSD/amd64 User boot, Revision 1.1
(root@releng1.nyi.freebsd.org, Wed Aug 12 15:21:01 UTC 2015)
Loading /boot/defaults/loader.conf
/
  ______               ____   _____ _____
 |  ____|             |  _ \ / ____|  __ \
 | |___ _ __ ___  ___ | |_) | (___ | |  | |
 |  ___| '__/ _ \/ _ \|  _ < \___ \| |  | |
 | |   | | |  __/  __/| |_) |____) | |__| |
 | |   | | |    |    ||     |      |      |
 |_|   |_|  \___|\___||____/|_____/|_____/    ```                        `
                                             s` `.....---.......--.```   -/
 +============Welcome to FreeBSD===========+ +o   .--`         /y:`      +.
 |                                         |  yo`:.            :o      `+-
 |  1. Boot Multi User [Enter]             |   y/               -/`   -o/
 |  2. Boot [S]ingle User                  |  .-                  ::/sy+:.
 |  3. [Esc]ape to loader prompt           |  /                     `--  /
 |  4. Reboot                              | `:                          :`
 |                                         | `:                          :`
 |  Options:                               |  /                          /
 |  5. [K]ernel: kernel (1 of 2)           |  .-                        -.
 |  6. Configure Boot [O]ptions...         |   --                      -.
 |                                         |    `:`                  `:`
 |                                         |      .--             `--.
 |                                         |         .---.....----.
 +=========================================+

/boot/kernel/kernel text=0x13b1a38 data=0x134900+0x4d8ca8 syms=[0x8+0x15c8a0+0x8               +0x17440e]
Booting...
GDB: no debug ports present
KDB: debugger backends: ddb
KDB: current backend: ddb
Copyright (c) 1992-2016 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 11.0-CURRENT #0 r294912: Wed Jan 27 16:18:33 UTC 2016
    root@releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64
FreeBSD clang version 3.7.1 (tags/RELEASE_371/final 255217) 20151225
WARNING: WITNESS option enabled, expect reduced performance.
VT(vga): resolution 640x480
CPU: AMD E-350 Processor (1599.81-MHz K8-class CPU)
  Origin="AuthenticAMD"  Id=0x500f10  Family=0x14  Model=0x1  Stepping=0
  Features=0x1783fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,C               MOV,PAT,PSE36,MMX,FXSR,SSE,SSE2,HTT>
  Features2=0x80802201<SSE3,SSSE3,CX16,POPCNT,HV>
  AMD Features=0x26500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,LM>
  AMD Features2=0x31fb<LAHF,CMP,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,SKINIT,WDT>
  TSC: P-state invariant
Hypervisor: Origin = "bhyve bhyve "
real memory  = 536870912 (512 MB)
avail memory = 474439680 (452 MB)
Event timer "LAPIC" quality 400
ACPI APIC Table: <BHYVE  BVMADT  >
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
FreeBSD/SMP: 2 package(s) x 1 core(s)
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
ioapic0 <Version 1.1> irqs 0-23 on motherboard
random: entropy device external interface
kbd1 at kbdmux0
netmap: loaded module
module_register_init: MOD_LOAD (vesa, 0xffffffff80ee0ef0, 0) error 19
vtvga0: <VT VGA driver> on motherboard
cryptosoft0: <software crypto> on motherboard
acpi0: <BHYVE BVXSDT> on motherboard
acpi0: Power Button (fixed)
atrtc0: <AT realtime clock> port 0x70-0x71 irq 8 on acpi0
Event timer "RTC" frequency 32768 Hz quality 0
attimer0: <AT timer> port 0x40-0x43 irq 0 on acpi0
Timecounter "i8254" frequency 1193182 Hz quality 0
Event timer "i8254" frequency 1193182 Hz quality 100
hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on acpi0
Timecounter "HPET" frequency 10000000 Hz quality 950
Event timer "HPET" frequency 10000000 Hz quality 550
Event timer "HPET1" frequency 10000000 Hz quality 450
Event timer "HPET2" frequency 10000000 Hz quality 450
Event timer "HPET3" frequency 10000000 Hz quality 450
Event timer "HPET4" frequency 10000000 Hz quality 450
Event timer "HPET5" frequency 10000000 Hz quality 450
Event timer "HPET6" frequency 10000000 Hz quality 450
Timecounter "ACPI-fast" frequency 3579545 Hz quality 900
acpi_timer0: <32-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
isab0: <PCI-ISA bridge> at device 1.0 on pci0
isa0: <ISA bus> on isab0
virtio_pci0: <VirtIO PCI Network adapter> port 0x2000-0x201f mem 0xc0000000-0xc0               001fff irq 16 at device 2.0 on pci0
vtnet0: <VirtIO Networking Adapter> on virtio_pci0
vtnet0: Ethernet address: 00:a0:98:f0:55:05
001.000048 [ 421] vtnet_netmap_attach       max rings 1
vtnet0: netmap queues/slots: TX 1/1024, RX 1/1024
001.000049 [ 426] vtnet_netmap_attach       virtio attached txq=1, txd=1024 rxq=               1, rxd=1024
virtio_pci1: <VirtIO PCI Block adapter> port 0x2040-0x207f mem 0xc0002000-0xc000               3fff irq 17 at device 3.0 on pci0
vtblk0: <VirtIO Block Adapter> on virtio_pci1
vtblk0: 21504MB (44040229 512 byte sectors)
uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
uart0: console (9600,n,8,1)
uart1: <16550 or compatible> port 0x2f8-0x2ff irq 3 on acpi0
vga0: <Generic ISA VGA> at port 0x3b0-0x3bb iomem 0xb0000-0xb7fff on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
ppc0: cannot reserve I/O port range
Timecounters tick every 1.000 msec
IPsec: Initialized Security Association Processing.
SMP: AP CPU #1 Launched!
WARNING: WITNESS option enabled, expect reduced performance.
Trying to mount root from ufs:/dev/gpt/rootfs [rw]...
/etc/rc: WARNING: hostid: unable to figure out a UUID from DMI data, generating                a new one
Setting hostuuid: 4cc0ba37-c7b6-11e5-a1bf-00a098f05505.
Setting hostid: 0x0cbd7ac0.
Starting file system checks:
/dev/gpt/rootfs: FILE SYSTEM CLEAN; SKIPPING CHECKS
/dev/gpt/rootfs: clean, 4737147 free (7891 frags, 591157 blocks, 0.2% fragmentat               ion)
Mounting local file systems:.
/etc/rc: WARNING: $hostname is not set -- see rc.conf(5).
Setting up harvesting:[UMA],[FS_ATIME],SWI,INTERRUPT,NET_NG,NET_ETHER,NET_TUN,MO               USE,KEYBOARD,ATTACH,CACHED
Feeding entropy:random: unblocking device.
.
Starting Network: lo0 vtnet0.
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
        inet6 ::1 prefixlen 128
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
        inet 127.0.0.1 netmask 0xff000000
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
        groups: lo
vtnet0: flags=8902<BROADCAST,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=80028<VLAN_MTU,JUMBO_MTU,LINKSTATE>
        ether 00:a0:98:f0:55:05
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
        media: Ethernet 10Gbase-T <full-duplex>
        status: active
ELF ldconfig path: /lib /usr/lib /usr/lib/compat
32-bit compatibility ldconfig path: /usr/lib32
Starting devd.
Starting Network: vtnet0.
vtnet0: flags=8902<BROADCAST,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=80028<VLAN_MTU,JUMBO_MTU,LINKSTATE>
        ether 00:a0:98:f0:55:05
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
        media: Ethernet 10Gbase-T <full-duplex>
        status: active
add net fe80::: gateway ::1
add net ff02::: gateway ::1
add net ::ffff:0.0.0.0: gateway ::1
add net ::0.0.0.0: gateway ::1
Generating host.conf.
Creating and/or trimming log files.
Starting syslogd.
No core dumps found.
Starting casperd.
Clearing /tmp (X related).
Updating motd:.
Mounting late file systems:.
Configuring vt: blanktime.
Starting sendmail_submit.
Starting sendmail_msp_queue.
Starting cron.
Starting background file system checks in 60 seconds.

Sun Jan 31 01:02:41 UTC 2016

FreeBSD/amd64 (Amnesiac) (ttyu0)

login: root
Jan 31 01:02:47  login: ROOT LOGIN (root) ON ttyu0
FreeBSD 11.0-CURRENT (GENERIC) #0 r294912: Wed Jan 27 16:18:33 UTC 2016

Welcome to FreeBSD!

Release Notes, Errata: https://www.FreeBSD.org/releases/
Security Advisories:   https://www.FreeBSD.org/security/
FreeBSD Handbook:      https://www.FreeBSD.org/handbook/
FreeBSD FAQ:           https://www.FreeBSD.org/faq/
Questions List: https://lists.FreeBSD.org/mailman/listinfo/freebsd-questions/
FreeBSD Forums:        https://forums.FreeBSD.org/

Documents installed with the system are in the /usr/local/share/doc/freebsd/
directory, or can be installed later with:  pkg install en-freebsd-doc
For other languages, replace "en" with a language code like de or fr.

Show the version of FreeBSD installed:  freebsd-version ; uname -a
Please include that output and any error messages when posting questions.
Introduction to manual pages:  man man
FreeBSD directory layout:      man hier

Edit /etc/motd to change this login announcement.
root@:~ #
I'll add it to thebrig
Home11.0.0.4 - Sayyadina (revision 4249)/ x64-embedded on SAPPHIRE Pure Mini E350 / 8G RAM / UPS Ippon Back Power Pro 600
Lab 10.2.0.2 - Prescience (revision 2545) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
New XigmanasXigmaNAS version 11.2.0.4.6026 on x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM
TEST1 11.0.0.4 - Pilingitam (revision 4333) bpi-embedded on Allwinner a20 / 1015MiB RAM

User avatar
alexey123
Moderator
Moderator
Posts: 1563
Joined: 19 Aug 2012 08:22
Location: Israel, Karmiel
Contact:
Status: Offline

Re: [HOWTO] bhyve under NAS4Free

#6

Post by alexey123 » 31 Jan 2016 23:38

Conflict with virtual box
Work or bhyve or virtualbox
Home11.0.0.4 - Sayyadina (revision 4249)/ x64-embedded on SAPPHIRE Pure Mini E350 / 8G RAM / UPS Ippon Back Power Pro 600
Lab 10.2.0.2 - Prescience (revision 2545) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
New XigmanasXigmaNAS version 11.2.0.4.6026 on x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM
TEST1 11.0.0.4 - Pilingitam (revision 4333) bpi-embedded on Allwinner a20 / 1015MiB RAM

User avatar
MikeMac
Forum Moderator
Forum Moderator
Posts: 498
Joined: 07 Oct 2012 23:12
Location: Moscow, Russia
Contact:
Status: Offline

Re: [HOWTO] bhyve under NAS4Free

#7

Post by MikeMac » 31 Jan 2016 23:54

alexey123 wrote:Conflict with vurtual box
It was documented in nas4free release information abt bhyve.

may be two hypervisors on the same machine really is too much.
may be nested virtualization could work - i.e. vbox inside vm on bhyve

User avatar
sea1150
experienced User
experienced User
Posts: 100
Joined: 23 Jun 2012 07:01
Location: South Urals
Contact:
Status: Offline

Re: [HOWTO] bhyve under NAS4Free

#8

Post by sea1150 » 01 Feb 2016 05:14

MikeMac wrote:After upgrading BIOS, virtual machine starts

But only for crashing with nessage panic: CPU0 does not support X87 or SSE: 1
Try turning off in BIOS "Limit Max CPUID".
- ASUS P8H61-I LX R2.0-GLAN, i5-3570 CPU @ 3.40GHz, 16GB Memory Kit, PCIEx2 Marvell 88SE9230 AHCI 4xSATA controller, HDD: 2x2Tb-UFS, 4x1Tb-RaidZ & 1xSSD L2ARC.(XigmaNAS 11.2.0.4 x64-embedded)
- HP Proliant DL180 Gen9 E5-2603v3, 8GB RAM, HDD: 4x2Tb HGST - RaidZ (XigmaNAS 11.2.0.4 x64-embedded)
- HP Proliant DL180 Gen6 E5540, 64GB RAM, LSI SAS2008, HDD: 12x1Tb WD - RaidZ + L2ARC(XigmaNAS 11.2.0.4 x64-embedded)
- For testing: MICRO-STAR MS-7360, E5450, 8GB RAM, HDD: 3x1Tb WD - RaidZ (XigmaNAS 12.0.0.4 x64-embedded)
- and more... My work and all versions

User avatar
MikeMac
Forum Moderator
Forum Moderator
Posts: 498
Joined: 07 Oct 2012 23:12
Location: Moscow, Russia
Contact:
Status: Offline

Re: [HOWTO] bhyve under NAS4Free

#9

Post by MikeMac » 01 Feb 2016 18:20

sea1150 wrote:Try turning off in BIOS "Limit Max CPUID".
many thanks! you're right! it works now.

User avatar
alexey123
Moderator
Moderator
Posts: 1563
Joined: 19 Aug 2012 08:22
Location: Israel, Karmiel
Contact:
Status: Offline

Re: [HOWTO] bhyve under NAS4Free

#10

Post by alexey123 » 01 Feb 2016 22:00

I begin to add it
viewtopic.php?f=71&t=10433&p=65165#p65165
Ready to test command line utilites
Home11.0.0.4 - Sayyadina (revision 4249)/ x64-embedded on SAPPHIRE Pure Mini E350 / 8G RAM / UPS Ippon Back Power Pro 600
Lab 10.2.0.2 - Prescience (revision 2545) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
New XigmanasXigmaNAS version 11.2.0.4.6026 on x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM
TEST1 11.0.0.4 - Pilingitam (revision 4333) bpi-embedded on Allwinner a20 / 1015MiB RAM

senovr
NewUser
NewUser
Posts: 14
Joined: 13 Aug 2014 09:17
Status: Offline

Re: [HOWTO] bhyve under NAS4Free

#11

Post by senovr » 19 May 2016 12:08

Daoyama, Alexey, is there any chanse to have iohyve included in the next version of the Nas4Free?
I checked Alesey's git for the Bhyve extension, and it seems that not too much progress since February

User avatar
alexey123
Moderator
Moderator
Posts: 1563
Joined: 19 Aug 2012 08:22
Location: Israel, Karmiel
Contact:
Status: Offline

Re: [HOWTO] bhyve under NAS4Free

#12

Post by alexey123 » 27 Apr 2017 18:43

:cry: :evil: Bhyve not work on AMD A8-7600 Radeon R7
Dmesg

Code: Select all

# dmesg
Copyright (c) 1992-2016 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 11.0-RELEASE-p9 #0 r316944M: Sat Apr 15 00:45:52 CEST 2017
    root@dev.nas4free.org:/usr/obj/nas4free/usr/src/sys/NAS4FREE-amd64 amd64
FreeBSD clang version 3.8.0 (tags/RELEASE_380/final 262564) (based on LLVM 3.8.0)
CPU: AMD A8-7600 Radeon R7, 10 Compute Cores 4C+6G   (3192.90-MHz K8-class CPU)
  Origin="AuthenticAMD"  Id=0x630f01  Family=0x15  Model=0x30  Stepping=1
  Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT>
  Features2=0x3e98320b<SSE3,PCLMULQDQ,MON,SSSE3,FMA,CX16,SSE4.1,SSE4.2,POPCNT,AESNI,XSAVE,OSXSAVE,AVX,F16C>
  AMD Features=0x2e500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM>
  AMD Features2=0xfebbfff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,OSVW,IBS,XOP,SKINIT,WDT,LWP,FMA4,TCE,NodeId,TBM,Topology,PCXC,PNXC,<b25>,DBE,PTSC>
  Structured Extended Features=0x9<FSGSBASE,BMI1>
  XSAVE Features=0x1<XSAVEOPT>
  SVM: NP,NRIP,VClean,AFlush,DAssist,NAsids=65536
  TSC: P-state invariant, performance statistics
real memory  = 17179869184 (16384 MB)
avail memory = 15313633280 (14604 MB)
Event timer "LAPIC" quality 400
ACPI APIC Table: <ALASKA A M I>
FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
FreeBSD/SMP: 1 package(s) x 4 core(s)
WARNING: VIMAGE (virtualized network stack) is a highly experimental feature.
ACPI BIOS Warning (bug): Optional FADT field Pm2ControlBlock has valid Length but zero Address: 0x0000000000000000/0x1 (20160527/tbfadt-679)
ioapic0 <Version 2.1> irqs 0-23 on motherboard
ioapic1 <Version 2.1> irqs 24-55 on motherboard
random: entropy device external interface
netmap: loaded module
kbd1 at kbdmux0
cryptosoft0: <software crypto> on motherboard
acpi0: <ALASKA A M I> on motherboard
acpi0: Power Button (fixed)
cpu0: <ACPI CPU> on acpi0
cpu1: <ACPI CPU> on acpi0
cpu2: <ACPI CPU> on acpi0
cpu3: <ACPI CPU> on acpi0
attimer0: <AT timer> port 0x40-0x43 irq 0 on acpi0
Timecounter "i8254" frequency 1193182 Hz quality 0
Event timer "i8254" frequency 1193182 Hz quality 100
atrtc0: <AT realtime clock> port 0x70-0x71 on acpi0
Event timer "RTC" frequency 32768 Hz quality 0
hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff irq 0,8 on acpi0
Timecounter "HPET" frequency 14318180 Hz quality 950
Event timer "HPET" frequency 14318180 Hz quality 450
Event timer "HPET1" frequency 14318180 Hz quality 450
Event timer "HPET2" frequency 14318180 Hz quality 450
Timecounter "ACPI-safe" frequency 3579545 Hz quality 850
acpi_timer0: <32-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pcib0: _OSC returned error 0x10
pci0: <ACPI PCI bus> on pcib0
pci0: <base peripheral, IOMMU> at device 0.2 (no driver attached)
vgapci0: <VGA-compatible display> port 0xf000-0xf0ff mem 0xe0000000-0xefffffff,0xf0000000-0xf07fffff,0xfeb00000-0xfeb3ffff irq 26 at device 1.0 on pci0
vgapci0: Boot video device
hdac0: <ATI (0x1308) HDA Controller> mem 0xfeb64000-0xfeb67fff irq 27 at device 1.1 on pci0
xhci0: <AMD FCH USB 3.0 controller> mem 0xfeb6a000-0xfeb6bfff irq 18 at device 16.0 on pci0
xhci0: 32 bytes context size, 64-bit DMA
xhci0: Unable to map MSI-X table
usbus0 on xhci0
xhci1: <AMD FCH USB 3.0 controller> mem 0xfeb68000-0xfeb69fff irq 17 at device 16.1 on pci0
xhci1: 32 bytes context size, 64-bit DMA
xhci1: Unable to map MSI-X table
usbus1 on xhci1
ahci0: <AMD Hudson-2 AHCI SATA controller> port 0xf140-0xf147,0xf130-0xf133,0xf120-0xf127,0xf110-0xf113,0xf100-0xf10f mem 0xfeb70000-0xfeb707ff irq 19 at device 17.0 on pci0
ahci0: AHCI v1.30 with 8 6Gbps ports, Port Multiplier supported
ahcich0: <AHCI channel> at channel 0 on ahci0
ahcich1: <AHCI channel> at channel 1 on ahci0
ahcich2: <AHCI channel> at channel 2 on ahci0
ahcich3: <AHCI channel> at channel 3 on ahci0
ahcich4: <AHCI channel> at channel 4 on ahci0
ahcich5: <AHCI channel> at channel 5 on ahci0
ahcich6: <AHCI channel> at channel 6 on ahci0
ahcich7: <AHCI channel> at channel 7 on ahci0
ohci0: <AMD FCH USB Controller> mem 0xfeb6f000-0xfeb6ffff irq 18 at device 18.0 on pci0
usbus2 on ohci0
ehci0: <AMD FCH USB 2.0 controller> mem 0xfeb6e000-0xfeb6e0ff irq 17 at device 18.2 on pci0
usbus3: EHCI version 1.0
usbus3 on ehci0
ohci1: <AMD FCH USB Controller> mem 0xfeb6d000-0xfeb6dfff irq 18 at device 19.0 on pci0
usbus4 on ohci1
ehci1: <AMD FCH USB 2.0 controller> mem 0xfeb6c000-0xfeb6c0ff irq 17 at device 19.2 on pci0
usbus5: EHCI version 1.0
usbus5 on ehci1
hdac1: <AMD Hudson-2 HDA Controller> mem 0xfeb60000-0xfeb63fff irq 16 at device 20.2 on pci0
isab0: <PCI-ISA bridge> at device 20.3 on pci0
isa0: <ISA bus> on isab0
pcib1: <ACPI PCI-PCI bridge> at device 20.4 on pci0
pci1: <ACPI PCI bus> on pcib1
re0: <RealTek 8169/8169S/8169SB(L)/8110S/8110SB(L) Gigabit Ethernet> port 0xe000-0xe0ff mem 0xfea20000-0xfea200ff irq 20 at device 5.0 on pci1
re0: Chip rev. 0x10000000
re0: MAC rev. 0x00000000
miibus0: <MII bus> on re0
rgephy0: <RTL8169S/8110S/8211 1000BASE-T media interface> PHY 1 on miibus0
rgephy0:  none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow
re0: Using defaults for TSO: 65518/35/2048
re0: Ethernet address: c8:3a:35:df:0e:78
re0: netmap queues/slots: TX 1/256, RX 1/256
pcib2: <ACPI PCI-PCI bridge> at device 21.0 on pci0
pci2: <ACPI PCI bus> on pcib2
pcib3: <ACPI PCI-PCI bridge> at device 21.1 on pci0
pci3: <ACPI PCI bus> on pcib3
re1: <RealTek 8168/8111 B/C/CP/D/DP/E/F/G PCIe Gigabit Ethernet> port 0xd000-0xd0ff mem 0xfe900000-0xfe900fff,0xf0800000-0xf0803fff irq 17 at device 0.0 on pci3
re1: Using 1 MSI-X message
re1: Chip rev. 0x4c000000
re1: MAC rev. 0x00000000
miibus1: <MII bus> on re1
rgephy1: <RTL8251 1000BASE-T media interface> PHY 1 on miibus1
rgephy1:  none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow
re1: Using defaults for TSO: 65518/35/2048
re1: Ethernet address: 9c:5c:8e:82:99:b8
re1: netmap queues/slots: TX 1/256, RX 1/256
amdtemp0: <AMD CPU On-Die Thermal Sensors> on hostb7
acpi_button0: <Power Button> on acpi0
ppc1: <Parallel port> port 0x378-0x37f irq 5 on acpi0
ppc1: Generic chipset (NIBBLE-only) in COMPATIBLE mode
ppbus0: <Parallel port bus> on ppc1
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
ppc0: cannot reserve I/O port range
acpi_throttle0: <ACPI CPU Throttling> on cpu0
hwpstate0: <Cool`n'Quiet 2.0> on cpu0
acpi_throttle1: <ACPI CPU Throttling> on cpu1
acpi_throttle1: failed to attach P_CNT
device_attach: acpi_throttle1 attach returned 6
acpi_throttle2: <ACPI CPU Throttling> on cpu2
acpi_throttle2: failed to attach P_CNT
device_attach: acpi_throttle2 attach returned 6
acpi_throttle3: <ACPI CPU Throttling> on cpu3
acpi_throttle3: failed to attach P_CNT
device_attach: acpi_throttle3 attach returned 6
ZFS filesystem version: 5
ZFS storage pool version: features support (5000)
Timecounters tick every 1.000 msec
iSCSI boot driver version 0.2.13
nvme cam probe device init
hdacc0: <ATI R6xx HDA CODEC> at cad 0 on hdac0
hdaa0: <ATI R6xx Audio Function Group> at nid 1 on hdacc0
pcm0: <ATI R6xx (HDMI)> at nid 3 on hdaa0
hdacc1: <Realtek ALC887 HDA CODEC> at cad 0 on hdac1
hdaa1: <Realtek ALC887 Audio Function Group> at nid 1 on hdacc1
pcm1: <Realtek ALC887 (Rear Analog)> at nid 20 and 24,26 on hdaa1
pcm2: <Realtek ALC887 (Front Analog)> at nid 27 and 25 on hdaa1
pcm3: <Realtek ALC887 (Internal Digital)> at nid 17 on hdaa1
md0: Preloaded image </mfsroot> 134217728 bytes at 0xffffffff82a1bdc0
usbus0: 5.0Gbps Super Speed USB v3.0
usbus1: 5.0Gbps Super Speed USB v3.0
usbus2: 12Mbps Full Speed USB v1.0
usbus3: 480Mbps High Speed USB v2.0
usbus4: 12Mbps Full Speed USB v1.0
usbus5: 480Mbps High Speed USB v2.0
ugen2.1: <AMD> at usbus2
uhub0: <AMD OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus2
ugen1.1: <0x1022> at usbus1
uhub1: <0x1022 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus1
ugen0.1: <0x1022> at usbus0
uhub2: <0x1022 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0
ugen5.1: <AMD> at usbus5
uhub3: <AMD EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus5
ugen4.1: <AMD> at usbus4
uhub4: <AMD OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus4
ugen3.1: <AMD> at usbus3
uhub5: <AMD EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus3
uhub0: 5 ports with 5 removable, self powered
uhub4: 5 ports with 5 removable, self powered
uhub2: 4 ports with 4 removable, self powered
uhub1: 4 ports with 4 removable, self powered
uhub3: 5 ports with 5 removable, self powered
uhub5: 5 ports with 5 removable, self powered
ugen3.2: <vendor 0x0bda> at usbus3
urtwn0: <vendor 0x0bda product 0x8178, class 0/0, rev 2.00/2.00, addr 2> on usbus3
urtwn0: MAC/BB RTL8192CU, RF 6052 2T2R
urtwn0: enabling 11n
ugen2.2: <LITEON Technology> at usbus2
ukbd0: <EP1 Interrupt> on usbus2
kbd2 at ukbd0
ugen3.3: <JetFlash> at usbus3
umass0: <JetFlash Mass Storage Device, class 0/0, rev 2.00/1.00, addr 3> on usbus3
umass0:  SCSI over Bulk-Only; quirks = 0xc100
umass0:8:0: Attached to scbus8
random: unblocking device.
ada0 at ahcich0 bus 0 scbus0 target 0 lun 0
ada0: <Hitachi HDS721010CLA332 JP4OA39C> ATA8-ACS SATA 2.x device
ada0: Serial Number JP2921HQ010N3A
ada0: 300.000MB/s transfers (SATA 2.x, UDMA6, PIO 8192bytes)
ada0: Command Queueing enabled
ada0: 953869MB (1953525168 512 byte sectors)
SMP: AP CPU #3 Launched!
SMP: AP CPU #1 Launched!
SMP: AP CPU #2 Launched!
da0 at umass-sim0 bus 0 scbus8 target 0 lun 0
da0: <JetFlash Transcend 4GB 8.07> Removable Direct Access SPC-2 SCSI device
da0: Serial Number 017902E1
da0: 40.000MB/s transfers
da0: 3840MB (7864320 512 byte sectors)
da0: quirks=0x12<NO_6_BYTE,NO_RC16>
Timecounter "TSC-low" frequency 1596452404 Hz quality 1000
Trying to mount root from ufs:/dev/md0 []...
GEOM: da0: the secondary GPT table is corrupt or invalid.
GEOM: da0: using the primary only -- recovery suggested.
wlan0: Ethernet address: e8:de:27:12:ea:4a
bridge0: Ethernet address: 02:34:35:37:95:00
tap0: Ethernet address: 00:bd:63:44:f7:00
re1: link state changed to DOWN
wlan0: ieee80211_new_state_locked: pending INIT -> SCAN transition lost
re1: promiscuous mode enabled
bridge0: link state changed to DOWN
tap0: promiscuous mode enabled
nd6_dad_timer: called with non-tentative address fe80:4::eade:27ff:fe12:ea4a(wlan0)
wlan0: ieee80211_new_state_locked: pending INIT -> SCAN transition lost
re0: link state changed to DOWN
ipfw2 (+ipv6) initialized, divert loadable, nat loadable, default to accept, logging disabled
re1: link state changed to UP
bridge0: link state changed to UP
wlan0: ieee80211_new_state_locked: pending INIT -> SCAN transition lost
It freeze at

Code: Select all

 sh /usr/share/examples/bhyve/vmrun.sh -c 1 -m 2G -t tap0 -d fre       ebsd.img -i -I FreeBSD-11.0-RELEASE-amd64-disc1.iso freebsd-11
Launching virtual machine "freebsd-11" ...
Consoles: userboot

FreeBSD/amd64 User boot, Revision 1.1
(root@releng2.nyi.freebsd.org, Thu Sep 29 01:38:36 UTC 2016)
Loading /boot/defaults/loader.conf
/
  ______               ____   _____ _____
 |  ____|             |  _ \ / ____|  __ \
 | |___ _ __ ___  ___ | |_) | (___ | |  | |
 |  ___| '__/ _ \/ _ \|  _ < \___ \| |  | |
 | |   | | |  __/  __/| |_) |____) | |__| |
 | |   | | |    |    ||     |      |      |
 |_|   |_|  \___|\___||____/|_____/|_____/    ```                        `
                                             s` `.....---.......--.```   -/
 +============Welcome to FreeBSD===========+ +o   .--`         /y:`      +.
 |                                         |  yo`:.            :o      `+-
 |  1. Boot Multi User [Enter]             |   y/               -/`   -o/
 |  2. Boot [S]ingle User                  |  .-                  ::/sy+:.
 |  3. [Esc]ape to loader prompt           |  /                     `--  /
 |  4. Reboot                              | `:                          :`
 |                                         | `:                          :`
 |  Options:                               |  /                          /
 |  5. [K]ernel: kernel (1 of 2)           |  .-                        -.
 |  6. Configure Boot [O]ptions...         |   --                      -.
 |                                         |    `:`                  `:`
 |                                         |      .--             `--.
 |                                         |         .---.....----.
 +=========================================+

/boot/kernel/kernel text=0x14ed860 data=0x132538+0x4baa68 syms=[0x8+0x159ee8+0x8       +0x172d9c]
Booting...
rdmsr to register 0xc0011005 on vcpu 0

Home11.0.0.4 - Sayyadina (revision 4249)/ x64-embedded on SAPPHIRE Pure Mini E350 / 8G RAM / UPS Ippon Back Power Pro 600
Lab 10.2.0.2 - Prescience (revision 2545) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
New XigmanasXigmaNAS version 11.2.0.4.6026 on x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM
TEST1 11.0.0.4 - Pilingitam (revision 4333) bpi-embedded on Allwinner a20 / 1015MiB RAM

User avatar
MikeMac
Forum Moderator
Forum Moderator
Posts: 498
Joined: 07 Oct 2012 23:12
Location: Moscow, Russia
Contact:
Status: Offline

Re: [HOWTO] bhyve under NAS4Free

#13

Post by MikeMac » 28 Apr 2017 20:26

alexey123 wrote:
27 Apr 2017 18:43
:cry: :evil: Bhyve not work on AMD A8-7600
My short googling confirm problems :(
But here http://freebsd.1045724.x6.nabble.com/Bu ... 57821.html
reported 11.0-STABLE do not work with 2 cores, but works with one. Your CPU is directly mentioned
I see, you have already use -c 1, but may be any progress in 11.0-STABLE?

User avatar
alexey123
Moderator
Moderator
Posts: 1563
Joined: 19 Aug 2012 08:22
Location: Israel, Karmiel
Contact:
Status: Offline

Re: [HOWTO] bhyve under NAS4Free

#14

Post by alexey123 » 29 Apr 2017 09:18

I was read this letter and tried run vm with -c 1. I tried NAS4free and full FreeBSD-11.
I'll try to run vm under FreeBSD -12

NOT WORK under FreeBSD12

Code: Select all

 uname -a
FreeBSD bsd12 12.0-CURRENT FreeBSD 12.0-CURRENT #0 r317181: Thu Apr 20 05:39:11 UTC 2017     root@releng3.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64
Home11.0.0.4 - Sayyadina (revision 4249)/ x64-embedded on SAPPHIRE Pure Mini E350 / 8G RAM / UPS Ippon Back Power Pro 600
Lab 10.2.0.2 - Prescience (revision 2545) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600
New XigmanasXigmaNAS version 11.2.0.4.6026 on x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM
TEST1 11.0.0.4 - Pilingitam (revision 4333) bpi-embedded on Allwinner a20 / 1015MiB RAM

Post Reply

Return to “[HowTo]”