GithubHelp home page GithubHelp logo

xhyve's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

xhyve's Issues

Darwin Guest?

Has anyone tried/succeeded in running a Darwin guest?

DNS query for CH class changes to IN class

Not sure at what level the problem arises... But this is what I did:

  1. Follow steps in http://www.pagetable.com/?p=831 to install Ubuntu 15.04
  2. Then from the command-line: "dig +m -c ch -t txt version.bond" (jup, that's a typo indeed, should have been version.bind)

In the reply I noticed that the CH class has changed into IN class somewhere along the line:

;; QUESTION SECTION:
;version.bond.      CH TXT

;; ANSWER SECTION:
version.bond.       3602 IN TXT "Your DNS configuration needs immediate attention see https://icann.org/namecollision"

Also there's some other weird behaviour, like the TTL not counting down. And if you ask for DNSKEY or RRSIG, you get a timeout:

 dig RRSIG example.nl

; <<>> DiG 9.9.5-9-Ubuntu <<>> RRSIG example.nl
;; global options: +cmd
;; connection timed out; no servers could be reached

Clock wrong after waking from sleep

The bundled linux image says, after boot:

Switched to clocksource tsc

However, after waking from sleep it says:

Clocksource tsc unstable (delta = -131624372 ns)
Switched to clocksource hpet

I'm guessing this is something that must be tweaked in the guest ("trust system clock"?), but mentioning here just in case there's something the hypervisor can do (a "jumps are expected, keep faith" flag or something).

Configurability of block device names

When passing a disk image/file to xhyve using -s 4,virtio-blk,/path/to/file it would be nice to be able to specify the name of the device available from within the guest.

For example, I'm mounting in a root disk and I would like to be able to guarantee it's name is /dev/vda. I can work around this with labels to an extent, but if I'm building a tool which allows users to pass their own arbitrary disk image, then I can always guarantee the label is properly set. Right now it's all workable, but having a deterministic device name would be quite helpful. Is there anyway to do this currently?

Suggestions for performance benchmarks

Hey there. I would like to do some performance optimizations for xhyve. However, this is a bit pointless without measuring what needs work and if fixes actually are an improvement. Does anyone have suggestions for benchmarks that are representative of the kinds of workloads people would like run in xhyve? Thanks!

Networking doesn't work when VMware Fusion is installed

First off this is an awesome project!

I've tested xhyve on a system that has VMware Fusion 7.1.1 installed and I've noticed that networking doesn't work.

Steps to reproduce

MacBook 8,1
OS X 10.10.3 (14D136)
VMware Fusion 7.1.1

โฏ cat xhyverun.sh 
#!/bin/sh

KERNEL="test/vmlinuz"
INITRD="test/initrd.gz"
CMDLINE="earlyprintk=serial console=ttyS0 acpi=off"

MEM="-m 1G"
#SMP="-c 2"
NET="-s 2:0,virtio-net"
#IMG_CD="-s 3,ahci-cd,/somepath/somefile.iso"
#IMG_HDD="-s 4,virtio-blk,/somepath/somefile.img"
PCI_DEV="-s 0:0,hostbridge -s 31,lpc"
LPC_DEV="-l com1,stdio"

build/xhyve $MEM $SMP $PCI_DEV $LPC_DEV $NET $IMG_CD $IMG_HDD -f kexec,$KERNEL,$INITRD,"$CMDLINE"

Fusion was not running when I tested xhyve and I can see that two interfaces are created on the host: en3 and bridge100.

# ifconfig on host
en3: flags=8963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
    ether 26:fe:d2:db:4a:dc 
    media: autoselect
    status: active
bridge100: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
    options=3<RXCSUM,TXCSUM>
    ether aa:66:7f:50:31:64 
    inet 192.168.64.1 netmask 0xffffff00 broadcast 192.168.64.255
    Configuration:
        id 0:0:0:0:0:0 priority 0 hellotime 0 fwddelay 0
        maxage 0 holdcnt 0 proto stp maxaddr 100 timeout 1200
        root id 0:0:0:0:0:0 priority 0 ifcost 0 port 0
        ipfilter disabled flags 0x2
    member: en3 flags=3<LEARNING,DISCOVER>
            ifmaxaddr 0 port 7 priority 0 path cost 0
    nd6 options=1<PERFORMNUD>
    media: autoselect
    status: active

Inside the VM, e.g. Tiny Core Linux, eth0 is also created, but no IP address is leased from the 192.168.64.1 gateway.

# ifconfig in tiny core vm
eth0      Link encap:Ethernet  HWaddr A2:7C:A2:77:CF:32  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:17 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:3466 (3.3 KiB)  TX bytes:2736 (2.6 KiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

UPDATE 1

I tried setting the IP address manually, but no go.

tc@box:/opt$ sudo ifconfig eth0 192.168.64.2 netmask 255.255.255.0
tc@box:/opt$ ifconfig
eth0      Link encap:Ethernet  HWaddr 86:3B:1D:75:CF:32  
          inet addr:192.168.64.2  Bcast:192.168.64.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:17 errors:0 dropped:0 overruns:0 frame:0
          TX packets:68 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:3452 (3.3 KiB)  TX bytes:15156 (14.8 KiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:41 errors:0 dropped:0 overruns:0 frame:0
          TX packets:41 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:3920 (3.8 KiB)  TX bytes:3920 (3.8 KiB)

tc@box:/opt$ ping 192.168.64.1
PING 192.168.64.1 (192.168.64.1): 56 data bytes

UPDATE 2

I created an OS X 10.11 beta VM as a VMware Fusion guest and successfully ran xhyve with a tiny core vm and networking worked!

As a result I assumed that VMware Fusion was to blame. However, after I removed VMware Fusion from my MacBook (app plus files listed here and tested xhyve after rebooting, networking still doesn't work ๐Ÿ˜ž

UPDATE 3

I have messed with this line NET="-s 2:0,virtio-net" appending each host interface separately without success.

NET="-s 2:0,virtio-net,en0"
NET="-s 2:0,virtio-net,en3"

I have no idea what's going on.

PXE support

More a question than a issue: I am not able to find any reference to PXE boot on xhyve. Is this something will be added in the future?

xhyve reliably mangles my routing table

When I use xhyve (mainly through dhyve), my default route gets hijacked to be on the bridge interface xhyve makes. I can fix my networking by manually specifying my previous default route, but it's pretty obnoxious to have to manually fiddle my routing table every time I use xhyve.

I've got xhyve 0.2.0 from homebrew, 10.10.4. I haven't been using any other VM software recently, though I did long ago use VirtualBox if that matters. Let me know what else I can provide.

RAM limited to 3GB

At least with the bundled image, again. Not sure if this is expected or not.

Using xhyve, as a library, from Go. PCI devices do not show up.

I've been using xhyve as a library from Go. I was able to statically compile my Go program against xhyve using CGO. But, whenever I boot a VM, for some reason none of the PCI devices are being recognized by the kernel. Any idea of why this would happen?

c4milo at Camilos-MacBook-Pro in ~/go/src/github.com/hooklift/nnn on master [!?]
$ sudo ./nnn -m 1024M -c 1 -A -s 0:0,hostbridge -s 31,lpc -l com1,stdio -s 2:0,virtio-net -U 6BCE442E-4359-4BD9-84F7-EDFB8EC6D2EF -f 'kexec,imgs/stable.766.3.0.coreos_production_pxe.vmlinuz,imgs/stable.766.3.0.coreos_production_pxe_image.cpio.gz,earlyprintk=serial console=ttyS0 coreos.autologin'
Password:
early console in decompress_kernel

Decompressing Linux... Parsing ELF... done.
Booting the kernel.
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 4.1.6-coreos-r1 (buildbot@ip-10-204-3-57) (gcc version 4.8.4 (Gentoo Hardened 4.8.4 p1.5, pie-0.6.1) ) #2 SMP Wed Sep 2 04:16:15 UTC 2015
[    0.000000] Command line: earlyprintk=serial console=ttyS0 coreos.autologin
[    0.000000] e820: BIOS-provided physical RAM map:
[    0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable
[    0.000000] BIOS-e820: [mem 0x0000000000100000-0x000000003fffffff] usable
[    0.000000] bootconsole [earlyser0] enabled
[    0.000000] ERROR: earlyprintk= earlyser already used
[    0.000000] NX (Execute Disable) protection: active
[    0.000000] SMBIOS 2.6 present.
[    0.000000] AGP: No AGP bridge found
[    0.000000] e820: last_pfn = 0x40000 max_arch_pfn = 0x400000000
[    0.000000] PAT configuration [0-7]: WB  WC  UC- UC  WB  WC  UC- UC
[    0.000000] CPU MTRRs all blank - virtualized system.
[    0.000000] Using GB pages for direct mapping
[    0.000000] init_memory_mapping: [mem 0x00000000-0x000fffff]
[    0.000000] init_memory_mapping: [mem 0x3fe00000-0x3fffffff]
[    0.000000] init_memory_mapping: [mem 0x20000000-0x3fdfffff]
[    0.000000] init_memory_mapping: [mem 0x00100000-0x1fffffff]
[    0.000000] RAMDISK: [mem 0x036bb000-0x0d7adfff]
[    0.000000] ACPI: Early table checksum verification disabled
[    0.000000] ACPI: RSDP 0x00000000000F2400 000024 (v02 BHYVE )
[    0.000000] ACPI: XSDT 0x00000000000F2480 000044 (v01 BHYVE  BVXSDT   00000001 INTL 20140828)
[    0.000000] ACPI: APIC 0x00000000000F2500 00005A (v01 BHYVE  BVMADT   00000001 INTL 20140828)
[    0.000000] ACPI: FACP 0x00000000000F2600 00010C (v05 BHYVE  BVFACP   00000001 INTL 20140828)
[    0.000000] ACPI: DSDT 0x00000000000F2800 000A2D (v02 BHYVE  BVDSDT   00000001 INTL 20140828)
[    0.000000] ACPI: FACS 0x00000000000F27C0 000040
[    0.000000] ACPI: FACS 0x00000000000F27C0 000040
[    0.000000] ACPI: HPET 0x00000000000F2740 000038 (v01 BHYVE  BVHPET   00000001 INTL 20140828)
[    0.000000] ACPI: MCFG 0x00000000000F2780 00003C (v01 BHYVE  BVMCFG   00000001 INTL 20140828)
[    0.000000] Setting APIC routing to physical flat.
[    0.000000] No NUMA configuration found
[    0.000000] Faking a node at [mem 0x0000000000000000-0x000000003fffffff]
[    0.000000] NODE_DATA(0) allocated [mem 0x3fff9000-0x3fffffff]
[    0.000000] Zone ranges:
[    0.000000]   DMA      [mem 0x0000000000001000-0x0000000000ffffff]
[    0.000000]   DMA32    [mem 0x0000000001000000-0x000000003fffffff]
[    0.000000]   Normal   empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000001000-0x000000000009efff]
[    0.000000]   node   0: [mem 0x0000000000100000-0x000000003fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000001000-0x000000003fffffff]
[    0.000000] ACPI: PM-Timer IO Port: 0x408
[    0.000000] ACPI: LAPIC_NMI (acpi_id[0xff] high edge lint[0x1])
[    0.000000] IOAPIC[0]: apic_id 0, version 17, address 0xfec00000, GSI 0-23
[    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 high edge)
[    0.000000] ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 low level)
[    0.000000] Using ACPI (MADT) for SMP configuration information
[    0.000000] ACPI: HPET id: 0x80860701 base: 0xfed00000
[    0.000000] smpboot: Allowing 1 CPUs, 0 hot[    0.000000] AGP: No AGP bridge found
[    0.000000] Memory: 830148K/1048184K available (5459K kernel code, 993K rwdata, 2384K rodata, 24108K init, 936K bss, 218036K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU restricting CPUs from NR_CPUS=128 to nr_cpu_ids=1.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS:8448 nr_irqs:256 16
[    0.000000] Console: colour dummy device 80x25
[    0.000000] console [ttyS0] enabled
[    0.000000] console [ttyS0] enabled
[    0.000000] bootconsole [earlyser0] disabled
[    0.000000] bootconsole [earlyser0] disabled
[    0.000000] clocksource hpet: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 191126044627 ns
[    0.000000] tsc: Fast TSC calibration using PIT
[    0.000000] tsc: Detected 2194.466 MHz processor
[    0.000155] Calibrating delay loop (skipped), value calculated using timer frequency.. 4388.93 BogoMIPS (lpj=2194466)
[    0.000835] pid_max: default: 32768 minimum: 301
[    0.001125] ACPI: Core revision 20150410
[    0.001731] ACPI: All ACPI Tables successfully acquired
[    0.002301] Security Framework initialized
[    0.002701] SELinux:  Disabled at boot.
[    0.002977] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes)
[    0.004558] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes)
[    0.005566] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes)
[    0.005954] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes)
[    0.006748] Initializing cgroup subsys blkio
[    0.007001] Initializing cgroup subsys memory
[    0.007259] Initializing cgroup subsys devices
[    0.007530] Initializing cgroup subsys freezer
[    0.007789] Initializing cgroup subsys net_cls
[    0.008047] Initializing cgroup subsys perf_event
[    0.008336] Initializing cgroup subsys net_prio
[    0.008791] CPU: Physical Processor ID: 0
[    0.009834] mce: CPU supports 0 MCE banks
[    0.010094] Last level iTLB entries: 4KB 1024, 2MB 1024, 4MB 1024
[    0.010487] Last level dTLB entries: 4KB 1024, 2MB 1024, 4MB 1024, 1GB 4
[    0.029912] Freeing SMP alternatives memory: 24K (ffffffff83285000 - ffffffff8328b000)
[    0.040011] ftrace: allocating 21287 entries in 84 pages
[    0.099860] ..TIMER: vector=0x30 apic1=0 pin1=2 apic2=-1 pin2=-1
[    0.211524] smpboot: CPU0: Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz (fam: 06, model: 46, stepping: 01)
[    0.212399] Performance Events: unsupported p6 CPU model 70 no PMU driver, software events only.
[    0.213697] x86: Booted up 1 node, 1 CPUs
[    0.213940] smpboot: Total of 1 processors activated (4388.93 BogoMIPS)
[    0.224247] NMI watchdog: disabled (cpu0): hardware events not enabled
[    0.224782] NMI watchdog: Shutting down hard lockup detector on all cpus
[    0.225471] devtmpfs: initialized
[    0.227295] clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275000 ns
[    0.228165] pinctrl core: initialized pinctrl subsystem
[    0.228643] NET: Registered protocol family 16
[    0.229001] cpuidle: using governor ladder
[    0.229242] cpuidle: using governor menu
[    0.229506] ACPI FADT declares the system doesn't support PCIe ASPM, so disable it
[    0.229938] ACPI: bus type PCI registered
[    0.230171] acpiphp: ACPI Hot Plug PCI Controller Driver version: 0.5
[    0.230642] dca service started, version 1.12.1
[    0.230951] PCI: MMCONFIG for domain 0000 [bus 00-ff] at [mem 0xe0000000-0xefffffff] (base 0xe0000000)
[    0.231480] PCI: not using MMCONFIG
[    0.231688] PCI: Using configuration type 1 for base access
[    0.232770] ACPI: Added _OSI(Module Device)
[    0.233022] ACPI: Added _OSI(Processor Device)
[    0.233279] ACPI: Added _OSI(3.0 _SCP Extensions)
[    0.233550] ACPI: Added _OSI(Processor Aggregator Device)
[    0.234264] ACPI: Interpreter enabled
[    0.234484] ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S1_] (20150410/hwxface-580)
[    0.235083] ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S2_] (20150410/hwxface-580)
[    0.235712] ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S3_] (20150410/hwxface-580)
[    0.236292] ACPI Exception: AE_NOT_FOUND, While evaluating Sleep State [\_S4_] (20150410/hwxface-580)
[    0.236880] ACPI: (supports S0 S5)
[    0.237118] ACPI: Using IOAPIC for interrupt routing
[    0.237477] PCI: MMCONFIG for domain 0000 [bus 00-ff] at [mem 0xe0000000-0xefffffff] (base 0xe0000000)
[    0.238075] PCI: MMCONFIG at [mem 0xe0000000-0xefffffff] reserved in ACPI motherboard resources
[    0.238583] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
[    0.239840] ACPI: PCI Root Bridge [PC00] (domain 0000 [bus 00])
[    0.240187] acpi PNP0A03:00: _OSC: OS supports [ExtendedConfig ASPM ClockPM Segments MSI]
[    0.240656] acpi PNP0A03:00: _OSC failed (AE_NOT_FOUND); disabling ASPM
[    0.241044] acpi PNP0A03:00: host bridge window [mem 0x00000000-0xd0000fffff window] ([0x8000000000-0xd0000fffff] ignored, not CPU addressable)
[    0.241782] acpi PNP0A03:00: host bridge window expanded to [mem 0x00000000-0x7fffffffff window]; [mem 0x00000000-0x7fffffffff window] ignored
[    0.242540] PCI host bridge to bus 0000:00
[    0.242790] pci_bus 0000:00: root bus resource [bus 00]
[    0.243091] pci_bus 0000:00: root bus resource [io  0x0000-0x0cf7 window]
[    0.243480] pci_bus 0000:00: root bus resource [io  0x0d00-0x1fff window]
[    0.243876] pci_bus 0000:00: root bus resource [io  0x2000-0x203f window]
[    0.244265] pci_bus 0000:00: root bus resource [mem 0x00000000-0x7fffffffff window]
[    0.244885] ACPI: PCI Interrupt Link [LNKA] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled.
[    0.245528] ACPI: PCI Interrupt Link [LNKB] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled.
[    0.246177] ACPI: PCI Interrupt Link [LNKC] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled.
[    0.246820] ACPI: PCI Interrupt Link [LNKD] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled.
[    0.247454] ACPI: PCI Interrupt Link [LNKE] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled.
[    0.248094] ACPI: PCI Interrupt Link [LNKF] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled.
[    0.248729] ACPI: PCI Interrupt Link [LNKG] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled.
[    0.249378] ACPI: PCI Interrupt Link [LNKH] (IRQs 3 4 5 6 7 9 10 11 12 14 15) *0, disabled.
[    0.250170] vgaarb: loaded
[    0.250372] PCI: Using ACPI for IRQ routing
[    0.285826] hpet0: at MMIO 0xfed00000, IRQs 2, 8, 0, 0, 0, 0, 0, 0
[    0.286469] hpet0: 8 comparators, 32-bit 10.000000 MHz counter
[    0.289003] Switched to clocksource hpet
[    0.297114] pnp: PnP ACPI init
[    0.297585] system 00:00: [io  0x0220-0x0223] has been reserved
[    0.298081] system 00:00: [io  0x0224-0x0227] has been reserved
[    0.298641] system 00:00: [io  0x04d0-0x04d1] has been reserved
[    0.299141] system 00:00: [io  0x0400-0x0407] has been reserved
[    0.299482] system 00:00: [mem 0xe0000000-0xefffffff] has been reserved
[    0.299982] pnp: PnP ACPI: found 4 devices
[    0.305812] clocksource acpi_pm: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 2085701024 ns
[    0.306395] NET: Registered protocol family 2
[    0.306833] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[    0.307382] TCP bind hash table entries: 8192 (order: 5, 131072 bytes)
[    0.307913] TCP: Hash tables configured (established 8192 bind 8192)
[    0.308455] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.308800] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.309291] NET: Registered protocol family 1
[    0.656801] Unpacking initramfs...
[    1.249566] Freeing initrd memory: 164812K (ffff8800036bb000 - ffff88000d7ae000)
rdmsr to register 0x570 on vcpu 0
                                 [    1.250498] futex hash table entries: 256 (order: 2, 16384 bytes)
[    1.251053] Initialise system trusted keyring
[    1.251471] audit: initializing netlink subsys (disabled)
[    1.251872] audit: type=2000 audit(1442779276.086:1): initialized
[    1.252383] HugeTLB registered 2 MB page size, pre-allocated 0 pages
[    1.254192] VFS: Disk quotas dquot_6.6.0
[    1.254472] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[    1.255486] alg: No test for stdrng (krng)
[    1.255739] Key type asymmetric registered
[    1.255981] Asymmetric key parser 'x509' registered
[    1.256315] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    1.256790] io scheduler noop registered
[    1.257046] io scheduler deadline registered
[    1.257330] io scheduler cfq registered (default)
[    1.257640] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
[    1.257994] pciehp: PCI Express Hot Plug Controller Driver version: 0.4
[    1.258469] GHES: HEST is not enabled!
[    1.258705] ioatdma: Intel(R) QuickData Technology Driver 4.00
[    1.259132] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    1.280354] 00:01: ttyS0 at I/O 0x3f8 (irq = 4, base_baud = 115200) is a 16550A
[    1.301921] 00:02: ttyS1 at I/O 0x2f8 (irq = 3, base_baud = 115200) is a 16550A
[    1.302786] i8042: PNP: No PS/2 controller found. Probing ports directly.
[    1.824555] i8042: Can't read CTR while initializing i8042
[    1.825049] i8042: probe of i8042 failed with error -5
[    1.825581] ACPI Error: Could not enable RealTimeClock event (20150410/evxfevnt-212)
[    1.826309] ACPI Warning: Could not enable fixed event - RealTimeClock (4) (20150410/evxface-654)
[    1.827061] rtc_cmos 00:03: rtc core: registered rtc_cmos as rtc0
[    1.827470] rtc_cmos 00:03: alarms up to one day, y3k, 114 bytes nvram
[    1.828038] NET: Registered protocol family 10
[    1.828516] NET: Registered protocol family 17
[    1.828976] Loading compiled-in X.509 certificates
[    1.829814] Loaded X.509 cert 'Build time autogenerated kernel key: 10cf7da14a0e283401448e7555d5f178c32e7396'
[    1.830394] registered taskstats version 1
[    1.830794] rtc_cmos 00:03: setting system clock to 2015-09-20 20:01:17 UTC (1442779277)
[    1.833502] Freeing unused kernel memory: 24108K (ffffffff81afa000 - ffffffff83285000)
[    1.833977] Write protecting the kernel read-only data: 10240k
[    1.834490] Freeing unused kernel memory: 672K (ffff880001558000 - ffff880001600000)
[    1.835152] Freeing unused kernel memory: 1712K (ffff880001854000 - ffff880001a00000)
[    1.838535] systemd[1]: Inserted module 'autofs4'
[    1.839814] ip_tables: (C) 2000-2006 Netfilter Core Team
[    1.840250] systemd[1]: Inserted module 'ip_tables'
[    1.841061] random: systemd urandom read with 4 bits of entropy available
[    1.842338] systemd[1]: systemd 222 running in system mode. (-PAM +AUDIT -SELINUX +IMA -APPARMOR +SMACK -SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT -GNUTLS -ACL +XZ -LZ4 +SECCOMP +BLKID -ELFUTILS +KMOD -IDN)
[    1.843541] systemd[1]: Detected virtualization other.
[    1.843906] systemd[1]: Detected architecture x86-64.
[    1.844229] systemd[1]: Running in initial RAM disk.

Welcome to dracut-041-r2 (Initramfs)!

[    1.845128] systemd[1]: No hostname configured.
[    1.845405] systemd[1]: Set hostname to <localhost>.
[    1.845743] systemd[1]: Initializing machine ID from random generator.
[  OK  ] Reached target Encrypted Volumes.
[    1.876531] systemd[1]: Reached target Encrypted Volumes.
[    1.876840] systemd[1]: Starting Encrypted Volumes.
[  OK  ] Created slice -.slice.
[    1.877813] systemd[1]: Created slice -.slice.
[    1.878137] systemd[1]: Starting -.slice.
[  OK  ] Listening on Journal Socket (/dev/log).
[    1.879003] systemd[1]: Listening on Journal Socket (/dev/log).
[    1.879370] systemd[1]: Starting Journal Socket (/dev/log).
[  OK  ] Listening on udev Control Socket.
[    1.880332] systemd[1]: Listening on udev Control Socket.
[    1.880660] systemd[1]: Starting udev Control Socket.
[    1.881175] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[    1.881638] systemd[1]: Starting Dispatch Password Requests to Console Directory Watch.
[  OK  ] Created slice System Slice.
[    1.883023] systemd[1]: Created slice System Slice.
[    1.883331] systemd[1]: Starting System Slice.
[  OK  ]istening on Journal Socket.
[    1.888381] systemd[1]: Starting Journal Socket.
[    1.889326] systemd[1]: Starting Create list of required static device nodes for the current kernel...
         Starting Create list of required st... nodes for the current kernel...
[    1.890612] systemd[1]: Started Load Kernel Modules.
[    1.891246] systemd[1]: Starting Apply Kernel Variables...
         Starting Apply Kernel Variables...
[  OK  ] Reached target Timers.
[    1.892494] systemd[1]: Reached target Timers.
[    1.892764] systemd[1]: Starting Timers.
[    1.893062] systemd[1]: Started dracut ask for additional cmdline parameters.
[    1.893823] systemd[1]: Starting dracut cmdline hook...
         Starting dracut cmdline hook...
[  OK  ] Reached target Paths.
[    1.900697] systemd[1]: Reached target Paths.
[    1.901561] systemd[1]: Starting Paths.
[  OK  ] Listening on Journal Audit Socket.
[    1.902635] systemd[1]: Listening on Journal Audit Socket.
[    1.902983] systemd[1]: Starting Journal Audit Socket.
[    1.903550] systemd[1]: Starting Journal Service...
         Starting Journal Service...
[  OK  ] Reached target Sockets.
[    1.911153] systemd[1]: Reached target Sockets.
[    1.911535] systemd[1]: Starting Sockets.
[  OK  ] Reached target Local File Systems.
[    1.918217] systemd[1]: Reached target Local File Systems.
[    1.918703] systemd[1]: Starting Local File Systems.
[  OK  ] Started Create list of required sta...ce nodes for the current kernel.
[    1.925022] systemd[1]: Started Create list of required static device nodes for the current kernel.
[    1.925622] audit: type=1130 audit(1442779277.594:2): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=kmod-static-nodes comm="systemd" exe="/usr/lib64/systemd/systemd" hostname=? addr=? terminal=? res=success'
[  OK  ] Started Apply Kernel Variables.
[    1.930002] systemd[1]: Started Apply Kernel Variables.
[    1.930328] audit: type=1130 audit(1442779277.599:3): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-sysctl comm="systemd" exe="/usr/lib64/systemd/systemd" hostname=? addr=? terminal=? res=success'
[  OK  ] Started Journal Service.
[    1.937614] systemd[1]: Started Journal Service.
[    1.937932] audit: type=1130 audit(1442779277.606:4): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-journald comm="systemd" exe="/usr/lib64/systemd/systemd" hostname=? addr=? terminal=? res=success'
         Starting Create Static Device Nodes in /dev...
[  OK [  OK  ] Started dracut cmdline hook.
[    1.970408] audit: type=1130 audit(1442779277.639:6): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=dracut-cmdline comm="systemd" exe="/usr/lib64/systemd/systemd" hostname=? addr=? terminal=? res=success'
         Starting dracut pre-udev hook...
[  OK  ] Started dracut pre-udev hook.
[    1.994078] audit: type=1130 audit(1442779277.663:7): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=dracut-pre-udev comm="systemd" exe="/usr/lib64/systemd/systemd" hostname=? addr=? terminal=? res=success'
         Starting udev Kernel Device Manager...
[  OK  ] Started udev Kernel Device Manager.
[    2.002701] audit: type=1130 audit(1442779277.671:8): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-udevd comm="systemd" exe="/usr/lib64/systemd/systemd" hostname=? addr=? terminal=? res=success'
         Starting dracut pre-trigger hook...
[  OK  ] Started dracut pre-trigger hook.
[    2.035705] audit: type=1130 audit(1442779277.704:9): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=dracut-pre-trigger comm="systemd" exe="/usr/lib64/systemd/systemd" hostname=? addr=? terminal=? res=success'
         Starting udev Coldplug all Devices...
[  OK  ] Started udev Coldplug all Devices.
[    2.061677] audit: type=1130 audit(1442779277.730:10): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-udev-trigger comm="systemd" exe="/usr/lib64/systemd/systemd" hostname=? addr=? terminal=? res=success'
         Starting dracut initqueue hook...
[  OK  ] Reached target System Initialization.
[  OK  ] Reached target Basic System.
[  OK  ] Started dracut initqueue hook.
         Starting dracut pre-mount hook...
[  OK  ] Reached target Remote File Systems (Pre).
[  OK  ] Reached target Remote File Systems.
[    2.095427] input: Power Button as /devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
[    2.095866] ACPI: Power Button [PWRF]
[  OK  ] Started dracut pre-mount hook.
         Mounting /sysroot...
[  OK  ] Mounted /sysroot.
         Mounting /sysroot/usr...
[    2.121072] loop: module loaded
[    2.123243] microcode: CPU0 sig=0x40661, pf=0x1, revision=0x0
[    2.126440] microcode: Microcode Update Driver: v2.00 <[email protected]>, Peter Oruba
[    2.130552] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[  OK  ] Mounted /sysroot/usr.
[  OK  ] Reached target Initrd Root File System.
         Starting Reload Configuration from the Real Root...
[    2.185547] AVX2 version of gcm_enc/dec engaged.
[    2.185949] AES CTR mode by8 optimization enabled
[  OK  ] Started Reload Configuration from the Real Root.
[  OK  ] Reached target Initrd File Systems.
[  OK  ] Reached target Initrd Default Target.
         Starting dracut pre-pivot and cleanup hook...
[    2.233266] alg: No test for __gcm-aes-aesni (__driver-gcm-aes-aesni)
[  OK  ] Started dracut pre-pivot and cleanup hook.
         Starting Cleaning Up and Shutting Down Daemons...
[  OK  ] Stopped Cleaning Up and Shutting Down Daemons.
[    2.252821] tsc: Refined TSC clocksource calibration: 2193.338 MHz
[    2.253197] clocksource tsc: mask: 0xffffffffffffffff max_cycles: 0x1f9d9da8ce1, max_idle_ns: 440795283791 ns
[  OK  ] Stopped dracut pre-pivot and cleanup hook.
         Stopping dracut pre-pivot and cleanup hook...
[  OK  ] Stopped target Remote File Systems.
[  OK  ] Stopped target Remote File Systems (Pre).
[  OK  ] Stopped dracut pre-mount hook.
         Stopping dracut pre-mount hook...
[  OK  ] Stopped dracut initqueue hook.
         Stopping dracut initqueue hook...
[  OK  ] Stopped target Initrd Default Target.
[  OK  ] Stopped target Basic System.
[  OK  ] Stopped target Slices.
[  OK  ] Stopped target Paths.
[  OK  ] Stopped target Sockets.
[  OK  ] Stopped target Timers.
[  OK  ] Stopped target System Initialization.
[  OK  ] Stopped target Local File Systems.
[  OK  ] Stopped target Encrypted Volumes.
[  OK  ] Stopped udev Coldplug all Devices.
         Stopping udev Coldplug all Devices...
[  OK  ] Stopped dracut pre-trigger hook.
         Stopping dracut pre-trigger hook...
         Stopping udev Kernel Device Manager...
[  OK  ] Stopped Apply Kernel Variables.
         Stopping Apply Kernel Variables...
[  OK  ] Stopped Create list of required sta...ce nodes for the current kernel.
         Stopping Create list of required st... nodes for the current kernel...
[  OK  ] Stopped target Swap.
[  OK  ] Stopped udev Kernel Device Manager.
[  OK  ] Stopped dracut pre-udev hook.
         Stopping dracut pre-udev hook...
[  OK  ] Stopped dracut cmdline hook.
         Stopping dracut cmdline hook...
[  OK  ] Closed udev Kernel Socket.
[  OK  ] Closed udev Control Socket.
         Starting Cleanup udevd DB...
[  OK  ] Started Cleanup udevd DB.
[  OK  ] Reached target Switch Root.
         Starting Switch Root...
[    2.296057] systemd-journald[88]: Received SIGTERM from PID 1 (systemd).

Welcome to CoreOS 766.3.0!

[  OK  ] Stopped Switch Root.
[  OK  ] Stopped Journal Service.
         Starting Journal Service...
[  OK  ] Created slice User and Session Slice.
[  OK  ] Created slice system-addon\x2drun.slice.
[  OK  ] Created slice system-addon\x2dconfig.slice.
         Mounting Temporary Directory...
         Starting Setup Virtual Console...
[  OK  ] Listening on udev Kernel Socket.
         Mounting External Media Directory...
[  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
[  OK  ] Reached target Swap.
         Mounting POSIX Message Queue File System...
         Mounting Debug File System...
[  OK  ] Created slice system-system\x2dcloudinit.slice.
[  OK  ] Stopped target Switch Root.
[  OK  ] Stopped target Initrd Root File System.
         Starting Create list of required st... nodes for the current kernel...
[  OK  ] Listening on udev Control Socket.
         Starting Apply Kernel Variables...
[  OK  ] Listening on networkd rtnetlink socket.
[  OK  ] Created slice system-serial\x2dgetty.slice.
[  OK  ] Stopped target Initrd File Systems.
         Starting Create System Users...
         Starting Load/Save Random Seed...
[  OK  ] Reached target Local File Systems (Pre).
         Starting Rebuild Hardware Database...
         Mounting Huge Pages File System...
[  OK  ] Created slice system-getty.slice.
[  OK  ] Reached target Slices.
         Starting Rebuild Dynamic Linker Cache...
[  OK  ] Mounted Debug File System.
[  OK  ] Mounted POSIX Message Queue File System.
[  OK  ] Mounted Temporary Directory.
[  OK  ] Mounted External Media Directory.
[  OK  ] Mounted Huge Pages File System.
[  OK  ] Started Journal Service.
[  OK  ] Started Setup Virtual Console.
[  OK  ] Started Create list of required sta...ce nodes for the current kernel.
[  OK  ] Started Apply Kernel Variables.
[  OK  ] Started Load/Save Random Seed.
[  OK  ] Started Create System Users.
         Starting udev Kernel Device Manager...
         Starting Flush Journal to Persistent Storage...
[    2.566069] systemd-journald[355]: Received request to flush runtime journal from PID 1
[  OK  ] Started Flush Journal to Persistent Storage.
[  OK  ] Started udev Kernel Device Manager.
[  OK  ] Started Rebuild Dynamic Linker Cache.
[  OK  ] Started Rebuild Hardware Database.
         Starting udev Coldplug all Devices...
[  OK  ] Started udev Coldplug all Devices.
         Starting udev Wait for Complete Device Initialization...
[  OK  ] Found device /dev/ttyS0.
[  OK  ] Started udev Wait for Complete Device Initialization.
         Starting Activation of LVM2 logical volumes...
[  OK  ] Started Activation of LVM2 logical volumes.
[  OK  ] Reached target Encrypted Volumes.
         Starting Activation of LVM2 logical volumes...
[  OK  ] Started Activation of LVM2 logical volumes.
[  OK  ] Reached target Local File Systems.
         Starting Create missing system files...
         Starting Rebuild Journal Catalog...
         Starting Create Volatile Files and Directories...
         Starting Activation of LVM2 logical volumes...
[  OK  ] Started Rebuild Journal Catalog.
         Starting Update is Completed...
[  OK  ] Started Update is Completed.
[  OK  ] Started Create Volatile Files and Directories.
         Starting Update UTMP about System Boot/Shutdown...
         Starting Load Security Auditing Rules...
         Starting Network Time Synchronization...
         Starting Clean up broken links in /etc/ssl/certs...
[  OK  ] Started Update UTMP about System Boot/Shutdown.
[  OK  ] Started Network Time Synchronization.
[  OK  ] Reached target System Time Synchronized.
[  OK  ] Started Create missing system files.
[  OK  ] Started Activation of LVM2 logical volumes.
[  OK  ] Reached target Remote File Systems.
[  OK  ] Started Clean up broken links in /etc/ssl/certs.
[  OK  ] Started Load Security Auditing Rules.
[  OK  ] Reached target System Initialization.
[  OK  ] Listening on OpenSSH Server Socket.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Reached target Paths.
[  OK  ] Reached target Timers.
[  OK  ] Listening on rkt metadata service socket.
[  OK  ] Listening on Docker Socket for the API.
[  OK  ] Reached target Sockets.
[  OK  ] Reached target Basic System.
[  OK  ] Started Getty on tty1.
         Starting Getty on tty1...
         Starting Login Service...
         Starting Extend Filesystems...
         Starting Garbage Collection for rkt...
         Starting Generate /run/coreos/motd...
[  OK  ] Started Serial Getty on ttyS0.
         Starting Serial Getty on ttyS0...
[  OK  ] Reached target Login Prompts.
         Starting Generate sshd host keys...
[  OK  ] Started D-Bus System Message Bus.
         Starting D-Bus System Message Bus...
         Starting Network Service...
[  OK  ] Reached target Load system-provided cloud configs.
[  OK  ] Reached target Load user-provided cloud configs.
         Starting Install an ssh key from /proc/cmdline...
[  OK  ] Started Extend Filesystems.
[  OK  ] Started Install an ssh key from /proc/cmdline.
[  OK  ] Started Generate /run/coreos/motd.
[    3.258563] Switched to clocksource tsc
[  OK  ] Started Login Service.
[  OK  ] Started Network Service.
[  OK  ] Reached target Network.
         Starting Network Name Resolution...
[  OK  ] Started Network Name Resolution.
[  OK  ] Started Garbage Collection for rkt.
[  OK  ] Started Generate sshd host keys.
         Starting Generate /run/issue...
[  OK  ] Started Generate /run/issue.
[  OK  ] Reached target Multi-User System.


This is localhost (Linux x86_64 4.1.6-coreos-r1) 20:01:19
SSH host key: 3c:07:47:07:ef:28:8a:28:76:4d:3a:84:fb:d2:b4:65 (DSA)
SSH host key: a5:36:20:5f:2c:ad:92:34:22:de:e1:4d:ec:6d:74:65 (ED25519)
SSH host key: 7a:10:c5:0c:74:0c:7b:24:be:d3:43:0a:55:6f:f6:9b (RSA)

localhost login: core (automatic login)

CoreOS stable (766.3.0)
Update Strategy: No Reboots
Last login: Sun Sep 20 20:01:19 +0000 2015 on /dev/tty1.
core@localhost ~ $ lspci -v
core@localhost ~ $

build error, use of undeclared identifier 'HV_VMX_CAP_EXIT'

Hello and congratulations for your great work!

While trying to test xhyve i've got the following error, not sure if i'm missing something or what :(

tombar@Erebor:~/src/xhyve (master:7ffd07108710:)$ make
cc src/vmm/x86.c
cc src/vmm/vmm.c
cc src/vmm/vmm_host.c
cc src/vmm/vmm_mem.c
cc src/vmm/vmm_lapic.c
cc src/vmm/vmm_instruction_emul.c
cc src/vmm/vmm_ioport.c
cc src/vmm/vmm_callout.c
cc src/vmm/vmm_stat.c
cc src/vmm/vmm_util.c
cc src/vmm/vmm_api.c
cc src/vmm/intel/vmx.c
src/vmm/intel/vmx.c:507:25: error: use of undeclared identifier 'HV_VMX_CAP_EXIT'; did you mean 'HV_VMX_CAP_ENTRY'?
        error = vmx_set_ctlreg(HV_VMX_CAP_EXIT,
                               ^~~~~~~~~~~~~~~
                               HV_VMX_CAP_ENTRY
In file included from src/vmm/intel/vmx.c:37:
/System/Library/Frameworks/Hypervisor.framework/Headers/hv_vmx.h:62:2: note: 'HV_VMX_CAP_ENTRY' declared here
        HV_VMX_CAP_ENTRY
        ^
1 error generated.
make: *** [build/vmm/intel/vmx.o] Error 1

My specs if they help:

OSX Yosemite 10.10.3
Model Name: MacBook Pro
Model Identifier: MacBookPro10,2
Processor Name: Intel Core i5
Processor Speed: 2.5 GHz
Number of Processors: 1
Total Number of Cores: 2
L2 Cache (per Core): 256 KB
L3 Cache: 3 MB
Memory: 8 GB

Hope this helps and let me know if you want me to test something else.

Keep the good work!

M

vmx_init: processor does not support desired exit controls

Similar to #3, I have a fairly recent MacBook Air:

Model Name: MacBook Air
Model Identifier: MacBookAir6,1
Processor Name: Intel Core i7
Processor Speed: 1.7 GHz
Number of Processors: 1
Total Number of Cores: 2
L2 Cache (per Core): 256 KB
L3 Cache: 4 MB
Memory: 8 GB
Boot ROM Version: MBA61.0099.B18
SMC Version (system): 2.12f143

Running OS X 10.10.2

I receive the following error trying to run xhyve.sh after a successful make:

vmx_init: processor does not support desired exit controls
Unable to create VM (22)

Fresh Install Crashed MacBook Prod

Ran ./xhyverun.sh after a successful build and my computer restarted. Here is the dump of the error:

Anonymous UUID:       773E4F62-4F0E-CFF2-EB31-6AF23C41C959

Wed Jun 10 07:46:46 2015

*** Panic Report ***
panic(cpu 0 caller 0xffffff8001417cc2): Kernel trap at 0xffffff80014125f4, type 6=invalid opcode, registers:
CR0: 0x0000000080010033, CR2: 0x00007fff757c3ce0, CR3: 0x00000002f90000a4, CR4: 0x00000000001607e0
RAX: 0x0000000000000000, RBX: 0xffffff81bfead000, RCX: 0x00000000ffffffff, RDX: 0x00000000fffffffe
RSP: 0xffffff81ec26bb08, RBP: 0xffffff81ec26bb10, RSI: 0x000ffffffffff000, RDI: 0x000000038d35d000
R8:  0xffffff80014308a0, R9:  0x0000000000000000, R10: 0x0000000007fc00af, R11: 0x00000000f9af40b0
R12: 0x0000000000000004, R13: 0xffffff801fead140, R14: 0xffffff8001abf9d0, R15: 0xffffff8001a34640
RFL: 0x0000000000010006, RIP: 0xffffff80014125f4, CS:  0x0000000000000008, SS:  0x0000000000000010
Fault CR2: 0x00007fff757c3ce0, Error code: 0x0000000000000000, Fault CPU: 0x0

Backtrace (CPU 0), Frame : Return Address
0xffffff81ec26b7b0 : 0xffffff800132bda1 
0xffffff81ec26b830 : 0xffffff8001417cc2 
0xffffff81ec26b9f0 : 0xffffff8001434b73 
0xffffff81ec26ba10 : 0xffffff80014125f4 
0xffffff81ec26bb10 : 0xffffff80014308f0 
0xffffff81ec26bb30 : 0xffffff8001421631 
0xffffff81ec26bc10 : 0xffffff800143063d 
0xffffff81ec26bc60 : 0xffffff7f8351e78d 
0xffffff81ec26bcb0 : 0xffffff7f8351ea4e 
0xffffff81ec26bcd0 : 0xffffff7f8352446f 
0xffffff81ec26bd00 : 0xffffff80018b6bc4 
0xffffff81ec26bd50 : 0xffffff80018fe175 
0xffffff81ec26bdc0 : 0xffffff80013e26be 
0xffffff81ec26be10 : 0xffffff800133000c 
0xffffff81ec26be40 : 0xffffff80013149f3 
0xffffff81ec26be90 : 0xffffff800132531d 
0xffffff81ec26bf10 : 0xffffff80014031ea 
0xffffff81ec26bfb0 : 0xffffff8001435396 
      Kernel Extensions in backtrace:
         com.apple.driver.AppleHV(1.0)[67545152-7361-3327-9B54-5C0B884357F3]@0xffffff7f8351d000->0xffffff7f83527fff

BSD process name corresponding to current thread: xhyve

Mac OS version:
14D136

Kernel version:
Darwin Kernel Version 14.3.0: Mon Mar 23 11:59:05 PDT 2015; root:xnu-2782.20.48~5/RELEASE_X86_64
Kernel UUID: 4B3A11F4-77AA-3D27-A22D-81A1BC5B504D
Kernel slide:     0x0000000001000000
Kernel text base: 0xffffff8001200000
__HIB  text base: 0xffffff8001100000
System model name: MacBookPro11,1 (Mac-189A3D4F975D5FFC)

System uptime in nanoseconds: 2367372615670
last loaded kext at 1779759236612: com.apple.filesystems.cd9660 1.4.4 (addr 0xffffff7f83a98000, size 36864)
last unloaded kext at 393199875695: com.apple.driver.AppleIntelLpssI2C  2.0.56 (addr 0xffffff7f83348000, size 36864)
loaded kexts:
com.vmware.kext.vmioplug.14.1.3 14.1.3
com.vmware.kext.vmx86   0249.89.30
com.vmware.kext.vmnet   0249.89.30
com.vmware.kext.vsockets    90.6.0
com.vmware.kext.vmci    90.6.3
org.virtualbox.kext.VBoxNetAdp  4.3.20
org.virtualbox.kext.VBoxNetFlt  4.3.20
org.virtualbox.kext.VBoxUSB 4.3.20
org.virtualbox.kext.VBoxDrv 4.3.20
com.apple.filesystems.cd9660    1.4.4
com.apple.filesystems.smbfs 3.0.1
com.apple.driver.AppleMikeyHIDDriver    124
com.apple.filesystems.autofs    3.0
com.apple.driver.AudioAUUC  1.70
com.apple.iokit.IOBluetoothSerialManager    4.3.4f4
com.apple.driver.AGPM   110.19.5
com.apple.driver.ApplePlatformEnabler   2.2.0d4
com.apple.driver.X86PlatformShim    1.0.0
com.apple.driver.AppleUpstreamUserClient    3.6.1
com.apple.driver.AppleOSXWatchdog   1
com.apple.driver.AppleHDA   272.18
com.apple.driver.AppleSMCLMU    2.0.7d0
com.apple.driver.AppleCameraInterface   5.33.0
com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport 4.3.4f4
com.apple.driver.AppleLPC   1.7.3
com.apple.iokit.IOUserEthernet  1.0.1
com.apple.Dont_Steal_Mac_OS_X   7.0.0
com.apple.driver.AppleHWAccess  1
com.apple.driver.AppleHV    1
com.apple.driver.AppleIntelSlowAdaptiveClocking 4.0.0
com.apple.driver.AppleIntelHD5000Graphics   10.0.6
com.apple.driver.AppleIntelFramebufferAzul  10.0.6
com.apple.driver.AppleThunderboltIP 2.0.2
com.apple.driver.AppleBacklight 170.7.4
com.apple.driver.AppleMCCSControl   1.2.11
com.apple.driver.AppleUSBTCButtons  240.2
com.apple.driver.AppleUSBTCKeyboard 240.2
com.apple.driver.AppleUSBCardReader 3.5.5
com.apple.driver.XsanFilter 404
com.apple.driver.AppleUSBHub    705.4.2
com.apple.iokit.IOAHCIBlockStorage  2.7.1
com.apple.driver.AppleAHCIPort  3.1.2
com.apple.AppleFSCompression.AppleFSCompressionTypeDataless 1.0.0d1
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0d1
com.apple.BootCache 36
com.apple.driver.AirPort.Brcm4360   930.37.3
com.apple.driver.AppleUSBXHCI   710.4.11
com.apple.driver.AppleSmartBatteryManager   161.0.0
com.apple.driver.AppleACPIButtons   3.1
com.apple.driver.AppleRTC   2.0
com.apple.driver.AppleHPET  1.8
com.apple.driver.AppleSMBIOS    2.1
com.apple.driver.AppleACPIEC    3.1
com.apple.driver.AppleAPIC  1.7
com.apple.nke.applicationfirewall   161
com.apple.security.quarantine   3
com.apple.security.TMSafetyNet  8
com.apple.kext.triggers 1.0
com.apple.driver.DspFuncLib 272.18
com.apple.kext.OSvKernDSPLib    1.15
com.apple.driver.X86PlatformPlugin  1.0.0
com.apple.driver.AppleHDAController 272.18
com.apple.iokit.IOHDAFamily 272.18
com.apple.iokit.IOAudioFamily   203.3
com.apple.vecLib.kext   1.2.0
com.apple.iokit.IOBluetoothHostControllerUSBTransport   4.3.4f4
com.apple.iokit.IOUSBUserClient 705.4.0
com.apple.driver.IOPlatformPluginFamily 5.9.1d7
com.apple.iokit.IOSerialFamily  11
com.apple.iokit.IOBluetoothFamily   4.3.4f4
com.apple.iokit.IOSlowAdaptiveClockingFamily    1.0.0
com.apple.iokit.IOSurface   97.4
com.apple.AppleGraphicsDeviceControl    3.10.22
com.apple.iokit.IOAcceleratorFamily2    156.14
com.apple.driver.AppleBacklightExpert   1.1.0
com.apple.driver.AppleSMC   3.1.9
com.apple.iokit.IONDRVSupport   2.4.1
com.apple.driver.AppleSMBusController   1.0.13d1
com.apple.iokit.IOGraphicsFamily    2.4.1
com.apple.driver.AppleUSBMultitouch 245.2
com.apple.iokit.IOUSBHIDDriver  705.4.0
com.apple.iokit.IOSCSIBlockCommandsDevice   3.7.5
com.apple.iokit.IOUSBMassStorageClass   3.7.2
com.apple.iokit.IOSCSIArchitectureModelFamily   3.7.5
com.apple.driver.AppleUSBMergeNub   705.4.0
com.apple.driver.AppleUSBComposite  705.4.9
com.apple.driver.CoreStorage    471.20.7
com.apple.iokit.IOAHCIFamily    2.7.5
com.apple.driver.AppleThunderboltDPInAdapter    4.0.6
com.apple.driver.AppleThunderboltDPAdapterFamily    4.0.6
com.apple.driver.AppleThunderboltPCIDownAdapter 2.0.2
com.apple.driver.AppleThunderboltNHI    3.1.7
com.apple.iokit.IOThunderboltFamily 4.2.2
com.apple.iokit.IO80211Family   730.60
com.apple.driver.mDNSOffloadUserClient  1.0.1b8
com.apple.iokit.IONetworkingFamily  3.2
com.apple.iokit.IOUSBFamily 720.4.4
com.apple.driver.AppleEFINVRAM  2.0
com.apple.driver.AppleEFIRuntime    2.0
com.apple.iokit.IOHIDFamily 2.0.0
com.apple.iokit.IOSMBusFamily   1.1
com.apple.security.sandbox  300.0
com.apple.kext.AppleMatch   1.0.0d1
com.apple.driver.AppleKeyStore  2
com.apple.driver.AppleMobileFileIntegrity   1.0.5
com.apple.driver.AppleCredentialManager 1.0
com.apple.driver.DiskImages 396
com.apple.iokit.IOStorageFamily 2.0
com.apple.iokit.IOReportFamily  31
com.apple.driver.AppleFDEKeyStore   28.30
com.apple.driver.AppleACPIPlatform  3.1
com.apple.iokit.IOPCIFamily 2.9
com.apple.iokit.IOACPIFamily    1.4
com.apple.kec.Libm  1
com.apple.kec.pthread   1
com.apple.kec.corecrypto    1.0
Model: MacBookPro11,1, BootROM MBP111.0138.B14, 2 processors, Intel Core i5, 2.6 GHz, 16 GB, SMC 2.16f68
Graphics: Intel Iris, Intel Iris, Built-In
Memory Module: BANK 0/DIMM0, 8 GB, DDR3, 1600 MHz, 0x80AD, 0x484D54343147533641465238412D50422020
Memory Module: BANK 1/DIMM0, 8 GB, DDR3, 1600 MHz, 0x80AD, 0x484D54343147533641465238412D50422020
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x112), Broadcom BCM43xx 1.0 (7.15.166.24.3)
Bluetooth: Version 4.3.4f4 15601, 3 services, 27 devices, 1 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
Serial ATA Device: APPLE SSD SM0256F, 251 GB
USB Device: Internal Memory Card Reader
USB Device: iPhone
USB Device: BRCM20702 Hub
USB Device: Bluetooth USB Host Controller
USB Device: Apple Internal Keyboard / Trackpad
Thunderbolt Bus: MacBook Pro, Apple Inc., 17.2

CentOS 6.6: failed to load kernel

I've tried to install this way to reference, but I could not install.

Error Message:

kexec: failed to load kernel centos/vmlinuz
  ./xhyverun_centos_install.sh: line 15: 13387 Abort trap: 6           build/xhyve $MEM $SMP $PCI_DEV $LPC_DEV $NET $IMG_CD $IMG_HDD -f kexec,$KERNEL,$INITRD,"$CMDLINE"

Shell Script

#!/bin/sh

KERNEL="centos/vmlinuz"
INITRD="centos/initrd.img"
CMDLINE="earlyprintk=serial console=ttyS0 acpi=off"

MEM="-m 1G"
#SMP="-c 2"
NET="-s 2:0,virtio-net"
IMG_CD="-s 3,ahci-cd,centos/CentOS-6.6-x86_64-minimal.iso"
# IMG_HDD="-s 4,virtio-blk,centos/hdd.img"
PCI_DEV="-s 0:0,hostbridge -s 31,lpc"
LPC_DEV="-l com1,stdio"

build/xhyve $MEM $SMP $PCI_DEV $LPC_DEV $NET $IMG_CD $IMG_HDD -f kexec,$KERNEL,$INITRD,"$CMDLINE"

Environment

  • Host: OS X Yosemite 10.10.3 on MacBook Air (Mid 2013)
  • ISO: CentOS-6.6-x86_64-minimal.iso

Run xhyve with network without sudo

This is the main pain point with xhyve. I'm very interested in getting this fixed or getting a workaround.

Could we detail the problem and possible solutions/work arounds, here.

Support for virtio-serial

This will allow us to communicate with guests from the host, using virtio serial ports, at high speed.

Kernel panics when virtualbox vm is running on the same system

Not sure if this should be considered an issue of xhyve, but running ./xhyverun.sh leads to a kernel panic if a virtualbox VM is already running.
Without any virtualbox VMs running the xhyve test-vm comes up fine.

Thu Jun 11 10:04:42 2015

*** Panic Report ***
panic(cpu 6 caller 0xffffff8007a17cc2): Kernel trap at 0xffffff8007a125f4, type 6=invalid opcode, registers:
CR0: 0x0000000080010033, CR2: 0x00007fff74124ce0, CR3: 0x00000002f50150f7, CR4: 0x00000000001606e0
RAX: 0x0000000000000000, RBX: 0xffffff81e7a6f000, RCX: 0x00000000ffffffff, RDX: 0x00000000fffffffe
RSP: 0xffffff81f4d93b08, RBP: 0xffffff81f4d93b10, RSI: 0x000ffffffffff000, RDI: 0x00000002f3dbc000
R8:  0xffffff8007a308a0, R9:  0x0000000000000000, R10: 0x0000000007fc0fa6, R11: 0x00000000f01153e6
R12: 0x0000000000000008, R13: 0xffffff8027b25d40, R14: 0xffffff80080bf9d0, R15: 0xffffff8008034640
RFL: 0x0000000000010006, RIP: 0xffffff8007a125f4, CS:  0x0000000000000008, SS:  0x0000000000000010
Fault CR2: 0x00007fff74124ce0, Error code: 0x0000000000000000, Fault CPU: 0x6

Backtrace (CPU 6), Frame : Return Address
0xffffff81f4d937b0 : 0xffffff800792bda1 
0xffffff81f4d93830 : 0xffffff8007a17cc2 
0xffffff81f4d939f0 : 0xffffff8007a34b73 
0xffffff81f4d93a10 : 0xffffff8007a125f4 
0xffffff81f4d93b10 : 0xffffff8007a308f0 
0xffffff81f4d93b30 : 0xffffff8007a21631 
0xffffff81f4d93c10 : 0xffffff8007a3063d 
0xffffff81f4d93c60 : 0xffffff7f8a56c78d 
0xffffff81f4d93cb0 : 0xffffff7f8a56ca4e 
0xffffff81f4d93cd0 : 0xffffff7f8a57246f 
0xffffff81f4d93d00 : 0xffffff8007eb6bc4 
0xffffff81f4d93d50 : 0xffffff8007efe175 
0xffffff81f4d93dc0 : 0xffffff80079e26be 
0xffffff81f4d93e10 : 0xffffff800793000c 
0xffffff81f4d93e40 : 0xffffff80079149f3 
0xffffff81f4d93e90 : 0xffffff800792531d 
0xffffff81f4d93f10 : 0xffffff8007a031ea 
0xffffff81f4d93fb0 : 0xffffff8007a35396 
      Kernel Extensions in backtrace:
         com.apple.driver.AppleHV(1.0)[67545152-7361-3327-9B54-5C0B884357F3]@0xffffff7f8a56b000->0xffffff7f8a575fff

BSD process name corresponding to current thread: xhyve

Mac OS version:
14D136

Kernel version:
Darwin Kernel Version 14.3.0: Mon Mar 23 11:59:05 PDT 2015; root:xnu-2782.20.48~5/RELEASE_X86_64
Kernel UUID: 4B3A11F4-77AA-3D27-A22D-81A1BC5B504D
Kernel slide:     0x0000000007600000
Kernel text base: 0xffffff8007800000
__HIB  text base: 0xffffff8007700000
System model name: MacBookPro10,1 (Mac-C3EC7CD22292981F)

System uptime in nanoseconds: 149741175423
last loaded kext at 14112188551: com.apple.driver.AppleBluetoothHIDKeyboard 176.2 (addr 0xffffff7f8a5c4000, size 16384)
loaded kexts:
org.virtualbox.kext.VBoxNetAdp  4.3.26
org.virtualbox.kext.VBoxNetFlt  4.3.26
org.virtualbox.kext.VBoxUSB 4.3.26
org.virtualbox.kext.VBoxDrv 4.3.26
net.lundman.zfs 1.3.1
net.lundman.spl 1.3.1
at.obdev.nke.LittleSnitch   4240
com.apple.driver.AppleBluetoothMultitouch   85.3
com.apple.driver.AudioAUUC  1.70
com.apple.driver.AppleGraphicsDevicePolicy  3.7.7
com.apple.driver.AppleHWSensor  1.9.5d0
com.apple.iokit.IOBluetoothSerialManager    4.3.4f4
com.apple.driver.AGPM   110.19.5
com.apple.driver.ApplePlatformEnabler   2.2.0d4
com.apple.driver.X86PlatformShim    1.0.0
com.apple.filesystems.autofs    3.0
com.apple.driver.AppleMikeyHIDDriver    124
com.apple.driver.AppleOSXWatchdog   1
com.apple.driver.AppleUpstreamUserClient    3.6.1
com.apple.GeForce   10.0.2
com.apple.driver.AppleHDAHardwareConfigDriver   272.18
com.apple.iokit.IOUserEthernet  1.0.1
com.apple.Dont_Steal_Mac_OS_X   7.0.0
com.apple.driver.AppleHDA   272.18
com.apple.driver.AppleMikeyDriver   272.18
com.apple.driver.AppleHWAccess  1
com.apple.iokit.IOBluetoothUSBDFU   4.3.4f4
com.apple.driver.ACPI_SMC_PlatformPlugin    1.0.0
com.apple.driver.AppleHV    1
com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport 4.3.4f4
com.apple.driver.AppleFIVRDriver    4.1.0
com.apple.driver.AppleSMCPDRC   1.0.0
com.apple.driver.AppleThunderboltIP 2.0.2
com.apple.nvidia.NVDAStartup    10.0.2
com.apple.driver.AppleLPC   1.7.3
com.apple.driver.AppleSMCLMU    2.0.7d0
com.apple.driver.AppleIntelSlowAdaptiveClocking 4.0.0
com.apple.driver.AppleMuxControl    3.10.22
com.apple.driver.AppleIntelHD4000Graphics   10.0.6
com.apple.driver.AppleIntelFramebufferCapri 10.0.6
com.apple.driver.AppleBacklight 170.7.4
com.apple.driver.AppleMCCSControl   1.2.11
com.apple.driver.AppleUSBTCButtons  240.2
com.apple.driver.AppleUSBTCKeyEventDriver   240.2
com.apple.driver.AppleUSBTCKeyboard 240.2
com.apple.driver.CoreStorageFsck    471.20.7
com.apple.driver.AppleFileSystemDriver  3.0.1
com.apple.AppleFSCompression.AppleFSCompressionTypeDataless 1.0.0d1
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0d1
com.apple.BootCache 36
com.apple.driver.XsanFilter 404
com.apple.iokit.IOAHCIBlockStorage  2.7.1
com.apple.iokit.IOAHCIPassThrough   1.0.3
com.apple.driver.AirPort.Brcm4331   800.20.24
com.apple.driver.AppleUSBHub    705.4.2
com.apple.driver.AppleSDXC  1.6.5
com.apple.driver.AirPort.Brcm4360   930.37.3
com.apple.iokit.AppleBCM5701Ethernet    10.1.3
com.apple.driver.AppleAHCIPort  3.1.2
com.apple.driver.AppleUSBEHCI   705.4.14
com.apple.driver.AppleUSBXHCI   710.4.11
com.apple.driver.AppleSmartBatteryManager   161.0.0
com.apple.driver.AppleRTC   2.0
com.apple.driver.AppleACPIButtons   3.1
com.apple.driver.AppleHPET  1.8
com.apple.driver.AppleSMBIOS    2.1
com.apple.driver.AppleACPIEC    3.1
com.apple.driver.AppleAPIC  1.7
com.apple.driver.AppleIntelCPUPowerManagementClient 218.0.0
com.apple.nke.applicationfirewall   161
com.apple.security.quarantine   3
com.apple.security.TMSafetyNet  8
com.apple.driver.AppleIntelCPUPowerManagement   218.0.0
com.apple.driver.AppleBluetoothHIDKeyboard  176.2
com.apple.driver.AppleHIDKeyboard   176.2
com.apple.driver.IOBluetoothHIDDriver   4.3.4f4
com.apple.driver.AppleMultitouchDriver  263.9.1
com.apple.iokit.IOSerialFamily  11
com.apple.kext.triggers 1.0
com.apple.nvidia.driver.NVDAGK100Hal    10.0.2
com.apple.nvidia.driver.NVDAResman  10.0.2
com.apple.driver.DspFuncLib 272.18
com.apple.kext.OSvKernDSPLib    1.15
com.apple.driver.IOPlatformPluginLegacy 1.0.0
com.apple.iokit.IOBluetoothHostControllerUSBTransport   4.3.4f4
com.apple.iokit.IOBluetoothFamily   4.3.4f4
com.apple.driver.AppleThunderboltEDMSink    4.0.2
com.apple.driver.AppleThunderboltDPOutAdapter   4.0.6
com.apple.iokit.IOUSBUserClient 705.4.0
com.apple.driver.AppleSMBusPCI  1.0.12d1
com.apple.driver.X86PlatformPlugin  1.0.0
com.apple.driver.IOPlatformPluginFamily 5.9.1d7
com.apple.iokit.IOSlowAdaptiveClockingFamily    1.0.0
com.apple.driver.AppleGraphicsControl   3.10.22
com.apple.driver.AppleHDAController 272.18
com.apple.iokit.IOHDAFamily 272.18
com.apple.iokit.IOAudioFamily   203.3
com.apple.vecLib.kext   1.2.0
com.apple.iokit.IOSurface   97.4
com.apple.iokit.IOAcceleratorFamily2    156.14
com.apple.AppleGraphicsDeviceControl    3.10.22
com.apple.driver.AppleBacklightExpert   1.1.0
com.apple.driver.AppleSMC   3.1.9
com.apple.iokit.IONDRVSupport   2.4.1
com.apple.driver.AppleSMBusController   1.0.13d1
com.apple.iokit.IOGraphicsFamily    2.4.1
com.apple.iokit.IOSCSIArchitectureModelFamily   3.7.5
com.apple.driver.AppleUSBMultitouch 245.2
com.apple.iokit.IOUSBHIDDriver  705.4.0
com.apple.driver.AppleUSBMergeNub   705.4.0
com.apple.driver.AppleUSBComposite  705.4.9
com.apple.driver.CoreStorage    471.20.7
com.apple.driver.AppleThunderboltDPInAdapter    4.0.6
com.apple.driver.AppleThunderboltDPAdapterFamily    4.0.6
com.apple.driver.AppleThunderboltPCIDownAdapter 2.0.2
com.apple.driver.AppleThunderboltNHI    3.1.7
com.apple.iokit.IOThunderboltFamily 4.2.2
com.apple.iokit.IO80211Family   730.60
com.apple.iokit.IOEthernetAVBController 1.0.3b3
com.apple.driver.mDNSOffloadUserClient  1.0.1b8
com.apple.iokit.IONetworkingFamily  3.2
com.apple.iokit.IOAHCIFamily    2.7.5
com.apple.iokit.IOUSBFamily 720.4.4
com.apple.driver.AppleEFINVRAM  2.0
com.apple.driver.AppleEFIRuntime    2.0
com.apple.iokit.IOHIDFamily 2.0.0
com.apple.iokit.IOSMBusFamily   1.1
com.apple.security.sandbox  300.0
com.apple.kext.AppleMatch   1.0.0d1
com.apple.driver.AppleKeyStore  2
com.apple.driver.AppleMobileFileIntegrity   1.0.5
com.apple.driver.AppleCredentialManager 1.0
com.apple.driver.DiskImages 396
com.apple.iokit.IOStorageFamily 2.0
com.apple.iokit.IOReportFamily  31
com.apple.driver.AppleFDEKeyStore   28.30
com.apple.driver.AppleACPIPlatform  3.1
com.apple.iokit.IOPCIFamily 2.9
com.apple.iokit.IOACPIFamily    1.4
com.apple.kec.Libm  1
com.apple.kec.pthread   1
com.apple.kec.corecrypto    1.0
Model: MacBookPro10,1, BootROM MBP101.00EE.B07, 4 processors, Intel Core i7, 2.6 GHz, 16 GB, SMC 2.3f36
Graphics: Intel HD Graphics 4000, Intel HD Graphics 4000, Built-In
Graphics: NVIDIA GeForce GT 650M, NVIDIA GeForce GT 650M, PCIe, 1024 MB
Memory Module: BANK 0/DIMM0, 8 GB, DDR3, 1600 MHz, 0x80AD, 0x484D5434314753364D465238432D50422020
Memory Module: BANK 1/DIMM0, 8 GB, DDR3, 1600 MHz, 0x80AD, 0x484D5434314753364D465238432D50422020
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0xEF), Broadcom BCM43xx 1.0 (7.15.166.24.3)
Bluetooth: Version 4.3.4f4 15601, 3 services, 27 devices, 1 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
Serial ATA Device: APPLE SSD SM512E, 500,28 GB
USB Device: Hub
USB Device: FaceTime HD Camera (Built-in)
USB Device: Hub
USB Device: Hub
USB Device: BRCM20702 Hub
USB Device: Bluetooth USB Host Controller
USB Device: Apple Internal Keyboard / Trackpad
Thunderbolt Bus: MacBook Pro, Apple Inc., 23.4

Is nested virtualization supported/possible?

I know that VMWare currently provides nested virtualization, and that VirtualBox does not. I don't even know if it's possible given the constraints of Hypervisor.framework, but I figured I'd ask!

High idle CPU / Energy use

High level issue, but the idle CPU on my MBP is ~3.5% and energy impact according to activity monitor is ~8.6 with just the default shell in TCL.

Starting a FreeBSD guest?

Hey there, amazing work on xhyve. I use it every day for Docker, and have been playing with various Linux guests under it with no issues.

I see that some recent-ish commits added support for FreeBSD guests, but I'm unsure exactly how the get them started; I got close however I managed to freeze my entire mac once it got past the bootloader, so I'm somewhat at a loss here!

Thanks,
Josh

Kernel Panic after being left sleeping for a long time (ACPI related)

I've been using xhyve as my main VM and it's working great! I enabled ACPI for better CPU idle but that is causing the kernel to panic when it's been asleep for long periods of time. I'm going to do some more testing just to make sure it's really xhyve and try and nail down causes but I thought I'd start documenting it here and also dump a stack trace.

Anonymous UUID:       REDACTED

Mon Nov 16 20:08:02 2015

*** Panic Report ***
panic(cpu 0 caller 0xffffff801fbd151a): Kernel trap at 0xffffff801fbb38ad, type 6=invalid opcode, registers:
CR0: 0x0000000080010033, CR2: 0x00007000000935b8, CR3: 0x0000000022e8e000, CR4: 0x00000000001627e0
RAX: 0xffffff802bbeb3d0, RBX: 0x0000000000000004, RCX: 0x0000000000000001, RDX: 0x00000000000049ba
RSP: 0xffffff802bbeb3d0, RBP: 0xffffff802bbeb3e0, RSI: 0x0000000000000000, RDI: 0x000000017210a000
R8:  0xffffff801fbb3890, R9:  0x000000017210a000, R10: 0x0000000000000000, R11: 0x0000000000000000
R12: 0x0000000000000004, R13: 0x0000000000000000, R14: 0x0000000000000000, R15: 0x0000000000000000
RFL: 0x0000000000010082, RIP: 0xffffff801fbb38ad, CS:  0x0000000000000008, SS:  0x0000000000000000
Fault CR2: 0x00007000000935b8, Error code: 0x0000000000000000, Fault CPU: 0x0, PL: 2

Backtrace (CPU 0), Frame : Return Address
0xffffff802bbeb060 : 0xffffff801fade752 
0xffffff802bbeb0e0 : 0xffffff801fbd151a 
0xffffff802bbeb2c0 : 0xffffff801fbef1f3 
0xffffff802bbeb2e0 : 0xffffff801fbb38ad 
0xffffff802bbeb3e0 : 0xffffff801fbdb729 
0xffffff802bbeb4d0 : 0xffffff801fbafcd2 
0xffffff802bbeb570 : 0xffffff801fbb82ad 
0xffffff802bbeb630 : 0xffffff801fbbaa17 
0xffffff802bbeb650 : 0xffffff801fb8d066 
0xffffff802bbeb670 : 0xffffff801fb8a77d 
0xffffff802bbeb790 : 0xffffff802007bd9a 
0xffffff802bbebb90 : 0xffffff801fbde7bd 
0xffffff802bbebbd0 : 0xffffff801fbbd33a 
0xffffff802bbebc60 : 0xffffff801fbddfa3 
0xffffff802bbebcd0 : 0xffffff7fa261a52d 
0xffffff802bbebd10 : 0xffffff7fa261dd79 
0xffffff802bbebd30 : 0xffffff80200d2bdf 
0xffffff802bbebd90 : 0xffffff80200fdc26 
0xffffff802bbebe00 : 0xffffff80200a3c29 
0xffffff802bbebe60 : 0xffffff802009bbb4 
0xffffff802bbebec0 : 0xffffff80200a8e72 
0xffffff802bbebf00 : 0xffffff80200a8fc2 
0xffffff802bbebf40 : 0xffffff80200b4091 
0xffffff802bbebf80 : 0xffffff80200b428c 
0xffffff802bbebfb0 : 0xffffff801fbcbf37 
      Kernel Extensions in backtrace:
         com.apple.driver.AppleACPIPlatform(4.0)[295F7A91-2DF7-3FFE-9550-A0C1A6F9D575]@0xffffff7fa260f000->0xffffff7fa266efff
            dependency: com.apple.iokit.IOACPIFamily(1.4)[CBAE26D8-0ACB-3C1F-8347-FDCA67EC40B3]@0xffffff7fa0a8b000
            dependency: com.apple.iokit.IOPCIFamily(2.9)[F6E4D4FF-864B-3F33-B85B-6C0E99ECA07F]@0xffffff7fa032c000

BSD process name corresponding to current thread: kernel_task

Mac OS version:
15C40a

Kernel version:
Darwin Kernel Version 15.2.0: Fri Nov  6 21:36:43 PST 2015; root:xnu-3248.20.52~1/RELEASE_X86_64
Kernel UUID: 682005D5-697A-3D91-9223-EF6C471424F2
Kernel slide:     0x000000001f800000
Kernel text base: 0xffffff801fa00000
__HIB  text base: 0xffffff801f900000
System model name: MacBookAir6,2 (Mac-7DF21CB3ED6977E5)

System uptime in nanoseconds: 20539971409761
last loaded kext at 7830686224389: com.apple.driver.AppleMikeyHIDDriver 124 (addr 0xffffff7fa278b000, size 20480)
last unloaded kext at 228930412455: com.apple.driver.AppleIntelLpssI2C  2.0.59 (addr 0xffffff7fa1fec000, size 36864)
loaded kexts:
com.spacemonkey.filesystems.spacefuse   2.8.0
org.virtualbox.kext.VBoxNetAdp  5.0.8
org.virtualbox.kext.VBoxNetFlt  5.0.8
org.virtualbox.kext.VBoxUSB 5.0.8
org.virtualbox.kext.VBoxDrv 5.0.8
com.intel.kext.intelhaxm    1.1.5
com.apple.driver.AppleMikeyHIDDriver    124
com.apple.filesystems.smbfs 3.0.0
com.apple.driver.AppleUSBDisplays   378
com.apple.driver.usb.AppleUSBEHCIPCI    1.0.1
com.apple.iokit.AppleBCM5701Ethernet    10.1.12
com.apple.driver.AppleFWOHCI    5.5.2
com.apple.driver.AppleBluetoothMultitouch   90.3
com.apple.filesystems.autofs    3.0
com.apple.driver.AudioAUUC  1.70
com.apple.driver.X86PlatformShim    1.0.0
com.apple.driver.AGPM   110.20.21
com.apple.driver.ApplePlatformEnabler   2.6.0d0
com.apple.driver.AppleHDA   272.51.3
com.apple.driver.AppleUpstreamUserClient    3.6.1
com.apple.driver.AppleOSXWatchdog   1
com.apple.driver.pmtelemetry    1
com.apple.iokit.IOUserEthernet  1.0.1
com.apple.iokit.IOBluetoothSerialManager    4.4.3f3
com.apple.Dont_Steal_Mac_OS_X   7.0.0
com.apple.driver.AppleIntelHD5000Graphics   10.1.2
com.apple.driver.AppleHV    1
com.apple.driver.AppleBacklight 170.8.3
com.apple.driver.AppleLPC   3.1
com.apple.driver.AppleSMCLMU    208
com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport 4.4.3f3
com.apple.driver.AppleMCCSControl   1.2.13
com.apple.driver.AppleCameraInterface   5.41.0
com.apple.driver.AppleIntelFramebufferAzul  10.1.2
com.apple.driver.AppleIntelSlowAdaptiveClocking 4.0.0
com.apple.driver.AppleThunderboltIP 3.0.8
com.apple.driver.AppleUSBCardReader 3.7.1
com.apple.driver.AppleTopCaseHIDEventDriver 86
com.apple.AppleFSCompression.AppleFSCompressionTypeDataless 1.0.0d1
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0
com.apple.BootCache 38
com.apple.iokit.IOAHCIBlockStorage  2.8.5
com.apple.driver.AppleAHCIPort  3.1.8
com.apple.driver.AirPort.Brcm4360   1020.17.1a1
com.apple.driver.AppleSmartBatteryManager   161.0.0
com.apple.driver.AppleRTC   2.0
com.apple.driver.AppleACPIButtons   4.0
com.apple.driver.AppleHPET  1.8
com.apple.driver.AppleSMBIOS    2.1
com.apple.driver.AppleACPIEC    4.0
com.apple.driver.AppleAPIC  1.7
com.apple.nke.applicationfirewall   163
com.apple.security.quarantine   3
com.apple.security.TMSafetyNet  8
com.apple.driver.AppleUSBAudio  302.15
com.apple.iokit.IOUSBHIDDriver  900.4.1
com.apple.iokit.IOUSBHIDDriverPM    900.4.1
com.apple.driver.AppleUSBComposite  900.4.1
com.apple.iokit.IOFireWireIP    2.2.6
com.apple.driver.usb.AppleUSBEHCI   1.0.1
com.apple.iokit.IOEthernetAVBController 1.0.3b3
com.apple.iokit.IOFireWireFamily    4.5.8
com.apple.driver.AppleThunderboltPCIUpAdapter   2.0.2
com.apple.iokit.IOUSBUserClient 900.4.1
com.apple.driver.IOBluetoothHIDDriver   4.4.3f3
com.apple.kext.triggers 1.0
com.apple.driver.DspFuncLib 272.51.3
com.apple.kext.OSvKernDSPLib    525
com.apple.iokit.IOSurface   108.0.1
com.apple.driver.CoreCaptureResponder   1
com.apple.driver.AppleBacklightExpert   1.1.0
com.apple.iokit.IONDRVSupport   2.4.1
com.apple.driver.AppleIntelLpssUARTCommon   2.0.58
com.apple.iokit.IOBluetoothHostControllerUSBTransport   4.4.3f3
com.apple.iokit.IOBluetoothFamily   4.4.3f3
com.apple.driver.AppleSMBusController   1.0.14d1
com.apple.driver.X86PlatformPlugin  1.0.0
com.apple.driver.AppleSMC   3.1.9
com.apple.driver.IOPlatformPluginFamily 6.0.0d7
com.apple.iokit.IOSerialFamily  11
com.apple.AppleGraphicsDeviceControl    3.12.6
com.apple.iokit.IOAcceleratorFamily2    203.13
com.apple.iokit.IOSlowAdaptiveClockingFamily    1.0.0
com.apple.driver.AppleHDAController 272.51.3
com.apple.iokit.IOGraphicsFamily    2.4.1
com.apple.iokit.IOHDAFamily 272.51.3
com.apple.iokit.IOAudioFamily   204.3
com.apple.vecLib.kext   1.2.0
com.apple.driver.AppleThunderboltDPOutAdapter   4.1.3
com.apple.driver.usb.IOUSBHostHIDDevice 1.0.1
com.apple.iokit.IOSCSIBlockCommandsDevice   3.7.7
com.apple.iokit.IOUSBMassStorageDriver  1.0.0
com.apple.iokit.IOSCSIArchitectureModelFamily   3.7.7
com.apple.driver.usb.AppleUSBHostCompositeDevice    1.0.1
com.apple.driver.usb.AppleUSBHub    1.0.1
com.apple.driver.AppleMultitouchDriver  304.10
com.apple.driver.AppleHIDTransport  5
com.apple.driver.AppleHIDKeyboard   181
com.apple.driver.AppleHSSPIHIDDriver    41.7
com.apple.driver.CoreStorage    517.20.1
com.apple.iokit.IOAHCIFamily    2.8.1
com.apple.driver.AppleThunderboltDPInAdapter    4.1.3
com.apple.driver.AppleThunderboltDPAdapterFamily    4.1.3
com.apple.driver.AppleThunderboltPCIDownAdapter 2.0.2
com.apple.driver.AppleThunderboltNHI    4.0.4
com.apple.iokit.IOThunderboltFamily 5.1.0
com.apple.iokit.IO80211Family   1110.26
com.apple.driver.mDNSOffloadUserClient  1.0.1b8
com.apple.iokit.IONetworkingFamily  3.2
com.apple.driver.corecapture    1.0.4
com.apple.driver.AppleHSSPISupport  41.7
com.apple.driver.AppleIntelLpssSpiController    2.0.59
com.apple.driver.AppleIntelLpssDmac 2.0.59
com.apple.driver.AppleIntelLpssGspi 2.0.59
com.apple.driver.usb.AppleUSBXHCIPCI    1.0.1
com.apple.driver.usb.AppleUSBXHCI   1.0.1
com.apple.iokit.IOUSBFamily 900.4.1
com.apple.iokit.IOUSBHostFamily 1.0.1
com.apple.driver.AppleUSBHostMergeProperties    1.0.1
com.apple.driver.AppleEFINVRAM  2.0
com.apple.driver.AppleEFIRuntime    2.0
com.apple.iokit.IOHIDFamily 2.0.0
com.apple.iokit.IOSMBusFamily   1.1
com.apple.security.sandbox  300.0
com.apple.kext.AppleMatch   1.0.0d1
com.apple.driver.AppleKeyStore  2
com.apple.driver.AppleMobileFileIntegrity   1.0.5
com.apple.driver.AppleCredentialManager 1.0
com.apple.driver.DiskImages 417.1
com.apple.iokit.IOStorageFamily 2.1
com.apple.iokit.IOReportFamily  31
com.apple.driver.AppleFDEKeyStore   28.30
com.apple.driver.AppleACPIPlatform  4.0
com.apple.iokit.IOPCIFamily 2.9
com.apple.iokit.IOACPIFamily    1.4
com.apple.kec.Libm  1
com.apple.kec.pthread   1
com.apple.kec.corecrypto    1.0
Model: MacBookAir6,2, BootROM MBA61.0099.B21, 2 processors, Intel Core i7, 1.7 GHz, 8 GB, SMC 2.13f15
Graphics: Intel HD Graphics 5000, Intel HD Graphics 5000, Built-In
Memory Module: BANK 0/DIMM0, 4 GB, DDR3, 1600 MHz, 0x80AD, 0x483943434E4E4E384A544D4C41522D4E544D
Memory Module: BANK 1/DIMM0, 4 GB, DDR3, 1600 MHz, 0x80AD, 0x483943434E4E4E384A544D4C41522D4E544D
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x117), Broadcom BCM43xx 1.0 (7.21.94.136.1a1)
Bluetooth: Version 4.4.3f3 16572, 3 services, 27 devices, 1 incoming serial ports
Serial ATA Device: APPLE SSD SM0512F, 500.28 GB
USB Device: USB 3.0 Bus
USB Device: BRCM20702 Hub
USB Device: Bluetooth USB Host Controller
Thunderbolt Bus: MacBook Air, Apple Inc., 23.6

make: *** [build/vmm/x86.o] Error 1 with recent (HEAD) clang

Using a roughly 2 week old clang I get this build error:

$ V=1 make
cc src/vmm/x86.c
LANG=en_US.US-ASCII clang -arch x86_64 -x c -std=c11 -fno-common -fvisibility=hidden -DXHYVE_CONFIG_ASSERT -Os -flto -fstrict-aliasing -Weverything -Werror -Wno-unknown-warning-option -Wno-reserved-id-macro -pedantic -fmessage-length=152 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -g -Iinclude  -MMD -MT build/vmm/x86.o -MF build/vmm/x86.d -o build/vmm/x86.o -c src/vmm/x86.c
src/vmm/x86.c:76:9: error: code will never be executed [-Werror,-Wunreachable-code]
 if (0) printf("vm %s[%d]: " "cpuid %#x,%#x" "\n", vm_name((vm)), (vcpu_id), (*eax), (*ecx));
        ^~~~~~
src/vmm/x86.c:76:6: note: silence by adding parentheses to mark code as explicitly dead
 if (0) printf("vm %s[%d]: " "cpuid %#x,%#x" "\n", vm_name((vm)), (vcpu_id), (*eax), (*ecx));
     ^
     /* DISABLES CODE */ ( )

Edit, just rebuilt latest HEAD to get a revision number of a version that fails: df8eb0e8b569436ee0a70180089c5bb8b2a50611

Build error with `HV_VMX_CAP_EXIT`

cc src/vmm/intel/vmx.c
src/vmm/intel/vmx.c:507:25: error: use of undeclared identifier 'HV_VMX_CAP_EXIT'; did you mean 'HV_VMX_CAP_ENTRY'?
        error = vmx_set_ctlreg(HV_VMX_CAP_EXIT,
                               ^~~~~~~~~~~~~~~
                               HV_VMX_CAP_ENTRY
In file included from src/vmm/intel/vmx.c:37:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/Hypervisor.framework/Headers/hv_vmx.h:62:2: note: 
      'HV_VMX_CAP_ENTRY' declared here
        HV_VMX_CAP_ENTRY
        ^
1 error generated.
make: *** [build/vmm/intel/vmx.o] Error 1

Cannot create VM(22)

I have a very recent MacBook Air :

Model Name: MacBook Air
Model Identifier: MacBookAir7,2
Processor Name: Intel Core i5
Processor Speed: 1,6 GHz
Number of Processors: 1
Total Number of Cores: 2
L2 Cache (per Core): 256 KB
L3 Cache: 3 MB
Memory: 8 GB
Boot ROM Version: MBA71.0166.B02
SMC Version (system): 2.27f1

Running

System Version: OS X 10.10.3 (14D136)
Kernel Version: Darwin 14.3.0
Boot Volume: Macintosh HD
Boot Mode: Normal
Secure Virtual Memory: Enabled

After a successful make, running xhyve.sh results in the following :

vmx_set_ctlreg: cap_field: 2 bit: 16 unspecified don't care
vmx_init: processor does not support desired secondary processor-based controls
Unable to create VM (22)

Error messages originate in src/vmm/intel/vmx.c

If I comment out the error call at line 489 and rebuild then tinycorelinux comes up.

Create a xhyve organization and add more collaborators?

Hi @mist64,

it seems you are busy with other things (you probably need to earn some $$ as well ;)
Do you think it would make sense to create a xhyve Github organization, move the main repo over there and add some collaborators?
The project is receiving a lot of interest, including smaller PRs which is very nice and it's important to not give contributors the feeling that their contributions are not taken into account.
Note I'm not one of those contributors (yet), but I've seen this happening a lot, great projects slowly dying because the repo owner's priorities have shifted...

Best
Martin

sshd segfault on successful auth

Not sure if that's a xhyve issue (or a boot2docker one), but I noticed that sshd was segfaulting on boot2docker when run inside xhyve, see below.

run boot2docker with xhyve

curl https://github.com/boot2docker/boot2docker/releases/download/v1.6.2/boot2docker.iso
hdiutil attach boot2docker.iso
mkdir boot2docker
cp /Volumes/Boot2Docker-v1.6/boot/{vmlinuz64,initrd.img} boot2docker/
build/xhyve -m 1G -s 0:0,hostbridge -s 31,lpc -l com1,stdio -s 2:0,virtio-net -s 3,ahci-cd,boot2docker/boot2docker.iso -f kexec,boot2docker/vmlinuz64,boot2docker/initrd.img,earlyprintk=serial console=ttyS0 acpi=off

ssh segfault

$ nmap -sP 192.168.64.1/24
$ ssh [email protected]
sshd[675]: segfault at 0 ip 00000000f7514b84 sp 00000000ff8fa464 error 4 in libc-2.17.so[f74ad000+117000]

xhyverun.sh: "hv_vm_create failed"

I am trying to test xhyve (commit 67d5ad8) on a Mid 2010 MacBook Pro (MC374LL/A) running OS X 10.10.3 (14D136), but for some reason the hv_vm_create call in vmx.c seems to fail:

~/src/xhyve % ./xhyverun.sh 
hv_vm_create failed
./xhyverun.sh: line 15: 53220 Abort trap: 6           (core dumped) build/xhyve $MEM $SMP $PCI_DEV $LPC_DEV $NET $IMG_CD $IMG_HDD -f kexec,$KERNEL,$INITRD,"$CMDLINE"

My CPU (Core 2 Duo P8600 2.4 GHz) supports VT-x and it seems to be enabled properly (recent firmware, VMWare Fusion runs just fine).

~ % sysctl -a | grep machdep.cpu.features
machdep.cpu.features: FPU VME DE PSE TSC MSR PAE MCE CX8 APIC SEP MTRR PGE MCA CMOV PAT PSE36 CLFSH DS ACPI MMX FXSR SSE SSE2 SS HTT TM PBE SSE3 DTES64 MON DSCPL VMX SMX EST TM2 SSSE3 CX16 TPR PDCM SSE4.1 XSAVE

I am afraid the backtrace is not too useful. Is there any other information I can help you with?

Building with homebrew llvm's clang segfaults during linking

I have a special llvm installed via:

$ brew install llvm --with-clang --with-asan

When I build xhyve it segfaults during the final linking step.

Ian@kartal:(xhyve)(master) โ†’ make
cc src/vmm/x86.c
cc src/vmm/vmm.c
cc src/vmm/vmm_host.c
cc src/vmm/vmm_mem.c
cc src/vmm/vmm_lapic.c
cc src/vmm/vmm_instruction_emul.c
cc src/vmm/vmm_ioport.c
cc src/vmm/vmm_callout.c
cc src/vmm/vmm_stat.c
cc src/vmm/vmm_util.c
cc src/vmm/vmm_api.c
cc src/vmm/intel/vmx.c
cc src/vmm/intel/vmx_msr.c
cc src/vmm/intel/vmcs.c
cc src/vmm/io/vatpic.c
cc src/vmm/io/vatpit.c
cc src/vmm/io/vhpet.c
cc src/vmm/io/vioapic.c
cc src/vmm/io/vlapic.c
cc src/vmm/io/vpmtmr.c
cc src/vmm/io/vrtc.c
cc src/acpitbl.c
cc src/atkbdc.c
cc src/block_if.c
cc src/consport.c
cc src/dbgport.c
cc src/inout.c
cc src/ioapic.c
cc src/md5c.c
cc src/mem.c
cc src/mevent.c
cc src/mptbl.c
cc src/pci_ahci.c
cc src/pci_emul.c
cc src/pci_hostbridge.c
cc src/pci_irq.c
cc src/pci_lpc.c
cc src/pci_uart.c
cc src/pci_virtio_block.c
cc src/pci_virtio_net_tap.c
cc src/pci_virtio_net_vmnet.c
cc src/pci_virtio_rnd.c
cc src/pm.c
cc src/post.c
cc src/rtc.c
cc src/smbiostbl.c
cc src/task_switch.c
cc src/uart_emul.c
cc src/xhyve.c
cc src/virtio.c
cc src/xmsr.c
cc src/firmware/kexec.c
cc src/firmware/fbsd.c
ld xhyve.sym
clang-3.6: error: unable to execute command: Segmentation fault: 11
clang-3.6: error: linker command failed due to signal (use -v to see invocation)
make: *** [build/xhyve.sym] Error 254
Ian@kartal:(xhyve)(master) โ†’ clang --version
clang version 3.6.2 (tags/RELEASE_362/final)
Target: x86_64-apple-darwin14.5.0
Thread model: posix

Centos 6.6: no networking

After booting No IP is assigned, So I use static IP address, and try ping from mac, No response
here's the tcpdump output:

tcpdump -i eth0 -n

device eth0 entered promiscuous mode
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes
19:09:02.346079 ARP, Request who-has 192.168.64.3 tell 192.168.64.1, length 28
19:09:02.346098 ARP, Reply 192.168.64.3 is-at 06:9d:38:56:cf:32, length 28
19:09:03.346634 ARP, Request who-has 192.168.64.3 tell 192.168.64.1, length 28
19:09:03.346657 ARP, Reply 192.168.64.3 is-at 06:9d:38:56:cf:32, length 28
19:09:04.347690 ARP, Request who-has 192.168.64.3 tell 192.168.64.1, length 28
19:09:04.347707 ARP, Reply 192.168.64.3 is-at 06:9d:38:56:cf:32, length 28
19:09:05.348359 ARP, Request who-has 192.168.64.3 tell 192.168.64.1, length 28
19:09:05.348371 ARP, Reply 192.168.64.3 is-at 06:9d:38:56:cf:32, length 28

here's the startup script

#!/bin/sh

KERNEL="boot/vmlinuz-2.6.32-504.el6.x86_64"
INITRD="boot/initramfs-2.6.32-504.el6.x86_64.img"
CMDLINE="earlyprintk=serial console=ttyS0 acpi=off ro root=/dev/mapper/VolGroup-lv_root rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD  KEYTABLE=us rd_LVM_LV=VolGroup/lv_swap console=ttyS0 acpi=off crashkernel=auto rd_LVM_LV=VolGroup/lv_root SYSFONT=latarcyrheb-sun16 rd_NO_DM"

MEM="-m 1G"
#SMP="-c 2"
NET="-s 2:0,virtio-net"
IMG_CD="-s 3,ahci-cd,centos6.6.iso"
IMG_HDD="-s 4,virtio-blk,hdd.img"
PCI_DEV="-s 0:0,hostbridge -s 31,lpc"
LPC_DEV="-l com1,stdio"
UUID="-U 8ecf0427-4692-467b-8478-acf47cdcc2a3"

xhyve $MEM $SMP $PCI_DEV $LPC_DEV $NET $IMG_CD $IMG_HDD $UUID -f kexec,$KERNEL,$INITRD,"$CMDLINE"

BTW: I've also installed debian 7, and networking works properly.

FreeBSD: failed to mount root devise

I tried to boot FreeBSD by the following script.

#!/bin/sh

USERBOOT="test/userboot.so"
BOOTVOLUME="FreeBSD-10.1-RELEASE-amd64.raw"
KERNELENV=""

MEM="-m 1G"
#SMP="-c 2"
#NET="-s 2:0,virtio-net"
#IMG_CD="-s 3,ahci-cd,/somepath/somefile.iso"
#IMG_HDD="-s 4,virtio-blk,/somepath/somefile.img"
PCI_DEV="-s 0:0,hostbridge -s 31,lpc"
LPC_DEV="-l com1,stdio"
#UUID="-U deadbeef-dead-dead-dead-deaddeafbeef"

build/xhyve -A $MEM $SMP $PCI_DEV $LPC_DEV $NET $IMG_CD $IMG_HDD $UUID -f fbsd,$USERBOOT,$BOOTVOLUME,"$KERNELENV"

FreeBSD-10.1-RELEASE-amd64.raw is download from http://ftp.freebsd.org/pub/FreeBSD/releases/VM-IMAGES/10.1-RELEASE/amd64/Latest/FreeBSD-10.1-RELEASE-amd64.raw.xz

But I got the following errors.

Trying to mount root from ufs:/dev/gpt/rootfs [rw]...
mountroot: waiting for device /dev/gpt/rootfs ...
Mounting from ufs:/dev/gpt/rootfs failed with error 19.

Loader variables:
  vfs.root.mountfrom=ufs:/dev/gpt/rootfs
  vfs.root.mountfrom.options=rw

Manual root filesystem specification:
  <fstype>:<device> [options]
      Mount <device> using filesystem <fstype>
      and with the specified (optional) option list.

    eg. ufs:/dev/da0s1a
        zfs:tank
        cd9660:/dev/acd0 ro
          (which is equivalent to: mount -t cd9660 -o ro /dev/acd0 /)

  ?               List valid disk boot devices
  .               Yield 1 second (for background tasks)
  <empty line>    Abort manual input

mountroot>

freebsd-on-xhyve

How can I resolve this problem?

"reboot" does not reboot

Doing a "sudo reboot" causes the app to exit, not reboot:

The system is going down NOW!
Sent SIGTERM to all processes
Sent SIGKILL to all processes
Requesting system reboot
reboot: Restarting system
reboot: machine restart

$

please tag a new version

@mist64 could you please tag a new version (to be consumed by homebrew et al.). In particular @xez bsd stuff that got merged last night is particularly handy as it en passant fixed a bunch of (acpi related) stuff that also affected linux guests....

Initramfs unpacking failed: junk in compressed archive

Following this article:
https://techblog.lankes.org/2015/05/01/My-Memo-to-build-a-custom-Linux-Kernel-for-Qemu/
then this one:
https://techblog.lankes.org/2015/07/05/Lightweight-Virtualization-on-OS-X/

I get a linux kernel 4.3.0 and initramfs which works using qemu:
qemu-system-x86_64 -smp 2 -kernel ./bzImage -initrd ./myinitrd.cpio -append "root=/dev/ram0 rootfstype=ramfs init=init console=ttyS0" -nographic

... but fails using xhyve:
../build/xhyve -m 1G -c 2 -s 0:0,hostbridge -s 31,lpc -l com1,stdio -f kexec,bzImage,myinitrd.cpio,"earlyprintk=serial root=/dev/ram0 rootfstype=ramfs init=init console=ttyS0"
...or:
../build/xhyve -m 1G -c 2 -s 0:0,hostbridge -s 31,lpc -l com1,stdio -f kexec,bzImage,myinitrd.cpio,"earlyprintk=serial console=ttyS0"

... with this message:

[    0.327131] Initramfs unpacking failed: junk in compressed archive
vm exit[0]
reason      VMX rip     0xffffffff81878ed0
inst_length 3
status      0
exit_reason 2
qualification   0x0000000000000000
inst_type       0
inst_error      0
./my_xhyverun.sh: line 27:  5078 Abort trap: 6

... same result when myinitrd.cpio is gzipped to myinitrd.cpio.gz, probably doesn't matter.

OS X Yosemite 10.10.5
git clone https://github.com/mist64/xhyve.git
The included tiny core linux in the test folder works fine.
Any ideas as to why it's junk to one but not the other?
Did I miss something?
Thanks for this project.

how are people handling clock drift?

just wondering how other people are handling clock drift in their vms when the host machine is put to sleep and wakes up later. currently i'm just restarting ntpd in a cron job, but it's pretty hacky. any better solutions?

Compilation error in vmm/vmm_stat.c - implicit conversion changes signedness

make
cc src/vmm/x86.c
cc src/vmm/vmm.c
cc src/vmm/vmm_host.c
cc src/vmm/vmm_mem.c
cc src/vmm/vmm_lapic.c
cc src/vmm/vmm_instruction_emul.c
cc src/vmm/vmm_ioport.c
cc src/vmm/vmm_callout.c
cc src/vmm/vmm_stat.c
src/vmm/vmm_stat.c:127:29: error: implicit conversion changes signedness: 'int' to 'size_t' (aka 'unsigned long') [-Werror,-Wsign-conversion]
strlcpy(buf, vst->desc, bufsize);
~~~~~~~ ^~~~~~~
1 error generated.
Makefile:88: recipe for target 'build/vmm/vmm_stat.o' failed
make: *** [build/vmm/vmm_stat.o] Error 1

cc -v
Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.3.0
Thread model: posix

preadv / pwritev

The README notes that preadv and pwritev are missing. These can be emulated on OS X with lio_listio (which does a lot more than either and allows a sequence of reads and writes to be dispatched with a single syscall) followed by an explicit sync (if required). OS X only allows a relatively small number of AIO requests in flight at a time, so you do need to be careful with the error handling.

make fails with "error: will never be executed"

Hi, I tried following the instructions on your blog post, but ran into an error:

08:43:20 ~/Github/xhyve $ make
cc src/vmm/io/vrtc.c
src/vmm/io/vrtc.c:168:30: error: will never be executed [-Werror,-Wunreachable-code]
            (sizeof(time_t) == 4 && year > 2037)) {     /* time_t overflow */
                                    ^~~~
1 error generated.
make: *** [build/vmm/io/vrtc.o] Error 1

If you need any more information, please let me know. An interesting project you have here, nonetheless.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.