microsoft / scvmmlinuxguestagent Goto Github PK
View Code? Open in Web Editor NEWLinux Agent for System Center Virtual Machine Manager
License: Apache License 2.0
Linux Agent for System Center Virtual Machine Manager
License: Apache License 2.0
Requires: pam-devel or libpam-dev openssl-devel or libssl-dev rpm-devel or dkpkg-dev Build instructions: > cd [path]/vmm/build > make
Hi, seems like there is no option to configure VMs with the correct timezone where daylight savings time is used.
I want to configure my VMs to have the correct London time. The only suitable option in SCVMM → Template properties → OS Configuration is (GMT) Greenwich Mean Time : Dublin, Edinburgh, Lisbon, London
but it doesn't apply during summer as the timezone changes to UTC+1
This command relies on a limited lookup list of timezones in https://github.com/Microsoft/SCVMMLinuxGuestAgent/blob/master/vmm/dev/scripts/tztable
For the time to be correct in London it should use /usr/share/zoneinfo/Europe/London
but there doesn't seem to be a way to configure that
On systems with systemd like Ubuntu 16.04 the scvmmagent is not restarting properly and does not conclude the provisioning.
More details are described in this discussion:
hglkrijger/WALinuxAgent@ab2e3c3#commitcomment-17765861
The SCVMMLinuxGuestAgent 1.0.2-1075 and 1.0.3-1022 doesn't work with Ubuntu 18.04 and 20.04 due to changes in the network config (netplan) and how the hostname is configured. This makes Ubuntu 18.04 / 20.04 templates impossible to do.
It works only with Ubuntu 16.04 because of the traditional network config
Currently RHEL 8 is not supported with the newest version, i manually had to edit the following:
/opt/microsoft/scvmmguestagent/bin/cfgnetadapter
Replace:
cfgExec "service network restart" anpassen → cfgExec "service NetworkManager restart"
When is a newer version available?
The master branch has not been updated since Apr 9, 2015, and being that System Center VMM 2019 still offers Linux support (AFIK?), whats the status of the project?
If the agent project has been relocated could you please update this issue with a link to the new project?
Please also update the project through the project settings to help others who, in the future, might have the same issue as me. (don't commit a new change to the readme in order to avoid potential confusion as it would update the last commit date)
As always, keep up the good work Microsoft, and thank you in advance!
Whenever there is more than one adapter with the same MAC address this script goes directly to the error block.
I managed to fix it with an additional "head -1" after the grep command in the pipeline.
Hello,
RHEL9 is supported according to your documentation:
https://learn.microsoft.com/en-us/system-center/vmm/vm-linux?view=sc-vmm-2022#install-the-vmm-guest-agent
https://learn.microsoft.com/en-us/system-center/vmm/system-requirements?view=sc-vmm-2022#vms-in-the-vmm-fabric
But, running the ./install scvmmguestagent.1.0.4.1029.x64.tar does not work, and will always fail to install because the install script tries to copy to init.d folder which has not been on rhel for few years now.
Also, the code here is very much obsolete, when are you going to update the repo to reflect changes made in SCVMM 2022 RC2?
Also, RC2 doesnt include RHEL9 in list of OS:s while installing the VM. It only goes up to RHEL8
If the hostname is set to "localhost", sysctl kernel.hostname returns localhost. The subsequent sed/echo operation proceeds to destroy the /etc/hosts file when it tries to write the hostname and address to it.
It would probably be better to not specify algorithms at all but to just use /usr/bin/ssh-keygen -A
which generates all missing keys.
would it be possible to sync this repo with the latest changes from version 1.0.3.1022?
This issue affects agent version 10.0.3.1028, which is not published on this repository yet. On systems using systemd the ./install -r
command fails. Looks like it is trying to stop and disable waagent via systemctl if it detects the systemctl binary. The issue is that afterwards it is also trying to stop and disable it via chkconfig. There are a couple of if
statements to determine which method to use to stop and disable waagent, though the first if
, which detects systemctl, is not elif
'ed to the other conditions, as is the case with all the other methods. Hope this makes any sense. Would be clearer if I could link to the source code.
From d8ec11585fc1922d97176e83fdd88495c8508859 Mon Sep 17 00:00:00 2001
From: Ferdinand Holzer <[email protected]>
Date: Tue, 4 Oct 2022 13:52:53 +0200
Subject: [PATCH] fix: installer fails to remove agent
Installer tries to cleanup walinuxagent and fails due to
erroneous logic when dealing with systems using systemd.
---
vmm/dev/scripts/install | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
diff --git a/vmm/dev/scripts/install b/vmm/dev/scripts/install
index bba7ed9..6f3da9f 100644
--- a/vmm/dev/scripts/install
+++ b/vmm/dev/scripts/install
@@ -164,15 +164,13 @@ function removeAgent {
#SystemD
if [ -x /bin/systemctl -o -x /usr/bin/systemctl ]
- then
- if [ `systemctl is-enabled walinuxagent 2>/dev/null|grep enabled|wc -l` -eq 1 ]
then
- systemctl disable walinuxagent
- systemctl stop walinuxagent
- fi
- fi
-
- if [ -x /sbin/insserv ]
+ if [ `systemctl is-enabled walinuxagent 2>/dev/null|grep enabled|wc -l` -eq 1 ]
+ then
+ systemctl disable walinuxagent
+ systemctl stop walinuxagent
+ fi
+ elif [ -x /sbin/insserv ]
then
/sbin/insserv -r waagent
elif [ -x /sbin/chkconfig ]
--
GitLab
I ended up here after tracing library calls from the Azure OMS Agent
The memory usage calculation appears to miss a bunch of numbers out, and thus massively under-report how much free memory is available.
The /proc/meminfo
parser here:
https://github.com/Microsoft/SCVMMLinuxGuestAgent/blob/master/pal/source/code/scxsystemlib/memory/memoryinstance.cpp#L760
Attempts to calculate available memory, but doesn't use the approach documented in https://unix.stackexchange.com/questions/261247/how-can-i-get-the-amount-of-available-memory-portably-across-distributions and https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=34e431b0a
In a RHEL 8 environment with DHCP, the run-once command is not being executed. It results in a error like this:
18:20,225Z Error [scx.vmmguestagent.osconfigurator.commandexecutor:159:1005:139664550791040] 127
2019-10-15T14:18:20,225Z Info [scx.vmmguestagent.osconfigurator.commandexecutor:163:1005:139664550791040] stdout as a result of running command:
2019-10-15T14:18:20,225Z Error
[scx.vmmguestagent.osconfigurator.runoncecommandconfigurator:61:1005:139664550791040] Failed Run once command: ...
2019-10-15T14:18:20,225Z Warning [scx.vmmguestagent.osconfigurator.runoncecommandconfigurator:68:1005:139664550791040] At least one run-once command failed.
2019-10-15T14:18:20,225Z Info [scx.vmmguestagent.osconfigurator.postconfigurator:101
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.