在使用 qemu-system 启动 guest 虚拟机期间是否可以以某种方式同时使用 -snapshot 和 -loadvm snap_id ?
目前,如果我同时使用这些选项,则无法启动 guest 虚拟机。
我需要防止将数据保存到来宾磁盘中以避免数据增长。-snapshot 允许即时实现它,但我还需要 -loadvm snap_id 来获取已启动的虚拟机,而不是等待它启动。
我有下一个 NGINX 代理配置
http {
server_tokens off;
server {
listen 7443 ssl;
ssl_certificate /etc/nginx/ssl/star.crt;
ssl_certificate_key /etc/nginx/ssl/star.key;
location /prometheus/ {
auth_basic "Prometheus";
auth_basic_user_file /etc/nginx/.htpasswd;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# I leave this hardcoded for now
proxy_pass http://prometheus:9090/prometheus/;
}
location / {
auth_basic "Prometheus";
auth_basic_user_file /etc/nginx/.htpasswd;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# I leave this hardcoded for now
proxy_pass http://alertmanager:9093;
}
}
}
events {}
Run Code Online (Sandbox Code Playgroud)
如果我使用端口 7443 在没有指定 HTTPS 的浏览器 URL 中输入,我会得到:
The …
Run Code Online (Sandbox Code Playgroud)