---
title: "[メモ]Proxmox VEであのポップアップを消す"
id: "7318"
type: "post"
slug: "%e3%83%a1%e3%83%a2proxmox-ve%e3%81%a7%e3%81%82%e3%81%ae%e3%83%9d%e3%83%83%e3%83%97%e3%82%a2%e3%83%83%e3%83%97%e3%82%92%e6%b6%88%e3%81%99"
published_at: "2025-08-03T00:00:26+00:00"
modified_at: "2025-08-03T00:06:28+00:00"
url: "https://www.okin-jp.net/archives/7318"
markdown_url: "https://www.okin-jp.net/archives/7318.md"
excerpt: "MacのWindowsAppからxrdpにrdp接続するとusキーボードになってしまうので調査 Continue reading"
taxonomy_category:
  - "Server"
taxonomy_post_tag:
  - "Nginx"
  - "Proxmox VE"
  - "サーバー運用"
  - "運用メモ"
---

Proxmox VEは無料で使うことができます。商用サブスクリプションを購入していない場合は、ログイン時とソフトウェアアップデート時に「No valid subscription」のポップアップが出てきます。

今回はこのポップアップを消す方法について紹介します。

(以下編集中)

nginxをリバースプロキシとして使っているためsub_filterでコンテンツを変更できます。(gzipで圧縮されていると効かないのでproxy_set_header Accept-Encoding gzip;があればコメントアウトする。)

最近のリファクタでJS内の書き方構成が変わったのでそれに対応して以下のようにしています。

# Before 8.4.4? sub_filter ".data.status.toLowerCase() !== 'active') {" ".data.status.toLowerCase() !== 'active') {orig_cmd();exit;"; # After 8.4.5 sub_filter "checked_command: function (orig_cmd) {" "checked_command: function (orig_cmd) {Proxmox.Utils.API2Request({url: '/nodes/localhost/subscription',method: 'GET',success: function (response, opts) {orig_cmd();},failure: function (response, opts) {Ext.Msg.alert(gettext('Error'), response.htmlStatus);}});},checked2_command: function (orig_cmd) {";

| 1234 | # Before 8.4.4? sub_filter ".data.status.toLowerCase() !== 'active') {" ".data.status.toLowerCase() !== 'active') {orig_cmd();exit;"; # After 8.4.5 sub_filter "checked_command: function (orig_cmd) {" "checked_command: function (orig_cmd) {Proxmox.Utils.API2Request({url: '/nodes/localhost/subscription',method: 'GET',success: function (response, opts) {orig_cmd();},failure: function (response, opts) {Ext.Msg.alert(gettext('Error'), response.htmlStatus);}});},checked2_command: function (orig_cmd) {"; |
| --- | --- |

以前のバージョンでは当該処理が1行だったのでそれをアンカーに処理の差し替えを行っていました。

最新版はchecked_commandがポップアップを出しているので本来のcheckedをchecked2にしてポップアップを出さないchecked_commandに差し替えています。

この処理の実体は/usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.jsですがpve-managerパッケージが更新されるたびに書き換えるのは面倒なのでリバースプロキシでよしなにしています。

![おきん(blog)](https://secure.gravatar.com/avatar/90fa8845304183a491e9f3bfa0a6a44e46e25882407e4aa652815d725d55bd8c?s=100&r=g)

[おきん(blog)](https://www.okin-jp.net/archives/author/oops-okin)

[https://mi.okin-jp.net/@okin_p](https://mi.okin-jp.net/@okin_p)
(Misskey)  
 [https://fi.okin-jp.net/@okin_p](https://fi.okin-jp.net/@okin_p)
(Firefish)  
 [https://si.okin-jp.net/@okin_p](https://si.okin-jp.net/@okin_p)
(Mastodon)

[https://fedifile.net/@okin_p/profile/](https://fedifile.net/@okin_p/profile/)
  
 [https://twpf.jp/okin_p](https://twpf.jp/okin_p)
  
 [http://profile.hatena.ne.jp/okin_p/](http://profile.hatena.ne.jp/okin_p/)

名前：おきん  
 やってること：面倒なことをPHPにやらせる、IPv6でなにかする、車で移動する  
 主なガジェット：Google Pixel 4a (5G) ,iPhone XS(ジャンク), iPad mini5, その他

種別：IPv6 Single stack 猫

パソコンやガジェットについて書いていく…予定。

[https://twitter.com/okin_p](https://twitter.com/okin_p)
[https://si.okin-jp.net/@okin_p](https://si.okin-jp.net/@okin_p)

### *関連記事*

### コメントを残す[コメントをキャンセル](/archives/7318#respond)

このサイトはスパムを低減するために Akismet を使っています。[コメントデータの処理方法の詳細はこちらをご覧ください](https://akismet.com/privacy/)
。
