[优化篇]OpenStack的虚拟桌面协议Spice代替VNC(1)

题记

VNC是OpenStack的Nova默认的连接协议,面对一些简单的管理工作表现也不错,但是如果用户经常使用Windows桌面,VNC就显得能力不足。一般情况下,使用Spice协议来代替VNC。

VNC

VNC (Virtual Network Computing)是虚拟网络计算机的缩写。VNC 是一款优秀的远程控制工具软件,由著名的 AT&T 的欧洲研究实验室开发的。VNC 是在基于 UNIX 和 Linux 操作系统的免费的开源软件,远程控制能力强大,高效实用,其性能可以和 Windows 和 MAC 中的任何远程控制软件媲美。 在 Linux 中,VNC 包括以下四个命令:vncserver,vncviewer,vncpasswd,和 vncconnect。大多数情况下我只需要其中的两个命令:vncserver 和 vncviewer。

Spice已经支持和即将支持的功能

当前支持功能:
• 图形界面 - processes and transmits 2D graphic commands
• 视频流 - heuristically identifies video streams and transmits M-JPEG video streams
• 图片压缩 - offers verios compression algorithm that were built specifically for Spice, including QUIC (based on SFALIC), LZ, GLZ (history-based global dictionary), and auto (heuristic compression choice per image)
• 硬件鼠标- processes and transmits cursor-specific commands
• 图像,颜色,鼠标缓存 - manages client caches to reduce bandwidth requirements
• 在线切换 - supports clients while migrating Spice servers to new hosts, thus avoiding interruptions
• Windows 驱动 - Windows drivers for QXL display device and VDI-port
• 多监视器
• 客户端支持linux和windows - can be easily ported to additional platforms.
• 立体声音频 - supports audio playback and captures; audio data stream is optionally compressed using CELT
• 加密 - using OpenSSL
• 两种鼠标模式- provides client (more user-friendly) and server (increased accuracy and fully synchronized) modes
• 音频视频同步 - synchronizes video streams with audio clocks
• Spice 代理 - running on the guest and performs tasks for the client
• 剪切板共享 - allows copy paste between clients and the virtual machine

未来将支持的新功能:

• 网络隧道 (in progress) - using virtual network interface to enable sharing of network resources. Currently the focus is on printer sharing but is not limited to that.
• Off-screen surfaces (in progress) - supports off-screen surfaces as infrastructure for future DirectDraw, video acceleration and 3D acceleration. GDI and X11 will also benefit from this feature. It will also lay foundation for multi-head support
• 共享usb (in progress) - allows clients to share their USB devices with Spice servers
• Direct Draw
• 客户端GUI - Enables user-friendly configuration
• 屏幕管理 - add support for enabling selection of the screen used by the client
• 配置文件 - enables persistent user and administrative settings
• 共享光驱 - share your CD with Spice server
• 视频加速
• 3D加速
• 支持Aero
• Linux features parity
• OSX client
• Simultaneous clients connection

OpenStack启用Spice协议

测试环境:Ubuntu14.04 icehouse

控制节点

1、安装软件

apt-get install nova-spiceproxy spice-html5 spice-vdagent

2、修改控制节点的Nova.conf
注释掉所有跟vnc相关的内容,然后添加如下内容


                
  • 1
    点赞
  • 12
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
搭建OpenStack虚拟化是一个小公司能够提高IT基础设施效率的好方法。 首先,OpenStack是一种用于搭建私有云平台的开源解决方案,可以将公司的物理服务器转变为虚拟机,并提供其它服务如存储、网络等,从而更好地应对不断增长的IT需求。 对于小公司来说,搭建OpenStack虚拟化带来许多好处。首先,它可以节省硬件成本,因为可以最大化地利用现有服务器资源。其次,虚拟化可以简化IT管理,提高IT资源的弹性和可伸缩性。通过OpenStack的管理界面,公司可以方便地创建和删除虚拟机,并动态调整资源分配,以适应不同的业务需求。此外,OpenStack还提供了用户自服务门户,使用户可以自助申请和管理虚拟机实例,减轻了IT部门的工作负担。 小公司搭建OpenStack虚拟化需要考虑几个方面。首先是硬件需求,包括足够的服务器、存储和网络设备,以及合适的虚拟化技术(如KVM)。其次是软件部分,需要选择合适的OpenStack发行版,并进行正确的配置和安装。公司还需要培训员工,使其掌握OpenStack的管理和维护技能。最后,由于资源和经验可能有限,小公司可以考虑借助第三方服务提供商来帮助搭建和管理OpenStack,以快速实现虚拟化的好处。 总之,小公司通过搭建OpenStack虚拟化可以获得更高的IT效率和灵活性,节省成本,并为未来的业务增长做好准备。虽然搭建过程可能有些挑战,但借助适当的硬件和软件选择,培训和合作伙伴的支持,小公司可以成功实现OpenStack虚拟化,并取得持续的业务优势。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值