aborche / qemu-guest-agent Goto Github PK
View Code? Open in Web Editor NEWQEMU Guest Agent patched for FreeBSD
QEMU Guest Agent patched for FreeBSD
I've have a fresh install of TrueNAS Core running on Proxmox and just cloned your repo to get the agent working and the build fails on the make command.
qemu-guest-agent/Makefile" line 152: Malformed conditional (${ARCH} == "amd64")
qemu-guest-agent/Makefile" line 156: Malformed conditional (${ARCH} == "powerpc")
qemu-guest-agent/Makefile" line 160: Malformed conditional (${ARCH} == "powerpc64")
qemu-guest-agent/Makefile" line 164: Malformed conditional (${ARCH} == "sparc64")
qemu-guest-agent/Makefile" line 168: Malformed conditional (${OSVERSION} < 1200000)
make: "/usr/share/mk/bsd.port.mk" line 32: Cannot open /usr/ports/Mk/bsd.port.mk
make: Fatal errors encountered -- cannot continue
make: stopped in qemu-guest-agent
tank01[~/qemu-guest-agent]# uname -a
FreeBSD tank01.lab.redkode.com 13.1-RC6 FreeBSD 13.1-RC6 n245364-74831eea544 TRUENAS amd64
I'll have a dig see if can work it out but thought I'd let you know too.
Martin
For some reason Proxmox VE shows ram usage at least 2x (even more) what the actual usage is on FreeBSD 12.2 / 13.0.
Guest agent is configured as "VirtIO" (possible option is also "ISA") in PVE.
I git clone the repo , modified /usr/ports/emulators/qemu/Makefile, and then I typed "make " in the folder QEMU-guest-agent , but I got error like below:
root@freebsd:~/qemu-guest-agent # make
===> License GPLv2 accepted by the user
===> qemu-guest-agent-2.12.1_1 depends on file: /usr/local/sbin/pkg - found
=> `qemu/2.12.1/qemu-2.12.1.tar.bz2` is not in /usr/ports/emulators/qemu/distinfo.
=> Either /usr/ports/emulators/qemu/distinfo is out of date, or
=> qemu/2.12.1/qemu-2.12.1.tar.bz2 is spelled incorrectly.
*** Error code 1
Stop.
make[1]: stopped in /root/qemu-guest-agent
*** Error code 1
Stop.
make: stopped in /root/qemu-guest-agent
Then I checked my /usr/ports/emulators/qemu/distinfo
TIMESTAMP = 1535379498
SHA256 (qemu/2.12.1/qemu-2.12.1.tar.xz) = 33583800e0006cd00b78226b85be5a27c8e3b156bed2e60e83ecbeb7b9b8364f
SIZE (qemu/2.12.1/qemu-2.12.1.tar.xz) = 35416404
Yes , distinct show qemu/2.12.1/qemu-2.12.1.tar.xz
but your repo required qemu/2.12.1/qemu-2.12.1.tar.bz2
. How could I do ?
Look like there is a issue with patch-commands-posix
`
===> License GPLv2 accepted by the user
===> qemu-guest-agent-3.1.1.1 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by qemu-guest-agent-3.1.1.1 for building
===> Extracting for qemu-guest-agent-3.1.1.1
=> SHA256 Checksum OK for qemu/3.1.1.1/qemu-3.1.1.1.tar.xz.
===> Patching for qemu-guest-agent-3.1.1.1
===> Applying extra patch /usr/local/git/github/qemu-guest-agent/files/patch-configure
===> Applying extra patch /usr/local/git/github/qemu-guest-agent/files/patch-channel-posix
===> Applying extra patch /usr/local/git/github/qemu-guest-agent/files/patch-commands-posix
2 out of 8 hunks failed--saving rejects to qga/commands-posix.c.rej
*** Error code 1
Stop.
make[1]: stopped in /usr/local/git/github/qemu-guest-agent
*** Error code 1
Stop.
make: stopped in /usr/local/git/github/qemu-guest-agent
`
Any ideas ?
12.0-RELEASE-p11 - fresh install
Наличие подробной документации это очень хорошо.
Но смысл портов в том, чтобы можно было полностью автоматизировано
установить софт, в том числе затем из пакета одной командой pkg install,
а не следуя разветвленной инструкции.
Желательно в FreeBSD Bugzilla сделать PR и прикрепить туда порт,
оформленный в соответствии с Porters Handbook. Если порт протестирован/поддерживает
только FreeBSD 12+, в Handbook указано, как это оформить в Makefile порта.
configure patch was failing (1 out of 2), corrected version @ pull request
I'm using KVM on oVirt 4.4.5. If we install the agent, it will work correctly, but it always create a lot of /bin/df -Ht zombie process which actually make our VM hang (because a lot of process spawned). Using FreeBSD 12.2 and 13 with i440fx.
Hi! Thank you for your effort on the port.
I'm working on getting FreeBSD running on (read managed by) Kubernetes using KubeVirt. The guest-ssh-{get,add,remove}-authorized-keys
commands allow for dynamic injection (at scale) of SSH keys. This feature was added in 5.2
according to the qapi-schema. Current upstream version is 6.1.93
which based on a comment in a previous thread, is probably too large of a task to tackle at the moment.
Make errors with:
@bsdbuild:~/qemu-guest-agent # make
===> qemu-guest-agent-2.9.0_1 Invalid perl5 version 5.28.
*** Error code 1
Stop.
make: stopped in /root/qemu-guest-agent
Should this support memory usage?
I have been through the build process and I have successfully got the agent up and running on a TrueNAS system that is running inside Proxmox.
For the most part, it is working which is great. I can now shutdown or reboot TrueNAS from the Proxmox UI and I also get network information relayed into the Proxmox UI.
The one thing I noticed straight away was that the amount of memory Proxmox was showing the TrueNAS VM as using was still pretty much 100% which isn't correct. Should it correctly report the memory usage through the agent? Is there any further config I need to do to make this work?
Thanks,
Damien
Please delete
root@truecommand:/usr/ports/emulators/qemu-guest-agent # make
make: "/usr/share/mk/bsd.port.mk" line 32: Cannot open /usr/ports/Mk/bsd.port.mk
make: "/usr/ports/emulators/qemu-guest-agent/Makefile" line 150: Malformed conditional (${ARCH} == "amd64")
make: "/usr/ports/emulators/qemu-guest-agent/Makefile" line 154: Malformed conditional (${ARCH} == "powerpc")
make: "/usr/ports/emulators/qemu-guest-agent/Makefile" line 158: Malformed conditional (${ARCH} == "powerpc64")
make: "/usr/ports/emulators/qemu-guest-agent/Makefile" line 162: Malformed conditional (${ARCH} == "sparc64")
make: "/usr/share/mk/bsd.port.mk" line 32: Cannot open /usr/ports/Mk/bsd.port.mk
make: Fatal errors encountered -- cannot continue
make: stopped in /usr/ports/emulators/qemu-guest-agent
I don't think this line is correct:
This approach prevents users from starting the service without enabling it in /etc/rc.conf with service servicename onestart
.
Any progress on getting the project listed as a FreeBSD port??
If not, has any effort been made to produce an installable binary package (or how would I install this package)?
For what it's worth: I see this note in the Google search I did for qemu-guest-agent:
Site: pfsense Forums - Feature #9877: QEMU Guest Agent
It looks like that port has not been added to FreeBSD yet. The linked PR shows they added some code to the main qemu port to not break that port when building qemu-guest-agent, but there is no emulators/qemu-guest-agent in the FreeBSD ports tree.
I am pretty new to system administration, so my apologies if this message has no bearing.
Edit: clarity
are you planning to someday/somehow upstream your patches ? according to https://wiki.qemu.org/Contribute/SubmitAPatch it doesnt look impossible, and would be nice. I dont see any previous attempt in the qemu-devel mailing list archive.
just asking, as an OpenBSD contributor backported/reused your patchset to make guest-get-vcpu
, guest-network-get-interfaces
and guest-get-fsinfo
to work on OpenBSD, cf https://marc.info/?l=openbsd-ports&m=161788326331605&w=2 (full thread: https://marc.info/?t=158936393000001&r=1&w=2) - i've tested those and it works fine on top of qemu-6.0rc2. as its a rather large patch, on the longterm simpler to try to upstream it ? i can work on that part, unless you're planning to.
I found there are some patches in the upstream for FreeBSD
https://patchew.org/QEMU/[email protected]/
qga: Add initial FreeBSD support
qga: Move Linux-specific FS freeze/thaw code to a separate file
qga: Add UFS freeze/thaw support for FreeBSD
qga: Add shutdown/halt/reboot support for FreeBSD
qga: Add support for user password setting in FreeBSD
qga: Move HW address getting to a separate function
qga: Add HW address getting for FreeBSD
Maybe it can help you with porting newer versions of QEMU Guest Agent.
Hello,
what reason port not commit in FreeBSD?
Just installed this on FreeBSD 11 and it works fine (I need it to retrieve the network info from the VM).
Thanks
PS: Tried to also install it on pfSense, but their kernel is missing a lot of the virtio stuff needed to make this work, alas.
Hi,
I tried to install, but I can't.
From what I notice it is for version QEMU 4.1.1.
But this version is older.
In the port system, I now find QEMU 5.0.1.
Could you help me with this issue?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.