[GH-ISSUE #29] RAM Memory renders as unlimited #8

Closed
opened 2026-02-27 22:07:14 +03:00 by kerem · 6 comments
Owner

Originally created by @mkostrikin on GitHub (May 16, 2013).
Original GitHub issue: https://github.com/sibprogrammer/owp/issues/29

  • OpenVZ Web Panel 2.4
  • 1007 freshly created

$ grep PHYSPAGES /etc/vz/conf/1007.conf

PHYSPAGES="0:256M"

  • 1006 settings edited by OWP

$ grep PHYSPAGES /etc/vz/conf/1006.conf

PHYSPAGES="0:262144"

  • after Synchronization panel shows for RAM column:

1006 - unlimited

1007 - 256

  • If I change setting with OWP, panel render latest value, but after sync button becomes unlimited

Thanks

Originally created by @mkostrikin on GitHub (May 16, 2013). Original GitHub issue: https://github.com/sibprogrammer/owp/issues/29 - OpenVZ Web Panel 2.4 - 1007 freshly created > $ grep PHYSPAGES /etc/vz/conf/1007.conf > > PHYSPAGES="0:256M" - 1006 settings edited by OWP > $ grep PHYSPAGES /etc/vz/conf/1006.conf > > PHYSPAGES="0:262144" - after Synchronization panel shows for RAM column: > 1006 - unlimited > > 1007 - 256 - If I change setting with OWP, panel render latest value, but after sync button becomes unlimited Thanks
kerem closed this issue 2026-02-27 22:07:14 +03:00
Author
Owner

@sibprogrammer commented on GitHub (Jun 9, 2013):

Fixed in 0acd1bf979

<!-- gh-comment-id:19164372 --> @sibprogrammer commented on GitHub (Jun 9, 2013): Fixed in 0acd1bf97971deb9433e77f751b1e703aba30389
Author
Owner

@mkostrikin commented on GitHub (Jun 10, 2013):

Checked.
Confirm issue fixed.
Thanks,

<!-- gh-comment-id:19182268 --> @mkostrikin commented on GitHub (Jun 10, 2013): Checked. Confirm issue fixed. Thanks,
Author
Owner

@dhewana commented on GitHub (Aug 27, 2015):

Hi,

Need some help here.

This also happened to me (OpenVZ Web Panel 2.4).

capture2a

capture3a

When I tried to change the vm settings (in this case changing the Server Template), this error happened:

capture4a

I've also tried this fix github.com/sibprogrammer/owp@0acd1bf979 but still doesn't work.

Tried to create a new vm, it displays the correct RAM setting, but then after couple of minutes it turned into unlimited.

Thank you.

<!-- gh-comment-id:135375981 --> @dhewana commented on GitHub (Aug 27, 2015): Hi, Need some help here. This also happened to me (OpenVZ Web Panel 2.4). ![capture2a](https://cloud.githubusercontent.com/assets/11808969/9518473/23ab9db0-4ce1-11e5-8d1e-33fd971e51f3.jpg) ![capture3a](https://cloud.githubusercontent.com/assets/11808969/9518495/3ca695e0-4ce1-11e5-86cd-e22905c0c309.jpg) When I tried to change the vm settings (in this case changing the Server Template), this error happened: ![capture4a](https://cloud.githubusercontent.com/assets/11808969/9518499/48a483e8-4ce1-11e5-9f12-55b9b1a67675.jpg) I've also tried this fix https://github.com/sibprogrammer/owp/commit/0acd1bf97971deb9433e77f751b1e703aba30389 but still doesn't work. Tried to create a new vm, it displays the correct RAM setting, but then after couple of minutes it turned into unlimited. Thank you.
Author
Owner

@dhewana commented on GitHub (Aug 27, 2015):

  • After digging into the log:

~# tail -f /opt/ovz-web-panel/log/production.log

Processing Admin::VirtualServersController#create (for xxx.xx.xxx.xxx at 2015-08-27 20:50:40) [POST]
Parameters: {"vswap"=>"", "cpu_limit"=>"", "host_name"=>"sandbox-dhewana", "password_confirmation"=>"[FILTERED]", "nameserver"=>"", "memory"=>"unlimited", "search_domain"=>"", "controller"=>"admin/virtual_servers", "description"=>"", "start_on_boot"=>"on", "orig_server_template"=>"vswap-1g", "ip_address"=>"xxx.xx.xx.xxx", "cpu_units"=>"1000", "action"=>"create", "password"=>"[FILTERED]", "start_after_creation"=>"", "id"=>"22", "diskspace"=>"2252", "cpus"=>"", "expiration_date"=>"", "hardware_server_id"=>"2", "user_id"=>"6"}
Executing command: vzctl set 7 --privvmpages unlimited --save
Executing command: vzctl set 7 --physpages unlimited --save

HwDaemonExecException (Command 'vzctl set 7 --physpages unlimited --save' execution failed with code 1
Output: setublimit TCPSNDBUF 9223372036855300095:9223372036854775807 failed: Invalid argument
Error: failed to apply some parameters, not saving configuration file!

  • I suspect these lines of codes that causing the problem, but I could be wrong :

https://github.com/sibprogrammer/owp/blob/master/app/models/virtual_server.rb#L144-L152

  if memory_changed?
    if vswap and vswap > 0 and hardware_server.vswap
      vzctl_set("--ram #{shellescape(memory.to_s)}M --save")
    else
      privvmpages = 0 == memory.to_i ? 'unlimited' : memory.to_i * 1024 / 4
      vzctl_set("--privvmpages #{shellescape(privvmpages.to_s)} --save")
      vzctl_set("--physpages unlimited --save")
    end
  end

Waiting for your confirmation.
Thanks.

<!-- gh-comment-id:135449929 --> @dhewana commented on GitHub (Aug 27, 2015): - After digging into the log: ~# tail -f /opt/ovz-web-panel/log/production.log Processing Admin::VirtualServersController#create (for xxx.xx.xxx.xxx at 2015-08-27 20:50:40) [POST] Parameters: {"vswap"=>"", "cpu_limit"=>"", "host_name"=>"sandbox-dhewana", "password_confirmation"=>"[FILTERED]", "nameserver"=>"", "memory"=>"unlimited", "search_domain"=>"", "controller"=>"admin/virtual_servers", "description"=>"", "start_on_boot"=>"on", "orig_server_template"=>"vswap-1g", "ip_address"=>"xxx.xx.xx.xxx", "cpu_units"=>"1000", "action"=>"create", "password"=>"[FILTERED]", "start_after_creation"=>"", "id"=>"22", "diskspace"=>"2252", "cpus"=>"", "expiration_date"=>"", "hardware_server_id"=>"2", "user_id"=>"6"} Executing command: vzctl set 7 --privvmpages unlimited --save Executing command: vzctl set 7 --physpages unlimited --save HwDaemonExecException (Command 'vzctl set 7 --physpages unlimited --save' execution failed with code 1 Output: setublimit TCPSNDBUF 9223372036855300095:9223372036854775807 failed: Invalid argument Error: failed to apply some parameters, not saving configuration file! - I suspect these lines of codes that causing the problem, but I could be wrong : https://github.com/sibprogrammer/owp/blob/master/app/models/virtual_server.rb#L144-L152 ``` if memory_changed? if vswap and vswap > 0 and hardware_server.vswap vzctl_set("--ram #{shellescape(memory.to_s)}M --save") else privvmpages = 0 == memory.to_i ? 'unlimited' : memory.to_i * 1024 / 4 vzctl_set("--privvmpages #{shellescape(privvmpages.to_s)} --save") vzctl_set("--physpages unlimited --save") end end ``` Waiting for your confirmation. Thanks.
Author
Owner

@phlegx commented on GitHub (Dec 5, 2015):

Same problem! Do you have found a solution @dhewana?

<!-- gh-comment-id:162245197 --> @phlegx commented on GitHub (Dec 5, 2015): Same problem! Do you have found a solution @dhewana?
Author
Owner

@dhewana commented on GitHub (Dec 7, 2015):

@phlegx unfortunately no..

I decided to move to Proxmox 3.4, which also supported OpenVZ, but I had to manually recreated the VMs and then migrate/transfer my data and settings because Proxmox 3.4 doesn't seem compatible with VMs that created using openvz-web-panel.

Currently, I use Proxmox 4.0, which replaced OpenVZ with LXC, and it's easy to transfer/convert from OpenVZ in Proxmox 3.4 to LXCin Proxmox 4.0.

<!-- gh-comment-id:162413584 --> @dhewana commented on GitHub (Dec 7, 2015): @phlegx unfortunately no.. I decided to move to Proxmox 3.4, which also supported OpenVZ, but I had to manually recreated the VMs and then migrate/transfer my data and settings because Proxmox 3.4 doesn't seem compatible with VMs that created using openvz-web-panel. Currently, I use Proxmox 4.0, which replaced OpenVZ with LXC, and it's easy to transfer/convert from OpenVZ in Proxmox 3.4 to LXCin Proxmox 4.0.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/owp#8
No description provided.