HPE Morpheus VM Essentials
1832978 Members
2764 Online
110048 Solutions
New Discussion

Re: when vm created, permission denied

 
ByungJoon
Advisor

when vm created, permission denied

i tried to create rocky linux vm using iso file.

and VME configured NFS storage.

and VM's disk storage configured NFS storage.

but when VM start, permission denied

following log

Failed to start server: error: Failed to start domain 'j-rocky03'
error: Cannot access storage file '/mnt/48f02379-f6c5-454d-863e-05f90a5e52f6/j-rocky03/hvm_12-disk-0' (as uid:64055, gid:994): Permission denied

NFS Storage is Synology and folder/file creation ok.

how do i fix this case?

6 REPLIES 6
KoreyG
HPE Pro

Re: when vm created, permission denied

Similar issue seen in a different thread and some helpful information was posted, although the original thread was not about NFS:
https://community.hpe.com/t5/hpe-morpheus-vm-essentials/configure-gfs-in-single-node-instead-of-3-minimum-hpe-vme/m-p/7243102/highlight/true#M266

===Below is a snippet from the post===

This is an example of my simple export (but settings may vary):

/nfsroot/lun01 192.168.0.0/16(rw,sync,no_subtree_check,all_squash,anonuid=0,anongid=0)

I'm using all_squash to allow the hosts to maintan the permissions as needed by the hosts, otherwise, you'd need respective user/group on the NFS server and assign the permissions to the exports.

If you are setting the permisions on the NFS exports, in the newer Ubuntu 24.04 HVM host (1.2 layout), an example of the permissions assigned to a disk created would be:

-rw-r--r-- 1 libvirt-qemu kvm   13G May 15 14:00 ubuntu_69045-disk-0

 libvirt-qemu has uid 64055 and the kvm gid is 994 but the kvm gid may vary, I'd verify with your host(s).

Ranveer
HPE Pro

Re: when vm created, permission denied

Hello ByungJoon,


Could you please try Ubuntu 22.04 for testing please,

HPE Morpheus VM Essentials Software Compatibility Matrix
Supported guest os list mentioned in below doc.
https://hpevm-docs.morpheusdata.com/en/latest/vme_getting_started/vme_getting_started.html

Partner

Product Name

Product Version

Guest OS

Validation Type

Resources

RHEL

RHEL

8.2, 9.0, 9.3

RHEL 9.3

HPE

 

CentOS

CentOS

8

CentOS 8

HPE

 

SUSE

SUSE Linux Enterprise Server

15-SP4, 15-SP6

SUSE 15-SP6

HPE

 

Microsoft

Windows Server

2019, 2022, 2025

Windows Server 2025

HPE

 

Canonical

Ubuntu Server

2022.04, 2024.04

Ubuntu Server 24.04

HPE

 


Best Regards

Ranveer



I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
ByungJoon
Advisor

Re: when vm created, permission denied

I installed Ubuntu 24.04 on Intel server.
And 3 node installed.
ByungJoon
Advisor

Re: when vm created, permission denied

my test lab installed ubuntu 24.04.

and 3 node installed.

ByungJoon
Advisor

Re: when vm created, permission denied

@Ranveer,

vm file was setting root permission.

root@vme02:/mnt/48f02379-f6c5-454d-863e-05f90a5e52f6/j-rocky03# ll
total 1786964
drwxrwxrwx 2 root root 4096 Jun 17 12:10 ./
drwxrwxrwx 7 root root 4096 Jun 17 15:12 ../
-rwxrwxrwx 1 root root 196768 Jun 17 12:10 hvm_12-disk-0*
-rw-r--r-- 1 root root 1829634048 Jun 17 12:14 hvm_12-disk-1

Ranveer
HPE Pro

Re: when vm created, permission denied

Same ownership is there for lab VMs so it should eb correct.
Will request to use ubuntu os on VM as ubunu is listed.
https://hpevm-docs.morpheusdata.com/en/latest/vme_getting_started/qual_list.html?highlight=guest

Best Regards

Ranveer



I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo