-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Data Disks get unavailable when VM is shut down #7490
Comments
moved to 4.18.2.0 |
I was not able to reproduce the issue when add 6 data disk (7 in total including root disk), the xml has the following
when stop/start the vm, the output of the same (the index of data disks are different). I tested on rocky8, below is the host information
@VincentHermes |
In my case having OS type to "Other PV Virtio-SCSI" on the Windows VM, after adding 8 data disks (9 with root disk) I end up to the following domain xml: Windows detects the 6 first disks attached to virtio-scsi controller #0 but not the rest, because they are attached on lsilogic controller # 1. |
@tcp-dw Thank you for reproducing. It seems like scsi1-0-0 and scsi1-0-1 in your case with "lsilogic" controller is the same problem as for me. Windows sees only the 6 disks on the first controller. I found some issue in the source code where the xml is created when I inspected this 16 months ago but honestly, I dont remember and I dont even know java. We set a limit of 6 disks for windows VMs in our custom UI and thats it. |
I did further testing and it seems that it creates a new controller of type lsilogic in every next 6 disks. Every time the first controller's model is 'virtio-scsi'. |
thanks @tcp-dw
It seems to be a bug, as the controller id of all virtio-scsi disks are hardcoded as 0 ( Line 2702 in e5bd83e
|
@VincentHermes @tcp-dw If you know how to build the project, you can port to 4.18/4.19/main and test it. |
ISSUE TYPE
COMPONENT NAME
CLOUDSTACK VERSION
OS / ENVIRONMENT
SUMMARY
Adding more than 6 Disks in a VM results in a second SCSI controller being created. The type of the controller varies whether the disk is attached while the VM is running or the VM is started while having more than 6 disks. If disks are added on the fly, everything works fine. If the VM is stopped and started while already having more than 6 disks, the second controller being added is of a type that breaks Windows 2022 (and others I think, still testing around).
STEPS TO REPRODUCE
Normal Disk Setting in XML
! Note the alias name in this config
Every other disk until the 6th will be configured the same way, the alias name iterates to "scsi0-0-0-5"
7th Disk Setting in XML if attached live, VM not being stopped
! Note the alias name in this config, its now "scsi1-0-0-0" which is okay as it has three zeroes for some reason and in the OS it is recognized as a "RedHat Virtio SCSI controller". All disks work correctly in the OS this way.
7th Disk Setting in XML if the VM has been stopped and then started again (XML gets recreated)
! Note the alias name in this config, its now "scsi1-0-0" so it is missing a zero and also it becomes a different type of controller. The RedHat driver no longer works. The only driver able to be installed for this device is the VMWare PVSCSI driver, which still renders the attached disks unavailable and breaks the Windows Boot (BSOD) even though the root disk is on the other controller. In this case you need to remove every disk until you have only 6 left and start the VM. If you attach a disk again, it will be a new "unknown device" again.
I wonder what happens if the VM has virtio instead of SCSI as rootDiskController. Checking that out.
EXPECTED RESULTS
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: