Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1868982
  • 博文数量: 473
  • 博客积分: 13997
  • 博客等级: 上将
  • 技术积分: 5953
  • 用 户 组: 普通用户
  • 注册时间: 2010-01-22 11:52
文章分类

全部博文(473)

文章存档

2014年(8)

2013年(38)

2012年(95)

2011年(181)

2010年(151)

分类: LINUX

2011-05-05 21:48:20

Quick-Start Guide

You can get the source from the or

1. Build and install

   set CONFIG_SPICE  ?= y
   $cd the root of spice4xen
   $make install
-xen
   $make install
-kernels
   $make install
-tools
Please refer to the documents of Xen for details.

2. Create a configure file for xm

An example:

kernel = '/usr/lib/xen/boot/hvmloader'
builder
= 'hvm'
memory
= '384'
device_model
= '/usr/lib/xen/bin/qemu-dm'
# Disks
disk
= [ 'file:path-to-diskimage/imagefile.img,ioemu:hda,w', 'file:path-to-cd/cd_imagefile.iso,ioemu:hdc:cdrom,r' ]
# Networking
vif
= ['ip=192.168.1.112, type=ioemu, bridge=xenbr0, mac=00:21:97:CB:0E:7D']
#Behaviour
boot
='cd'
vnc
=1
serial
= 'pty'
vcpus
=1
# Hostname
name
= 'UserVM'
usbdevice
='tablet'
# Spice
spice
=1
spicehost
='192.168.1.187'
spiceport
=6000
spicepasswd
= 'password'
spice_disable_ticketing
= 0 # 0|1
spiceic
= 'auto_glz' # auto_glz|auto_lz|quic|glz|lz|off(default=on=auto_glz) # image compression
spicesv
= 'on' # on|off|all|filter# streaming video detection and (lossy) compression, on is added as tag which is default.
spicejpeg_wan_compression
= 'auto' # auto|never|always
spicezlib_glz_wan_compression
= 'auto' # auto|never|always
#spiceplayback = 1 # 1-on|0-off # playback compression, should using CELT algorithm?
spiceagent_mouse
= 1 # 1-on (default)| 0-off, # agent-mouse mode
#qxl=0
#qxlnum=1
#qxlram=64 # M

3. Create a HVM

$xm create path-to-configure-file/xm.cfg

4. Launch the spice client

According to the example configuration above:

  • Use for unstable-xen or xen-4.1.0

  • Get and install
  • Get Anthony's tree for xen-upstream-qemu from git://xenbits.xen.org/people/aperard/qemu-dm.git
  • Build and install the qemu with the following config options
  •  ./configure --target-list=i386-softmmu --enable-spice
       
    --enable-xen --extra-cflags=-I${path-to-xen}/dist/install/usr/include
       
    --extra-ldflags=-L${path-to-xen}/dist/install/usr/lib
  • Set the VM configuration file.
Add spice fields in VM configuration file.
    #spice
    spice
=1
    spiceport
=6000
    spicehost
='192.168.1.187'
    spicedisable_ticketing
= 0 # default is 0
    spicepasswd
= 'password'

    apic
=0 # disable acpi, if you used the additional patch referred below, use acpi=0 instead
You may need to disable acpi(I'm not sure),
but if you want to try to disable acpi, you may need to set
apic = 0, (Yes, it is apic not acpi, pls don't ask me why, because I am also confused with it).
If you feel uncomfortable by set apic = 0, you can try ,
then you can use acpi=0 in vm cfg file instead of apic to give "no-acpi" argument to qemu.
  • Use xl to create an hvm
  • Because xen-upstream-qemu don't support graphic, pls try this in linux-hvm disabling graphic boot.
阅读(931) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~