切换风格

Wizard Sky California Sunset glow Black Cloud Beige Dragon Lavender NewYear City Snow Flowers London
收藏本站XSS平台字符串转换jsfuck
322 zz kvm虚拟化 端口映射 & 看片[复制链接]
发表于 2012-10-13 14:16:06 | 显示全部楼层 |!read_mode!
端口映射

但是KVM的图形能力不行,可以通过rdesktop远程连接解决 一个WINDOWS


  1. root@Dis9Team:~# file /WindowsServer2003SP2EnterpriseEdition.ISO
  2. /WindowsServer2003SP2EnterpriseEdition.ISO: # ISO 9660 CD-ROM filesystem data 'WIN_2003_SP2                   ' (bootable)
  3. root@Dis9Team:~#
复制代码
创建一个镜像运行


  1. root@Dis9Team:~# cd /vm
  2. root@Dis9Team:/vm# kvm-img create win.img 4G
  3. Formatting 'win.img', fmt=raw size=4294967296
  4. root@Dis9Team:/vm#
复制代码

带网卡启动


  1. root@Dis9Team:/vm# kvm -drive file=win.img -cdrom /WindowsServer2003SP2EnterpriseEdition.ISO -boot d -m 256 -net nic,vlan=0,macaddr=76-57-93-42-c0-03 -net tap,vlan=0,ifname=tap0,script=no -redir tcp:3389::3389
复制代码
-redir tcp:3389::3389 ,转发远程3389到本地链接
rdesktop localhost -u 帐号 -p 密码spicecspicec是一个强大的虚拟化链接工具 增加图形效果 ,一下根据用法所写,在虚拟机中的虚拟机估计不行
安装
  1. root@Dis9Team:/vm# apt-cache search spice | grep spice
  2. gspiceui - A graphical user interface for gnucap and ngspice
  3. gwave - a waveform viewer eg for spice simulators
  4. easyspice - A graphical frontend to the Spice simulator
  5. ngspice - A Spice circuit simulator
  6. ngspice-doc - Documentation for the ngspice circuit simulator
  7. tclspice - NGspice library for Tcl
  8. tclspice-dev - NGspice library for Tcl
  9. root@Dis9Team:/vm#
复制代码

还要装 xserver-xorg-video-qxl – X.Org X server — QXL display driver
  1. root@Dis9Team:/vm# apt-get install xserver-xorg-video-qxl
复制代码

当虚拟机安装好后 安装qxl驱动,就好比VMWARE的VMTOOLShttp://spice-space.org/download.htmlLinux sources:Windows binaries:Windows guest tools – spice-guest-tools-0.1.exe
都有 ,你就能用spicec链接,看毛片无压力聚合版本的spicec话说KVM集成了 如:
root@Dis9Team:/vm# kvm -h | grep spice
-spice enable spice
root@Dis9Team:/vm#启动的时候加个参数: -spice port=端口安装好驱动后用spice链接就能进行看片 ,魔兽 等等娱乐操作



操千曲而后晓声,观千剑而后识器。

代码区

GMT+8, 2020-9-29 21:05

Powered by Discuz! X2

© 2001-2018 Comsenz Inc.

回顶部