Questions tagged [azure]
16 questions
6
votes
0 answers
How to guarantee temporary immutability of LVM2 LV at raw block level?
I inherited an Azure VM (Ubuntu 20.04) which has a 7 disk VG fully occupied by a RAID5 LV formatted as ext4.
I need to take backups and was hoping to use Azure Backup to snapshot the Azure Disks comprising the VG.
Azure Disk snapshots are not…
Tim Matthews
- 61
- 4
2
votes
1 answer
Can systemd-tmpfiles-setup be made to honor RequiresMountsFor?
I'm trying to use systemd-tmpfiles to manage files on the "temporary disk" of a Linux (CentOS Stream 8) VM on Azure. The systemd-tmpfiles configuration seems to be correct, as judged by running systemd-tmpfiles --create manually when the system is…
John Bollinger
- 502
- 3
- 10
2
votes
1 answer
How to Repair Grub in a Cloud VM (Azure)
I ran into some troubles doing do-release-upgrade and it killed my grub boot.
Because I couldn't find the steps on how to fix this online I'll answer with my own notes below.
laktak
- 5,616
- 20
- 38
1
vote
1 answer
Azure - attach a disk to multiple Linux VMs - data not updated in attached VMs
I am attaching ssdv2 disk to two linux VMs in VMSS using this guide
First VM is mounted as readwrite and second VM is mounted as readonly.
When I write something to the first VM, the second VM does not see the data in the mounted folder.
When I…
Libor Mézl
- 11
- 2
1
vote
2 answers
mount: wrong fs type, bad option, bad superblock on /dev/sda1, missing codepage or helper program, or other error
I try to mount a disk added to an Azure VM but it fails with the error message
mount: /mydirectory: wrong fs type, bad option, bad superblock on /dev/sda1, missing codepage or helper program, or other error.
Here are my steps I did: I created a…
MrPython
- 81
- 2
- 5
1
vote
0 answers
How to remove authentication with gpg-agent/git-credentialmanager to pus to a public repo?
I have a azure devops repository which I have made public recently. Before it was private and I used the git credential manager and gpg-agent.
If I want to push my changes I will get the error:
$ git push
To sign in, use a web browser to open the…
chko
- 11
- 1
1
vote
0 answers
In Ansible, using azure_rm, is there a way to assign a host to multiple groups using a single key value and a separator?
Using the following sample azure_rm inventory file, is it possible to use a single Azure VM tag to assign a host to multiple groups dynamically? For example, if the Azure tag is
type="vmtype1,vmtype2"
I would like the host in question to be listed…
Ansible
- 11
- 1
1
vote
1 answer
secrets unintentionally printed to cloud-init logs
The two lines of bash code below pull a secret into a cloud-init script for an Azure VM running RHEL8. But each of the two lines has an unintended side effect of printing the secret into the cloud-init logs for the entire world to see.
What…
CodeMed
- 5,079
- 45
- 100
- 147
1
vote
0 answers
x11 on ssh -X not showing anything
I am trying to get a browser running remotely
on an Ubuntu remote host:
I had to run
export DISPLAY=[remote-host-ip]:0.0
as it was not set automatically
my /etc/ssh/sshd_config has
X11Forwarding yes
X11UseLocalhost no
any idea?
thanks
ps: a…
jjrr
- 121
- 6
1
vote
2 answers
How to use output of multiple commands in last execution command while chaining commands?
I have two commands, as follows:
This one gives repo names:
az acr repository list -n registry -o tsv
output looks like:
name1
name2
...
This one gives digest codes for one repo:
az acr manifest list-metadata -r ${REGISTRY} --name ${REPO} --query…
Python coder
- 123
- 4
1
vote
0 answers
Azure app service environment inbound and outbound ip
I am very new to azure app service environment v3. I created the ASEV3 with internal load balancer and hosted my python function app. When i checked the configuration, i noticed that it has an inbound ip address from my Vnet/Subnet and outbound…
Rajnish Kumar Soni
- 1,009
- 2
- 13
- 20
1
vote
2 answers
Get the files of a deallocated VM
I have a VM from Azure (Ubuntu 20.04). I can't pay anymore and want to get the files, but I can't start the VM. I downloaded the disk (DOS/MBR boot sector, extended partition table (last)) and don't know what to do.
0
votes
0 answers
Incorrect MAC error while using ssh from windows to linux
I am trying to ssh from a windows system to an azure centos vm. But I am getting error incorrect MAC ... On further checking i identified it only happens when the mac algorithm used is [email protected] and there is no issue connecting if I…
0
votes
0 answers
mutt intermittently fails to send email
In my azure ci/cd pipeline, I created a task to send an email using mutt. I use Ubuntu 20.04
There are no error messages. But the emails are sent intermittently. I created a trigger in the pipeline such that the , pipeline is executed after every…
Jay
- 115
- 4
0
votes
1 answer
Rsyslog producing errors when trying to write to mounted drive
Could anyone take a look at this and see if I've done something obviously wrong?
I am running RockyLinux and attempting to setup a syslog server.
Its running with an Azure VM with an additional 2TB datadrive attached.
I have mounted the drive in…
Beckyboo
- 11
- 1