qemu on Mavericks?

Rainer Müller raimue at macports.org
Mon Jan 13 00:54:28 PST 2014


On 2014-01-12 22:23, MK-MacPorts at techno.ms wrote:
> On 12 Jan 2014, at 21:50 , Chris Murphy <lists at colorremedies.com> wrote:
>> When I say USB device, I meant the interface in qemu that presents USB within the guest. Clearly the linux kernel is finding a USB bus.
> 
> The command line to start up the VM is
>> qemu-system-x86_64 -m 2G -cdrom openSUSE-13.1-NET-x86_64.iso -vga std -boot order=dcn os13.1-basis.img

You need -usb to activated USB support as it is not a default option. I
just booted a GRML [1] live system with this command line into minimal
state (no networking):

  qemu-system-x86_64 -cdrom src/img/grml/grml64-full_2013.09.iso -usb

Ignoring all graphical glitches in the console output, the system works
and USB is supported. lsusb shows one "Linux Foundation 1.1 root hub"
after booting up.

Furthermore, I was able to redirect a USB serial cable with the console
command "usb_add host:0x67b:0x2303" to the VM. It shows up in lsusb and
it created the /dev/ttyUSB0 device that seems to be usable.

>>> So, I guess qemu isn’t a true alternative to virtualbox on MacOSX, due to the missing kvm implementation.
>> I see it uses Xen or KVM, but the fact you're getting this far, well past the kernel and initramfs being loaded, seems like it is working.
> Well, a lot seems to work, indeed. But unfortunately I can’t get beyond the USB device recognition step.

Yes, QEMU on Mac OS X is quite slow as it does not get any
virtualization support. By the way, the VirtualBox binaries from
upstream work just fine on Mavericks.

Rainer

[1] http://grml.org


More information about the macports-dev mailing list