RE: Initial SystemVM Creation Failing

2020-07-09 Thread Corey, Mike
Hi,

Has anyone replicated this error/issue I'm seeing?  What part of the setup or 
systemvm build sets or creates the /var/cloudstack/mnt/VM/ directory and WHY 
would it be restrictive?

[root@ ~]# ls -al /var/cloudstack/mnt/VM/345050029058.1f7af2bf
total 12
drwxr-xr-x. 4 nobody nobody 4096 Jul  8 11:15 .
drwxr-xr-x. 3 cloud  cloud35 Jul  8 14:06 ..
drwxrwxr-x. 2 cloud  cloud  4096 Jul  8 10:58 systemvm
drwxr-xr-x. 3 nobody nobody 4096 Jul  8 11:15 template
[root@usphlmvcsmt01 ~]#



-Original Message-
From: Corey, Mike
Sent: Wednesday, July 8, 2020 2:45 PM
To: users@cloudstack.apache.org
Subject: RE: Initial SystemVM Creation Failing

Gone over the installation now twice (reverted to snapshot of CentOS VM) and 
still getting weird storage/permission type issues.

The permissions and ownership of the systemvm folder looks correct.
[root@ ~]# ls -al /mnt/secondary/
total 16
drwxr-xr-x.  4 root  root  4096 Jul  8 11:15 .
drwxr-xr-x.  4 root  root38 Jul  8 11:15 ..
drwxrwxrwx. 12 root  root  4096 Jul  8 11:05 .snapshot
drwxrwxr-x.  2 cloud cloud 4096 Jul  8 10:58 systemvm
drwxr-xr-x.  3 root  root  4096 Jul  8 11:15 template

However, I'm still seeing the copy iso error and the VMs keep creating and 
deleting with the log suggesting the vmx file of the VM doesn't exist on the 
datastore (can create files/folder on datastore identified in errror from 
vCenter).

2020-07-08 14:22:36,486 INFO  [c.c.h.v.m.DatastoreMO] 
(DirectAgent-51:ctx-7e6d5dc9 usphlmvesxt155.phl.global.corp.sap, job-6/job-37, 
cmd: StartCommand) (logid:b828ac16) Folder v-6-VM does not exist on datastore
2020-07-08 14:22:36,494 INFO  [c.c.h.v.m.DatastoreMO] 
(DirectAgent-51:ctx-7e6d5dc9 usphlmvesxt155.phl.global.corp.sap, job-6/job-37, 
cmd: StartCommand) (logid:b828ac16) Search file v-6-VM.vmx on 
[50cc970ffbe23b459cb5b8bcdb6dbff5]
2020-07-08 14:22:36,522 INFO  [c.c.h.v.m.DatastoreMO] 
(DirectAgent-51:ctx-7e6d5dc9 usphlmvesxt155.phl.global.corp.sap, job-6/job-37, 
cmd: StartCommand) (logid:b828ac16) File [50cc970ffbe23b459cb5b8bcdb6dbff5] 
v-6-VM.vmx does not exist on datastore
2020-07-08 14:22:36,522 INFO  [c.c.h.v.m.DatastoreMO] 
(DirectAgent-51:ctx-7e6d5dc9 usphlmvesxt155.phl.global.corp.sap, job-6/job-37, 
cmd: StartCommand) (logid:b828ac16) Searching file v-6-VM.vmx in 
[50cc970ffbe23b459cb5b8bcdb6dbff5]
2020-07-08 14:22:36,641 INFO  [c.c.h.v.m.HypervisorHostHelper] 
(DirectAgent-51:ctx-7e6d5dc9 usphlmvesxt155.phl.global.corp.sap, job-6/job-37, 
cmd: StartCommand) (logid:b828ac16) Create blank VM. cpuCount: 1, 
cpuSpeed(MHz): 500, mem(Mb): 1024
2020-07-08 14:22:36,692 DEBUG [c.c.h.v.m.ClusterMO] 
(DirectAgent-51:ctx-7e6d5dc9 usphlmvesxt155.phl.global.corp.sap, job-6/job-37, 
cmd: StartCommand) (logid:b828ac16) Retrieved recommended disk controller for 
guest OS : otherLinux64Guest in cluster PHL-CSM01 : VirtualLsiLogicController
2020-07-08 14:22:37,115 DEBUG [c.c.h.v.m.HostMO] (DirectAgent-51:ctx-7e6d5dc9 
usphlmvesxt155.phl.global.corp.sap, job-6/job-37, cmd: StartCommand) 
(logid:b828ac16) find VM v-6-VM on host
2020-07-08 14:22:37,115 INFO  [c.c.h.v.m.HostMO] (DirectAgent-51:ctx-7e6d5dc9 
usphlmvesxt155.phl.global.corp.sap, job-6/job-37, cmd: StartCommand) 
(logid:b828ac16) VM v-6-VM not found in host cache
2020-07-08 14:22:37,115 DEBUG [c.c.h.v.m.HostMO] (DirectAgent-51:ctx-7e6d5dc9 
usphlmvesxt155.phl.global.corp.sap, job-6/job-37, cmd: StartCommand) 
(logid:b828ac16) load VM cache on host
2020-07-08 14:22:37,155 DEBUG [c.c.h.v.m.HostMO] (DirectAgent-51:ctx-7e6d5dc9 
usphlmvesxt155.phl.global.corp.sap, job-6/job-37, cmd: StartCommand) 
(logid:b828ac16) find VM v-6-VM on host
2020-07-08 14:22:37,155 DEBUG [c.c.h.v.m.HostMO] (DirectAgent-51:ctx-7e6d5dc9 
usphlmvesxt155.phl.global.corp.sap, job-6/job-37, cmd: StartCommand) 
(logid:b828ac16) VM v-6-VM found in host cache
2020-07-08 14:22:37,375 INFO  [c.c.h.v.m.VmwareManagerImpl] 
(DirectAgent-51:ctx-7e6d5dc9 usphlmvesxt155.phl.global.corp.sap, job-6/job-37, 
cmd: StartCommand) (logid:b828ac16) Inject SSH key pairs before copying 
systemvm.iso into secondary storage
2020-07-08 14:22:37,377 INFO  [c.c.s.ConfigurationServerImpl] 
(DirectAgent-51:ctx-7e6d5dc9 usphlmvesxt155.phl.global.corp.sap, job-6/job-37, 
cmd: StartCommand) (logid:b828ac16) Processing updateKeyPairs
2020-07-08 14:22:37,377 INFO  [c.c.s.ConfigurationServerImpl] 
(DirectAgent-51:ctx-7e6d5dc9 usphlmvesxt155.phl.global.corp.sap, job-6/job-37, 
cmd: StartCommand) (logid:b828ac16) Keypairs already in database, updating 
local copy
2020-07-08 14:22:37,381 INFO  [c.c.s.ConfigurationServerImpl] 
(DirectAgent-51:ctx-7e6d5dc9 usphlmvesxt155.phl.global.corp.sap, job-6/job-37, 
cmd: StartCommand) (logid:b828ac16) Going to update systemvm iso with generated 
keypairs if needed
2020-07-08 14:22:37,381 INFO  [c.c.s.ConfigurationServerImpl] 
(DirectAgent-51:ctx-7e6d5dc9 usphlmvesxt155.phl.global.corp.sap, 

VM Settings

2020-07-09 Thread Victor Racy
Hi,

I use cloudstack with KVM and I'm trying to add new information to the XML
file of one of my VM's, to be more precise I want to add a new disk to it
without using the Storage function.

What I tried so far was using the VM Settings and extraconfig to pass on a
URL with the configuration of my disk (which is actually a LUN) but I'm not
sure how that works and the Documentation did help me much. So as a simpler
question I want to know how I can add new stuff to a VM's XML file through
Cloudstack.

I added a value to
allow.additional.vm.configuration.list.kvm
and used this value ("disk" in this case) as my name when creating a new
Setting in the VM and then put "extraconfig=myURL" in the value for the VM
Setting. Is this right?
I'm not sure what I should put as value in this Global Setting and not sure
if it matters what I put as name in the VM Settings.

If you could explain to me how that works or if there's better
documentation or a video tutorial on VM Settings cause the official one did
not help me.

Thank you!!
-- 

Victor Racy

Analista de Infraestrutura

+55 (11) 3842-8636

victor.r...@aodigital.com.br 

www.aodigital.com.br

AVISO LEGAL
Esta mensagem é destinada exclusivamente para a(s) pessoa(s) a quem é
dirigida, podendo conter informação confidencial e/ou legalmente
privilegiada. Se você não for destinatário desta mensagem, desde já fica
notificado de abster-se a divulgar, copiar, distribuir, examinar ou, de
qualquer forma, utilizar a informação contida nesta mensagem, por ser
ilegal.  Caso você tenha recebido esta mensagem por engano, pedimos que nos
retorne este E-Mail, promovendo, desde logo, a eliminação do seu conteúdo
em sua base de dados, registros ou sistema de controle.

DISCLAIMER
This message is exclusively destined to the person(s) to whom it is
addressed, and it may contain confidential and/or legally privileged
information. If this message is not addressed to you, you are notified from
now on to not disclose, copy, distribute, examine or, in any other way, use
the information contained in this message, considering that such action is
illegal. In case you received this message due to an error, we beg you to
return this e-mail, immediately promoting the elimination of its content
from your database, records or control system.


Unable to shrink a data disk

2020-07-09 Thread Fariborz Navidan
Hi,

I'm unable to shrink a data disk on KVM. MS log reports "Unable to shrink
volume of type QCOW2". I'm using CS 4.14.0.0. Doesn't QCOW2 format support
shrinking?

Regards.