What runtime states to be preserved across save / restore?
Hi all
I'm trying to determine what runtime states to be preserved across save / restore.
Things that are randomly generated if not set, definitely want to preserve:
1. guest uuid
2. mac address
3. vtpm uuid
Things might change when guest is running, and seem to be worthy of preserving:
1. max memory size
2. target memory size
3. CDROM state
As for other things, I think using the stored configurations and let the remote end make its own decision is sufficient.
Thoughts?
Wei.
Quoted 17 lines · Wei Liu
Hi all
I'm trying to determine what runtime states to be preserved across save / restore.
Things that are randomly generated if not set, definitely want to preserve:
1. guest uuid
2. mac address
3. vtpm uuidThings might change when guest is running, and seem to be worthy of preserving:
1. max memory size
2. target memory size
3. CDROM state
Quoted 4 lines
As for other things, I think using the stored configurations and let the remote end make its own decision is sufficient.
Thoughts?
I think the above looks pretty sensible.
Other things I can think of right now:
* The devid of each device -- for some classes these can be automatically assigned, I'm not really sure if that needs preserving or not.
* Hotplug of devices more generally
The selection of the block device backend is also interesting. If the user didn't select then you want to remember that so the other end can make its own choice about what is best, but if the user asked for something explicit it needs preserving.
But more generally by making a baseline working version of this stuff work at all you are also adding the moving parts which we would need to fix any bugs which we later discover because we've not preserved something.
Ian.
Quoted 23 lines · Ian Campbell
Quoted 17 lines · Wei Liu
Hi all
I'm trying to determine what runtime states to be preserved across save / restore.
Things that are randomly generated if not set, definitely want to preserve:
1. guest uuid
2. mac address
3. vtpm uuidThings might change when guest is running, and seem to be worthy of preserving:
1. max memory size
2. target memory size
3. CDROM stateQuoted 4 lines
As for other things, I think using the stored configurations and let the remote end make its own decision is sufficient.
Thoughts?
Quoted 7 lines
I think the above looks pretty sensible.
Other things I can think of right now:
* The devid of each device -- for some classes these can be automatically assigned, I'm not really sure if that needs preserving or not.
I don't think so. The receiving end should make its own decision.
Quoted 2 lines
* Hotplug of devices more generally
Scripts? If so, they, with the things you mentioned below ...
Quoted 5 lines
The selection of the block device backend is also interesting. If the user didn't select then you want to remember that so the other end can make its own choice about what is best, but if the user asked for something explicit it needs preserving.
... are already in the config file if user ever specifies them, so they are already preserved.
Quoted 5 lines
But more generally by making a baseline working version of this stuff work at all you are also adding the moving parts which we would need to fix any bugs which we later discover because we've not preserved something.
Sure. Then I will commence with my current list.
Wei.
Quoted 1 line
Ian.
Quoted 7 lines · Wei Liu
Quoted 5 lines
Other things I can think of right now:
* The devid of each device -- for some classes these can be automatically assigned, I'm not really sure if that needs preserving or not.
I don't think so. The receiving end should make its own decision.
Having eth0 become eth1 over migrate would be surprising though, wouldn't it?
Quoted 4 lines
Quoted 2 lines
* Hotplug of devices more generally
Scripts? If so, they, with the things you mentioned below ...
Not script, I meant e.g. xl block-attach and stuff like that.
Quoted 8 lines
Quoted 5 lines
The selection of the block device backend is also interesting. If the user didn't select then you want to remember that so the other end can make its own choice about what is best, but if the user asked for something explicit it needs preserving.
... are already in the config file if user ever specifies them, so they are already preserved.
Great. But the config file doesn't contain hotplugged devices I think.
Ian.
Quoted 4 lines · Ian Campbell
Quoted 2 lines · Wei Liu
Quoted 2 lines
Other things I can think of right now:
Quoted 9 lines
Quoted 5 lines
Quoted 3 lines
* The devid of each device -- for some classes these can be automatically assigned, I'm not really sure if that needs preserving or not.
I don't think so. The receiving end should make its own decision.
Having eth0 become eth1 over migrate would be surprising though, wouldn't it?
I see your point. It's fairly to preserve anyway -- just read from xenstore and update a field and that's it.
But even if we don't preserve it we're in a place no worse then where we are before. I shall say we have no way to preserve it with current infrastructure so I won't count it as a regression. ;-)
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines
* Hotplug of devices more generally
Scripts? If so, they, with the things you mentioned below ...
Not script, I meant e.g. xl block-attach and stuff like that.
I see. This is a bit tricky though, as the relavent information is broken down to different place or even impossible to resynthesis.
But with the nice new infrastructure we can now update the saved configurations as we attach / detach different devices. Just more coding is required.
Wei.
Quoted 12 lines
Quoted 8 lines
Quoted 5 lines
The selection of the block device backend is also interesting. If the user didn't select then you want to remember that so the other end can make its own choice about what is best, but if the user asked for something explicit it needs preserving.
... are already in the config file if user ever specifies them, so they are already preserved.
Great. But the config file doesn't contain hotplugged devices I think.
Ian.
Quoted 13 lines · Ian Campbell
Quoted 7 lines · Wei Liu
Quoted 5 lines
Other things I can think of right now:
* The devid of each device -- for some classes these can be automatically assigned, I'm not really sure if that needs preserving or not.
I don't think so. The receiving end should make its own decision.
Having eth0 become eth1 over migrate would be surprising though, wouldn't it?
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
* Hotplug of devices more generally
Scripts? If so, they, with the things you mentioned below ...
Not script, I meant e.g. xl block-attach and stuff like that.
Do not forget about memory hotplug and in general memory != maxmem. This stuff is also important in migration case.
Daniel
Quoted 17 lines · Daniel Kiper
Quoted 16 lines · Ian Campbell
Quoted 7 lines · Wei Liu
Quoted 5 lines
Other things I can think of right now:
* The devid of each device -- for some classes these can be automatically assigned, I'm not really sure if that needs preserving or not.
I don't think so. The receiving end should make its own decision.
Having eth0 become eth1 over migrate would be surprising though, wouldn't it?
Quoted 3 lines
Quoted 2 lines
* Hotplug of devices more generally
Quoted 7 lines
Quoted 3 lines
Quoted 1 line
Scripts? If so, they, with the things you mentioned below ...
Not script, I meant e.g. xl block-attach and stuff like that.
Do not forget about memory hotplug and in general memory != maxmem. This stuff is also important in migration case.
I think max memory and target memory are easy -- I can retrieve them from xenstore. But where can I get information about memory hotplug? If the relevant bits are missing in libxl then I think we need another series to address this problem.
Wei.
Quoted 1 line
Daniel
Quoted 22 lines · Wei Liu
Quoted 21 lines · Daniel Kiper
Quoted 19 lines · Ian Campbell
Quoted 7 lines · Wei Liu
Quoted 5 lines
Other things I can think of right now:
* The devid of each device -- for some classes these can be automatically assigned, I'm not really sure if that needs preserving or not.
I don't think so. The receiving end should make its own decision.
Having eth0 become eth1 over migrate would be surprising though, wouldn't it?
Quoted 4 lines
Quoted 2 lines
* Hotplug of devices more generally
Scripts? If so, they, with the things you mentioned below ...
Not script, I meant e.g. xl block-attach and stuff like that.
Quoted 8 lines
Quoted 3 lines
Do not forget about memory hotplug and in general memory != maxmem. This stuff is also important in migration case.
I think max memory and target memory are easy -- I can retrieve them from xenstore. But where can I get information about memory hotplug? If the relevant bits are missing in libxl then I think we need another series to address this problem.
I think that target and max memory should be sufficient. I mentioned about that because when I tested migration with xm a few years ago I was not able to migrate machine which had hotplugged memory. IIRC it happened because migration process refered to config file instead of checking relevant values in xenstore. Acording to my knowledge save and restore machinery is (or was) used for migration. Correct me if I am wrong.
Daniel
Quoted 27 lines · Daniel Kiper
Quoted 26 lines · Wei Liu
Quoted 24 lines · Daniel Kiper
Quoted 13 lines · Ian Campbell
Quoted 7 lines · Wei Liu
Quoted 5 lines
Other things I can think of right now:
* The devid of each device -- for some classes these can be automatically assigned, I'm not really sure if that needs preserving or not.
I don't think so. The receiving end should make its own decision.
Having eth0 become eth1 over migrate would be surprising though, wouldn't it?
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
* Hotplug of devices more generally
Scripts? If so, they, with the things you mentioned below ...
Not script, I meant e.g. xl block-attach and stuff like that.
Do not forget about memory hotplug and in general memory != maxmem. This stuff is also important in migration case.
Quoted 6 lines
Quoted 4 lines
I think max memory and target memory are easy -- I can retrieve them from xenstore. But where can I get information about memory hotplug? If the relevant bits are missing in libxl then I think we need another series to address this problem.
I think that target and max memory should be sufficient. I mentioned
Cool!
Quoted 7 lines
about that because when I tested migration with xm a few years ago I was not able to migrate machine which had hotplugged memory. IIRC it happened because migration process refered to config file instead of checking relevant values in xenstore. Acording to my knowledge save and restore machinery is (or was) used for migration. Correct me if I am wrong.
You're right about this. ;-)
Wei.
Quoted 1 line
Daniel
Quoted 45 lines · Wei Liu
Quoted 27 lines · Daniel Kiper
Quoted 26 lines · Wei Liu
Quoted 24 lines · Daniel Kiper
Quoted 13 lines · Ian Campbell
Quoted 7 lines · Wei Liu
Quoted 5 lines
Other things I can think of right now:
* The devid of each device -- for some classes these can be automatically assigned, I'm not really sure if that needs preserving or not.
I don't think so. The receiving end should make its own decision.
Having eth0 become eth1 over migrate would be surprising though, wouldn't it?
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
* Hotplug of devices more generally
Scripts? If so, they, with the things you mentioned below ...
Not script, I meant e.g. xl block-attach and stuff like that.
Do not forget about memory hotplug and in general memory != maxmem. This stuff is also important in migration case.
Quoted 6 lines
Quoted 4 lines
I think max memory and target memory are easy -- I can retrieve them from xenstore. But where can I get information about memory hotplug? If the relevant bits are missing in libxl then I think we need another series to address this problem.
I think that target and max memory should be sufficient. I mentioned
Cool!
Quoted 7 lines
about that because when I tested migration with xm a few years ago I was not able to migrate machine which had hotplugged memory. IIRC it happened because migration process refered to config file instead of checking relevant values in xenstore. Acording to my knowledge save and restore machinery is (or was) used for migration. Correct me if I am wrong.
Quoted 1 line
You're right about this. ;-)
Hmm, speaking of which, you may want to check the Xen-enforced limit as well. Some toolstacks (such as xapi, and I believe xl) will optionally lower a VM's memory limit in Xen, so that a VM cannot balloon back up once it's ballooned down. However, other toolstacks (such as Oracle's, as I understand it) allow the VMs to balloon themselves up if they want, and so don't set the limit. Whatever the limit is should probably be copied across by default.
-George
Quoted 48 lines · George Dunlap
Quoted 45 lines · Wei Liu
Quoted 27 lines · Daniel Kiper
Quoted 26 lines · Wei Liu
Quoted 24 lines · Daniel Kiper
Quoted 13 lines · Ian Campbell
Quoted 7 lines · Wei Liu
Quoted 5 lines
Other things I can think of right now:
* The devid of each device -- for some classes these can be automatically assigned, I'm not really sure if that needs preserving or not.
I don't think so. The receiving end should make its own decision.
Having eth0 become eth1 over migrate would be surprising though, wouldn't it?
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines
* Hotplug of devices more generally
Scripts? If so, they, with the things you mentioned below ...
Not script, I meant e.g. xl block-attach and stuff like that.
Do not forget about memory hotplug and in general memory != maxmem. This stuff is also important in migration case.
Quoted 6 lines
Quoted 4 lines
I think max memory and target memory are easy -- I can retrieve them from xenstore. But where can I get information about memory hotplug? If the relevant bits are missing in libxl then I think we need another series to address this problem.
I think that target and max memory should be sufficient. I mentioned
Cool!
Quoted 7 lines
about that because when I tested migration with xm a few years ago I was not able to migrate machine which had hotplugged memory. IIRC it happened because migration process refered to config file instead of checking relevant values in xenstore. Acording to my knowledge save and restore machinery is (or was) used for migration. Correct me if I am wrong.
Quoted 1 line
You're right about this. ;-)
Quoted 8 lines
Hmm, speaking of which, you may want to check the Xen-enforced limit as well. Some toolstacks (such as xapi, and I believe xl) will optionally lower a VM's memory limit in Xen, so that a VM cannot balloon back up once it's ballooned down. However, other toolstacks (such as Oracle's, as I understand it) allow the VMs to balloon themselves up if they want, and so don't set the limit. Whatever the limit is should probably be copied across by default.
I grep'ed libxl code. If I'm not mistaken, the "Xen-enforced limit" is done by setting max memory target, which is already preserved in current scheme.
Wei.
Quoted 1 line
-George