[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-users] 'xl reboot domid' ignores all in-memory changes AND the domu's config file changes
msd+xen-users@xxxxxx wrote: > The command 'xl reboot domid' ignores all in-memory changes AND the domu's > config file changes. > > I think xen remembers the configuration the domain has the first time it was > created with 'xl create /etc/xen/domain.cfg'. > > So, if you live-change the memory of your domain from 2048 to 1024 ('xl > mem-set domid 1024'), and you change in your config file > '/etc/xen/domain.cfg' the memory from 2048 to 1024 and you restart your > domain ('xl reboot domid'), your domain will now have 2048Mb of memory > instead of 1024 ! > > Do you know why ? WAG* When you do a live memory change, you are **NOT** changing the guest config. You're sending a message to the guest to use the balloon driver to release memory (the memory is still there but the guest is tricked into not using it so it can be re-allocated elsewhere), so if you reboot then the system is starting afresh and will use all the memory it sees available. When you reboot the guest, it is just telling the guest to restart within it's virtual machine. The virtual machine is not destroyed and recreated - so the config file changes don't have any effect - for the config file changes to work you must stop and recreate the guest. I've fallen for this in the past as well ;-) *WAG = Wild Ar**d Guess _______________________________________________ Xen-users mailing list Xen-users@xxxxxxxxxxxxx https://lists.xen.org/xen-users
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |