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

Possible alternative #3

Open
AverTry opened this issue May 6, 2024 · 2 comments
Open

Possible alternative #3

AverTry opened this issue May 6, 2024 · 2 comments

Comments

@AverTry
Copy link

AverTry commented May 6, 2024

I use your script to get the guest agent on reboot, but thought you may be interested in my fluke start.

After installing pkg install qemu-guest-agent
I did service qemu-guest-agent start and was told it's not enabled.
So I did service qemu-guest-agent enable then service qemu-guest-agent start

And it was up and running.
But did not survive a reboot. That's how I came across your solution.

Is there a way to just run the start command or enable, start on bootup, as this may be a future proof solution, than editing files?
Thanks for your script, btw.

@boretom
Copy link

boretom commented Feb 19, 2025

Is there a way to just run the start command or enable, start on bootup

I do use the 'Shellcmd' package, which is for executing commands at boot, to start the QEMU guest agent. To add the command go to Services / Shellcmds and add the commands as you type it in the shell.

@xpufx
Copy link

xpufx commented Feb 27, 2025

New packages to be INSTALLED:
        qemu-guest-agent: 8.1.1 [pfSense]

Number of packages to be installed: 1

The process will require 2 MiB more space.
247 KiB to be downloaded.

Proceed with this action? [y/N]: y
[1/1] Fetching qemu-guest-agent-8.1.1.pkg: 100%  247 KiB 253.2kB/s    00:01
Checking integrity... done (0 conflicting)
[1/1] Installing qemu-guest-agent-8.1.1...
[1/1] Extracting qemu-guest-agent-8.1.1: 100%
=====
Message from qemu-guest-agent-8.1.1:

--
To run the guest agent on startup:

sysrc qemu_guest_agent_enable="YES"

Start the service with:
service qemu-guest-agent start

Is this information inaccurate or was the package updated with a good startup script? I only did what the package told me to do and I can see the IP address of this vm on the proxmox gui now.

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

3 participants