Gamtrulia Posted September 15, 2020 Share #1 Posted September 15, 2020 I am running 1.02b DS3617xs/6.1.7 and I created a virtual machine running FreeBSD 12.1 on the Virtual Machine Manager from Synology. When I want to power off the vm it said I dont have the guest agent installed. I tried looking for it in FreeBSD ports and packages but cannot get any meaningful progress. Can anyone point me to the right direction please? Quote Link to comment Share on other sites More sharing options...
flyride Posted September 15, 2020 Share #2 Posted September 15, 2020 (edited) https://www.synology.com/en-us/knowledgebase/DSM/tutorial/Virtualization/How_to_install_Synology_Guest_Agent_for_VMM_on_your_virtual_machine To find this, I put the following in this "Google" site: synology guest agent vmm Edited September 15, 2020 by flyride Quote Link to comment Share on other sites More sharing options...
Gamtrulia Posted September 15, 2020 Author Share #3 Posted September 15, 2020 I read that already. Not really helpful. There is no prebuild qemu-guest-agent for FreeBSD. Quote Link to comment Share on other sites More sharing options...
flyride Posted September 15, 2020 Share #4 Posted September 15, 2020 (edited) You could have mentioned that you found, and are not able to use the Syno builds. "qemu guest agent bsd" https://github.com/aborche/qemu-guest-agent Edited September 15, 2020 by flyride Quote Link to comment Share on other sites More sharing options...
Gamtrulia Posted September 16, 2020 Author Share #5 Posted September 16, 2020 6 hours ago, flyride said: You could have mentioned that you found, and are not able to use the Syno builds. "qemu guest agent bsd" https://github.com/aborche/qemu-guest-agent Yeah I read that also. Failed initially and found out the port tree was updated to a new version. After redirected to the correct version all is good. Just somehow the whole process installed over 1G of files and spent hours to compile so that I can shutdown from the VMM isn't quite justifying... XD Quote Link to comment Share on other sites More sharing options...
Gamtrulia Posted September 18, 2020 Author Share #6 Posted September 18, 2020 (edited) After several attempts I figured out how to install the qemu-guest-agent in FreeBSD 12.1 without wasting G of space and hours of compiling this and that. Here are the instructions, for those who might need it: # install all required binaries pkg install -y gettext-runtime git glib gmake pkgconf python37 # update the port tree portsnap auto # use qemu41 instead mv /usr/ports/emulators/qemu /usr/ports/emulators/qemu42 && ln -s /usr/ports/emulators/qemu41 /usr/ports/emulators/qemu # download the qemu-guest-agent source and compile/install it git clone https://github.com/aborche/qemu-guest-agent.git /usr/ports/emulators/qemu-guest-agent cd /usr/ports/emulators/qemu-guest-agent make install clean # restore the port tree rm /usr/ports/emulators/qemu && mv /usr/ports/emulators/qemu42 /usr/ports/emulators/qemu # enable the guest agent in rc.conf sysrc qemu_guest_agent_enable="YES" sysrc qemu_guest_agent_flags="-d -v -l /var/log/qemu-ga.log" # load the VirtIO console and make it permanent kldload virtio_console echo 'virtio_console_load="YES"' >> /boot/loader.conf # start the guest agent service qemu-guest-agent start It could still take around 30 mins tho. Reference: https://github.com/aborche/qemu-guest-agent Edited September 18, 2020 by Gamtrulia Quote Link to comment Share on other sites More sharing options...
flyride Posted September 18, 2020 Share #7 Posted September 18, 2020 Thanks for posting the solution. Quote Link to comment Share on other sites More sharing options...
strategischen Posted February 13, 2021 Share #8 Posted February 13, 2021 Hello I am lost from the first step. how do you do this? pkg install -y gettext-runtime git glib gmake pkgconf python37 Quote Link to comment Share on other sites More sharing options...
Gamtrulia Posted February 13, 2021 Author Share #9 Posted February 13, 2021 hm.... copy & paste? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.