Giter Club home page Giter Club logo

scvmmlinuxguestagent's Introduction

Requires:
pam-devel or libpam-dev
openssl-devel or libssl-dev
rpm-devel or dkpkg-dev
Build instructions:
    > cd [path]/vmm/build
    > make

scvmmlinuxguestagent's People

Contributors

krisbash avatar microsoft-github-policy-service[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

scvmmlinuxguestagent's Issues

RHEL 8 and DHCP Run-Once is not being executed

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

uninstall fails with systemd

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

RHEL9 support

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

RHEL 8 not supported with 1.0.3-1022

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?

Add Support for Ubuntu 18.04 / 20.04

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

Project Status?

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!

RAM usage numbers are incorrect

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

Limited timezone selection / daylight savings time

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 SCVMMTemplate propertiesOS Configuration is (GMT) Greenwich Mean Time : Dublin, Edinburgh, Lisbon, London but it doesn't apply during summer as the timezone changes to UTC+1

https://github.com/Microsoft/SCVMMLinuxGuestAgent/blob/d95bd437be488fa7f7407acf6e9f653a523c6d97/vmm/dev/scripts/cfgtimezone#L69

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.