[RFC] UI: Support Selecting SCSI Volume when Creating a VM

Hi all, Royce talked this topic with me today that the UI part is missing for SCSI volume selecting when creating a VM. In the current design, VM is created through a template and no extra options are available at VM creation: template defines which pool and disk size, and Kimchi will create a volume in the pool with specified disk size for the VM. Though SCSI volumes are read-only and we can't create anything in SCSI pool, we need allow user to select a volume in SCSI pool. So my initial suggestion to the VM creation UI looks like: /// --- Create VM Window --- /// 1. Virtual Machine Name The name used to identify the virtual machine. If omitted, a name will be chosen based on the template used. [ Text box here to enter VM name ] 2. Template Please choose a template. [ Templates list here to be selected ] 3. Volumes (this part will be only available when SCSI pool is selected in Step 2) [ Volumes list in SCSI pool to be selected ] /// Create /// Does this make sense? If so, I'll send out patches for it.

On 02/24/2014 07:34 AM, Hongliang Wang wrote:
Hi all,
Royce talked this topic with me today that the UI part is missing for SCSI volume selecting when creating a VM. In the current design, VM is created through a template and no extra options are available at VM creation: template defines which pool and disk size, and Kimchi will create a volume in the pool with specified disk size for the VM. Though SCSI volumes are read-only and we can't create anything in SCSI pool, we need allow user to select a volume in SCSI pool. So my initial suggestion to the VM creation UI looks like:
/// --- Create VM Window --- ///
1. Virtual Machine Name The name used to identify the virtual machine. If omitted, a name will be chosen based on the template used. [ Text box here to enter VM name ]
2. Template Please choose a template. [ Templates list here to be selected ]
3. Volumes (this part will be only available when SCSI pool is selected in Step 2) [ Volumes list in SCSI pool to be selected ]
/// Create ///
Does this make sense? If so, I'll send out patches for it.
It makes sense for me. Go ahead with the patches! =)

On 02/24/2014 10:45 AM, Aline Manera wrote:
On 02/24/2014 07:34 AM, Hongliang Wang wrote:
Hi all,
Royce talked this topic with me today that the UI part is missing for SCSI volume selecting when creating a VM. In the current design, VM is created through a template and no extra options are available at VM creation: template defines which pool and disk size, and Kimchi will create a volume in the pool with specified disk size for the VM. Though SCSI volumes are read-only and we can't create anything in SCSI pool, we need allow user to select a volume in SCSI pool. So my initial suggestion to the VM creation UI looks like:
/// --- Create VM Window --- ///
1. Virtual Machine Name The name used to identify the virtual machine. If omitted, a name will be chosen based on the template used. [ Text box here to enter VM name ]
2. Template Please choose a template. [ Templates list here to be selected ]
3. Volumes (this part will be only available when SCSI pool is selected in Step 2) [ Volumes list in SCSI pool to be selected ]
/// Create ///
Does this make sense? If so, I'll send out patches for it.
It makes sense for me. Go ahead with the patches! =)
It also applied to iSCSI storage pools
_______________________________________________ Kimchi-devel mailing list Kimchi-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/kimchi-devel

On 2/24/2014 5:34 AM, Hongliang Wang wrote:
Hi all,
Royce talked this topic with me today that the UI part is missing for SCSI volume selecting when creating a VM. In the current design, VM is created through a template and no extra options are available at VM creation: template defines which pool and disk size, and Kimchi will create a volume in the pool with specified disk size for the VM. Though SCSI volumes are read-only and we can't create anything in SCSI pool, we need allow user to select a volume in SCSI pool. So my initial suggestion to the VM creation UI looks like:
/// --- Create VM Window --- ///
1. Virtual Machine Name The name used to identify the virtual machine. If omitted, a name will be chosen based on the template used. [ Text box here to enter VM name ]
2. Template Please choose a template. [ Templates list here to be selected ]
3. Volumes (this part will be only available when SCSI pool is selected in Step 2) [ Volumes list in SCSI pool to be selected ]
/// Create ///
Does this make sense? If so, I'll send out patches for it.
Not yet? Imagine we extend the "Create VM" function to be available to the User, rather than being restricted to the Admin? Our target audience is new to virtualization and host administration. He likely doesn't know what SCSI is; its even less likely that he cares. How would he know what volume to choose? Could choosing the wrong one do harm? He has access to create VMs from more than one template. One asks him for volumes, one doesn't? Why? We want VM creation to be a consistent experience, with no opportunity for failure or corruption. -- Adam King <rak@linux.vnet.ibm.com> IBM C&SI

In total, this idea sounds good to me. I have a few comments below. 2014/2/24 18:34, Hongliang Wang:
Hi all,
Royce talked this topic with me today that the UI part is missing for SCSI volume selecting when creating a VM. In the current design, VM is created through a template and no extra options are available at VM creation: template defines which pool and disk size, and Kimchi will create a volume in the pool with specified disk size for the VM. Though SCSI volumes are read-only and we can't create anything in SCSI pool, we need allow user to select a volume in SCSI pool. So my initial suggestion to the VM creation UI looks like:
/// --- Create VM Window --- ///
1. Virtual Machine Name The name used to identify the virtual machine. If omitted, a name will be chosen based on the template used. [ Text box here to enter VM name ]
2. Template Please choose a template. [ Templates list here to be selected ]
3. Volumes (this part will be only available when SCSI pool is selected in Step 2) [ Volumes list in SCSI pool to be selected ]
Kimchi don't get a way to allocate volumes from a storage pools. So where are these volumes coming from? Further, the existing volumes should be checked if there is any data on them and the user can chose a empty volume for his VM.
/// Create ///
Does this make sense? If so, I'll send out patches for it.
_______________________________________________ Kimchi-devel mailing list Kimchi-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/kimchi-devel
participants (4)
-
Adam King
-
Aline Manera
-
Hongliang Wang
-
Shu Ming