Re: Can I use KVM local storage for user vm

2023-09-08 Thread Rohit Yadav
Hi,

It appears you've selected the host ID c26965e6-bf5f-482e-9cff-849174f6f476 
when deploying the VM. Later in the logs it mentions:

2023-09-07 04:43:07,996 DEBUG [o.a.c.s.a.LocalStoragePoolAllocator] 
(API-Job-Executor-8:ctx-45334d86 job-14 ctx-c4c19ea4) (logid:28386839) 
LocalStoragePoolAllocator is returning null since the disk profile does not use 
local storage and bypassStorageTypeCheck is false.

And then:

No suitable pools found for volume: Vol[3|name=ROOT-3|vm=3|ROOT] under cluster: 
1

...snipped...

 Cannot deploy to specified host, returning.


Can you check if (a) you've local storage enabled for the zone and (b) there is 
local storage available from the selected host (you should see a local storage 
pool in CloudStack and it should mention a local storage uuid in the KVM host's 
/etc/cloudstack/agent/agent.properties).

If this is a test environment, you can attempt to setup again fresh.


Regards.


From: Technology Mail 
Sent: Thursday, September 7, 2023 14:17
To: Wei ZHOU ; users@cloudstack.apache.org 

Subject: Re: Can I use KVM local storage for user vm


I try to create vm using local storage zone, but not success,

See UI error > https://prnt.sc/tKSG6DR7wgw6

also see log file from attachment.

Please give me idea 

Thank you.

On 9/6/2023 2:22 PM, Wei ZHOU wrote:

Hi,

You can add kvm hosts with multiple local storages.
https://github.com/apache/cloudstack-documentation/pull/333/files

Each storage will be added as a storage pool.
You can deploy vms, migrate vms/volumes between pools.

-Wei

On Wed, 6 Sept 2023 at 09:52, Technology Mail 
<mailto:technologyrss.m...@gmail.com>
wrote:



*Hi,*

My setup is AlmaLinux8, all are working fine using mgmt+nfs, but I have
8 NVME disk (every disk size 1.8TB) mount on kvm server, so I want to
use all disk as user vm storage disk separately.

*My idea is :* When setup zone then using enable local storage. But this
settings is only for one disk or all kvm server disk.

But I have 8 disk, so how to trace mgmt server my all 8 disk separately.
For example, I want 5 user vm for disk 1, another 5 user vm use disk 2,
as like another user vm disk 3...etc.

which process can I use this disk? give me some idea please ...

--

*Thanks & Regards.*

*Support Admin*



*Facebook 
<https://www.facebook.com/TechnologyRSS><https://www.facebook.com/TechnologyRSS>
 | Twitter
<https://twitter.com/technologyrss1><https://twitter.com/technologyrss1> | 
YouTube
<https://www.youtube.com/channel/UCBq7qGqFEUe6ObVHMuxudTw><https://www.youtube.com/channel/UCBq7qGqFEUe6ObVHMuxudTw>
 | LinkedIn
<https://www.linkedin.com/company/technologyrss/><https://www.linkedin.com/company/technologyrss/>*

*Address : *116/1 West Malibagh, D. I. T Road

Dhaka-1217, Bangladesh

*Mob :* +88 01716915504

*Email :* 
support.ad...@technologyrss.com<mailto:support.ad...@technologyrss.com>

*Web :* www.technologyrss.com<http://www.technologyrss.com>






--

Thanks & Regards.

Support Admin



Facebook<https://www.facebook.com/TechnologyRSS> | 
Twitter<https://twitter.com/technologyrss1> | 
YouTube<https://www.youtube.com/channel/UCBq7qGqFEUe6ObVHMuxudTw> | 
LinkedIn<https://www.linkedin.com/company/technologyrss/>

Address : 116/1 West Malibagh, D. I. T Road

Dhaka-1217, Bangladesh

Mob : +88 01716915504

Email : support.ad...@technologyrss.com<mailto:support.ad...@technologyrss.com>

Web : www.technologyrss.com<http://www.technologyrss.com>

 



Re: Can I use KVM local storage for user vm

2023-09-06 Thread Ruben Bosch
I don't exactly understand your question, but from the output you've given, the 
nvme disks have not been formatted and mounted on the paths you've supplied as 
/var/lib/libvirt/images*. Is the host you've shared this output of the same as 
your hypervisor, as in: your management-server and cloudstack-agent run on the 
same system? What version of ACS are you running? 

Met vriendelijke groet / Kind regards,

Ruben Bosch
CLDIN

> On 6 Sep 2023, at 21:50, Technology rss  wrote:
> 
> I see something is wrong fetch my local storage from kvm server, Please see
> my kvm server as below:
> +++
> [root@kvm ~]# lsblk
> NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
> nvme0n1259:00  1.8T  0 disk
> ├─nvme0n1p1259:30  600M  0 part /boot/efi
> ├─nvme0n1p2259:401G  0 part /boot
> └─nvme0n1p3259:50  1.8T  0 part
>  ├─almalinux-root 253:00   70G  0 lvm  /
>  ├─almalinux-swap 253:104G  0 lvm  [SWAP]
>  └─almalinux-home 253:20  1.7T  0 lvm  /home
> nvme3n1259:10  1.8T  0 disk
> nvme2n1259:20  1.8T  0 disk
> nvme1n1259:60  1.8T  0 disk
> nvme5n1259:70  1.8T  0 disk
> nvme4n1259:80  1.8T  0 disk
> nvme7n1259:90  1.8T  0 disk
> ├─nvme7n1p1259:11   0  600M  0 part
> ├─nvme7n1p2259:12   01G  0 part
> ├─nvme7n1p3259:13   0  600M  0 part
> ├─nvme7n1p4259:14   01G  0 part
> └─nvme7n1p5259:15   0  1.8T  0 part
>  ├─cl-swap253:304G  0 lvm
>  ├─cl-home253:40  1.7T  0 lvm
>  └─cl-root253:50   70G  0 lvm
> nvme6n1259:10   0  1.8T  0 disk
> [root@kvm ~]# ll /var/lib/libvirt/images/*
> total 957640
> -rw-r--r-- 1 root root 460521472 Sep  7 01:02
> 4c4952d7-03cd-4cef-b34e-6e7bb901ec45
> -rw-r--r-- 1 root root 260440064 Sep  7 01:11
> 92156793-36b5-43dc-bf39-e6d80332d9c7
> -rw-r--r-- 1 root root 258736128 Sep  7 01:11
> a30fe48b-4e15-4e6c-9622-105c118a3f06
> [root@kvm images]# cat /etc/cloudstack/agent/agent.properties
> #Storage
> #Thu Sep 07 01:00:44 IST 2023
> cluster=2
> pod=2
> resource=com.cloud.hypervisor.kvm.resource.LibvirtComputingResource
> private.network.device=cloudbr0
> domr.scripts.dir=scripts/network/domr/kvm
> guest.network.device=cloudbr0
> keystore.passphrase=vHAhA42GdkxDjQVg
> hypervisor.type=kvm
> port=8250
> zone=2
> public.network.device=cloudbr0
> local.storage.uuid=3232d9ca-4190-4efa-a3e1-9502f4c12947,aee22008-bfe3-44f3-959c-08358f5eba8d,5f89f843-98cc-4b09-a45c-1a2df6272d61,5b210880-92f6-40c1-8b61-74bca7ecff91
> 
> ,abffdaf9-f6b0-4c96-bdc0-99470ba5db45,86e42f87-3371-4ac8-a3b4-49a6c1cb7f09,85a25c28-f0c7-41ad-9e04-3a1c6e87fe73,1fd78eab-cfcf-4c7b-92e9-eb45b26a5684
> host=172.22.0.10@static
> guid=7be79c10-e80b-3df4-968c-58e9a0c02d28
> LibvirtComputingResource.id=4
> workers=5
> iscsi.session.cleanup.enabled=false
> vm.migrate.wait=3600
> local.storage.path=/var/lib/libvirt/images,/var/lib/libvirt/images2,/var/lib/libvirt/images3,/var/lib/libvirt/images4,/var/lib/libvirt/images5,/var/lib/libvirt/images
> 6,/var/lib/libvirt/images7,/var/lib/libvirt/images8
> [root@kvm images]#
> [root@kvm images]#
> [root@kvm images]#
> [root@kvm images]# df -h
> Filesystem  Size  Used Avail Use% Mounted on
> devtmpfs315G 0  315G   0% /dev
> tmpfs   315G 0  315G   0% /dev/shm
> tmpfs   315G   67M  315G   1% /run
> tmpfs   315G 0  315G   0% /sys/fs/cgroup
> /dev/mapper/almalinux-root   70G  4.8G   66G   7% /
> /dev/nvme0n1p2 1014M  290M  725M  29% /boot
> /dev/mapper/almalinux-home  1.7T   12G  1.7T   1% /home
> /dev/nvme0n1p1  599M  5.8M  594M   1% /boot/efi
> tmpfs63G 0   63G   0% /run/user/0
> [root@kvm images]# /var/lib/libvirt/images
> +
> 
> also see my ACS UI
> https://prnt.sc/E0zG9T5Mc3Qo
> where to get 139GB local storage ?
> 
> Please share with me any config ...
> 
> Thank you,
> 
> 
> On Wed, Sep 6, 2023 at 2:23 PM Wei ZHOU  wrote:
> 
>> Hi,
>> 
>> You can add kvm hosts with multiple local storages.
>> https://github.com/apache/cloudstack-documentation/pull/333/files
>> 
>> Each storage will be added as a storage pool.
>> You can deploy vms, migrate vms/volumes between pools.
>> 
>> -Wei
>> 
>> On Wed, 6 Sept 2023 at 09:52, Technology Mail <
>> technologyrss.m...@gmail.com>
>> wrote:
>> 
>>> *Hi,*
>>> 
>>> My setup is AlmaLinux8, all are working fine using mgmt+nfs, but I have
>>> 8 NVME disk (every disk size 1.8TB) mount on kvm server, so I want to
>>> use all disk as user vm storage disk separately.
>>> 
>>> *My idea is :* When setup zone then using enable local storage. But this
>>> settings is only for one disk or all kvm server disk.
>>> 
>>> But I have 8 disk, so how to trace mgmt server my all 8 disk separately.
>>> For example, I want 5 

Re: Can I use KVM local storage for user vm

2023-09-06 Thread Technology rss
I see something is wrong fetch my local storage from kvm server, Please see
my kvm server as below:
+++
[root@kvm ~]# lsblk
NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
nvme0n1259:00  1.8T  0 disk
├─nvme0n1p1259:30  600M  0 part /boot/efi
├─nvme0n1p2259:401G  0 part /boot
└─nvme0n1p3259:50  1.8T  0 part
  ├─almalinux-root 253:00   70G  0 lvm  /
  ├─almalinux-swap 253:104G  0 lvm  [SWAP]
  └─almalinux-home 253:20  1.7T  0 lvm  /home
nvme3n1259:10  1.8T  0 disk
nvme2n1259:20  1.8T  0 disk
nvme1n1259:60  1.8T  0 disk
nvme5n1259:70  1.8T  0 disk
nvme4n1259:80  1.8T  0 disk
nvme7n1259:90  1.8T  0 disk
├─nvme7n1p1259:11   0  600M  0 part
├─nvme7n1p2259:12   01G  0 part
├─nvme7n1p3259:13   0  600M  0 part
├─nvme7n1p4259:14   01G  0 part
└─nvme7n1p5259:15   0  1.8T  0 part
  ├─cl-swap253:304G  0 lvm
  ├─cl-home253:40  1.7T  0 lvm
  └─cl-root253:50   70G  0 lvm
nvme6n1259:10   0  1.8T  0 disk
[root@kvm ~]# ll /var/lib/libvirt/images/*
total 957640
-rw-r--r-- 1 root root 460521472 Sep  7 01:02
4c4952d7-03cd-4cef-b34e-6e7bb901ec45
-rw-r--r-- 1 root root 260440064 Sep  7 01:11
92156793-36b5-43dc-bf39-e6d80332d9c7
-rw-r--r-- 1 root root 258736128 Sep  7 01:11
a30fe48b-4e15-4e6c-9622-105c118a3f06
[root@kvm images]# cat /etc/cloudstack/agent/agent.properties
#Storage
#Thu Sep 07 01:00:44 IST 2023
cluster=2
pod=2
resource=com.cloud.hypervisor.kvm.resource.LibvirtComputingResource
private.network.device=cloudbr0
domr.scripts.dir=scripts/network/domr/kvm
guest.network.device=cloudbr0
keystore.passphrase=vHAhA42GdkxDjQVg
hypervisor.type=kvm
port=8250
zone=2
public.network.device=cloudbr0
local.storage.uuid=3232d9ca-4190-4efa-a3e1-9502f4c12947,aee22008-bfe3-44f3-959c-08358f5eba8d,5f89f843-98cc-4b09-a45c-1a2df6272d61,5b210880-92f6-40c1-8b61-74bca7ecff91

 
,abffdaf9-f6b0-4c96-bdc0-99470ba5db45,86e42f87-3371-4ac8-a3b4-49a6c1cb7f09,85a25c28-f0c7-41ad-9e04-3a1c6e87fe73,1fd78eab-cfcf-4c7b-92e9-eb45b26a5684
host=172.22.0.10@static
guid=7be79c10-e80b-3df4-968c-58e9a0c02d28
LibvirtComputingResource.id=4
workers=5
iscsi.session.cleanup.enabled=false
vm.migrate.wait=3600
local.storage.path=/var/lib/libvirt/images,/var/lib/libvirt/images2,/var/lib/libvirt/images3,/var/lib/libvirt/images4,/var/lib/libvirt/images5,/var/lib/libvirt/images
 6,/var/lib/libvirt/images7,/var/lib/libvirt/images8
[root@kvm images]#
[root@kvm images]#
[root@kvm images]#
[root@kvm images]# df -h
Filesystem  Size  Used Avail Use% Mounted on
devtmpfs315G 0  315G   0% /dev
tmpfs   315G 0  315G   0% /dev/shm
tmpfs   315G   67M  315G   1% /run
tmpfs   315G 0  315G   0% /sys/fs/cgroup
/dev/mapper/almalinux-root   70G  4.8G   66G   7% /
/dev/nvme0n1p2 1014M  290M  725M  29% /boot
/dev/mapper/almalinux-home  1.7T   12G  1.7T   1% /home
/dev/nvme0n1p1  599M  5.8M  594M   1% /boot/efi
tmpfs63G 0   63G   0% /run/user/0
[root@kvm images]# /var/lib/libvirt/images
+

also see my ACS UI
https://prnt.sc/E0zG9T5Mc3Qo
where to get 139GB local storage ?

Please share with me any config ...

Thank you,


On Wed, Sep 6, 2023 at 2:23 PM Wei ZHOU  wrote:

> Hi,
>
> You can add kvm hosts with multiple local storages.
> https://github.com/apache/cloudstack-documentation/pull/333/files
>
> Each storage will be added as a storage pool.
> You can deploy vms, migrate vms/volumes between pools.
>
> -Wei
>
> On Wed, 6 Sept 2023 at 09:52, Technology Mail <
> technologyrss.m...@gmail.com>
> wrote:
>
> > *Hi,*
> >
> > My setup is AlmaLinux8, all are working fine using mgmt+nfs, but I have
> > 8 NVME disk (every disk size 1.8TB) mount on kvm server, so I want to
> > use all disk as user vm storage disk separately.
> >
> > *My idea is :* When setup zone then using enable local storage. But this
> > settings is only for one disk or all kvm server disk.
> >
> > But I have 8 disk, so how to trace mgmt server my all 8 disk separately.
> > For example, I want 5 user vm for disk 1, another 5 user vm use disk 2,
> > as like another user vm disk 3...etc.
> >
> > which process can I use this disk? give me some idea please ...
> >
> > --
> >
> > *Thanks & Regards.*
> >
> > *Support Admin*
> >
> > 
> >
> > *Facebook  | Twitter
> >  | YouTube
> >  | LinkedIn
> > *
> >
> > *Address : *116/1 West Malibagh, D. I. T Road
> >
> > Dhaka-1217, Bangladesh
> >
> > *Mob :* +88 

Re: Can I use KVM local storage for user vm

2023-09-06 Thread Jithin Raju
Hi,

To control the volume placement to storage you can use storage tags.

-Jithin

From: Wei ZHOU 
Date: Wednesday, 6 September 2023 at 1:53 PM
To: users@cloudstack.apache.org 
Subject: Re: Can I use KVM local storage for user vm
Hi,

You can add kvm hosts with multiple local storages.
https://github.com/apache/cloudstack-documentation/pull/333/files

Each storage will be added as a storage pool.
You can deploy vms, migrate vms/volumes between pools.

-Wei

On Wed, 6 Sept 2023 at 09:52, Technology Mail 
wrote:

> *Hi,*
>
> My setup is AlmaLinux8, all are working fine using mgmt+nfs, but I have
> 8 NVME disk (every disk size 1.8TB) mount on kvm server, so I want to
> use all disk as user vm storage disk separately.
>
> *My idea is :* When setup zone then using enable local storage. But this
> settings is only for one disk or all kvm server disk.
>
> But I have 8 disk, so how to trace mgmt server my all 8 disk separately.
> For example, I want 5 user vm for disk 1, another 5 user vm use disk 2,
> as like another user vm disk 3...etc.
>
> which process can I use this disk? give me some idea please ...
>
> --
>
> *Thanks & Regards.*
>
> *Support Admin*
>
> 
>
> *Facebook <https://www.facebook.com/TechnologyRSS> | Twitter
> <https://twitter.com/technologyrss1> | YouTube
> <https://www.youtube.com/channel/UCBq7qGqFEUe6ObVHMuxudTw> | LinkedIn
> <https://www.linkedin.com/company/technologyrss/>*
>
> *Address : *116/1 West Malibagh, D. I. T Road
>
> Dhaka-1217, Bangladesh
>
> *Mob :* +88 01716915504
>
> *Email :* support.ad...@technologyrss.com
>
> *Web :* www.technologyrss.com<http://www.technologyrss.com>
>

 



Re: Can I use KVM local storage for user vm

2023-09-06 Thread Wei ZHOU
Hi,

You can add kvm hosts with multiple local storages.
https://github.com/apache/cloudstack-documentation/pull/333/files

Each storage will be added as a storage pool.
You can deploy vms, migrate vms/volumes between pools.

-Wei

On Wed, 6 Sept 2023 at 09:52, Technology Mail 
wrote:

> *Hi,*
>
> My setup is AlmaLinux8, all are working fine using mgmt+nfs, but I have
> 8 NVME disk (every disk size 1.8TB) mount on kvm server, so I want to
> use all disk as user vm storage disk separately.
>
> *My idea is :* When setup zone then using enable local storage. But this
> settings is only for one disk or all kvm server disk.
>
> But I have 8 disk, so how to trace mgmt server my all 8 disk separately.
> For example, I want 5 user vm for disk 1, another 5 user vm use disk 2,
> as like another user vm disk 3...etc.
>
> which process can I use this disk? give me some idea please ...
>
> --
>
> *Thanks & Regards.*
>
> *Support Admin*
>
> 
>
> *Facebook  | Twitter
>  | YouTube
>  | LinkedIn
> *
>
> *Address : *116/1 West Malibagh, D. I. T Road
>
> Dhaka-1217, Bangladesh
>
> *Mob :* +88 01716915504
>
> *Email :* support.ad...@technologyrss.com
>
> *Web :* www.technologyrss.com
>


Can I use KVM local storage for user vm

2023-09-06 Thread Technology Mail

*Hi,*

My setup is AlmaLinux8, all are working fine using mgmt+nfs, but I have 
8 NVME disk (every disk size 1.8TB) mount on kvm server, so I want to 
use all disk as user vm storage disk separately.


*My idea is :* When setup zone then using enable local storage. But this 
settings is only for one disk or all kvm server disk.


But I have 8 disk, so how to trace mgmt server my all 8 disk separately. 
For example, I want 5 user vm for disk 1, another 5 user vm use disk 2, 
as like another user vm disk 3...etc.


which process can I use this disk? give me some idea please ...

--

*Thanks & Regards.*

*Support Admin*



*Facebook  | Twitter 
 | YouTube 
 | LinkedIn 
*


*Address : *116/1 West Malibagh, D. I. T Road

Dhaka-1217, Bangladesh

*Mob :* +88 01716915504

*Email :* support.ad...@technologyrss.com

*Web :* www.technologyrss.com