hyperhq / runv

Hypervisor-based Runtime for OCI
Apache License 2.0
828 stars 129 forks source link

OSX #460

Closed ghost closed 7 years ago

ghost commented 7 years ago

I was wondering if support for OSX with QEMU is possible.

I gave it a try and got along way.


x-MacBook-Pro:runv apple$ ./configure --without-xen
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking for ar... ar
checking the archiver (ar) interface... ar
checking for ranlib... ranlib
checking build system type... x86_64-apple-darwin16.4.0
checking for go... yes
checking host system type... x86_64-apple-darwin16.4.0
checking for vboxmanage... no
configure: error: Unable to find vboxmanage binary in PATH
x-MacBook-Pro:runv apple$ 
ghost commented 7 years ago

ok so OSX seems a happy camper:

config.status: executing depfiles commands

    runv  0.8.0
    build OS:   darwin16.4.0
    prefix:     /usr/local
    has go:     yes
    with xen:   no
    with libvirt: no
    has virtualbox: yes

But my main task is to run stuff in QEMU / KVM. For example i want to run chromium-os in my case. https://www.chromium.org/chromium-os/how-tos-and-troubleshooting/running-chromeos-image-under-virtual-machines#TOC-Getting-the-VM-image

I have QEMU installed ok:

qemu-2.8.0 already installed
x-MacBook-Pro:runv apple$ qemu-system-arm
qemu-system-arm: No machine specified, and there is no default
Use -machine help to list supported machines
dvoytik commented 7 years ago

Out of the box it's not going to work because there is no KVM in macOS. You could try to hack on hypervisor/qemu/qemu_amd64.go by starting removing everything related to kvm. By the way, why do you want to use runv to run chromium-os?

gnawux commented 7 years ago

From the hyperd's perspective, the most significant problem is there is no layered graph driver on Mac right now.

joeblew99 commented 7 years ago

I need to run chrome is to help testing my apps. This is part of CI. Then integration tests run on the actual chrome OS

dvoytik commented 7 years ago

I'd use this: https://www.chromium.org/chromium-os/testing/running-smoke-suite-on-a-vm-image as a base for your own tests.

ghost commented 7 years ago

Thanks will give it a shot

On Wed, 5 Apr 2017, 13:58 Dmitry Voytik, notifications@github.com wrote:

I'd use this: https://www.chromium.org/chromium-os/testing/running-smoke-suite-on-a-vm-image as a base for your own tests.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/hyperhq/runv/issues/460#issuecomment-291839170, or mute the thread https://github.com/notifications/unsubscribe-auth/ATuCwsKkwIVZgNooQ9_PhRGGm8n3mHXcks5rs4HkgaJpZM4MqY8V .