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

Linux VM not mounting shared storage #4328

Open
thulasirmn opened this issue Feb 6, 2025 · 5 comments
Open

Linux VM not mounting shared storage #4328

thulasirmn opened this issue Feb 6, 2025 · 5 comments

Comments

@thulasirmn
Copy link

thulasirmn commented Feb 6, 2025

I configured the Linux VM with the TRE and I can launch the VM as well but it's not mounting the vm-shared storage file share

But with the same working with the Windows VM we can see the file share has been mounted while connecting the VM

I can see the related code in the vm_config.sh for Linux but its seems not working

Image

once I created the linux VM from the TRE after that im executing this manual scripts for mounting the fileshare it's working i can see the mounted file share files

Manual script for mounting the fileshare :

sudo apt-get update
sudo apt-get install cifs-utils
sudo mkdir /mnt/fileshare
sudo mount -t cifs // <storage_account_name>.file.core.windows.net/<file_share_name> /mnt/myfileshare -o vers=3.0,username=<storage_account_name>,password=<storage_account_key>,dir_mode=0777,file_mode=0777

I need a solution for mounting the file share automatically without executing this scripts like Windows VM doing

@marrobi
Copy link
Member

marrobi commented Feb 6, 2025

It should be mounted to /fileshares, what can you see in there?

If not can you check the cloudinit logs - https://microsoft.github.io/AzureTRE/latest/troubleshooting-faq/cloud-init/ .

@thulasirmn
Copy link
Author

thulasirmn commented Feb 12, 2025

@marrobi

It should be mounted to /fileshares, what can you see in there?

If not can you check the cloudinit logs - https://microsoft.github.io/AzureTRE/latest/troubleshooting-faq/cloud-init/ .

im getting this logs its seems like there is an error with Nexus ?

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Ign:1 https://nexus-gvtredev.westus2.cloudapp.azure.com/repository/ubuntu jammy InRelease
Ign:2 https://nexus-gvtredev.westus2.cloudapp.azure.com/repository/ubuntu jammy-updates InRelease
Ign:3 https://nexus-gvtredev.westus2.cloudapp.azure.com/repository/ubuntu-security jammy InRelease
Ign:4 https://nexus-gvtredev.westus2.cloudapp.azure.com/repository/microsoft-apt/ubuntu/22.04/prod jammy InRelease
Ign:5 https://nexus-gvtredev.westus2.cloudapp.azure.com/repository/microsoft-apt/repos/edge stable InRelease
Ign:6 https://nexus-gvtredev.westus2.cloudapp.azure.com/repository/microsoft-apt/repos/vscode stable InRelease
Ign:7 https://nexus-gvtredev.westus2.cloudapp.azure.com/repository/microsoft-apt/repos/azure-cli jammy InRelease
Ign:8 https://nexus-gvtredev.westus2.cloudapp.azure.com/repository/docker jammy InRelease
Ign:1 https://nexus-gvtredev.westus2.cloudapp.azure.com/repository/ubuntu jammy InRelease
Ign:2 https://nexus-gvtredev.westus2.cloudapp.azure.com/repository/ubuntu jammy-updates InRelease
Ign:3 https://nexus-gvtredev.westus2.cloudapp.azure.com/repository/ubuntu-security jammy InRelease
Ign:4 https://nexus-gvtredev.westus2.cloudapp.azure.com/repository/microsoft-apt/ubuntu/22.04/prod jammy InRelease
Ign:5 https://nexus-gvtredev.westus2.cloudapp.azure.com/repository/microsoft-apt/repos/edge stable InRelease
Ign:6 https://nexus-gvtredev.westus2.cloudapp.azure.com/repository/microsoft-apt/repos/vscode stable InRelease
Ign:7 https://nexus-gvtredev.westus2.cloudapp.azure.com/repository/microsoft-apt/repos/azure-cli jammy InRelease
Ign:8 https://nexus-gvtredev.westus2.cloudapp.azure.com/repository/docker jammy InRelease
Ign:1 https://nexus-gvtredev.westus2.cloudapp.azure.com/repository/ubuntu jammy InRelease
Ign:2 https://nexus-gvtredev.westus2.cloudapp.azure.com/repository/ubuntu jammy-updates InRelease
Ign:3 https://nexus-gvtredev.westus2.cloudapp.azure.com/repository/ubuntu-security jammy InRelease
Ign:4 https://nexus-gvtredev.westus2.cloudapp.azure.com/repository/microsoft-apt/ubuntu/22.04/prod jammy InRelease
Ign:5 https://nexus-gvtredev.westus2.cloudapp.azure.com/repository/microsoft-apt/repos/edge stable InRelease
Ign:6 https://nexus-gvtredev.westus2.cloudapp.azure.com/repository/microsoft-apt/repos/vscode stable InRelease
Ign:7 https://nexus-gvtredev.westus2.cloudapp.azure.com/repository/microsoft-apt/repos/azure-cli jammy InRelease
Ign:8 https://nexus-gvtredev.westus2.cloudapp.azure.com/repository/docker jammy InRelease
Err:1 https://nexus-gvtredev.westus2.cloudapp.azure.com/repository/ubuntu jammy InRelease
Could not connect to nexus-gvtredev.westus2.cloudapp.azure.com:443 (10.1.1.24). - connect (111: Connection refused)
Err:2 https://nexus-gvtredev.westus2.cloudapp.azure.com/repository/ubuntu jammy-updates InRelease
Unable to connect to nexus-gvtredev.westus2.cloudapp.azure.com:https:
Err:3 https://nexus-gvtredev.westus2.cloudapp.azure.com/repository/ubuntu-security jammy InRelease
Unable to connect to nexus-gvtredev.westus2.cloudapp.azure.com:https:
Err:4 https://nexus-gvtredev.westus2.cloudapp.azure.com/repository/microsoft-apt/ubuntu/22.04/prod jammy InRelease
Unable to connect to nexus-gvtredev.westus2.cloudapp.azure.com:https:
Err:5 https://nexus-gvtredev.westus2.cloudapp.azure.com/repository/microsoft-apt/repos/edge stable InRelease
Unable to connect to nexus-gvtredev.westus2.cloudapp.azure.com:https:
Err:6 https://nexus-gvtredev.westus2.cloudapp.azure.com/repository/microsoft-apt/repos/vscode stable InRelease
Unable to connect to nexus-gvtredev.westus2.cloudapp.azure.com:https:
Err:7 https://nexus-gvtredev.westus2.cloudapp.azure.com/repository/microsoft-apt/repos/azure-cli jammy InRelease
Unable to connect to nexus-gvtredev.westus2.cloudapp.azure.com:https:
Err:8 https://nexus-gvtredev.westus2.cloudapp.azure.com/repository/docker jammy InRelease
Unable to connect to nexus-gvtredev.westus2.cloudapp.azure.com:https:
Reading package lists...
Building dependency tree...
Reading state information...
All packages are up to date.
W: Failed to fetch https://nexus-gvtredev.westus2.cloudapp.azure.com/repository/ubuntu/dists/jammy/InRelease Could not connect to nexus-gvtredev.westus2.cloudapp.azure.com:443 (10.1.1.24).

  • sudo apt upgrade -y

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Reading package lists...
Building dependency tree...
Reading state information...
Calculating upgrade...

Patches available for rsync vulnerabilities, including a potential RCE,

tracked by CVE-2024-12084 through CVE-2024-12088 and CVE-2024-12747.

For more see: https://ubuntu.com/blog/rsync-remote-code-execution

0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

  • sudo apt install -y gnupg2 software-properties-common apt-transport-https wget dirmngr gdebi-core

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Reading package lists...
Building dependency tree...
Reading state information...
Package gnupg2 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
gpgv gpgsm gnupg-l10n gnupg dirmngr

E: Package 'gnupg2' has no installation candidate
E: Unable to locate package gdebi-core
2025-02-12 06:38:59,188 - cc_scripts_user.py[WARNING]: Failed to run module scripts_user (scripts in /var/lib/cloud/instance/scripts)
2025-02-12 06:38:59,189 - log_util.py[WARNING]: Running module scripts_user (<module 'cloudinit.config.cc_scripts_user' from '/usr/lib/python3/dist-packages/cloudinit/config/cc_scripts_user.
py'>) failed
Cloud-init v. 24.4-0ubuntu1~22.04.1 finished at Wed, 12 Feb 2025 06:38:59 +0000. Datasource DataSourceAzure [seed=/var/lib/waagent]. Up 327698.14 seconds

@marrobi
Copy link
Member

marrobi commented Feb 12, 2025

Ok:

  1. Have you deployed the Nexus shared service? https://microsoft.github.io/AzureTRE/latest/tre-admins/setup-instructions/configuring-shared-services/ ?
  2. If you deploy a Windows VM can you open Nexus URL in the browser?

@thulasirmn
Copy link
Author

@marrobi Nexus shared service is there but i can't able to access the Nexus URL inside the Windows VM

Image

Image

@marrobi
Copy link
Member

marrobi commented Feb 14, 2025

OK, suggest you look at the cloud init logs for Nexus, expect something has failed.

https://microsoft.github.io/AzureTRE/v0.20.0/troubleshooting-faq/cloud-init/

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

2 participants