[RFC] Change guest boot order on REST API

Propose: Kimchi allow to change boot order ("fd", "hd", "cdrom" or "network") hd device can specify which disk will be booted Rest API will receive answer from /plugins/kimchi/<VM NAME>/bootorder {[{"dev": "hd"}]} or a list: {[{"dev": "hd"}, {"dev": "cdrom"}]} Doubts: How we can edit the bootloader? Like the list above or a kind of fixed list? Libvirt provides bootmenu too, which allows users to pick a device in the beginning. Must have it? -- Ramon Nunes Medeiros Kimchi Developer Linux Technology Center Brazil IBM Systems & Technology Group Phone : +55 19 2132 7878 ramonn@br.ibm.com

On Jun 01 05:12PM, Ramon Medeiros wrote:
Propose: Kimchi allow to change boot order ("fd", "hd", "cdrom" or "network")
hd device can specify which disk will be booted
Rest API will receive answer from
/plugins/kimchi/<VM NAME>/bootorder
{[{"dev": "hd"}]} or a list: {[{"dev": "hd"}, {"dev": "cdrom"}]}
Doubts:
How we can edit the bootloader? Like the list above or a kind of fixed list?
Check https://github.com/kimchi-project/kimchi/blob/master/xmlutils/bootorder.py
Libvirt provides bootmenu too, which allows users to pick a device in the beginning. Must have it?
IMO, we just need control the sequence of boot order in the code above.
--
Ramon Nunes Medeiros Kimchi Developer Linux Technology Center Brazil IBM Systems & Technology Group Phone : +55 19 2132 7878 ramonn@br.ibm.com
_______________________________________________ Kimchi-devel mailing list Kimchi-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/kimchi-devel
-- Paulo Ricardo Paz Vital Linux Technology Center, IBM Systems http://www.ibm.com/linux/ltc/

On 06/01/2016 05:24 PM, Paulo Ricardo Paz Vital wrote:
On Jun 01 05:12PM, Ramon Medeiros wrote:
Propose: Kimchi allow to change boot order ("fd", "hd", "cdrom" or "network")
hd device can specify which disk will be booted
Rest API will receive answer from
/plugins/kimchi/<VM NAME>/bootorder
{[{"dev": "hd"}]} or a list: {[{"dev": "hd"}, {"dev": "cdrom"}]}
Doubts:
How we can edit the bootloader? Like the list above or a kind of fixed list?
Check https://github.com/kimchi-project/kimchi/blob/master/xmlutils/bootorder.py Nice
Libvirt provides bootmenu too, which allows users to pick a device in the beginning. Must have it?
IMO, we just need control the sequence of boot order in the code above. Nice, but how ?
We will use "update()" or a different field, like plugins/kimchi/vms/<vm>/bootorder ? About the order, how we will include the device when hd is first?
--
Ramon Nunes Medeiros Kimchi Developer Linux Technology Center Brazil IBM Systems & Technology Group Phone : +55 19 2132 7878 ramonn@br.ibm.com
_______________________________________________ Kimchi-devel mailing list Kimchi-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/kimchi-devel
-- Paulo Ricardo Paz Vital Linux Technology Center, IBM Systems http://www.ibm.com/linux/ltc/
_______________________________________________ Kimchi-devel mailing list Kimchi-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/kimchi-devel
-- Ramon Nunes Medeiros Kimchi Developer Linux Technology Center Brazil IBM Systems & Technology Group Phone : +55 19 2132 7878 ramonn@br.ibm.com

On 06/01/2016 05:12 PM, Ramon Medeiros wrote:
Propose: Kimchi allow to change boot order ("fd", "hd", "cdrom" or "network")
hd device can specify which disk will be booted
Rest API will receive answer from
I think we can list bootorder among with other VM information provided by GET method and update it using PUT method GET /vms/<name> { ... bootorder: [...] } PUT /vms/<name> {bootorder: [<new values>]
/plugins/kimchi/<VM NAME>/bootorder
{[{"dev": "hd"}]} or a list: {[{"dev": "hd"}, {"dev": "cdrom"}]}
Doubts:
How we can edit the bootloader? Like the list above or a kind of fixed list?
Libvirt provides bootmenu too, which allows users to pick a device in the beginning. Must have it?
It would be good to have bootmenu enabled too. I think there is an issue for it too and it is assigned to you. So if you want to send a patch for it, I am fine! Just do not mix things. One patch set for boot order and other, to enable boot menu.
--
Ramon Nunes Medeiros Kimchi Developer Linux Technology Center Brazil IBM Systems & Technology Group Phone : +55 19 2132 7878 ramonn@br.ibm.com
_______________________________________________ Kimchi-devel mailing list Kimchi-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/kimchi-devel

On 06/08/2016 04:38 PM, Aline Manera wrote:
On 06/01/2016 05:12 PM, Ramon Medeiros wrote:
Propose: Kimchi allow to change boot order ("fd", "hd", "cdrom" or "network")
hd device can specify which disk will be booted
Rest API will receive answer from
I think we can list bootorder among with other VM information provided by GET method and update it using PUT method
GET /vms/<name> { ... bootorder: [...] }
PUT /vms/<name> {bootorder: [<new values>]
ok
/plugins/kimchi/<VM NAME>/bootorder
{[{"dev": "hd"}]} or a list: {[{"dev": "hd"}, {"dev": "cdrom"}]}
Doubts:
How we can edit the bootloader? Like the list above or a kind of fixed list?
Libvirt provides bootmenu too, which allows users to pick a device in the beginning. Must have it?
It would be good to have bootmenu enabled too. I think there is an issue for it too and it is assigned to you. So if you want to send a patch for it, I am fine! Just do not mix things. One patch set for boot order and other, to enable boot menu.
I did not make bootmenu worked, even manually, so i will skip this. I will look more examples and send a separated patch as you asked to.
--
Ramon Nunes Medeiros Kimchi Developer Linux Technology Center Brazil IBM Systems & Technology Group Phone : +55 19 2132 7878 ramonn@br.ibm.com
_______________________________________________ Kimchi-devel mailing list Kimchi-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/kimchi-devel
-- Ramon Nunes Medeiros Kimchi Developer Linux Technology Center Brazil IBM Systems & Technology Group Phone : +55 19 2132 7878 ramonn@br.ibm.com

On 06/08/2016 06:05 PM, Ramon Medeiros wrote:
On 06/08/2016 04:38 PM, Aline Manera wrote:
On 06/01/2016 05:12 PM, Ramon Medeiros wrote:
Propose: Kimchi allow to change boot order ("fd", "hd", "cdrom" or "network")
hd device can specify which disk will be booted
Rest API will receive answer from
I think we can list bootorder among with other VM information provided by GET method and update it using PUT method
GET /vms/<name> { ... bootorder: [...] }
PUT /vms/<name> {bootorder: [<new values>]
ok
/plugins/kimchi/<VM NAME>/bootorder
{[{"dev": "hd"}]} or a list: {[{"dev": "hd"}, {"dev": "cdrom"}]}
Doubts:
How we can edit the bootloader? Like the list above or a kind of fixed list?
Libvirt provides bootmenu too, which allows users to pick a device in the beginning. Must have it?
It would be good to have bootmenu enabled too. I think there is an issue for it too and it is assigned to you. So if you want to send a patch for it, I am fine! Just do not mix things. One patch set for boot order and other, to enable boot menu.
I did not make bootmenu worked, even manually, so i will skip this. I will look more examples and send a separated patch as you asked to.
Ok. Seems a good plan for me.
--
Ramon Nunes Medeiros Kimchi Developer Linux Technology Center Brazil IBM Systems & Technology Group Phone : +55 19 2132 7878 ramonn@br.ibm.com
_______________________________________________ Kimchi-devel mailing list Kimchi-devel@ovirt.org http://lists.ovirt.org/mailman/listinfo/kimchi-devel
--
Ramon Nunes Medeiros Kimchi Developer Linux Technology Center Brazil IBM Systems & Technology Group Phone : +55 19 2132 7878 ramonn@br.ibm.com
participants (3)
-
Aline Manera
-
Paulo Ricardo Paz Vital
-
Ramon Medeiros