You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2021/09/29 21:59:14 UTC

[GitHub] [cloudstack] AlexanderKgr opened a new issue #5535: After installing 4.15.2.0 instances created from template with uefi cannot boot for second time (xcp-ng 8.2)

AlexanderKgr opened a new issue #5535:
URL: https://github.com/apache/cloudstack/issues/5535


   <!--
   Verify first that your issue/request is not already reported on GitHub.
   Also test if the latest release and main branch are affected too.
   Always add information AFTER of these HTML comments, but no need to delete the comments.
   -->
   
   ##### ISSUE TYPE
   <!-- Pick one below and delete the rest -->
    * Bug Report
    
   ##### COMPONENT NAME
   <!--
   Categorize the issue, e.g. API, VR, VPN, UI, etc.
   -->
   ~~~
   CRITICAL - operation not possible with templates
   ~~~
   
   ##### CLOUDSTACK VERSION
   <!--
   New line separated list of affected versions, commit ID for issues on main branch.
   -->
   
   ~~~
   4.15.3.0-snapshot.20210929
   ~~~
   
   ##### CONFIGURATION
   <!--
   Information about the configuration if relevant, e.g. basic network, advanced networking, etc.  N/A otherwise
   -->
   Ubuntu server 18 with cloudstack 4.15.2.0
   Hypervisor xcp-ng 8.2 with september security patch
   Advanced networking
   
   
   
   
   ##### SUMMARY
   <!-- Explain the problem/feature briefly -->
   
   Continuing from issues
   https://github.com/apache/cloudstack/issues/5204
   https://github.com/apache/cloudstack/issues/5466
   
   Which are not fully fixed
   
   When you create a windows vm from template with uefi it will work for the first boot.
   After shutting it down it cannot boot again showing the following error
   
   ![image](https://user-images.githubusercontent.com/25532758/135354187-991b2824-5711-4bd2-a9bc-c036dcaa8939.png)
   and in server logs
   ![image](https://user-images.githubusercontent.com/25532758/135354227-4bbbcd63-2ea7-4c26-a557-491a0a13346f.png)
   
   Creating a vm from iso works perfectly without issues on shutting down and booting again.
   
   ##### STEPS TO REPRODUCE
   <!--
   For bugs, show exactly how to reproduce the problem, using a minimal test-case. Use Screenshots if accurate.
   
   For new features, show how the feature would be used.
   -->
   
   <!-- Paste example playbooks or commands between quotes below -->
   ~~~
   1. Create new instance from template with option uefi. I will boot without issue
   2. shut it down.
   3. Try to boot it and it won't boot anymore
   ~~~
   
   <!-- You can also paste gist.github.com links for larger files -->
   
   ##### EXPECTED RESULTS
   <!-- What did you expect to happen when running the steps above? -->
   
   ~~~
   The instance to boot as the first time.
   I underline that i haven't touched anything in instance settings.
   ~~~
   
   ##### ACTUAL RESULTS
   <!-- What actually happened? -->
   
   <!-- Paste verbatim command output between quotes below -->
   ~~~
   Instance cannot boot
   ~~~
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] sureshanaparti closed issue #5535: After installing 4.15.2.0 instances created from template with uefi cannot boot for second time (xcp-ng 8.2)

Posted by GitBox <gi...@apache.org>.
sureshanaparti closed issue #5535:
URL: https://github.com/apache/cloudstack/issues/5535


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] AlexanderKgr edited a comment on issue #5535: After installing 4.15.2.0 instances created from template with uefi cannot boot for second time (xcp-ng 8.2)

Posted by GitBox <gi...@apache.org>.
AlexanderKgr edited a comment on issue #5535:
URL: https://github.com/apache/cloudstack/issues/5535#issuecomment-930808503


   > @AlexanderKgr can you please share following details:
   > 
   > * Output of `cloudstack-sccs` on the management server
   > * cmk `list virtualmachines id=YOUR_VM_UUID` output for the VM before starting the second time
   > * After adding `TRACE` log level for `com.cloud.vm` in the `/usr/share/cloudstack-management/conf/log4j.xml` and restarting management server, complete logs for the start VM action (there are some logs in UserVmManagerImpl.java which tells what boot details are passed to the hypervisor plugin).
   > 
   > ```
   >    <category name="com.cloud.vm">
   >      <priority value="TRACE"/>
   >    </category>
   > ```
   > 
   > I've tested stop-starting VMs with both ISO and template multiple times but I'm not being able to reproduce this so if you can share above details it will be really helpful. Also, in a reply on previous ticket you mentioned that router boot because that is really weird. As per code systems VM should always be booting in BIOS.
   
   i will ask you some questions because it is the first time i am doing this.
   in my /usr/share/cloudstack-management/conf/log4j.xml i dont have value with category name com.cloud.vm but
   ![image](https://user-images.githubusercontent.com/25532758/135395493-b13f6ad0-9c38-4186-9ced-2fb642ab9c9f.png)
   
   i suppose it is the same or should i add a new category?
   
   also... what is it cloudstack-sccs? 
   ![image](https://user-images.githubusercontent.com/25532758/135395591-ad4e1a34-bd7a-4e41-b9a2-95f56f84ff41.png)
   
   and what is cmk?
   ![image](https://user-images.githubusercontent.com/25532758/135395667-808f8cef-6621-4649-996e-581b6e22da85.png)
   
   as server i am using Ubuntu server 18.04.6
   sorry for asking so much stuff and thank you for helping


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] AlexanderKgr edited a comment on issue #5535: After installing 4.15.2.0 instances created from template with uefi cannot boot for second time (xcp-ng 8.2)

Posted by GitBox <gi...@apache.org>.
AlexanderKgr edited a comment on issue #5535:
URL: https://github.com/apache/cloudstack/issues/5535#issuecomment-931315756


   > @AlexanderKgr nevermind `cloudstack-sccs`. Last highlighted logs indicate that you are having packages with the earlier fix. It should be present in `/usr/bin/cloudstack-sccs`. Not sure if on Ubuntu it is at some other place.
   > 
   > Can you please confirm the reproduction steps:
   > 
   > 1. Deploy a VM using a template from UI and select boot options for UEFI there.
   > 2. Stop the VM from stop VM action in UI or stopVirtualMachine API
   > 3. Start VM again once stopped from UI action or using startVirtualMachine API
   >    VM fails to boot with this.
   > 
   > Sorry for this basic check but for some reason StartCommand params in your logs are missing some details so wanted to confirm. StartCommand in my env looks like,
   > 
   > ```
   > 2021-09-30 12:01:49,069 DEBUG [c.c.a.t.Request] (Work-Job-Executor-158:ctx-409989d0 job-306/job-307 ctx-e9ee5ebb) (logid:b1cdc387) Seq 1-7118783635989203134: Sending  { Cmd , MgmtId: 32987194327951, via: 1(pr5201-t2249-xcpng82-xs1), Ver: v1, Flags: 100011, [{"com.cloud.agent.api.StartCommand":{"vm":{"id":"25","name":"i-2-25-VM","bootloader":"PyGrub","state":"Starting","type":"User","cpus":"1","minSpeed":"250","maxSpeed":"500","minRam":"(512.00 MB) 536870912","maxRam":"(512.00 MB) 536870912","arch":"x86_64","os":"Amazon Linux 2 (64 bit)","bootArgs":"","enableHA":"false","limitCpuUse":"false","enableDynamicallyScaleVm":"false","vncPassword":"LQ0tja8DSoXbHpCSjryFFA","params":{"hypervisortoolsversion":"xenserver56","cpuOvercommitRatio":"2.0","UEFI":"SECURE","platform":"device-model:qemu-upstream-uefi;apic:true;viridian:true;timeoffset:0;pae:true;acpi:1;hpet:true;secureboot:true;nx:true","memoryOvercommitRatio":"1.0","Message.ReservedCapacityFreed.Flag":"false"},"uuid":"3d196004-94c2
 -4de9-98a9-15205d9dd64d","bootType":"UEFI","bootMode":"SECURE","enterHardwareSetup":"false","disks":[{"data":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"b0ad3853-94d5-4fa6-88ee-0e8ac8c1d249","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"52972655-e07e-3449-99c5-d4bcfd546511","name":"pr5201-t2249-xcpng82-xs-pri1","id":"1","poolType":"NetworkFilesystem","host":"10.0.32.4","path":"/acs/primary/pr5201-t2249-xcpng82/pr5201-t2249-xcpng82-xs-pri1","port":"2049","url":"NetworkFilesystem://10.0.32.4/acs/primary/pr5201-t2249-xcpng82/pr5201-t2249-xcpng82-xs-pri1/?ROLE=Primary&STOREUUID=52972655-e07e-3449-99c5-d4bcfd546511","isManaged":"false"}},"name":"ROOT-25","size":"(50.00 MB) 52428800","path":"aa93fb19-398b-4878-adb4-3e512cf84e30","volumeId":"25","vmName":"i-2-25-VM","accountId":"2","format":"VHD","provisioningType":"THIN","poolId":"1","id":"25","deviceId":"0","bytesReadRate":"(0 bytes) 0","bytesWriteRate":"(0 bytes) 0","iops
 ReadRate":"(0 bytes) 0","iopsWriteRate":"(0 bytes) 0","hypervisorType":"XenServer","directDownload":"false","deployAsIs":"false"}},"diskSeq":"0","path":"aa93fb19-398b-4878-adb4-3e512cf84e30","type":"ROOT","_details":{"storageHost":"10.0.32.4","managed":"false","storagePort":"2049","storage.pool.disk.wait":"60","volumeSize":"(50.00 MB) 52428800"}},{"data":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"id":"0","format":"ISO","accountId":"0","hvm":"false","bootable":"false","directDownload":"false","deployAsIs":"false"}},"diskSeq":"3","type":"ISO"}],"nics":[{"deviceId":"0","networkRateMbps":"200","defaultNic":"true","pxeDisable":"false","nicUuid":"129a8857-495c-4bff-bc56-a19141fe12cc","details":{"PromiscuousMode":"false","MacAddressChanges":"true","ForgedTransmits":"true"},"dpdkEnabled":"false","uuid":"26eb1922-f7da-4ca8-8706-1015ed13ca2d","ip":"10.1.1.182","netmask":"255.255.255.0","gateway":"10.1.1.1","mac":"02:00:68:31:00:16","dns1":"10.0.32.1","dns2":"8.8.8.8","broadcastTyp
 e":"Vlan","type":"Guest","broadcastUri":"vlan://2133","isolationUri":"vlan://2133","isSecurityGroupEnabled":"false","name":"Network1"}],"vcpuMaxLimit":"3","configDriveLocation":"SECONDARY","guestOsDetails":{},"extraConfig":{}},"hostIp":"10.0.34.197","executeInSequence":"false","wait":"0","bypassHostMaintenance":"false"}}] }
   > ```
   > 
   > ^^ It has `bootType` and `bootMode` after VM UUI which seems to be not present in the logs you shared.
   
   cloudstack-sccs not available in ubuntu i suppose. Couldn't locate it
   
   Reproduction Steps
   
   1. Deploy a VM using a template from UI and select boot options for UEFI there.
   2. Stop the VM from stop VM action in UI 
   3. Start VM again once stopped from UI action 
   4. VM fails to boot with this.
   
   I suppose this is the StartCommand
   [startcommand.txt](https://github.com/apache/cloudstack/files/7259810/startcommand.txt)
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] nvazquez commented on issue #5535: After installing 4.15.2.0 instances created from template with uefi cannot boot for second time (xcp-ng 8.2)

Posted by GitBox <gi...@apache.org>.
nvazquez commented on issue #5535:
URL: https://github.com/apache/cloudstack/issues/5535#issuecomment-933507778


   Thanks @rhtyd
   
   @borisstoyanov @vladimirpetrov please check Rohit's comment above - there is a PR which might solve this issue: https://github.com/apache/cloudstack/pull/5543


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] AlexanderKgr commented on issue #5535: After installing 4.15.2.0 instances created from template with uefi cannot boot for second time (xcp-ng 8.2)

Posted by GitBox <gi...@apache.org>.
AlexanderKgr commented on issue #5535:
URL: https://github.com/apache/cloudstack/issues/5535#issuecomment-931315756


   > @AlexanderKgr nevermind `cloudstack-sccs`. Last highlighted logs indicate that you are having packages with the earlier fix. It should be present in `/usr/bin/cloudstack-sccs`. Not sure if on Ubuntu it is at some other place.
   > 
   > Can you please confirm the reproduction steps:
   > 
   > 1. Deploy a VM using a template from UI and select boot options for UEFI there.
   > 2. Stop the VM from stop VM action in UI or stopVirtualMachine API
   > 3. Start VM again once stopped from UI action or using startVirtualMachine API
   >    VM fails to boot with this.
   > 
   > Sorry for this basic check but for some reason StartCommand params in your logs are missing some details so wanted to confirm. StartCommand in my env looks like,
   > 
   > ```
   > 2021-09-30 12:01:49,069 DEBUG [c.c.a.t.Request] (Work-Job-Executor-158:ctx-409989d0 job-306/job-307 ctx-e9ee5ebb) (logid:b1cdc387) Seq 1-7118783635989203134: Sending  { Cmd , MgmtId: 32987194327951, via: 1(pr5201-t2249-xcpng82-xs1), Ver: v1, Flags: 100011, [{"com.cloud.agent.api.StartCommand":{"vm":{"id":"25","name":"i-2-25-VM","bootloader":"PyGrub","state":"Starting","type":"User","cpus":"1","minSpeed":"250","maxSpeed":"500","minRam":"(512.00 MB) 536870912","maxRam":"(512.00 MB) 536870912","arch":"x86_64","os":"Amazon Linux 2 (64 bit)","bootArgs":"","enableHA":"false","limitCpuUse":"false","enableDynamicallyScaleVm":"false","vncPassword":"LQ0tja8DSoXbHpCSjryFFA","params":{"hypervisortoolsversion":"xenserver56","cpuOvercommitRatio":"2.0","UEFI":"SECURE","platform":"device-model:qemu-upstream-uefi;apic:true;viridian:true;timeoffset:0;pae:true;acpi:1;hpet:true;secureboot:true;nx:true","memoryOvercommitRatio":"1.0","Message.ReservedCapacityFreed.Flag":"false"},"uuid":"3d196004-94c2
 -4de9-98a9-15205d9dd64d","bootType":"UEFI","bootMode":"SECURE","enterHardwareSetup":"false","disks":[{"data":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"b0ad3853-94d5-4fa6-88ee-0e8ac8c1d249","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"52972655-e07e-3449-99c5-d4bcfd546511","name":"pr5201-t2249-xcpng82-xs-pri1","id":"1","poolType":"NetworkFilesystem","host":"10.0.32.4","path":"/acs/primary/pr5201-t2249-xcpng82/pr5201-t2249-xcpng82-xs-pri1","port":"2049","url":"NetworkFilesystem://10.0.32.4/acs/primary/pr5201-t2249-xcpng82/pr5201-t2249-xcpng82-xs-pri1/?ROLE=Primary&STOREUUID=52972655-e07e-3449-99c5-d4bcfd546511","isManaged":"false"}},"name":"ROOT-25","size":"(50.00 MB) 52428800","path":"aa93fb19-398b-4878-adb4-3e512cf84e30","volumeId":"25","vmName":"i-2-25-VM","accountId":"2","format":"VHD","provisioningType":"THIN","poolId":"1","id":"25","deviceId":"0","bytesReadRate":"(0 bytes) 0","bytesWriteRate":"(0 bytes) 0","iops
 ReadRate":"(0 bytes) 0","iopsWriteRate":"(0 bytes) 0","hypervisorType":"XenServer","directDownload":"false","deployAsIs":"false"}},"diskSeq":"0","path":"aa93fb19-398b-4878-adb4-3e512cf84e30","type":"ROOT","_details":{"storageHost":"10.0.32.4","managed":"false","storagePort":"2049","storage.pool.disk.wait":"60","volumeSize":"(50.00 MB) 52428800"}},{"data":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"id":"0","format":"ISO","accountId":"0","hvm":"false","bootable":"false","directDownload":"false","deployAsIs":"false"}},"diskSeq":"3","type":"ISO"}],"nics":[{"deviceId":"0","networkRateMbps":"200","defaultNic":"true","pxeDisable":"false","nicUuid":"129a8857-495c-4bff-bc56-a19141fe12cc","details":{"PromiscuousMode":"false","MacAddressChanges":"true","ForgedTransmits":"true"},"dpdkEnabled":"false","uuid":"26eb1922-f7da-4ca8-8706-1015ed13ca2d","ip":"10.1.1.182","netmask":"255.255.255.0","gateway":"10.1.1.1","mac":"02:00:68:31:00:16","dns1":"10.0.32.1","dns2":"8.8.8.8","broadcastTyp
 e":"Vlan","type":"Guest","broadcastUri":"vlan://2133","isolationUri":"vlan://2133","isSecurityGroupEnabled":"false","name":"Network1"}],"vcpuMaxLimit":"3","configDriveLocation":"SECONDARY","guestOsDetails":{},"extraConfig":{}},"hostIp":"10.0.34.197","executeInSequence":"false","wait":"0","bypassHostMaintenance":"false"}}] }
   > ```
   > 
   > ^^ It has `bootType` and `bootMode` after VM UUI which seems to be not present in the logs you shared.
   
   cloudstack-sccs not available in ubuntu i suppose. Couldn't locate it
   
   Reproduction Steps
   
   1. Deploy a VM using a template from UI and select boot options for UEFI there.
   2. Stop the VM from stop VM action in UI 
   3. Start VM again once stopped from UI action 
   4. VM fails to boot with this.
   
   I suppose this is the StartCommand
   
   2021-09-30 07:20:59,656 DEBUG [c.c.a.t.Request] (Work-Job-Executor-9:ctx-ee3fc12f job-230/job-232 ctx-0c177ab4) (logid:881f1761) Seq 1-2603362059596857456: Executing:  { Cmd , MgmtId: 52227725262, via: 1(xcp1), Ver: v1, Flags: 100011, [{"com.cloud.agent.api.StartCommand":{"vm":{"id":"15","name":"i-2-15-VM","bootloader":"PyGrub","state":"Starting","type":"User","cpus":"2","minSpeed":"1500","maxSpeed":"1500","minRam":"(2.00 GB) 2147483648","maxRam":"(2.00 GB) 2147483648","arch":"x86_64","os":"Windows 10 (64-bit)","platformEmulator":"Windows 10 (64-bit)","bootArgs":"","enableHA":"false","limitCpuUse":"false","enableDynamicallyScaleVm":"false","vncPassword":"CcecDXH0bEJPSqdEj5jJoQ","params":{"hypervisortoolsversion":"xenserver56","UEFI":"SECURE","platform":"device-model:qemu-upstream-uefi;acpi_laptop_slate:1;videoram:8;viridian_stimer:true;apic:true;viridian:true;timeoffset:10799;viridian_reference_tsc:true;hpet:true;nx:true;viridian_time_ref_count:true;viridian_crash_ctl:true;vga:std
 ;viridian_apic_assist:true;cores-per-socket:2;pae:true;acpi:1;secureboot:true","Message.ReservedCapacityFreed.Flag":"false"},"uuid":"8b9a126c-1f11-4838-bae6-70f337d5c192","enterHardwareSetup":"false","disks":[{"data":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"01d92436-558c-4193-83e6-3679b3c62e24","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"45f7e441-1140-327a-8b65-445355ea8f22","id":"1","poolType":"NetworkFilesystem","host":"10.0.100.15","path":"/mnt/Pool/primary","port":"2049","url":"NetworkFilesystem://10.0.100.15/mnt/Pool/primary/?ROLE=Primary&STOREUUID=45f7e441-1140-327a-8b65-445355ea8f22","isManaged":"false"}},"name":"ROOT-15","size":"(25.00 GB) 26843545600","path":"961cd170-e4ba-41c7-bbcc-5a4f431be036","volumeId":"15","vmName":"i-2-15-VM","accountId":"2","format":"VHD","provisioningType":"THIN","id":"15","deviceId":"0","bytesReadRate":"(0 bytes) 0","bytesWriteRate":"(0 bytes) 0","iopsReadRate":"(0 bytes) 0","i
 opsWriteRate":"(0 bytes) 0","cacheMode":"NONE","hypervisorType":"XenServer","directDownload":"false","deployAsIs":"false"}},"diskSeq":"0","path":"961cd170-e4ba-41c7-bbcc-5a4f431be036","type":"ROOT","_details":{"storageHost":"10.0.100.15","managed":"false","storagePort":"2049","volumeSize":"(25.00 GB) 26843545600"}},{"data":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"id":"0","format":"ISO","accountId":"0","hvm":"false","bootable":"false","directDownload":"false","deployAsIs":"false"}},"diskSeq":"3","type":"ISO"}],"nics":[{"deviceId":"0","networkRateMbps":"200","defaultNic":"true","pxeDisable":"false","nicUuid":"5bda150c-3c2a-48e1-8214-a98307dcb38d","details":{"ForgedTransmits":"true","MacAddressChanges":"true","PromiscuousMode":"false"},"dpdkEnabled":"false","uuid":"5443bcc5-ba80-4cba-b97e-5d6018d3f31a","ip":"192.168.105.115","netmask":"255.255.255.0","gateway":"192.168.105.1","mac":"1e:00:4d:00:02:58","dns1":"1.1.1.1","broadcastType":"Vlan","type":"Guest","broadcastUri":"
 vlan://0","isolationUri":"vlan://0","isSecurityGroupEnabled":"false","name":"GUEST"}],"vcpuMaxLimit":"1","guestOsDetails":{},"extraConfig":{}},"hostIp":"192.168.98.41","executeInSequence":"false","wait":"0","bypassHostMaintenance":"false"}}] }
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] AlexanderKgr commented on issue #5535: After installing 4.15.2.0 instances created from template with uefi cannot boot for second time (xcp-ng 8.2)

Posted by GitBox <gi...@apache.org>.
AlexanderKgr commented on issue #5535:
URL: https://github.com/apache/cloudstack/issues/5535#issuecomment-930947828


   info of the vm before starting
   [beforesecondstart.txt](https://github.com/apache/cloudstack/files/7257569/beforesecondstart.txt)
   logs
   [logs.txt](https://github.com/apache/cloudstack/files/7257582/logs.txt)
   
   and something strange in logs
   2021-09-30 07:20:46,524 TRACE [c.c.v.UserVmManagerImpl] (API-Job-Executor-5:ctx-edd8cde9 job-230 ctx-86c1a3bc) (logid:881f1761) Adding boot options (UefiFlag, BootType, BootMode) into the param map for VM start as UEFI detail(UEFI=SECURE) found for the VM
   
   
   2021-09-30 07:20:49,407 DEBUG [c.c.a.t.Request] (Work-Job-Executor-8:ctx-4f9eb591 job-230/job-231 ctx-64fe1ac2) (logid:881f1761) Seq 2-7868351498969677922: Sending  { Cmd , MgmtId: 52227725262, via: 2(xcp2), Ver: v1, Flags: 100011, [{"com.cloud.agent.api.StartCommand":{"vm":{"id":"15","name":"i-2-15-VM","bootloader":"PyGrub","state":"Starting","type":"User","cpus":"2","minSpeed":"1500","maxSpeed":"1500","minRam":"(2.00 GB) 2147483648","maxRam":"(2.00 GB) 2147483648","arch":"x86_64","os":"Windows 10 (64-bit)","platformEmulator":"Windows 10 (64-bit)","bootArgs":"","enableHA":"false","limitCpuUse":"false","enableDynamicallyScaleVm":"false","vncPassword":"CcecDXH0bEJPSqdEj5jJoQ","params":{"hypervisortoolsversion":"xenserver56","UEFI":"SECURE","platform":"device-model:qemu-upstream-uefi;acpi_laptop_slate:1;videoram:8;viridian_stimer:true;apic:true;viridian:true;timeoffset:10799;viridian_reference_tsc:true;hpet:true;nx:true;viridian_time_ref_count:true;viridian_crash_ctl:true;vga:std;vi
 ridian_apic_assist:true;cores-per-socket:2;pae:true;acpi:1;secureboot:true","Message.ReservedCapacityFreed.Flag":"false"},"uuid":"8b9a126c-1f11-4838-bae6-70f337d5c192","enterHardwareSetup":"false","disks":[{"data":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"01d92436-558c-4193-83e6-3679b3c62e24","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"45f7e441-1140-327a-8b65-445355ea8f22","id":"1","poolType":"NetworkFilesystem","host":"10.0.100.15","path":"/mnt/Pool/primary","port":"2049","url":"NetworkFilesystem://10.0.100.15/mnt/Pool/primary/?ROLE=Primary&STOREUUID=45f7e441-1140-327a-8b65-445355ea8f22","isManaged":"false"}},"name":"ROOT-15","size":"(25.00 GB) 26843545600","path":"961cd170-e4ba-41c7-bbcc-5a4f431be036","volumeId":"15","vmName":"i-2-15-VM","accountId":"2","format":"VHD","provisioningType":"THIN","id":"15","deviceId":"0","bytesReadRate":"(0 bytes) 0","bytesWriteRate":"(0 bytes) 0","iopsReadRate":"(0 bytes) 0","iops
 WriteRate":"(0 bytes) 0","cacheMode":"NONE","hypervisorType":"XenServer","directDownload":"false","deployAsIs":"false"}},"diskSeq":"0","path":"961cd170-e4ba-41c7-bbcc-5a4f431be036","type":"ROOT","_details":{"storageHost":"10.0.100.15","managed":"false","storagePort":"2049","volumeSize":"(25.00 GB) 26843545600"}},{"data":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"id":"0","format":"ISO","accountId":"0","hvm":"false","bootable":"false","directDownload":"false","deployAsIs":"false"}},"diskSeq":"3","type":"ISO"}],"nics":[{"deviceId":"0","networkRateMbps":"200","defaultNic":"true","pxeDisable":"false","nicUuid":"5bda150c-3c2a-48e1-8214-a98307dcb38d","details":{"ForgedTransmits":"true","MacAddressChanges":"true","PromiscuousMode":"false"},"dpdkEnabled":"false","uuid":"5443bcc5-ba80-4cba-b97e-5d6018d3f31a","ip":"192.168.105.115","netmask":"255.255.255.0","gateway":"192.168.105.1","mac":"1e:00:4d:00:02:58","dns1":"1.1.1.1","broadcastType":"Vlan","type":"Guest","broadcastUri":"vla
 n://0","isolationUri":"vlan://0","isSecurityGroupEnabled":"false","name":"GUEST"}],"vcpuMaxLimit":"1","guestOsDetails":{},"extraConfig":{}},"hostIp":"192.168.98.42","executeInSequence":"false","wait":"0","bypassHostMaintenance":"false"}}] }
   2021-09-30 07:20:49,409 DEBUG [c.c.a.t.Request] (Work-Job-Executor-8:ctx-4f9eb591 job-230/job-231 ctx-64fe1ac2) (logid:881f1761) Seq 2-7868351498969677922: Executing:  { Cmd , MgmtId: 52227725262, via: 2(xcp2), Ver: v1, Flags: 100011, [{"com.cloud.agent.api.StartCommand":{"vm":{"id":"15","name":"i-2-15-VM","bootloader":"PyGrub","state":"Starting","type":"User","cpus":"2","minSpeed":"1500","maxSpeed":"1500","minRam":"(2.00 GB) 2147483648","maxRam":"(2.00 GB) 2147483648","arch":"x86_64","os":"Windows 10 (64-bit)","platformEmulator":"Windows 10 (64-bit)","bootArgs":"","enableHA":"false","limitCpuUse":"false","enableDynamicallyScaleVm":"false","vncPassword":"CcecDXH0bEJPSqdEj5jJoQ","params":{"hypervisortoolsversion":"xenserver56","UEFI":"SECURE","platform":"device-model:qemu-upstream-uefi;acpi_laptop_slate:1;videoram:8;viridian_stimer:true;apic:true;viridian:true;timeoffset:10799;viridian_reference_tsc:true;hpet:true;nx:true;viridian_time_ref_count:true;viridian_crash_ctl:true;vga:std
 ;viridian_apic_assist:true;cores-per-socket:2;pae:true;acpi:1;secureboot:true","Message.ReservedCapacityFreed.Flag":"false"},"uuid":"8b9a126c-1f11-4838-bae6-70f337d5c192","enterHardwareSetup":"false","disks":[{"data":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"01d92436-558c-4193-83e6-3679b3c62e24","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"45f7e441-1140-327a-8b65-445355ea8f22","id":"1","poolType":"NetworkFilesystem","host":"10.0.100.15","path":"/mnt/Pool/primary","port":"2049","url":"NetworkFilesystem://10.0.100.15/mnt/Pool/primary/?ROLE=Primary&STOREUUID=45f7e441-1140-327a-8b65-445355ea8f22","isManaged":"false"}},"name":"ROOT-15","size":"(25.00 GB) 26843545600","path":"961cd170-e4ba-41c7-bbcc-5a4f431be036","volumeId":"15","vmName":"i-2-15-VM","accountId":"2","format":"VHD","provisioningType":"THIN","id":"15","deviceId":"0","bytesReadRate":"(0 bytes) 0","bytesWriteRate":"(0 bytes) 0","iopsReadRate":"(0 bytes) 0","i
 opsWriteRate":"(0 bytes) 0","cacheMode":"NONE","hypervisorType":"XenServer","directDownload":"false","deployAsIs":"false"}},"diskSeq":"0","path":"961cd170-e4ba-41c7-bbcc-5a4f431be036","type":"ROOT","_details":{"storageHost":"10.0.100.15","managed":"false","storagePort":"2049","volumeSize":"(25.00 GB) 26843545600"}},{"data":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"id":"0","format":"ISO","accountId":"0","hvm":"false","bootable":"false","directDownload":"false","deployAsIs":"false"}},"diskSeq":"3","type":"ISO"}],"nics":[{"deviceId":"0","networkRateMbps":"200","defaultNic":"true","pxeDisable":"false","nicUuid":"5bda150c-3c2a-48e1-8214-a98307dcb38d","details":{"ForgedTransmits":"true","MacAddressChanges":"true","PromiscuousMode":"false"},"dpdkEnabled":"false","uuid":"5443bcc5-ba80-4cba-b97e-5d6018d3f31a","ip":"192.168.105.115","netmask":"255.255.255.0","gateway":"192.168.105.1","mac":"1e:00:4d:00:02:58","dns1":"1.1.1.1","broadcastType":"Vlan","type":"Guest","broadcastUri":"
 vlan://0","isolationUri":"vlan://0","isSecurityGroupEnabled":"false","name":"GUEST"}],"vcpuMaxLimit":"1","guestOsDetails":{},"extraConfig":{}},"hostIp":"192.168.98.42","executeInSequence":"false","wait":"0","bypassHostMaintenance":"false"}}] }
   
   
   2021-09-30 07:20:49,433 DEBUG [c.c.h.x.r.CitrixResourceBase] (DirectAgent-100:ctx-4ff43df5) (logid:881f1761) Setting boottype=BIOS and bootmode=null for VM: 372a9372-82f5-3a56-49c6-ac967acb91ca
   
   all settings of vm have the option UEFI but before booting the vm there is a log mentioning boottype=BIOS
   
   
   i have found the command cloudstack-sccs
   
   
   
    
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] shwstppr commented on issue #5535: After installing 4.15.2.0 instances created from template with uefi cannot boot for second time (xcp-ng 8.2)

Posted by GitBox <gi...@apache.org>.
shwstppr commented on issue #5535:
URL: https://github.com/apache/cloudstack/issues/5535#issuecomment-930787520


   @AlexanderKgr can you please share following details:
   
   - Output of `cloudstack-sccs` on the management server
   - cmk `list virtualmachines id=YOUR_VM_UUID` output for the VM before starting the second time
   - After adding `TRACE` log level for `com.cloud.vm` in the `/usr/share/cloudstack-management/conf/log4j.xml` and restarting management server, complete logs for the start VM action (there are some logs in UserVmManagerImpl.java which tells what boot details are passed to the hypervisor plugin).
   ```
      <category name="com.cloud.vm">
        <priority value="TRACE"/>
      </category>
   ```
   
   I've tested stop-starting VMs with both ISO and template multiple times but I'm not being able to reproduce this so if you can share above details it will be really helpful.
   Also, in a reply on previous ticket you mentioned that router boot because that is really weird. As per code systems VM should always be booting in BIOS.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] AlexanderKgr edited a comment on issue #5535: After installing 4.15.2.0 instances created from template with uefi cannot boot for second time (xcp-ng 8.2)

Posted by GitBox <gi...@apache.org>.
AlexanderKgr edited a comment on issue #5535:
URL: https://github.com/apache/cloudstack/issues/5535#issuecomment-930947828


   info of the vm before starting
   [beforesecondstart.txt](https://github.com/apache/cloudstack/files/7257569/beforesecondstart.txt)
   logs
   [logs.txt](https://github.com/apache/cloudstack/files/7257582/logs.txt)
   
   and something strange in logs
   2021-09-30 07:20:46,524 TRACE [c.c.v.UserVmManagerImpl] (API-Job-Executor-5:ctx-edd8cde9 job-230 ctx-86c1a3bc) (logid:881f1761) Adding boot options (UefiFlag, BootType, BootMode) into the param map for VM start as **UEFI detail(UEFI=SECURE)** found for the VM
   
   
   2021-09-30 07:20:49,407 DEBUG [c.c.a.t.Request] (Work-Job-Executor-8:ctx-4f9eb591 job-230/job-231 ctx-64fe1ac2) (logid:881f1761) Seq 2-7868351498969677922: Sending  { Cmd , MgmtId: 52227725262, via: 2(xcp2), Ver: v1, Flags: 100011, [{"com.cloud.agent.api.StartCommand":{"vm":{"id":"15","name":"i-2-15-VM","bootloader":"PyGrub","state":"Starting","type":"User","cpus":"2","minSpeed":"1500","maxSpeed":"1500","minRam":"(2.00 GB) 2147483648","maxRam":"(2.00 GB) 2147483648","arch":"x86_64","os":"Windows 10 (64-bit)","platformEmulator":"Windows 10 (64-bit)","bootArgs":"","enableHA":"false","limitCpuUse":"false","enableDynamicallyScaleVm":"false","vncPassword":"CcecDXH0bEJPSqdEj5jJoQ","params":{"hypervisortoolsversion":"xenserver56",**"UEFI":"SECURE"**,"platform":"device-model:qemu-upstream-uefi;acpi_laptop_slate:1;videoram:8;viridian_stimer:true;apic:true;viridian:true;timeoffset:10799;viridian_reference_tsc:true;hpet:true;nx:true;viridian_time_ref_count:true;viridian_crash_ctl:true;vga:st
 d;viridian_apic_assist:true;cores-per-socket:2;pae:true;acpi:1;secureboot:true","Message.ReservedCapacityFreed.Flag":"false"},"uuid":"8b9a126c-1f11-4838-bae6-70f337d5c192","enterHardwareSetup":"false","disks":[{"data":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"01d92436-558c-4193-83e6-3679b3c62e24","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"45f7e441-1140-327a-8b65-445355ea8f22","id":"1","poolType":"NetworkFilesystem","host":"10.0.100.15","path":"/mnt/Pool/primary","port":"2049","url":"NetworkFilesystem://10.0.100.15/mnt/Pool/primary/?ROLE=Primary&STOREUUID=45f7e441-1140-327a-8b65-445355ea8f22","isManaged":"false"}},"name":"ROOT-15","size":"(25.00 GB) 26843545600","path":"961cd170-e4ba-41c7-bbcc-5a4f431be036","volumeId":"15","vmName":"i-2-15-VM","accountId":"2","format":"VHD","provisioningType":"THIN","id":"15","deviceId":"0","bytesReadRate":"(0 bytes) 0","bytesWriteRate":"(0 bytes) 0","iopsReadRate":"(0 bytes) 0","
 iopsWriteRate":"(0 bytes) 0","cacheMode":"NONE","hypervisorType":"XenServer","directDownload":"false","deployAsIs":"false"}},"diskSeq":"0","path":"961cd170-e4ba-41c7-bbcc-5a4f431be036","type":"ROOT","_details":{"storageHost":"10.0.100.15","managed":"false","storagePort":"2049","volumeSize":"(25.00 GB) 26843545600"}},{"data":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"id":"0","format":"ISO","accountId":"0","hvm":"false","bootable":"false","directDownload":"false","deployAsIs":"false"}},"diskSeq":"3","type":"ISO"}],"nics":[{"deviceId":"0","networkRateMbps":"200","defaultNic":"true","pxeDisable":"false","nicUuid":"5bda150c-3c2a-48e1-8214-a98307dcb38d","details":{"ForgedTransmits":"true","MacAddressChanges":"true","PromiscuousMode":"false"},"dpdkEnabled":"false","uuid":"5443bcc5-ba80-4cba-b97e-5d6018d3f31a","ip":"192.168.105.115","netmask":"255.255.255.0","gateway":"192.168.105.1","mac":"1e:00:4d:00:02:58","dns1":"1.1.1.1","broadcastType":"Vlan","type":"Guest","broadcastUri":
 "vlan://0","isolationUri":"vlan://0","isSecurityGroupEnabled":"false","name":"GUEST"}],"vcpuMaxLimit":"1","guestOsDetails":{},"extraConfig":{}},"hostIp":"192.168.98.42","executeInSequence":"false","wait":"0","bypassHostMaintenance":"false"}}] }
   2021-09-30 07:20:49,409 DEBUG [c.c.a.t.Request] (Work-Job-Executor-8:ctx-4f9eb591 job-230/job-231 ctx-64fe1ac2) (logid:881f1761) Seq 2-7868351498969677922: Executing:  { Cmd , MgmtId: 52227725262, via: 2(xcp2), Ver: v1, Flags: 100011, [{"com.cloud.agent.api.StartCommand":{"vm":{"id":"15","name":"i-2-15-VM","bootloader":"PyGrub","state":"Starting","type":"User","cpus":"2","minSpeed":"1500","maxSpeed":"1500","minRam":"(2.00 GB) 2147483648","maxRam":"(2.00 GB) 2147483648","arch":"x86_64","os":"Windows 10 (64-bit)","platformEmulator":"Windows 10 (64-bit)","bootArgs":"","enableHA":"false","limitCpuUse":"false","enableDynamicallyScaleVm":"false","vncPassword":"CcecDXH0bEJPSqdEj5jJoQ","params":{"hypervisortoolsversion":"xenserver56",**"UEFI":"SECURE"**,"platform":"device-model:qemu-upstream-uefi;acpi_laptop_slate:1;videoram:8;viridian_stimer:true;apic:true;viridian:true;timeoffset:10799;viridian_reference_tsc:true;hpet:true;nx:true;viridian_time_ref_count:true;viridian_crash_ctl:true;vga
 :std;viridian_apic_assist:true;cores-per-socket:2;pae:true;acpi:1;secureboot:true","Message.ReservedCapacityFreed.Flag":"false"},"uuid":"8b9a126c-1f11-4838-bae6-70f337d5c192","enterHardwareSetup":"false","disks":[{"data":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"01d92436-558c-4193-83e6-3679b3c62e24","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"45f7e441-1140-327a-8b65-445355ea8f22","id":"1","poolType":"NetworkFilesystem","host":"10.0.100.15","path":"/mnt/Pool/primary","port":"2049","url":"NetworkFilesystem://10.0.100.15/mnt/Pool/primary/?ROLE=Primary&STOREUUID=45f7e441-1140-327a-8b65-445355ea8f22","isManaged":"false"}},"name":"ROOT-15","size":"(25.00 GB) 26843545600","path":"961cd170-e4ba-41c7-bbcc-5a4f431be036","volumeId":"15","vmName":"i-2-15-VM","accountId":"2","format":"VHD","provisioningType":"THIN","id":"15","deviceId":"0","bytesReadRate":"(0 bytes) 0","bytesWriteRate":"(0 bytes) 0","iopsReadRate":"(0 bytes) 0
 ","iopsWriteRate":"(0 bytes) 0","cacheMode":"NONE","hypervisorType":"XenServer","directDownload":"false","deployAsIs":"false"}},"diskSeq":"0","path":"961cd170-e4ba-41c7-bbcc-5a4f431be036","type":"ROOT","_details":{"storageHost":"10.0.100.15","managed":"false","storagePort":"2049","volumeSize":"(25.00 GB) 26843545600"}},{"data":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"id":"0","format":"ISO","accountId":"0","hvm":"false","bootable":"false","directDownload":"false","deployAsIs":"false"}},"diskSeq":"3","type":"ISO"}],"nics":[{"deviceId":"0","networkRateMbps":"200","defaultNic":"true","pxeDisable":"false","nicUuid":"5bda150c-3c2a-48e1-8214-a98307dcb38d","details":{"ForgedTransmits":"true","MacAddressChanges":"true","PromiscuousMode":"false"},"dpdkEnabled":"false","uuid":"5443bcc5-ba80-4cba-b97e-5d6018d3f31a","ip":"192.168.105.115","netmask":"255.255.255.0","gateway":"192.168.105.1","mac":"1e:00:4d:00:02:58","dns1":"1.1.1.1","broadcastType":"Vlan","type":"Guest","broadcastUr
 i":"vlan://0","isolationUri":"vlan://0","isSecurityGroupEnabled":"false","name":"GUEST"}],"vcpuMaxLimit":"1","guestOsDetails":{},"extraConfig":{}},"hostIp":"192.168.98.42","executeInSequence":"false","wait":"0","bypassHostMaintenance":"false"}}] }
   
   
   2021-09-30 07:20:49,433 DEBUG [c.c.h.x.r.CitrixResourceBase] (DirectAgent-100:ctx-4ff43df5) (logid:881f1761)  Setting** boottype=BIOS and bootmode=null** for VM: 372a9372-82f5-3a56-49c6-ac967acb91ca
   
   all settings of vm have the option UEFI but before booting the vm there is a log mentioning boottype=BIOS
   
   
   i haven't found the command cloudstack-sccs
   
   
   
    
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] rhtyd commented on issue #5535: After installing 4.15.2.0 instances created from template with uefi cannot boot for second time (xcp-ng 8.2)

Posted by GitBox <gi...@apache.org>.
rhtyd commented on issue #5535:
URL: https://github.com/apache/cloudstack/issues/5535#issuecomment-933422857


   Thanks @AlexanderKgr 
   @nvazquez @sureshanaparti @weizhouapache I think our test for the PR should involve creating an existing VM on XenServer/XCP-ng (say 4.15.0 or 4.15.1) and then upgrading to the PR's pkgs (from main/4.16). Abhishek has a prototype PR but I'm not sure if it should work, needs testing, thanks.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] AlexanderKgr commented on issue #5535: After installing 4.15.2.0 instances created from template with uefi cannot boot for second time (xcp-ng 8.2)

Posted by GitBox <gi...@apache.org>.
AlexanderKgr commented on issue #5535:
URL: https://github.com/apache/cloudstack/issues/5535#issuecomment-933015129


   > Go to existing VM, and in stop stopped state you should be able to add/edit in the VM details or properties tab.
   
   added boottype and boot mode ad vm settings and the same happened
   
   ![image](https://user-images.githubusercontent.com/25532758/135769197-df91e200-37d3-4f4d-8e32-f1ab7aa9b026.png)
   
   
   ![image](https://user-images.githubusercontent.com/25532758/135769213-79ef0bf7-2a45-4f8c-b4a4-63d4e945bc89.png)
   
   
   and the startcommand
   
   2021-10-03 19:46:21,420 DEBUG [c.c.a.t.Request] (Work-Job-Executor-6:ctx-47ef3214 job-250/job-253 ctx-ece0542f) (logid:9798a514) Seq 1-2257147838242750495: Executing:  { Cmd , MgmtId: 52227725262, via: 1(xcp1), Ver: v1, Flags: 100011, [{"com.cloud.agent.api.StartCommand":{"vm":{"id":"15","name":"i-2-15-VM","bootloader":"PyGrub","state":"Starting","type":"User","cpus":"2","minSpeed":"1500","maxSpeed":"1500","minRam":"(2.00 GB) 2147483648","maxRam":"(2.00 GB) 2147483648","arch":"x86_64","os":"Windows 10 (64-bit)","platformEmulator":"Windows 10 (64-bit)","bootArgs":"","enableHA":"false","limitCpuUse":"false","enableDynamicallyScaleVm":"false","vncPassword":"CcecDXH0bEJPSqdEj5jJoQ","params":{"hypervisortoolsversion":"xenserver56","UEFI":"SECURE","platform":"device-model:qemu-upstream-uefi;acpi_laptop_slate:1;videoram:8;viridian_stimer:true;apic:true;viridian:true;timeoffset:10799;viridian_reference_tsc:true;hpet:true;nx:true;viridian_time_ref_count:true;viridian_crash_ctl:true;vga:std
 ;viridian_apic_assist:true;cores-per-socket:2;pae:true;acpi:1;secureboot:true;bootType:uefi;bootMode:secure;","Message.ReservedCapacityFreed.Flag":"false"},"uuid":"8b9a126c-1f11-4838-bae6-70f337d5c192","enterHardwareSetup":"false","disks":[{"data":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"01d92436-558c-4193-83e6-3679b3c62e24","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"45f7e441-1140-327a-8b65-445355ea8f22","id":"1","poolType":"NetworkFilesystem","host":"10.0.100.15","path":"/mnt/Pool/primary","port":"2049","url":"NetworkFilesystem://10.0.100.15/mnt/Pool/primary/?ROLE=Primary&STOREUUID=45f7e441-1140-327a-8b65-445355ea8f22","isManaged":"false"}},"name":"ROOT-15","size":"(25.00 GB) 26843545600","path":"961cd170-e4ba-41c7-bbcc-5a4f431be036","volumeId":"15","vmName":"i-2-15-VM","accountId":"2","format":"VHD","provisioningType":"THIN","id":"15","deviceId":"0","bytesReadRate":"(0 bytes) 0","bytesWriteRate":"(0 bytes) 0",
 "iopsReadRate":"(0 bytes) 0","iopsWriteRate":"(0 bytes) 0","cacheMode":"NONE","hypervisorType":"XenServer","directDownload":"false","deployAsIs":"false"}},"diskSeq":"0","path":"961cd170-e4ba-41c7-bbcc-5a4f431be036","type":"ROOT","_details":{"storageHost":"10.0.100.15","managed":"false","storagePort":"2049","volumeSize":"(25.00 GB) 26843545600"}},{"data":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"id":"0","format":"ISO","accountId":"0","hvm":"false","bootable":"false","directDownload":"false","deployAsIs":"false"}},"diskSeq":"3","type":"ISO"}],"nics":[{"deviceId":"0","networkRateMbps":"200","defaultNic":"true","pxeDisable":"false","nicUuid":"5bda150c-3c2a-48e1-8214-a98307dcb38d","details":{"PromiscuousMode":"false","ForgedTransmits":"true","MacAddressChanges":"true"},"dpdkEnabled":"false","uuid":"5443bcc5-ba80-4cba-b97e-5d6018d3f31a","ip":"192.168.105.115","netmask":"255.255.255.0","gateway":"192.168.105.1","mac":"1e:00:4d:00:02:58","dns1":"1.1.1.1","broadcastType":"Vlan",
 "type":"Guest","broadcastUri":"vlan://0","isolationUri":"vlan://0","isSecurityGroupEnabled":"false","name":"GUEST"}],"vcpuMaxLimit":"1","guestOsDetails":{},"extraConfig":{}},"hostIp":"192.168.98.41","executeInSequence":"false","wait":"0","bypassHostMaintenance":"false"}}] }
   
   Still there is this line
   
   ![image](https://user-images.githubusercontent.com/25532758/135769363-ee2d0dd0-afc2-4cfc-9212-baf9b14386c6.png)
   
   and i am uploading the log capture before i boot the vm until the error
   
   [log.txt](https://github.com/apache/cloudstack/files/7274455/log.txt)
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] AlexanderKgr edited a comment on issue #5535: After installing 4.15.2.0 instances created from template with uefi cannot boot for second time (xcp-ng 8.2)

Posted by GitBox <gi...@apache.org>.
AlexanderKgr edited a comment on issue #5535:
URL: https://github.com/apache/cloudstack/issues/5535#issuecomment-930947828


   info of the vm before starting
   [beforesecondstart.txt](https://github.com/apache/cloudstack/files/7257569/beforesecondstart.txt)
   logs
   [logs.txt](https://github.com/apache/cloudstack/files/7257582/logs.txt)
   
   and something strange in logs
   2021-09-30 07:20:46,524 TRACE [c.c.v.UserVmManagerImpl] (API-Job-Executor-5:ctx-edd8cde9 job-230 ctx-86c1a3bc) (logid:881f1761) Adding boot options (UefiFlag, BootType, BootMode) into the param map for VM start as UEFI detail(UEFI=SECURE) found for the VM
   
   
   2021-09-30 07:20:49,407 DEBUG [c.c.a.t.Request] (Work-Job-Executor-8:ctx-4f9eb591 job-230/job-231 ctx-64fe1ac2) (logid:881f1761) Seq 2-7868351498969677922: Sending  { Cmd , MgmtId: 52227725262, via: 2(xcp2), Ver: v1, Flags: 100011, [{"com.cloud.agent.api.StartCommand":{"vm":{"id":"15","name":"i-2-15-VM","bootloader":"PyGrub","state":"Starting","type":"User","cpus":"2","minSpeed":"1500","maxSpeed":"1500","minRam":"(2.00 GB) 2147483648","maxRam":"(2.00 GB) 2147483648","arch":"x86_64","os":"Windows 10 (64-bit)","platformEmulator":"Windows 10 (64-bit)","bootArgs":"","enableHA":"false","limitCpuUse":"false","enableDynamicallyScaleVm":"false","vncPassword":"CcecDXH0bEJPSqdEj5jJoQ","params":{"hypervisortoolsversion":"xenserver56","UEFI":"SECURE","platform":"device-model:qemu-upstream-uefi;acpi_laptop_slate:1;videoram:8;viridian_stimer:true;apic:true;viridian:true;timeoffset:10799;viridian_reference_tsc:true;hpet:true;nx:true;viridian_time_ref_count:true;viridian_crash_ctl:true;vga:std;vi
 ridian_apic_assist:true;cores-per-socket:2;pae:true;acpi:1;secureboot:true","Message.ReservedCapacityFreed.Flag":"false"},"uuid":"8b9a126c-1f11-4838-bae6-70f337d5c192","enterHardwareSetup":"false","disks":[{"data":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"01d92436-558c-4193-83e6-3679b3c62e24","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"45f7e441-1140-327a-8b65-445355ea8f22","id":"1","poolType":"NetworkFilesystem","host":"10.0.100.15","path":"/mnt/Pool/primary","port":"2049","url":"NetworkFilesystem://10.0.100.15/mnt/Pool/primary/?ROLE=Primary&STOREUUID=45f7e441-1140-327a-8b65-445355ea8f22","isManaged":"false"}},"name":"ROOT-15","size":"(25.00 GB) 26843545600","path":"961cd170-e4ba-41c7-bbcc-5a4f431be036","volumeId":"15","vmName":"i-2-15-VM","accountId":"2","format":"VHD","provisioningType":"THIN","id":"15","deviceId":"0","bytesReadRate":"(0 bytes) 0","bytesWriteRate":"(0 bytes) 0","iopsReadRate":"(0 bytes) 0","iops
 WriteRate":"(0 bytes) 0","cacheMode":"NONE","hypervisorType":"XenServer","directDownload":"false","deployAsIs":"false"}},"diskSeq":"0","path":"961cd170-e4ba-41c7-bbcc-5a4f431be036","type":"ROOT","_details":{"storageHost":"10.0.100.15","managed":"false","storagePort":"2049","volumeSize":"(25.00 GB) 26843545600"}},{"data":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"id":"0","format":"ISO","accountId":"0","hvm":"false","bootable":"false","directDownload":"false","deployAsIs":"false"}},"diskSeq":"3","type":"ISO"}],"nics":[{"deviceId":"0","networkRateMbps":"200","defaultNic":"true","pxeDisable":"false","nicUuid":"5bda150c-3c2a-48e1-8214-a98307dcb38d","details":{"ForgedTransmits":"true","MacAddressChanges":"true","PromiscuousMode":"false"},"dpdkEnabled":"false","uuid":"5443bcc5-ba80-4cba-b97e-5d6018d3f31a","ip":"192.168.105.115","netmask":"255.255.255.0","gateway":"192.168.105.1","mac":"1e:00:4d:00:02:58","dns1":"1.1.1.1","broadcastType":"Vlan","type":"Guest","broadcastUri":"vla
 n://0","isolationUri":"vlan://0","isSecurityGroupEnabled":"false","name":"GUEST"}],"vcpuMaxLimit":"1","guestOsDetails":{},"extraConfig":{}},"hostIp":"192.168.98.42","executeInSequence":"false","wait":"0","bypassHostMaintenance":"false"}}] }
   2021-09-30 07:20:49,409 DEBUG [c.c.a.t.Request] (Work-Job-Executor-8:ctx-4f9eb591 job-230/job-231 ctx-64fe1ac2) (logid:881f1761) Seq 2-7868351498969677922: Executing:  { Cmd , MgmtId: 52227725262, via: 2(xcp2), Ver: v1, Flags: 100011, [{"com.cloud.agent.api.StartCommand":{"vm":{"id":"15","name":"i-2-15-VM","bootloader":"PyGrub","state":"Starting","type":"User","cpus":"2","minSpeed":"1500","maxSpeed":"1500","minRam":"(2.00 GB) 2147483648","maxRam":"(2.00 GB) 2147483648","arch":"x86_64","os":"Windows 10 (64-bit)","platformEmulator":"Windows 10 (64-bit)","bootArgs":"","enableHA":"false","limitCpuUse":"false","enableDynamicallyScaleVm":"false","vncPassword":"CcecDXH0bEJPSqdEj5jJoQ","params":{"hypervisortoolsversion":"xenserver56","UEFI":"SECURE","platform":"device-model:qemu-upstream-uefi;acpi_laptop_slate:1;videoram:8;viridian_stimer:true;apic:true;viridian:true;timeoffset:10799;viridian_reference_tsc:true;hpet:true;nx:true;viridian_time_ref_count:true;viridian_crash_ctl:true;vga:std
 ;viridian_apic_assist:true;cores-per-socket:2;pae:true;acpi:1;secureboot:true","Message.ReservedCapacityFreed.Flag":"false"},"uuid":"8b9a126c-1f11-4838-bae6-70f337d5c192","enterHardwareSetup":"false","disks":[{"data":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"01d92436-558c-4193-83e6-3679b3c62e24","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"45f7e441-1140-327a-8b65-445355ea8f22","id":"1","poolType":"NetworkFilesystem","host":"10.0.100.15","path":"/mnt/Pool/primary","port":"2049","url":"NetworkFilesystem://10.0.100.15/mnt/Pool/primary/?ROLE=Primary&STOREUUID=45f7e441-1140-327a-8b65-445355ea8f22","isManaged":"false"}},"name":"ROOT-15","size":"(25.00 GB) 26843545600","path":"961cd170-e4ba-41c7-bbcc-5a4f431be036","volumeId":"15","vmName":"i-2-15-VM","accountId":"2","format":"VHD","provisioningType":"THIN","id":"15","deviceId":"0","bytesReadRate":"(0 bytes) 0","bytesWriteRate":"(0 bytes) 0","iopsReadRate":"(0 bytes) 0","i
 opsWriteRate":"(0 bytes) 0","cacheMode":"NONE","hypervisorType":"XenServer","directDownload":"false","deployAsIs":"false"}},"diskSeq":"0","path":"961cd170-e4ba-41c7-bbcc-5a4f431be036","type":"ROOT","_details":{"storageHost":"10.0.100.15","managed":"false","storagePort":"2049","volumeSize":"(25.00 GB) 26843545600"}},{"data":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"id":"0","format":"ISO","accountId":"0","hvm":"false","bootable":"false","directDownload":"false","deployAsIs":"false"}},"diskSeq":"3","type":"ISO"}],"nics":[{"deviceId":"0","networkRateMbps":"200","defaultNic":"true","pxeDisable":"false","nicUuid":"5bda150c-3c2a-48e1-8214-a98307dcb38d","details":{"ForgedTransmits":"true","MacAddressChanges":"true","PromiscuousMode":"false"},"dpdkEnabled":"false","uuid":"5443bcc5-ba80-4cba-b97e-5d6018d3f31a","ip":"192.168.105.115","netmask":"255.255.255.0","gateway":"192.168.105.1","mac":"1e:00:4d:00:02:58","dns1":"1.1.1.1","broadcastType":"Vlan","type":"Guest","broadcastUri":"
 vlan://0","isolationUri":"vlan://0","isSecurityGroupEnabled":"false","name":"GUEST"}],"vcpuMaxLimit":"1","guestOsDetails":{},"extraConfig":{}},"hostIp":"192.168.98.42","executeInSequence":"false","wait":"0","bypassHostMaintenance":"false"}}] }
   
   
   2021-09-30 07:20:49,433 DEBUG [c.c.h.x.r.CitrixResourceBase] (DirectAgent-100:ctx-4ff43df5) (logid:881f1761) Setting boottype=BIOS and bootmode=null for VM: 372a9372-82f5-3a56-49c6-ac967acb91ca
   
   all settings of vm have the option UEFI but before booting the vm there is a log mentioning boottype=BIOS
   
   
   i haven't found the command cloudstack-sccs
   
   
   
    
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] AlexanderKgr commented on issue #5535: After installing 4.15.2.0 instances created from template with uefi cannot boot for second time (xcp-ng 8.2)

Posted by GitBox <gi...@apache.org>.
AlexanderKgr commented on issue #5535:
URL: https://github.com/apache/cloudstack/issues/5535#issuecomment-930884075


   > @AlexanderKgr Yes, you can add a new rule for `com.cloud.vm` below the rule for `com.cloud`. Basically, it will then show TRACE logs only for package com.cloud.vm while continue logging only DEBUG logs for remaining packages of com.cloud.
   > 
   > `cloudstack-sccs` on the management server gives the commit SHA of the cloudstack-management package. Just to be sure that the packages you have installed are the latest and contain the PR commit.
   > 
   > More about cmk or cloudmonkey: https://github.com/apache/cloudstack-cloudmonkey
   
   i have enabled cloudmonkey and i am ready to send you the logs but i cannot run cloudstack -sccs
   
   ![image](https://user-images.githubusercontent.com/25532758/135403184-f42bd657-8963-413d-9ce4-a264c3301859.png)
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] shwstppr commented on issue #5535: After installing 4.15.2.0 instances created from template with uefi cannot boot for second time (xcp-ng 8.2)

Posted by GitBox <gi...@apache.org>.
shwstppr commented on issue #5535:
URL: https://github.com/apache/cloudstack/issues/5535#issuecomment-930831378


   @AlexanderKgr 
   Yes, you can add a new rule for `com.cloud.vm` below the rule for `com.cloud`.
   Basically, it will then show TRACE logs only for package com.cloud.vm while continue logging only DEBUG logs for remaining packages of com.cloud.
   
   `cloudstack-sccs` on the management server gives the commit SHA of the cloudstack-management package. Just to be sure that the packages you have installed are the latest and contain the PR commit.
   
   More about cmk or cloudmonkey: https://github.com/apache/cloudstack-cloudmonkey
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] rhtyd commented on issue #5535: After installing 4.15.2.0 instances created from template with uefi cannot boot for second time (xcp-ng 8.2)

Posted by GitBox <gi...@apache.org>.
rhtyd commented on issue #5535:
URL: https://github.com/apache/cloudstack/issues/5535#issuecomment-933399989


   @AlexanderKgr does it work for newly deployed VMs with the fix, i.e. after you upgrade to the packages and deploy a VM, stop it, are able to start it second time?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] AlexanderKgr edited a comment on issue #5535: After installing 4.15.2.0 instances created from template with uefi cannot boot for second time (xcp-ng 8.2)

Posted by GitBox <gi...@apache.org>.
AlexanderKgr edited a comment on issue #5535:
URL: https://github.com/apache/cloudstack/issues/5535#issuecomment-930947828


   info of the vm before starting
   [beforesecondstart.txt](https://github.com/apache/cloudstack/files/7257569/beforesecondstart.txt)
   logs
   [logs.txt](https://github.com/apache/cloudstack/files/7257582/logs.txt)
   
   and something strange in logs
   2021-09-30 07:20:46,524 TRACE [c.c.v.UserVmManagerImpl] (API-Job-Executor-5:ctx-edd8cde9 job-230 ctx-86c1a3bc) (logid:881f1761) Adding boot options (UefiFlag, BootType, BootMode) into the param map for VM start as **UEFI detail(UEFI=SECURE)** found for the VM
   
   
   2021-09-30 07:20:49,407 DEBUG [c.c.a.t.Request] (Work-Job-Executor-8:ctx-4f9eb591 job-230/job-231 ctx-64fe1ac2) (logid:881f1761) Seq 2-7868351498969677922: Sending  { Cmd , MgmtId: 52227725262, via: 2(xcp2), Ver: v1, Flags: 100011, [{"com.cloud.agent.api.StartCommand":{"vm":{"id":"15","name":"i-2-15-VM","bootloader":"PyGrub","state":"Starting","type":"User","cpus":"2","minSpeed":"1500","maxSpeed":"1500","minRam":"(2.00 GB) 2147483648","maxRam":"(2.00 GB) 2147483648","arch":"x86_64","os":"Windows 10 (64-bit)","platformEmulator":"Windows 10 (64-bit)","bootArgs":"","enableHA":"false","limitCpuUse":"false","enableDynamicallyScaleVm":"false","vncPassword":"CcecDXH0bEJPSqdEj5jJoQ","params":{"hypervisortoolsversion":"xenserver56",**"UEFI":"SECURE"**,"platform":"device-model:qemu-upstream-uefi;acpi_laptop_slate:1;videoram:8;viridian_stimer:true;apic:true;viridian:true;timeoffset:10799;viridian_reference_tsc:true;hpet:true;nx:true;viridian_time_ref_count:true;viridian_crash_ctl:true;vga:st
 d;viridian_apic_assist:true;cores-per-socket:2;pae:true;acpi:1;secureboot:true","Message.ReservedCapacityFreed.Flag":"false"},"uuid":"8b9a126c-1f11-4838-bae6-70f337d5c192","enterHardwareSetup":"false","disks":[{"data":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"01d92436-558c-4193-83e6-3679b3c62e24","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"45f7e441-1140-327a-8b65-445355ea8f22","id":"1","poolType":"NetworkFilesystem","host":"10.0.100.15","path":"/mnt/Pool/primary","port":"2049","url":"NetworkFilesystem://10.0.100.15/mnt/Pool/primary/?ROLE=Primary&STOREUUID=45f7e441-1140-327a-8b65-445355ea8f22","isManaged":"false"}},"name":"ROOT-15","size":"(25.00 GB) 26843545600","path":"961cd170-e4ba-41c7-bbcc-5a4f431be036","volumeId":"15","vmName":"i-2-15-VM","accountId":"2","format":"VHD","provisioningType":"THIN","id":"15","deviceId":"0","bytesReadRate":"(0 bytes) 0","bytesWriteRate":"(0 bytes) 0","iopsReadRate":"(0 bytes) 0","
 iopsWriteRate":"(0 bytes) 0","cacheMode":"NONE","hypervisorType":"XenServer","directDownload":"false","deployAsIs":"false"}},"diskSeq":"0","path":"961cd170-e4ba-41c7-bbcc-5a4f431be036","type":"ROOT","_details":{"storageHost":"10.0.100.15","managed":"false","storagePort":"2049","volumeSize":"(25.00 GB) 26843545600"}},{"data":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"id":"0","format":"ISO","accountId":"0","hvm":"false","bootable":"false","directDownload":"false","deployAsIs":"false"}},"diskSeq":"3","type":"ISO"}],"nics":[{"deviceId":"0","networkRateMbps":"200","defaultNic":"true","pxeDisable":"false","nicUuid":"5bda150c-3c2a-48e1-8214-a98307dcb38d","details":{"ForgedTransmits":"true","MacAddressChanges":"true","PromiscuousMode":"false"},"dpdkEnabled":"false","uuid":"5443bcc5-ba80-4cba-b97e-5d6018d3f31a","ip":"192.168.105.115","netmask":"255.255.255.0","gateway":"192.168.105.1","mac":"1e:00:4d:00:02:58","dns1":"1.1.1.1","broadcastType":"Vlan","type":"Guest","broadcastUri":
 "vlan://0","isolationUri":"vlan://0","isSecurityGroupEnabled":"false","name":"GUEST"}],"vcpuMaxLimit":"1","guestOsDetails":{},"extraConfig":{}},"hostIp":"192.168.98.42","executeInSequence":"false","wait":"0","bypassHostMaintenance":"false"}}] }
   2021-09-30 07:20:49,409 DEBUG [c.c.a.t.Request] (Work-Job-Executor-8:ctx-4f9eb591 job-230/job-231 ctx-64fe1ac2) (logid:881f1761) Seq 2-7868351498969677922: Executing:  { Cmd , MgmtId: 52227725262, via: 2(xcp2), Ver: v1, Flags: 100011, [{"com.cloud.agent.api.StartCommand":{"vm":{"id":"15","name":"i-2-15-VM","bootloader":"PyGrub","state":"Starting","type":"User","cpus":"2","minSpeed":"1500","maxSpeed":"1500","minRam":"(2.00 GB) 2147483648","maxRam":"(2.00 GB) 2147483648","arch":"x86_64","os":"Windows 10 (64-bit)","platformEmulator":"Windows 10 (64-bit)","bootArgs":"","enableHA":"false","limitCpuUse":"false","enableDynamicallyScaleVm":"false","vncPassword":"CcecDXH0bEJPSqdEj5jJoQ","params":{"hypervisortoolsversion":"xenserver56",**"UEFI":"SECURE"**,"platform":"device-model:qemu-upstream-uefi;acpi_laptop_slate:1;videoram:8;viridian_stimer:true;apic:true;viridian:true;timeoffset:10799;viridian_reference_tsc:true;hpet:true;nx:true;viridian_time_ref_count:true;viridian_crash_ctl:true;vga
 :std;viridian_apic_assist:true;cores-per-socket:2;pae:true;acpi:1;secureboot:true","Message.ReservedCapacityFreed.Flag":"false"},"uuid":"8b9a126c-1f11-4838-bae6-70f337d5c192","enterHardwareSetup":"false","disks":[{"data":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"01d92436-558c-4193-83e6-3679b3c62e24","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"45f7e441-1140-327a-8b65-445355ea8f22","id":"1","poolType":"NetworkFilesystem","host":"10.0.100.15","path":"/mnt/Pool/primary","port":"2049","url":"NetworkFilesystem://10.0.100.15/mnt/Pool/primary/?ROLE=Primary&STOREUUID=45f7e441-1140-327a-8b65-445355ea8f22","isManaged":"false"}},"name":"ROOT-15","size":"(25.00 GB) 26843545600","path":"961cd170-e4ba-41c7-bbcc-5a4f431be036","volumeId":"15","vmName":"i-2-15-VM","accountId":"2","format":"VHD","provisioningType":"THIN","id":"15","deviceId":"0","bytesReadRate":"(0 bytes) 0","bytesWriteRate":"(0 bytes) 0","iopsReadRate":"(0 bytes) 0
 ","iopsWriteRate":"(0 bytes) 0","cacheMode":"NONE","hypervisorType":"XenServer","directDownload":"false","deployAsIs":"false"}},"diskSeq":"0","path":"961cd170-e4ba-41c7-bbcc-5a4f431be036","type":"ROOT","_details":{"storageHost":"10.0.100.15","managed":"false","storagePort":"2049","volumeSize":"(25.00 GB) 26843545600"}},{"data":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"id":"0","format":"ISO","accountId":"0","hvm":"false","bootable":"false","directDownload":"false","deployAsIs":"false"}},"diskSeq":"3","type":"ISO"}],"nics":[{"deviceId":"0","networkRateMbps":"200","defaultNic":"true","pxeDisable":"false","nicUuid":"5bda150c-3c2a-48e1-8214-a98307dcb38d","details":{"ForgedTransmits":"true","MacAddressChanges":"true","PromiscuousMode":"false"},"dpdkEnabled":"false","uuid":"5443bcc5-ba80-4cba-b97e-5d6018d3f31a","ip":"192.168.105.115","netmask":"255.255.255.0","gateway":"192.168.105.1","mac":"1e:00:4d:00:02:58","dns1":"1.1.1.1","broadcastType":"Vlan","type":"Guest","broadcastUr
 i":"vlan://0","isolationUri":"vlan://0","isSecurityGroupEnabled":"false","name":"GUEST"}],"vcpuMaxLimit":"1","guestOsDetails":{},"extraConfig":{}},"hostIp":"192.168.98.42","executeInSequence":"false","wait":"0","bypassHostMaintenance":"false"}}] }
   
   
   2021-09-30 07:20:49,433 DEBUG [c.c.h.x.r.CitrixResourceBase] (DirectAgent-100:ctx-4ff43df5) (logid:881f1761)  Setting ###** boottype=BIOS and bootmode=null** for VM: 372a9372-82f5-3a56-49c6-ac967acb91ca
   
   all settings of vm have the option UEFI but before booting the vm there is a log mentioning boottype=BIOS
   
   
   i haven't found the command cloudstack-sccs
   
   
   
    
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] rhtyd commented on issue #5535: After installing 4.15.2.0 instances created from template with uefi cannot boot for second time (xcp-ng 8.2)

Posted by GitBox <gi...@apache.org>.
rhtyd commented on issue #5535:
URL: https://github.com/apache/cloudstack/issues/5535#issuecomment-932900591


   Go to existing VM, and in stop stopped state you should be able to add/edit in the VM details or properties tab. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] AlexanderKgr edited a comment on issue #5535: After installing 4.15.2.0 instances created from template with uefi cannot boot for second time (xcp-ng 8.2)

Posted by GitBox <gi...@apache.org>.
AlexanderKgr edited a comment on issue #5535:
URL: https://github.com/apache/cloudstack/issues/5535#issuecomment-933015129


   > Go to existing VM, and in stop stopped state you should be able to add/edit in the VM details or properties tab.
   
   added boottype and boot mode ad vm settings and the same happened
   
   ![image](https://user-images.githubusercontent.com/25532758/135769197-df91e200-37d3-4f4d-8e32-f1ab7aa9b026.png)
   
   
   ![image](https://user-images.githubusercontent.com/25532758/135769213-79ef0bf7-2a45-4f8c-b4a4-63d4e945bc89.png)
   
   
   and the startcommand
   
   2021-10-03 19:46:21,420 DEBUG [c.c.a.t.Request] (Work-Job-Executor-6:ctx-47ef3214 job-250/job-253 ctx-ece0542f) (logid:9798a514) Seq 1-2257147838242750495: Executing:  { Cmd , MgmtId: 52227725262, via: 1(xcp1), Ver: v1, Flags: 100011, [{"com.cloud.agent.api.StartCommand":{"vm":{"id":"15","name":"i-2-15-VM","bootloader":"PyGrub","state":"Starting","type":"User","cpus":"2","minSpeed":"1500","maxSpeed":"1500","minRam":"(2.00 GB) 2147483648","maxRam":"(2.00 GB) 2147483648","arch":"x86_64","os":"Windows 10 (64-bit)","platformEmulator":"Windows 10 (64-bit)","bootArgs":"","enableHA":"false","limitCpuUse":"false","enableDynamicallyScaleVm":"false","vncPassword":"CcecDXH0bEJPSqdEj5jJoQ","params":{"hypervisortoolsversion":"xenserver56","UEFI":"SECURE","platform":"device-model:qemu-upstream-uefi;acpi_laptop_slate:1;videoram:8;viridian_stimer:true;apic:true;viridian:true;timeoffset:10799;viridian_reference_tsc:true;hpet:true;nx:true;viridian_time_ref_count:true;viridian_crash_ctl:true;vga:std
 ;viridian_apic_assist:true;cores-per-socket:2;pae:true;acpi:1;secureboot:true;bootType:uefi;bootMode:secure;","Message.ReservedCapacityFreed.Flag":"false"},"uuid":"8b9a126c-1f11-4838-bae6-70f337d5c192","enterHardwareSetup":"false","disks":[{"data":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"01d92436-558c-4193-83e6-3679b3c62e24","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"45f7e441-1140-327a-8b65-445355ea8f22","id":"1","poolType":"NetworkFilesystem","host":"10.0.100.15","path":"/mnt/Pool/primary","port":"2049","url":"NetworkFilesystem://10.0.100.15/mnt/Pool/primary/?ROLE=Primary&STOREUUID=45f7e441-1140-327a-8b65-445355ea8f22","isManaged":"false"}},"name":"ROOT-15","size":"(25.00 GB) 26843545600","path":"961cd170-e4ba-41c7-bbcc-5a4f431be036","volumeId":"15","vmName":"i-2-15-VM","accountId":"2","format":"VHD","provisioningType":"THIN","id":"15","deviceId":"0","bytesReadRate":"(0 bytes) 0","bytesWriteRate":"(0 bytes) 0",
 "iopsReadRate":"(0 bytes) 0","iopsWriteRate":"(0 bytes) 0","cacheMode":"NONE","hypervisorType":"XenServer","directDownload":"false","deployAsIs":"false"}},"diskSeq":"0","path":"961cd170-e4ba-41c7-bbcc-5a4f431be036","type":"ROOT","_details":{"storageHost":"10.0.100.15","managed":"false","storagePort":"2049","volumeSize":"(25.00 GB) 26843545600"}},{"data":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"id":"0","format":"ISO","accountId":"0","hvm":"false","bootable":"false","directDownload":"false","deployAsIs":"false"}},"diskSeq":"3","type":"ISO"}],"nics":[{"deviceId":"0","networkRateMbps":"200","defaultNic":"true","pxeDisable":"false","nicUuid":"5bda150c-3c2a-48e1-8214-a98307dcb38d","details":{"PromiscuousMode":"false","ForgedTransmits":"true","MacAddressChanges":"true"},"dpdkEnabled":"false","uuid":"5443bcc5-ba80-4cba-b97e-5d6018d3f31a","ip":"192.168.105.115","netmask":"255.255.255.0","gateway":"192.168.105.1","mac":"1e:00:4d:00:02:58","dns1":"1.1.1.1","broadcastType":"Vlan",
 "type":"Guest","broadcastUri":"vlan://0","isolationUri":"vlan://0","isSecurityGroupEnabled":"false","name":"GUEST"}],"vcpuMaxLimit":"1","guestOsDetails":{},"extraConfig":{}},"hostIp":"192.168.98.41","executeInSequence":"false","wait":"0","bypassHostMaintenance":"false"}}] }
   
   Still there is this line in logs
   
   ![image](https://user-images.githubusercontent.com/25532758/135769363-ee2d0dd0-afc2-4cfc-9212-baf9b14386c6.png)
   
   and i am uploading the log capture before i boot the vm until the error
   
   [log.txt](https://github.com/apache/cloudstack/files/7274455/log.txt)
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] AlexanderKgr commented on issue #5535: After installing 4.15.2.0 instances created from template with uefi cannot boot for second time (xcp-ng 8.2)

Posted by GitBox <gi...@apache.org>.
AlexanderKgr commented on issue #5535:
URL: https://github.com/apache/cloudstack/issues/5535#issuecomment-933418313


   > @AlexanderKgr does it work for newly deployed VMs with the fix, i.e. after you upgrade to the packages and deploy a VM, stop it, are able to start it second time?
   
   It is working with vms created only with iso. Vms created with iso can shutdown and boot without problems. 
   Vms created with templates created from previous CS versions, can boot only after creation. If i shutdown them and boot them there issue


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] shwstppr commented on issue #5535: After installing 4.15.2.0 instances created from template with uefi cannot boot for second time (xcp-ng 8.2)

Posted by GitBox <gi...@apache.org>.
shwstppr commented on issue #5535:
URL: https://github.com/apache/cloudstack/issues/5535#issuecomment-931954156


   @AlexanderKgr Thanks for the confirmation. Though I'm not being able to reproduce this. StartCommand logs that you have given somehow missing `bootType` and `bootMode` properties.
   Anyway, I've created a draft PR to use the VM details directly similar to other hypervisor plugins which should address the issue in such cases.
   cc @rhtyd 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] AlexanderKgr commented on issue #5535: After installing 4.15.2.0 instances created from template with uefi cannot boot for second time (xcp-ng 8.2)

Posted by GitBox <gi...@apache.org>.
AlexanderKgr commented on issue #5535:
URL: https://github.com/apache/cloudstack/issues/5535#issuecomment-932454851


   > @AlexanderKgr Thanks for the confirmation. Though I'm not being able to reproduce this. StartCommand logs that you have given somehow missing `bootType` and `bootMode` properties.
   > Anyway, I've created a draft PR to use the VM details directly similar to other hypervisor plugins which should address the issue in such cases.
   > cc @rhtyd 
   
   Inform me when merged to test it


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] rhtyd commented on issue #5535: After installing 4.15.2.0 instances created from template with uefi cannot boot for second time (xcp-ng 8.2)

Posted by GitBox <gi...@apache.org>.
rhtyd commented on issue #5535:
URL: https://github.com/apache/cloudstack/issues/5535#issuecomment-932897788


   @AlexanderKgr does it fix if you were to add the bootType and bootMode properties for your VM?
   
   cc @nvazquez @sureshanaparti I've added this to 4.16.0.0 as @shwstppr has proposed a PR and this issue has been bugging since 4.15.1


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] AlexanderKgr edited a comment on issue #5535: After installing 4.15.2.0 instances created from template with uefi cannot boot for second time (xcp-ng 8.2)

Posted by GitBox <gi...@apache.org>.
AlexanderKgr edited a comment on issue #5535:
URL: https://github.com/apache/cloudstack/issues/5535#issuecomment-930947828


   info of the vm before starting
   [beforesecondstart.txt](https://github.com/apache/cloudstack/files/7257569/beforesecondstart.txt)
   logs
   [logs.txt](https://github.com/apache/cloudstack/files/7257582/logs.txt)
   
   and something strange in logs
   2021-09-30 07:20:46,524 TRACE [c.c.v.UserVmManagerImpl] (API-Job-Executor-5:ctx-edd8cde9 job-230 ctx-86c1a3bc) (logid:881f1761) Adding boot options (UefiFlag, BootType, BootMode) into the param map for VM start as **UEFI detail(UEFI=SECURE)** found for the VM
   
   
   2021-09-30 07:20:49,407 DEBUG [c.c.a.t.Request] (Work-Job-Executor-8:ctx-4f9eb591 job-230/job-231 ctx-64fe1ac2) (logid:881f1761) Seq 2-7868351498969677922: Sending  { Cmd , MgmtId: 52227725262, via: 2(xcp2), Ver: v1, Flags: 100011, [{"com.cloud.agent.api.StartCommand":{"vm":{"id":"15","name":"i-2-15-VM","bootloader":"PyGrub","state":"Starting","type":"User","cpus":"2","minSpeed":"1500","maxSpeed":"1500","minRam":"(2.00 GB) 2147483648","maxRam":"(2.00 GB) 2147483648","arch":"x86_64","os":"Windows 10 (64-bit)","platformEmulator":"Windows 10 (64-bit)","bootArgs":"","enableHA":"false","limitCpuUse":"false","enableDynamicallyScaleVm":"false","vncPassword":"CcecDXH0bEJPSqdEj5jJoQ","params":{"hypervisortoolsversion":"xenserver56",**"UEFI":"SECURE"**,"platform":"device-model:qemu-upstream-uefi;acpi_laptop_slate:1;videoram:8;viridian_stimer:true;apic:true;viridian:true;timeoffset:10799;viridian_reference_tsc:true;hpet:true;nx:true;viridian_time_ref_count:true;viridian_crash_ctl:true;vga:st
 d;viridian_apic_assist:true;cores-per-socket:2;pae:true;acpi:1;secureboot:true","Message.ReservedCapacityFreed.Flag":"false"},"uuid":"8b9a126c-1f11-4838-bae6-70f337d5c192","enterHardwareSetup":"false","disks":[{"data":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"01d92436-558c-4193-83e6-3679b3c62e24","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"45f7e441-1140-327a-8b65-445355ea8f22","id":"1","poolType":"NetworkFilesystem","host":"10.0.100.15","path":"/mnt/Pool/primary","port":"2049","url":"NetworkFilesystem://10.0.100.15/mnt/Pool/primary/?ROLE=Primary&STOREUUID=45f7e441-1140-327a-8b65-445355ea8f22","isManaged":"false"}},"name":"ROOT-15","size":"(25.00 GB) 26843545600","path":"961cd170-e4ba-41c7-bbcc-5a4f431be036","volumeId":"15","vmName":"i-2-15-VM","accountId":"2","format":"VHD","provisioningType":"THIN","id":"15","deviceId":"0","bytesReadRate":"(0 bytes) 0","bytesWriteRate":"(0 bytes) 0","iopsReadRate":"(0 bytes) 0","
 iopsWriteRate":"(0 bytes) 0","cacheMode":"NONE","hypervisorType":"XenServer","directDownload":"false","deployAsIs":"false"}},"diskSeq":"0","path":"961cd170-e4ba-41c7-bbcc-5a4f431be036","type":"ROOT","_details":{"storageHost":"10.0.100.15","managed":"false","storagePort":"2049","volumeSize":"(25.00 GB) 26843545600"}},{"data":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"id":"0","format":"ISO","accountId":"0","hvm":"false","bootable":"false","directDownload":"false","deployAsIs":"false"}},"diskSeq":"3","type":"ISO"}],"nics":[{"deviceId":"0","networkRateMbps":"200","defaultNic":"true","pxeDisable":"false","nicUuid":"5bda150c-3c2a-48e1-8214-a98307dcb38d","details":{"ForgedTransmits":"true","MacAddressChanges":"true","PromiscuousMode":"false"},"dpdkEnabled":"false","uuid":"5443bcc5-ba80-4cba-b97e-5d6018d3f31a","ip":"192.168.105.115","netmask":"255.255.255.0","gateway":"192.168.105.1","mac":"1e:00:4d:00:02:58","dns1":"1.1.1.1","broadcastType":"Vlan","type":"Guest","broadcastUri":
 "vlan://0","isolationUri":"vlan://0","isSecurityGroupEnabled":"false","name":"GUEST"}],"vcpuMaxLimit":"1","guestOsDetails":{},"extraConfig":{}},"hostIp":"192.168.98.42","executeInSequence":"false","wait":"0","bypassHostMaintenance":"false"}}] }
   2021-09-30 07:20:49,409 DEBUG [c.c.a.t.Request] (Work-Job-Executor-8:ctx-4f9eb591 job-230/job-231 ctx-64fe1ac2) (logid:881f1761) Seq 2-7868351498969677922: Executing:  { Cmd , MgmtId: 52227725262, via: 2(xcp2), Ver: v1, Flags: 100011, [{"com.cloud.agent.api.StartCommand":{"vm":{"id":"15","name":"i-2-15-VM","bootloader":"PyGrub","state":"Starting","type":"User","cpus":"2","minSpeed":"1500","maxSpeed":"1500","minRam":"(2.00 GB) 2147483648","maxRam":"(2.00 GB) 2147483648","arch":"x86_64","os":"Windows 10 (64-bit)","platformEmulator":"Windows 10 (64-bit)","bootArgs":"","enableHA":"false","limitCpuUse":"false","enableDynamicallyScaleVm":"false","vncPassword":"CcecDXH0bEJPSqdEj5jJoQ","params":{"hypervisortoolsversion":"xenserver56",**"UEFI":"SECURE"**,"platform":"device-model:qemu-upstream-uefi;acpi_laptop_slate:1;videoram:8;viridian_stimer:true;apic:true;viridian:true;timeoffset:10799;viridian_reference_tsc:true;hpet:true;nx:true;viridian_time_ref_count:true;viridian_crash_ctl:true;vga
 :std;viridian_apic_assist:true;cores-per-socket:2;pae:true;acpi:1;secureboot:true","Message.ReservedCapacityFreed.Flag":"false"},"uuid":"8b9a126c-1f11-4838-bae6-70f337d5c192","enterHardwareSetup":"false","disks":[{"data":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"01d92436-558c-4193-83e6-3679b3c62e24","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"45f7e441-1140-327a-8b65-445355ea8f22","id":"1","poolType":"NetworkFilesystem","host":"10.0.100.15","path":"/mnt/Pool/primary","port":"2049","url":"NetworkFilesystem://10.0.100.15/mnt/Pool/primary/?ROLE=Primary&STOREUUID=45f7e441-1140-327a-8b65-445355ea8f22","isManaged":"false"}},"name":"ROOT-15","size":"(25.00 GB) 26843545600","path":"961cd170-e4ba-41c7-bbcc-5a4f431be036","volumeId":"15","vmName":"i-2-15-VM","accountId":"2","format":"VHD","provisioningType":"THIN","id":"15","deviceId":"0","bytesReadRate":"(0 bytes) 0","bytesWriteRate":"(0 bytes) 0","iopsReadRate":"(0 bytes) 0
 ","iopsWriteRate":"(0 bytes) 0","cacheMode":"NONE","hypervisorType":"XenServer","directDownload":"false","deployAsIs":"false"}},"diskSeq":"0","path":"961cd170-e4ba-41c7-bbcc-5a4f431be036","type":"ROOT","_details":{"storageHost":"10.0.100.15","managed":"false","storagePort":"2049","volumeSize":"(25.00 GB) 26843545600"}},{"data":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"id":"0","format":"ISO","accountId":"0","hvm":"false","bootable":"false","directDownload":"false","deployAsIs":"false"}},"diskSeq":"3","type":"ISO"}],"nics":[{"deviceId":"0","networkRateMbps":"200","defaultNic":"true","pxeDisable":"false","nicUuid":"5bda150c-3c2a-48e1-8214-a98307dcb38d","details":{"ForgedTransmits":"true","MacAddressChanges":"true","PromiscuousMode":"false"},"dpdkEnabled":"false","uuid":"5443bcc5-ba80-4cba-b97e-5d6018d3f31a","ip":"192.168.105.115","netmask":"255.255.255.0","gateway":"192.168.105.1","mac":"1e:00:4d:00:02:58","dns1":"1.1.1.1","broadcastType":"Vlan","type":"Guest","broadcastUr
 i":"vlan://0","isolationUri":"vlan://0","isSecurityGroupEnabled":"false","name":"GUEST"}],"vcpuMaxLimit":"1","guestOsDetails":{},"extraConfig":{}},"hostIp":"192.168.98.42","executeInSequence":"false","wait":"0","bypassHostMaintenance":"false"}}] }
   
   
   2021-09-30 07:20:49,433 DEBUG [c.c.h.x.r.CitrixResourceBase] (DirectAgent-100:ctx-4ff43df5) (logid:881f1761)  Setting **boottype=BIOS and bootmode=null** for VM: 372a9372-82f5-3a56-49c6-ac967acb91ca
   
   all settings of vm have the option UEFI but before booting the vm there is a log mentioning boottype=BIOS
   
   
   i haven't found the command cloudstack-sccs
   
   
   
    
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] shwstppr commented on issue #5535: After installing 4.15.2.0 instances created from template with uefi cannot boot for second time (xcp-ng 8.2)

Posted by GitBox <gi...@apache.org>.
shwstppr commented on issue #5535:
URL: https://github.com/apache/cloudstack/issues/5535#issuecomment-931274123


   @AlexanderKgr nevermind `cloudstack-sccs`. Last highlighted logs indicate that you are having packages with the earlier fix. It should be present in `/usr/bin/cloudstack-sccs`. Not sure if on Ubuntu it is at some other place.
   
   Can you please confirm the reproduction steps:
   
   1. Deploy a VM using a template from UI and select boot options for UEFI there.
   2. Stop the VM from stop VM action in UI or stopVirtualMachine API
   3. Start VM again once stopped from UI action or using startVirtualMachine API
   VM fails to boot with this.
   
   Sorry for this basic check but for some reason StartCommand params in your logs are missing some details so wanted to confirm. StartCommand in my env looks like,
   ```
   2021-09-30 12:01:49,069 DEBUG [c.c.a.t.Request] (Work-Job-Executor-158:ctx-409989d0 job-306/job-307 ctx-e9ee5ebb) (logid:b1cdc387) Seq 1-7118783635989203134: Sending  { Cmd , MgmtId: 32987194327951, via: 1(pr5201-t2249-xcpng82-xs1), Ver: v1, Flags: 100011, [{"com.cloud.agent.api.StartCommand":{"vm":{"id":"25","name":"i-2-25-VM","bootloader":"PyGrub","state":"Starting","type":"User","cpus":"1","minSpeed":"250","maxSpeed":"500","minRam":"(512.00 MB) 536870912","maxRam":"(512.00 MB) 536870912","arch":"x86_64","os":"Amazon Linux 2 (64 bit)","bootArgs":"","enableHA":"false","limitCpuUse":"false","enableDynamicallyScaleVm":"false","vncPassword":"LQ0tja8DSoXbHpCSjryFFA","params":{"hypervisortoolsversion":"xenserver56","cpuOvercommitRatio":"2.0","UEFI":"SECURE","platform":"device-model:qemu-upstream-uefi;apic:true;viridian:true;timeoffset:0;pae:true;acpi:1;hpet:true;secureboot:true;nx:true","memoryOvercommitRatio":"1.0","Message.ReservedCapacityFreed.Flag":"false"},"uuid":"3d196004-94c2-4
 de9-98a9-15205d9dd64d","bootType":"UEFI","bootMode":"SECURE","enterHardwareSetup":"false","disks":[{"data":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"b0ad3853-94d5-4fa6-88ee-0e8ac8c1d249","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"52972655-e07e-3449-99c5-d4bcfd546511","name":"pr5201-t2249-xcpng82-xs-pri1","id":"1","poolType":"NetworkFilesystem","host":"10.0.32.4","path":"/acs/primary/pr5201-t2249-xcpng82/pr5201-t2249-xcpng82-xs-pri1","port":"2049","url":"NetworkFilesystem://10.0.32.4/acs/primary/pr5201-t2249-xcpng82/pr5201-t2249-xcpng82-xs-pri1/?ROLE=Primary&STOREUUID=52972655-e07e-3449-99c5-d4bcfd546511","isManaged":"false"}},"name":"ROOT-25","size":"(50.00 MB) 52428800","path":"aa93fb19-398b-4878-adb4-3e512cf84e30","volumeId":"25","vmName":"i-2-25-VM","accountId":"2","format":"VHD","provisioningType":"THIN","poolId":"1","id":"25","deviceId":"0","bytesReadRate":"(0 bytes) 0","bytesWriteRate":"(0 bytes) 0","iopsRe
 adRate":"(0 bytes) 0","iopsWriteRate":"(0 bytes) 0","hypervisorType":"XenServer","directDownload":"false","deployAsIs":"false"}},"diskSeq":"0","path":"aa93fb19-398b-4878-adb4-3e512cf84e30","type":"ROOT","_details":{"storageHost":"10.0.32.4","managed":"false","storagePort":"2049","storage.pool.disk.wait":"60","volumeSize":"(50.00 MB) 52428800"}},{"data":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"id":"0","format":"ISO","accountId":"0","hvm":"false","bootable":"false","directDownload":"false","deployAsIs":"false"}},"diskSeq":"3","type":"ISO"}],"nics":[{"deviceId":"0","networkRateMbps":"200","defaultNic":"true","pxeDisable":"false","nicUuid":"129a8857-495c-4bff-bc56-a19141fe12cc","details":{"PromiscuousMode":"false","MacAddressChanges":"true","ForgedTransmits":"true"},"dpdkEnabled":"false","uuid":"26eb1922-f7da-4ca8-8706-1015ed13ca2d","ip":"10.1.1.182","netmask":"255.255.255.0","gateway":"10.1.1.1","mac":"02:00:68:31:00:16","dns1":"10.0.32.1","dns2":"8.8.8.8","broadcastType"
 :"Vlan","type":"Guest","broadcastUri":"vlan://2133","isolationUri":"vlan://2133","isSecurityGroupEnabled":"false","name":"Network1"}],"vcpuMaxLimit":"3","configDriveLocation":"SECONDARY","guestOsDetails":{},"extraConfig":{}},"hostIp":"10.0.34.197","executeInSequence":"false","wait":"0","bypassHostMaintenance":"false"}}] }
   ```
   ^^ It has `bootType` and `bootMode` after VM UUI which seems to be not present in the logs you shared.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] AlexanderKgr edited a comment on issue #5535: After installing 4.15.2.0 instances created from template with uefi cannot boot for second time (xcp-ng 8.2)

Posted by GitBox <gi...@apache.org>.
AlexanderKgr edited a comment on issue #5535:
URL: https://github.com/apache/cloudstack/issues/5535#issuecomment-930947828


   info of the vm before starting
   [beforesecondstart.txt](https://github.com/apache/cloudstack/files/7257569/beforesecondstart.txt)
   logs
   [logs.txt](https://github.com/apache/cloudstack/files/7257582/logs.txt)
   
   and something strange in logs
   2021-09-30 07:20:46,524 TRACE [c.c.v.UserVmManagerImpl] (API-Job-Executor-5:ctx-edd8cde9 job-230 ctx-86c1a3bc) (logid:881f1761) Adding boot options (UefiFlag, BootType, BootMode) into the param map for VM start as **UEFI detail(UEFI=SECURE)** found for the VM
   
   
   2021-09-30 07:20:49,407 DEBUG [c.c.a.t.Request] (Work-Job-Executor-8:ctx-4f9eb591 job-230/job-231 ctx-64fe1ac2) (logid:881f1761) Seq 2-7868351498969677922: Sending  { Cmd , MgmtId: 52227725262, via: 2(xcp2), Ver: v1, Flags: 100011, [{"com.cloud.agent.api.StartCommand":{"vm":{"id":"15","name":"i-2-15-VM","bootloader":"PyGrub","state":"Starting","type":"User","cpus":"2","minSpeed":"1500","maxSpeed":"1500","minRam":"(2.00 GB) 2147483648","maxRam":"(2.00 GB) 2147483648","arch":"x86_64","os":"Windows 10 (64-bit)","platformEmulator":"Windows 10 (64-bit)","bootArgs":"","enableHA":"false","limitCpuUse":"false","enableDynamicallyScaleVm":"false","vncPassword":"CcecDXH0bEJPSqdEj5jJoQ","params":{"hypervisortoolsversion":"xenserver56",**"UEFI":"SECURE"**,"platform":"device-model:qemu-upstream-uefi;acpi_laptop_slate:1;videoram:8;viridian_stimer:true;apic:true;viridian:true;timeoffset:10799;viridian_reference_tsc:true;hpet:true;nx:true;viridian_time_ref_count:true;viridian_crash_ctl:true;vga:st
 d;viridian_apic_assist:true;cores-per-socket:2;pae:true;acpi:1;secureboot:true","Message.ReservedCapacityFreed.Flag":"false"},"uuid":"8b9a126c-1f11-4838-bae6-70f337d5c192","enterHardwareSetup":"false","disks":[{"data":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"01d92436-558c-4193-83e6-3679b3c62e24","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"45f7e441-1140-327a-8b65-445355ea8f22","id":"1","poolType":"NetworkFilesystem","host":"10.0.100.15","path":"/mnt/Pool/primary","port":"2049","url":"NetworkFilesystem://10.0.100.15/mnt/Pool/primary/?ROLE=Primary&STOREUUID=45f7e441-1140-327a-8b65-445355ea8f22","isManaged":"false"}},"name":"ROOT-15","size":"(25.00 GB) 26843545600","path":"961cd170-e4ba-41c7-bbcc-5a4f431be036","volumeId":"15","vmName":"i-2-15-VM","accountId":"2","format":"VHD","provisioningType":"THIN","id":"15","deviceId":"0","bytesReadRate":"(0 bytes) 0","bytesWriteRate":"(0 bytes) 0","iopsReadRate":"(0 bytes) 0","
 iopsWriteRate":"(0 bytes) 0","cacheMode":"NONE","hypervisorType":"XenServer","directDownload":"false","deployAsIs":"false"}},"diskSeq":"0","path":"961cd170-e4ba-41c7-bbcc-5a4f431be036","type":"ROOT","_details":{"storageHost":"10.0.100.15","managed":"false","storagePort":"2049","volumeSize":"(25.00 GB) 26843545600"}},{"data":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"id":"0","format":"ISO","accountId":"0","hvm":"false","bootable":"false","directDownload":"false","deployAsIs":"false"}},"diskSeq":"3","type":"ISO"}],"nics":[{"deviceId":"0","networkRateMbps":"200","defaultNic":"true","pxeDisable":"false","nicUuid":"5bda150c-3c2a-48e1-8214-a98307dcb38d","details":{"ForgedTransmits":"true","MacAddressChanges":"true","PromiscuousMode":"false"},"dpdkEnabled":"false","uuid":"5443bcc5-ba80-4cba-b97e-5d6018d3f31a","ip":"192.168.105.115","netmask":"255.255.255.0","gateway":"192.168.105.1","mac":"1e:00:4d:00:02:58","dns1":"1.1.1.1","broadcastType":"Vlan","type":"Guest","broadcastUri":
 "vlan://0","isolationUri":"vlan://0","isSecurityGroupEnabled":"false","name":"GUEST"}],"vcpuMaxLimit":"1","guestOsDetails":{},"extraConfig":{}},"hostIp":"192.168.98.42","executeInSequence":"false","wait":"0","bypassHostMaintenance":"false"}}] }
   2021-09-30 07:20:49,409 DEBUG [c.c.a.t.Request] (Work-Job-Executor-8:ctx-4f9eb591 job-230/job-231 ctx-64fe1ac2) (logid:881f1761) Seq 2-7868351498969677922: Executing:  { Cmd , MgmtId: 52227725262, via: 2(xcp2), Ver: v1, Flags: 100011, [{"com.cloud.agent.api.StartCommand":{"vm":{"id":"15","name":"i-2-15-VM","bootloader":"PyGrub","state":"Starting","type":"User","cpus":"2","minSpeed":"1500","maxSpeed":"1500","minRam":"(2.00 GB) 2147483648","maxRam":"(2.00 GB) 2147483648","arch":"x86_64","os":"Windows 10 (64-bit)","platformEmulator":"Windows 10 (64-bit)","bootArgs":"","enableHA":"false","limitCpuUse":"false","enableDynamicallyScaleVm":"false","vncPassword":"CcecDXH0bEJPSqdEj5jJoQ","params":{"hypervisortoolsversion":"xenserver56",**"UEFI":"SECURE"**,"platform":"device-model:qemu-upstream-uefi;acpi_laptop_slate:1;videoram:8;viridian_stimer:true;apic:true;viridian:true;timeoffset:10799;viridian_reference_tsc:true;hpet:true;nx:true;viridian_time_ref_count:true;viridian_crash_ctl:true;vga
 :std;viridian_apic_assist:true;cores-per-socket:2;pae:true;acpi:1;secureboot:true","Message.ReservedCapacityFreed.Flag":"false"},"uuid":"8b9a126c-1f11-4838-bae6-70f337d5c192","enterHardwareSetup":"false","disks":[{"data":{"org.apache.cloudstack.storage.to.VolumeObjectTO":{"uuid":"01d92436-558c-4193-83e6-3679b3c62e24","volumeType":"ROOT","dataStore":{"org.apache.cloudstack.storage.to.PrimaryDataStoreTO":{"uuid":"45f7e441-1140-327a-8b65-445355ea8f22","id":"1","poolType":"NetworkFilesystem","host":"10.0.100.15","path":"/mnt/Pool/primary","port":"2049","url":"NetworkFilesystem://10.0.100.15/mnt/Pool/primary/?ROLE=Primary&STOREUUID=45f7e441-1140-327a-8b65-445355ea8f22","isManaged":"false"}},"name":"ROOT-15","size":"(25.00 GB) 26843545600","path":"961cd170-e4ba-41c7-bbcc-5a4f431be036","volumeId":"15","vmName":"i-2-15-VM","accountId":"2","format":"VHD","provisioningType":"THIN","id":"15","deviceId":"0","bytesReadRate":"(0 bytes) 0","bytesWriteRate":"(0 bytes) 0","iopsReadRate":"(0 bytes) 0
 ","iopsWriteRate":"(0 bytes) 0","cacheMode":"NONE","hypervisorType":"XenServer","directDownload":"false","deployAsIs":"false"}},"diskSeq":"0","path":"961cd170-e4ba-41c7-bbcc-5a4f431be036","type":"ROOT","_details":{"storageHost":"10.0.100.15","managed":"false","storagePort":"2049","volumeSize":"(25.00 GB) 26843545600"}},{"data":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"id":"0","format":"ISO","accountId":"0","hvm":"false","bootable":"false","directDownload":"false","deployAsIs":"false"}},"diskSeq":"3","type":"ISO"}],"nics":[{"deviceId":"0","networkRateMbps":"200","defaultNic":"true","pxeDisable":"false","nicUuid":"5bda150c-3c2a-48e1-8214-a98307dcb38d","details":{"ForgedTransmits":"true","MacAddressChanges":"true","PromiscuousMode":"false"},"dpdkEnabled":"false","uuid":"5443bcc5-ba80-4cba-b97e-5d6018d3f31a","ip":"192.168.105.115","netmask":"255.255.255.0","gateway":"192.168.105.1","mac":"1e:00:4d:00:02:58","dns1":"1.1.1.1","broadcastType":"Vlan","type":"Guest","broadcastUr
 i":"vlan://0","isolationUri":"vlan://0","isSecurityGroupEnabled":"false","name":"GUEST"}],"vcpuMaxLimit":"1","guestOsDetails":{},"extraConfig":{}},"hostIp":"192.168.98.42","executeInSequence":"false","wait":"0","bypassHostMaintenance":"false"}}] }
   
   
   2021-09-30 07:20:49,433 DEBUG [c.c.h.x.r.CitrixResourceBase] (DirectAgent-100:ctx-4ff43df5) (logid:881f1761) Setting **### boottype=BIOS and bootmode=null** for VM: 372a9372-82f5-3a56-49c6-ac967acb91ca
   
   all settings of vm have the option UEFI but before booting the vm there is a log mentioning boottype=BIOS
   
   
   i haven't found the command cloudstack-sccs
   
   
   
    
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] AlexanderKgr commented on issue #5535: After installing 4.15.2.0 instances created from template with uefi cannot boot for second time (xcp-ng 8.2)

Posted by GitBox <gi...@apache.org>.
AlexanderKgr commented on issue #5535:
URL: https://github.com/apache/cloudstack/issues/5535#issuecomment-930808503


   > @AlexanderKgr can you please share following details:
   > 
   > * Output of `cloudstack-sccs` on the management server
   > * cmk `list virtualmachines id=YOUR_VM_UUID` output for the VM before starting the second time
   > * After adding `TRACE` log level for `com.cloud.vm` in the `/usr/share/cloudstack-management/conf/log4j.xml` and restarting management server, complete logs for the start VM action (there are some logs in UserVmManagerImpl.java which tells what boot details are passed to the hypervisor plugin).
   > 
   > ```
   >    <category name="com.cloud.vm">
   >      <priority value="TRACE"/>
   >    </category>
   > ```
   > 
   > I've tested stop-starting VMs with both ISO and template multiple times but I'm not being able to reproduce this so if you can share above details it will be really helpful. Also, in a reply on previous ticket you mentioned that router boot because that is really weird. As per code systems VM should always be booting in BIOS.
   
   i will ask you some questions because it is the first time i am doing this.
   in my /usr/share/cloudstack-management/conf/log4j.xml i dont have value with category name com.cloud.vm but
   ![image](https://user-images.githubusercontent.com/25532758/135395493-b13f6ad0-9c38-4186-9ced-2fb642ab9c9f.png)
   
   i suppose it is the same or should i add a new category?
   
   also... what is it cloudstack-sccs? 
   ![image](https://user-images.githubusercontent.com/25532758/135395591-ad4e1a34-bd7a-4e41-b9a2-95f56f84ff41.png)
   
   and what is cmk?
   ![image](https://user-images.githubusercontent.com/25532758/135395667-808f8cef-6621-4649-996e-581b6e22da85.png)
   
   sorry for asking so much stuff and thank you for helping


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] sureshanaparti closed issue #5535: After installing 4.15.2.0 instances created from template with uefi cannot boot for second time (xcp-ng 8.2)

Posted by GitBox <gi...@apache.org>.
sureshanaparti closed issue #5535:
URL: https://github.com/apache/cloudstack/issues/5535


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] AlexanderKgr commented on issue #5535: After installing 4.15.2.0 instances created from template with uefi cannot boot for second time (xcp-ng 8.2)

Posted by GitBox <gi...@apache.org>.
AlexanderKgr commented on issue #5535:
URL: https://github.com/apache/cloudstack/issues/5535#issuecomment-932898765


   > @AlexanderKgr does it fix if you were to add the bootType and bootMode properties for your VM?
   > 
   > cc @nvazquez @sureshanaparti I've added this to 4.16.0.0 as @shwstppr has proposed a PR and this issue has been bugging since 4.15.1
   
   How i can add this?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack] AlexanderKgr edited a comment on issue #5535: After installing 4.15.2.0 instances created from template with uefi cannot boot for second time (xcp-ng 8.2)

Posted by GitBox <gi...@apache.org>.
AlexanderKgr edited a comment on issue #5535:
URL: https://github.com/apache/cloudstack/issues/5535#issuecomment-933418313


   > @AlexanderKgr does it work for newly deployed VMs with the fix, i.e. after you upgrade to the packages and deploy a VM, stop it, are able to start it second time?
   
   It is working with vms created only with iso. Vms created with iso can shutdown and boot without problems. 
   Vms created with templates created from previous CS versions, can boot only after creation. If i shutdown them and boot them, there is issue


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org