Proxmox学习和使用_proxmox使用教程-程序员宅基地

技术标签: linux  云计算  

作者

QQ群:852283276
微信:arm80x86
微信公众号:青儿创客基地
B站:主页 https://space.bilibili.com/208826118

使用

镜像制作

img2kvm

客户端

Proxmox VE Qemu/KVM 虚拟机设置要求
如何修改proxmox ve中虚拟机的分辨率
基于PVE搭建云桌面体验
适合中小企业的桌面云平台 — DoraCloud 快速部署指导
proxmox VE安装Windows虚拟机(包括virtIO驱动)及SPICE远程桌面配置
Proxmox配置虚拟桌面
Configure remote console access
noVNC实现浏览器远程访问Windows桌面
NoVNC—以Web方式交付VNC远程连接
Proxmox VE三种控制台对比(novnc/xterm.js/SPICE)
Embed Proxmox noVNC on external Website
noVNC connect to Proxmox failed: HTTP authentication failed; no valid credentials available
Facing issue with proxmox noVNC (API), Error 401 no ticket
How to use the SPICE client (virt-viewer) to connect to a VM console?
Running novnc from somewhere else
VNC not working as expected in PVE7
nova vnc proxy基本原理
nova分析(9)—— nova-novncproxy
NoVNC的使用之一: 让我们把NoVNC代理跑起来
使用 noVNC 开发 Web 虚拟机控制台
webvnc之novnc实战
如何解决Vue.js里面noVNC的截图问题之后篇——用web虚拟终端作为替代功能
如何在跨域请求中允许带入原网站的cookie(401:not authorizated)
vue中使用novnc
proxmox CT external vnc access
8小时用HTML5打造VNCViewer
VNC Client Access
Proxmox SPICE wiki
spice issues

noVNC跨域,查看一下有无日志提示
I’m creating a PAAS provider with openVZ virtual machines on proxmox. I want to use noVNC to access the instances in another website different than proxmox console. I used an url with this form
wss://promox_ip:8006/api2/json/nodes/node_name/openvz/instance_id/vncwebsocket?port=5900&vncticket=vnc_ticket
I’m always getting this error:connection closed unexpectedly. note that i use a new ticket each connection.
Finally solved by adding modifications to HTTPerver.pm file under
/usr/share/perl5/PVE/
to Allow accessing novnc console when not logged in. Then send POST resquest to
/api2/json/nodes/{node}/lxc/{vmid}/vncproxy
and get ticket and port. Then you can connect via websocket to this link
/api2/json/nodes/{node}/lxc/{vmid}/vncwebsocket

Ubuntu16.04下编译virt-viewer
MingW编译virt-viewer
Windows下MinGW编译virt-viewer源码
交叉编译Spice-gtk
spice官网download
spice gitlab
virt-manager官网内含virt-viewer源代码

Proxmox VE 允许启动具有不同固件和机器类型的 VM,即 SeaBIOS 和 OVMF。在大多数情况下,只有当您计划使用 PCIe pass through 时,您才希望从默认的 SeaBIOS 切换到 OVMF 。VM机器类型定义了 VM 的虚拟主板的硬件布局。您可以选择默认的 Intel 440FX 或 Q35 芯片组,后者还提供虚拟 PCIe 总线,因此如果想要直通 PCIe 硬件,可能需要。

进bios确实可以修改了,我修改成 1280960,但是进入系统后显示还只是只有一个800600 4:3,用vnc的时候可以把分辨率变了就行。win虚拟机虽然分辨率也不高,但是用远程桌面连接的时候分辨率会变成显示器这边的分辨率,相当舒服。就是搞不定这个ubuntu的分辨率,在虚拟机的“硬件”菜单里面找到“显示”,编辑成vmware兼容就可以了,重启虚拟机就可以更改分辨率选项了,至少我在xubuntu里面设置成功

SPICE远程桌面配置
安装系统时显卡配置为默认,不需要通过远程管理界面修改硬件将显卡配置为spice远程。通过主机节点修改虚拟机配置文件即可。
远程界面选择服务器节点pve1,选择shell,cd到/etc/pve/qemu-server目录下,服务器上安装的虚拟机配置文件均在此目录下。在虚拟机配置文件中添加一下内容(如100.conf):
args: -spice port=61002,addr=0.0.0.0,disable-ticketing,seamless-migration=on
其中,-spice即为配置SPICE;
port为监听端口,一般应大于61001;
addr为容许网络,设置为0.0.0.0为允许任何网络连接;
disable-ticketing为去掉密码验证,如需加密码验证,将此参数改为password=xxxx;
seamless-migration=on为QMP支持。
设置完毕后在SPICE client端输入spice://ip:61002就可以正常远程连接了。

noVNC:是web的VNC。
spice:是rehat开发的显示协议。需要的软件为virt-viewer
xterm.js:相当于一个web的ssh端,依靠串口实现。
pve创建vm之后,默认的时候只有novnc。
当添加【串口】设备之后,支持xterm.js控制台
当把显示适配器设置成【SPICE】之后,支持spice控制台Proxmox VE三种控制台对比(novnc/xterm.js/SPICE
NOVNC的具有强大的硬件控制功能,能够重启开启,也是类似显示器的功能
spice相当于就是个虚拟机控制台,还可以添加usb映射高级功能。3D效果支持好
xtem.js是网页端的ssh,能够复制粘贴。
novnc和spice显示的东西都是一样,操作同步。可见都是显示器式直接访问画面。区别就在于,spice功能更加强大,性能更好。
SPICE能够是画面无缝切换,双向粘贴,USB挂载,例如远程桌面一样。具体例子可以见 pve安装server2019

dcsapak(Proxmox Staff Member): the connection to the websocket has to carry the proxmox auth ticket as a cookie
if you want to expose the vms consoles, you have 2 possibillities

  1. expose the api + built in novnc
    the user needs to be logged into the pve webui and access to the api needs to be there, otherwise the built in novnc cannot request a token
  2. build a custom proxy software that only exposes novnc
    this is not trivial to implement but the basics would be:
  • implementing some user authentication (can probably be proxied to pve?)
  • expose some minimal api that exposes a websocket connection that is proxied to the pve one
  • expose a custom novnc client that does not use the pve api for creating the websocket, etc.

13.6.1 Standard IP set management

This IP set applies only to host firewalls (not VM firewalls). Those IPs are allowed to do normal management
tasks (PVE GUI, VNC, SPICE, SSH).
The local cluster network is automatically added to this IP set (alias cluster_network), to enable interhost
cluster communication. (multicast,ssh,. . . )

# /etc/pve/firewall/cluster.fw
[IPSET management]
192.168.2.10
192.168.2.10/24

PCIe

10.9.1章节

GPU

Nach Update funktioniert GPU Passthrough nicht mehr
笔记本 Optimus MUXless 下的 Intel 和 NVIDIA 虚拟机显卡直通
Re: The arm virtual machine displays problems in QXL during the UEFI phase

It is not possible to display the frame buffer of the GPU via NoVNC or SPICE on the Proxmox VE web interface.When passing through a whole GPU or a vGPU and graphic output is wanted, one has to either physically connect a monitor to the card, or configure a remote desktop software (for example, VNC or RDP) inside the guest.If you want to use the GPU as a hardware accelerator, for example, for programs using OpenCL or CUDA,this is not required.

From the above point of view, your speculation is right. excellent! In this way, if a QXL device wants to work on ARM, the io window of the bridge it is mounted on must be allocated as 00000000-00000fff [size=4K]. In my work, by modifying the qemu code, the io window of the bridge mounted with the qxl device is fixed to 00000000-00000fff to solve this problem. what do you think?

13.8.1 Datacenter incoming/outgoing DROP/REJECT

If the input or output policy for the firewall is set to DROP or REJECT, the following traffic is still allowed for
all Proxmox VE hosts in the cluster:
• traffic over the loopback interface
• already established connections
• traffic using the IGMP protocol
• TCP traffic from management hosts to port 8006 in order to allow access to the web interface
• TCP traffic from management hosts to the port range 5900 to 5999 allowing traffic for the VNC web console
• TCP traffic from management hosts to port 3128 for connections to the SPICE proxy
• TCP traffic from management hosts to port 22 to allow ssh access
• UDP traffic in the cluster network to port 5404 and 5405 for corosync
• UDP multicast traffic in the cluster network
• ICMP traffic type 3 (Destination Unreachable), 4 (congestion control) or 11 (Time Exceeded)
The following traffic is dropped, but not logged even with logging enabled:
• TCP connections with invalid connection state
• Broadcast, multicast and anycast traffic not related to corosync, i.e., not coming through port 5404 or 5405
• TCP traffic to port 43
• UDP traffic to ports 135 and 445
• UDP traffic to the port range 137 to 139
• UDP traffic form source port 137 to port range 1024 to 65535
• UDP traffic to port 1900
• TCP traffic to port 135, 139 and 445
• UDP traffic originating from source port 53
The rest of the traffic is dropped or rejected, respectively, and also logged. This may vary depending on the
additional options enabled in Firewall ! Options, such as NDP, SMURFS and TCP flag filtering.
Please inspect the output of the
# iptables-save
system command to see the firewall chains and rules active on your system. This output is also included in a
System Report, accessible over a node’s subscription tab in the web GUI, or through the pvereport
command line tool.

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/Zhu_Zhu_2009/article/details/121390710

智能推荐

JavaScript学习笔记_curry函数未定义-程序员宅基地

文章浏览阅读343次。五种原始的变量类型1.Undefined--未定义类型 例:var v;2.String -- ' '或" "3.Boolean4.Number5.Null--空类型 例: var v=null;Number中:NaN -- not a number非数本身是一个数字,但是它和任何数字都不相等,代表非数,它和自己都不相等判断是不是NaN不能用=_curry函数未定义

兑换码编码方案实践_优惠券编码规则-程序员宅基地

文章浏览阅读1.2w次,点赞2次,收藏17次。兑换码编码设计当前各个业务系统,只要涉及到产品销售,就离不开大大小小的运营活动需求,其中最普遍的就是兑换码需求,无论是线下活动或者是线上活动,都能起到良好的宣传效果。兑换码:由一系列字符组成,每一个兑换码对应系统中的一组信息,可以是优惠信息(优惠券),也可以是相关奖品信息。在实际的运营活动中,要求兑换码是唯一的,每一个兑换码对应一个优惠信息,而且需求量往往比较大(实际上的需求只有预期_优惠券编码规则

c语言周林答案,C语言程序设计实训教程教学课件作者周林ch04结构化程序设计课件.ppt...-程序员宅基地

文章浏览阅读45次。C语言程序设计实训教程教学课件作者周林ch04结构化程序设计课件.ppt* * 4.1 选择结构程序设计 4.2 循环结构程序设计 4.3 辅助控制语句 第四章 结构化程序设计 4.1 选择结构程序设计 在现实生活中,需要进行判断和选择的情况是很多的: 如果你在家,我去拜访你 如果考试不及格,要补考 如果遇到红灯,要停车等待 第四章 结构化程序设计 在现实生活中,需要进行判断和选择的情况..._在现实生活中遇到过条件判断的问

幻数使用说明_ioctl-number.txt幻数说明-程序员宅基地

文章浏览阅读999次。幻数使用说明 在驱动程序中实现的ioctl函数体内,实际上是有一个switch{case}结构,每一个case对应一个命令码,做出一些相应的操作。怎么实现这些操作,这是每一个程序员自己的事情。 因为设备都是特定的,这里也没法说。关键在于怎样组织命令码,因为在ioctl中命令码是唯一联系用户程序命令和驱动程序支持的途径 。 命令码的组织是有一些讲究的,因为我们一定要做到命令和设备是一一对应的,利_ioctl-number.txt幻数说明

ORB-SLAM3 + VScode:检测到 #include 错误。请更新 includePath。已为此翻译单元禁用波浪曲线_orb-slam3 include <system.h> 报错-程序员宅基地

文章浏览阅读399次。键盘按下“Shift+Ctrl+p” 输入: C++Configurations,选择JSON界面做如下改动:1.首先把 “/usr/include”,放在最前2.查看C++路径,终端输入gcc -v -E -x c++ - /usr/include/c++/5 /usr/include/x86_64-linux-gnu/c++/5 /usr/include/c++/5/backward /usr/lib/gcc/x86_64-linux-gnu/5/include /usr/local/_orb-slam3 include 报错

「Sqlserver」数据分析师有理由爱Sqlserver之十-Sqlserver自动化篇-程序员宅基地

文章浏览阅读129次。本系列的最后一篇,因未有精力写更多的入门教程,上篇已经抛出书单,有兴趣的朋友可阅读好书来成长,此系列主讲有理由爱Sqlserver的论证性文章,希望读者们看完后,可自行做出判断,Sqlserver是否真的合适自己,目的已达成。渴望自动化及使用场景笔者所最能接触到的群体为Excel、PowerBI用户群体,在Excel中,我们知道可以使用VBA、VSTO来给Excel带来自动化操作..._sqlsever 数据分析

随便推点

智慧校园智慧教育大数据平台(教育大脑)项目建设方案PPT_高校智慧大脑-程序员宅基地

文章浏览阅读294次,点赞6次,收藏4次。教育智脑)建立学校的全连接中台,对学校运营过程中的数据进行处理和标准化管理,挖掘数据的价值。能:一、原先孤立的系统聚合到一个统一的平台,实现单点登录,统一身份认证,方便管理;三、数据共享,盘活了教育大数据资源,通过对外提供数。的方式构建教育的通用服务能力平台,支撑教育核心服务能力的沉淀和共享。物联网将学校的各要素(人、机、料、法、环、测)全面互联,数据实时。智慧校园解决方案,赋能教学、管理和服务升级,智慧教育体系,该数据平台具有以下几大功。教育大数据平台底座:教育智脑。教育大数据平台,以中国联通。_高校智慧大脑

编程5大算法总结--概念加实例_算法概念实例-程序员宅基地

文章浏览阅读9.5k次,点赞2次,收藏27次。分治法,动态规划法,贪心算法这三者之间有类似之处,比如都需要将问题划分为一个个子问题,然后通过解决这些子问题来解决最终问题。但其实这三者之间的区别还是蛮大的。贪心是则可看成是链式结构回溯和分支界限为穷举式的搜索,其思想的差异是深度优先和广度优先一:分治算法一、基本概念在计算机科学中,分治法是一种很重要的算法。字面上的解释是“分而治之”,就是把一个复杂的问题分成两_算法概念实例

随笔—醒悟篇之考研调剂_考研调剂抑郁-程序员宅基地

文章浏览阅读5.6k次。考研篇emmmmm,这是我随笔篇章的第二更,原本计划是在中秋放假期间写好的,但是放假的时候被安排写一下单例模式,做了俩机试题目,还刷了下PAT的东西,emmmmm,最主要的还是因为我浪的很开心,没空出时间来写写东西。  距离我考研结束已经快两年了,距离今年的考研还有90天左右。  趁着这个机会回忆一下青春,这一篇会写的比较有趣,好玩,纯粹是为了记录一下当年考研中发生的有趣的事。  首先介绍..._考研调剂抑郁

SpringMVC_class org.springframework.web.filter.characterenco-程序员宅基地

文章浏览阅读438次。SpringMVC文章目录SpringMVC1、SpringMVC简介1.1 什么是MVC1.2 什么是SpringMVC1.3 SpringMVC的特点2、HelloWorld2.1 开发环境2.2 创建maven工程a>添加web模块b>打包方式:warc>引入依赖2.3 配置web.xml2.4 创建请求控制器2.5 创建SpringMVC的配置文件2.6 测试Helloworld2.7 总结3、@RequestMapping注解3.1 @RequestMapping注解的功能3._class org.springframework.web.filter.characterencodingfilter is not a jakart

gdb: Don‘t know how to run. Try “help target“._don't know how to run. try "help target".-程序员宅基地

文章浏览阅读4.9k次。gdb 远程调试的一个问题:Don't know how to run. Try "help target".它在抱怨不知道怎么跑,目标是什么. 你需要为它指定target remote 或target extended-remote例如:target extended-remote 192.168.1.136:1234指明target 是某IP的某端口完整示例如下:targ..._don't know how to run. try "help target".

c语言程序设计教程 郭浩志,C语言程序设计教程答案杨路明郭浩志-程序员宅基地

文章浏览阅读85次。习题 11、算法描述主要是用两种基本方法:第一是自然语言描述,第二是使用专用工具进行算法描述2、c 语言程序的结构如下:1、c 语言程序由函数组成,每个程序必须具有一个 main 函数作为程序的主控函数。2、“/*“与“*/“之间的内容构成 c 语言程序的注释部分。3、用预处理命令#include 可以包含有关文件的信息。4、大小写字母在 c 语言中是有区别的。5、除 main 函数和标准库函数以..._c语言语法0x1e