Closed Noelantogerorge closed 1 year ago
@Noelantogerorge did you try installing the qcow template file on kvm directly, or did you just verify that the original from which the tamplate was created did run? Or more general Can you give more resolution to you "STEPS TO REPRODUCE" paragraph, please? It is hard to see what went wrong (not a proxmox user myself)
@Noelantogerorge
Could you also please provide the complete management server log
@DaanHoogland I had downloaded qcow2 file from proxmox and created a template of it on cloudstack Then created a new instance of that template. After instance is up when I check the console it is showing No bootdevice to load
So inorder to make sure my qcow2 image is not having any issue I just use virsh-install command to bring this qcow2 img vm on KVM directly. I could see that VM started and I was able to login to that guest VM
Please find me management and Agent log attached. Logs.zip
Below is my command to run the qcow2 img on kvm virt-install \ --name test \ --ram 4090 \ --vcpus 2 \ --disk path=/data/dgs/test.qcow2,format=qcow2 \ --graphics none \ --console pty,target_type=serial \ --os-type linux \ --os-variant ubuntu22.04 \ --import
I had downloaded qcow2 file from proxmox and created a template of it on cloudstack Then created a new instance of that template. After instance is up when I check the console it is showing No bootdevice to load
So inorder to make sure my qcow2 image is not having any issue I just use virsh-install command to bring this qcow2 img vm on KVM directly. I could see that VM started and I was able to login to that guest VM
Can you check if it is BIOS or UEFI? that is not automatically detected by cloudstack and might be a reason booting fails.
its UEFI - secure boot
Tried with advance boot option and bood mode to uefi - secure. but didn't start the VM as host doen't support uefi deployement. Cannot deploy to specified host as host does n't support uefi vm deployment, returning. I will check how to enable uefi on kvm host. If you have any documentation please share me
@Noelantogerorge
Edit the file /etc/libvirt/qemu.conf and add the following line
nvram = ["/usr/share/OVMF/OVMF_CODE.secboot.fd:/usr/share/OVMF/OVMF_VARS.fd"]
service libvirtd restart service cloudstack-agent restart
mysql> select * from host_details; +----+---------+----------------------------------------------------+------------------------------------------------------+ | id | host_id | name | value | +----+---------+----------------------------------------------------+------------------------------------------------------+ | 1 | 1 | Host.OS.Kernel.Version | 5.15.0-35-generic | | 2 | 1 | com.cloud.network.Networks.RouterPrivateIpStrategy | HostLocal | | 3 | 1 | Host.OS.Version | 22.04 | | 4 | 1 | host.volume.encryption | true | | 5 | 1 | secured | true | | 6 | 1 | Host.OS | Ubuntu | | 8 | 1 | password | Nl8+U+aEYhs7XQmf6Jz9Q6b5JmGqbO4fvV3xfDT+KgNYfd19g8us | | 14 | 1 | username | root | | 28 | 1 | host.uefi.enable | true | +----+---------+----------------------------------------------------+------------------------------------------------------+ 9 rows in set (0.00 sec)
https://repo.almalinux.org/almalinux/8/cloud/x86_64/images/
If you are still facing the issue, then please try with Centos 8 host/ instead of Ubuntu 22.04.2 as i think it could be a limitation
Please refer the Limitations
https://cwiki.apache.org/confluence/display/CLOUDSTACK/Enable+UEFI+booting+for+Instance
@kiranchavala I had deployed these changes and I could able to spin up the instance using advance option as UEFI secure. Instance spinned up but still same error on console of VM I am getting no bootable device
Hi @Noelantogerorge
Could you check if you are able to boot a alma linux image
hi @kiranchavala
I added a templete of https://repo.almalinux.org/almalinux/8/cloud/x86_64/images/AlmaLinux-8-GenericCloud-UEFI-latest.x86_64.qcow2 and try to start a instance with uefi secure ends up in below screen
@kiranchavala do we need to create uefi.properties file as discussed on this session https://github.com/apache/cloudstack/pull/3638
Hi, I had detached disk from that VM and attached to another running VM and I could find that disk is not showing any partition. please find the below screenshot and high lighted part is the disk of migrated VM
I had tried with other VM also even I downloaded vmdk file from VMware ESXI server and converted to qcow2 format. I can easly spin up it on KVM and also bring that qcow2 img on proxmox but on cloudstack it is showing same issue no bootable disk
@Noelantogerorge
I tested the uefi issue only on Centos 7. I believe there are issues with ubuntu 22.04 and booting UEFI images
yes we need to create the uefiproperties file
guest.nvram.template.secure=/usr/share/edk2/ovmf/OVMF_VARS.secboot.fd guest.nvram.template.legacy=/usr/share/edk2/ovmf/OVMF_VARS.fd guest.loader.secure=/usr/share/edk2/ovmf/OVMF_CODE.secboot.fd guest.nvram.path=/var/lib/libvirt/qemu/nvram guest.loader.legacy=/usr/share/edk2/ovmf/OVMF_CODE.secboot.fd
nvram = ["/usr/share/OVMF/OVMF_CODE.secboot.fd:/usr/share/OVMF/OVMF_VARS.fd"]
service libvirtd restart service cloudstack-agent restart
@kiranchavala Hi Thank for the update... Today on a test machine with 4.17 version of cloudstack I could easly deploy this same qcow2 img. Its working fine. I was able to deploy in uefi mode and also on normal boot mode. KVM is on ubuntu 22.04.. I think some setting on my production enviornment is causing the issue. I can't able to figure it out what might be the issue.
@Noelantogerorge is that production env newer than your test env? (i.e. 4.18 vs 4.17?) In other words would you say this is a regression in 4.18?
Hi @DaanHoogland and @kiranchavala My production is on 4.18 and yesterday I test it on 4.17. Today I had started a 4.18 test enviornment and tried the same qcow2 img and that too worked. I think some setting on my production enviornment is causing the issue. I had cross check the global setings with two enviornment and couldn't get any change. Trying to figure out what might be the issue as mgmt and agent log is not showing much data.
@DaanHoogland have you ever gone through below error while migrating VM from one host to another
Error : Exception during migrate: org.libvirt.LibvirtException: Cannot get interface MTU on 'brenp21-774': No such device
I was trying to move a vm from one host to another but it is hsowing this error. Didn't get much document about configuring this migration so I belive cloudstack should tack care of migration when I click migrate button
@Noelantogerorge , no i haven't is that bridge part of your host configuration or is this created by proxmox? Also is this still the migration from proxmox to xloudstack problem or are you talking to a migration for a fully ACS managed virtual machine?
@DaanHoogland No, I have 2 host connected. This is not part of migration from proxmox to cloudstack.No issues I think my network cofiguration mismatch on KVM
@DaanHoogland and @kiranchavala I was able to solve the issue. qcow2 img was working fine but when I register it as a template it is getting corrupted and so instance is not comming up. I figure out that I was using a repo to register template and repo root location was on our SAS drive. So I change the repo root location to that system root drive and copied the qcow2 img on root drive and registered it. It was working. No idea why it causes corruption when copying from SAS as same drive is used on proxmox. Anyway it is cleared now.. Thank you so much for the support....
ISSUE TYPE
COMPONENT NAME
iNSTANCE
CLOUDSTACK VERSION
4.18
CONFIGURATION
Advance networking
OS / ENVIRONMENT
All on Ubuntu 22.04 Cloudstack version 4.18
SUMMARY
I am trying to bring an existing VM which is running on proxmox to cloudstack. I had downloaded the qcow2 VM file and created a templete for that on cloudstack. After deploying it as VM Instane in cloudstack it is showing No bootable device. I checked the downloaded qcow2 file on kvm and it is running.
STEPS TO REPRODUCE
Try to bring a qcow2 vm img on cloudstack
EXPECTED RESULTS
VM should come up
ACTUAL RESULTS
It is showing no bootable device. I had checked with multiple files and even same file I can bring the VM on KVM