rancher / old-vm

(OBSOLETE) Package and Run Virtual Machines as Docker Containers
Apache License 2.0
646 stars 133 forks source link

Stop the container and Virtual Machines, can not modified CPU and MEMORYand disk parameter! #68

Open txg1550759 opened 8 years ago

txg1550759 commented 8 years ago

hi, first question, after the Virtual Machine starts, want to change the VM's CPU and memory, such as cpu core from 1 added 4-core, memory from 512MB added 1024MB, stop the VM later, you can not edit System io.rancher.vm .vcpu 1 and Systemio.rancher.vm.memory parameters, can improve the function, can not change these parameters are very difficult to use! The second question, after a container instance starts, the container can not be modified CPU and memory parameters, even if the container is stopped, it can not be modified, it can not join the function,?can not change these parameters are very difficult to use!

LLParse commented 5 years ago

RancherVM was rewritten to use Kubernetes CustomResourceDefinitions. The CPU and Memory fields in the CRD are now mutable. The virtual machine must be stopped/started for the changes to take effect.

The UI does not yet allow modifying the CPU/Memory fields. Leaving this open until the feature is added.