gandi.cli icon indicating copy to clipboard operation
gandi.cli copied to clipboard

Need to change the kernel cmdline as long as the kernel when migrating hypervisor

Open aegiap opened this issue 10 years ago • 2 comments

When trying to change my VM from one platform (Xen) to the new platform (KVM), I tried to change the kernel on the main disk of my VM. For the change to be accepted, the user needs to change the kernel and the boot command line at the same time (from 3.2-xenU to 3.12-guest).

$ gandi disk update --kernel "3.12-x86_64 (hvm)" chaussette
Usage: gandi disk [OPTIONS] RESOURCE

Error: Gandi API has returned an error: <Fault 530402: 'Error on object : OBJECT_DISK (CAUSE_CMDLINE_OPT) [Option root is invalid]'>
$ gandi disk update --kernel "3.12-x86_64 (hvm)"  --cmdline "console=ttyS0 loglevel=8 nosep root=/dev/sda" chaussette
Updating your disk.
Progress: [#######################################################################] 100.00%  00:00:21  

aegiap avatar May 20 '15 13:05 aegiap

This has been fixed with the release of gandi's api 3.3.33

MoiTux avatar Dec 15 '15 13:12 MoiTux

I replay to quickly, it's not exactly the same error, as the one fixed in the 3.3.33
will try do see if we can fix it, but this error is the 'expected' behavior, indeed when changing kernel the api check if the current cmdline will be valid for the new one.

MoiTux avatar Dec 15 '15 14:12 MoiTux