Skip to content

QEMU version in the prerequisites page of Eden needs to be updated #1028

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

Open
roja-zededa opened this issue Sep 19, 2024 · 3 comments
Open

Comments

@roja-zededa
Copy link

Description

Running Eden with QEMU 9.0 and QEMU 4.2.1 failed due to deprecated parameters.

The prerequisites in the Eden says at least QEMU 4.x or higher version is required, but using QEMU 4.2.1 and 9.0.1 versions resulted in a failure during eden setup.

Here is the log:
ERRO[0001] log content: qemu-system-aarch64: -chardev socket,id=char0,port=17777,host=localhost,server,nodelay,nowait,telnet,logappend=on,logfile=/Users/rojaeswaran/github.com/zededa/pr-branches/eden/dist/default-eve.log: warning: short-form boolean option 'server' deprecated Please use server=on instead qemu-system-aarch64: -chardev socket,id=char0,port=17777,host=localhost,server,nodelay,nowait,telnet,logappend=on,logfile=/Users/rojaeswaran/github.com/zededa/pr-branches/eden/dist/default-eve.log: warning: short-form boolean option 'nodelay' deprecated Please use nodelay=on instead qemu-system-aarch64: -chardev socket,id=char0,port=17777,host=localhost,server,nodelay,nowait,telnet,logappend=on,logfile=/Users/rojaeswaran/github.com/zededa/pr-branches/eden/dist/default-eve.log: warning: short-form boolean option 'nowait' deprecated Please use wait=off instead qemu-system-aarch64: -chardev socket,id=char0,port=17777,host=localhost,server,nodelay,nowait,telnet,logappend=on,logfile=/Users/rojaeswaran/github.com/zededa/pr-branches/eden/dist/default-eve.log: warning: short-form boolean option 'telnet' deprecated Please use telnet=on instead qemu_madvise: Invalid argument madvise doesn't support MADV_DONTDUMP, but dump_guest_core=off specified qemu_madvise: Invalid argument madvise doesn't support MADV_DONTDUMP, but dump_guest_core=off specified qemu_madvise: Invalid argument madvise doesn't support MADV_DONTDUMP, but dump_guest_core=off specified qemu-system-aarch64: -device virtio-net-pci,netdev=eth0,mac=02:fe:24:97:b1:67: failed to find romfile "efi-virtio.rom" qemu-system-aarch64: -chardev socket,id=char0,port=17777,host=localhost,server,nodelay,nowait,telnet,logappend=on,logfile=/Users/rojaeswaran/github.com/zededa/pr-branches/eden/dist/default-eve.log: warning: short-form boolean option 'server' deprecated Please use server=on instead qemu-system-aarch64: -chardev socket,id=char0,port=17777,host=localhost,server,nodelay,nowait,telnet,logappend=on,logfile=/Users/rojaeswaran/github.com/zededa/pr-branches/eden/dist/default-eve.log: warning: short-form boolean option 'nodelay' deprecated Please use nodelay=on instead qemu-system-aarch64: -chardev socket,id=char0,port=17777,host=localhost,server,nodelay,nowait,telnet,logappend=on,logfile=/Users/rojaeswaran/github.com/zededa/pr-branches/eden/dist/default-eve.log: warning: short-form boolean option 'nowait' deprecated Please use wait=off instead qemu-system-aarch64: -chardev socket,id=char0,port=17777,host=localhost,server,nodelay,nowait,telnet,logappend=on,logfile=/Users/rojaeswaran/github.com/zededa/pr-branches/eden/dist/default-eve.log: warning: short-form boolean option 'telnet' deprecated Please use telnet=on instead qemu_madvise: Invalid argument madvise doesn't support MADV_DONTDUMP, but dump_guest_core=off specified qemu_madvise: Invalid argument madvise doesn't support MADV_DONTDUMP, but dump_guest_core=off specified qemu_madvise: Invalid argument madvise doesn't support MADV_DONTDUMP, but dump_guest_core=off specified

@roja-zededa
Copy link
Author

Created a JIRA issue for this: https://zededa.atlassian.net/browse/EV-1305

@AlissonMachadoEmbitel
Copy link

pkg/eden/qemu.go

210 +	 "host=localhost,server=on,nodelay=on,wait=off,telnet=on,logappend=on,logfile=%s "

pkg/edensdn/qemu.go

31 +		"host=localhost,server=on,nodelay=on,wait=off,telnet=on,logfile=%s ",

@AlissonMachadoEmbitel
Copy link

To make it works on macOS I also had to modify the following:

pkg/defaults/defaults.go

126 + 	DefaultQemuAccelDarwinArm64 = "-machine virt,accel=hvf,usb=off,dump-guest-core=on -cpu host "

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

2 participants