SSH access (thereafter)
Backup /home
Update home
Enable Dynamic Memory In-Guest
@ /etc/udev/rules.d/100-balloon.rules
(create)
SUBSYSTEM=="memory", ACTION=="add", ATTR{state}="online"
No; removed it; perhaps unnecessary @ Gen 2 Hyper-V
Install Extra Hyper-V Tools
yum install -y hyperv-daemons
Disable CentOS Disk I/O Scheduler (Hyper-V handles optimization)
su root
cat /sys/block/sda/queue/scheduler
noop [deadline] cfq
echo noop > /sys/block/sda/queue/scheduler
cat /sys/block/sda/queue/scheduler
[noop] deadline cfq
exit
Other install/search
su
yum check-update
yum update
# EPEL [Extra Packages for Enterprise Linux] https://fedoraproject.org/wiki/EPEL
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
# And to better handle dependencies (though does not work @ Hyper-V, nor containers):
#subscription-manager repos --enable "rhel-*-optional-rpms" --enable "rhel-*-extras-rpms"
yum list installed | grep hyperv
yum list install httpd
shutdown now # poweroff
shutdown -r now # reboot
reboot # works too
# Install VS Code
rpm --import https://packages.microsoft.com/keys/microsoft.asc
sh -c 'echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/vscode.repo'
yum check-update
sudo yum install code