Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MacOS: Qemu: aio=native was specified, but is not supported in this build #166

Open
juanluispaz opened this issue Dec 9, 2016 · 1 comment

Comments

@juanluispaz
Copy link

Hello,

I'm trying to run capstan on MacOS, but I got an error

Instation process:

brew install qemu
brew install go
go get github.com/cloudius-systems/capstan

Command executed:

capstan build -v -p vbox

Output:

Building projects...
qemu-system-x86_64: -redir tcp:10000::10000: The -redir option is deprecated. Please use '-netdev user,hostfwd=...' instead.
qemu-system-x86_64: -drive file=/Users/juanluis.paz/.capstan/repository/projects/projects.vbox,if=none,id=hd0,aio=native,cache=unsafe: aio=native was specified, but is not supported in this build.
dial tcp [::1]:10000: getsockopt: connection refused

Thanks

@juanluispaz
Copy link
Author

If I drop aio=native in the file hypervisor/qemu/qemu.go it works, but when I try to import the virtual machine in VirtualBox 5.1.10 I got an error

git diff output:

diff --git a/hypervisor/qemu/qemu.go b/hypervisor/qemu/qemu.go
index b081b14..92dbebe 100644
--- a/hypervisor/qemu/qemu.go
+++ b/hypervisor/qemu/qemu.go
@@ -255,7 +255,7 @@ func (c *VMConfig) vmArguments(version *Version) ([]string, error) {
        args = append(args, "-m", strconv.FormatInt(c.Memory, 10))
        args = append(args, "-smp", strconv.Itoa(c.Cpus))
        args = append(args, "-device", "virtio-blk-pci,id=blk0,bootindex=0,drive=hd0")
-       args = append(args, "-drive", "file="+c.Image+",if=none,id=hd0,aio=native,cache="+c.vmDriveCache())
+       args = append(args, "-drive", "file="+c.Image+",if=none,id=hd0,cache="+c.vmDriveCache())
        if version.Major >= 1 && version.Minor >= 3 {
                args = append(args, "-device", "virtio-rng-pci")
        }

VirtualBox error message:

Failed to open virtual machine located in /Users/juanluis.paz/.capstan/repository/projects/projects.vbox.

Extra content at the end of the document.

Location: '/Users/juanluis.paz/.capstan/repository/projects/projects.vbox', line 1 (0), column 2.

/Users/vbox/tinderbox/5.1-mac-rel/src/VBox/Main/src-server/MachineImpl.cpp[485] (nsresult Machine::initFromSettings(VirtualBox *, const com::Utf8Str &, const com::Guid *)).

Result Code: NS_ERROR_FAILURE (0x80004005)
Component: MachineWrap
Interface: IMachine {b2547866-a0a1-4391-8b86-6952d82efaa0}
Callee: IVirtualBox {0169423f-46b4-cde9-91af-1e9d5b6cd945}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant