wndows make images

配置文件/etc/xen/mywindows。内容如下

  1. import os, re
  2. arch_libdir = 'lib'
  3. arch = os.uname()[4]
  4. if os.uname()[0] == 'Linux' and re.search('64', arch):
  5. arch_libdir = 'lib64'
  6. kernel = "/usr/lib/xen/boot/hvmloader"
  7. builder='hvm'
  8. memory = 3000
  9. name = "mywindows"
  10. vcpus=8
  11. pae=1
  12. acpi=1
  13. vif = [ 'type=ioemu, mac=00:B6:4A:E7:88:4C, bridge=bond0' ]
  14. disk = [ 'phy:/dev/sda6,hda,w' , 'file:/root/win2003.iso,hdc:cdrom,r' ]
  15. device_model = '/usr/' + arch_libdir + '/xen/bin/qemu-dm'
  16. boot="cda"
  17. sdl=0
  18. opengl=0
  19. vnc=1
  20. vnclisten="0.0.0.0"
  21. vncdisplay=1
  22. vncpasswd='VNC_PASS'
  23. stdvga=0
  24. serial='pty'

将windows的iso文件放在,/root/win2003.iso。将vm开机后自动进入光盘引导,这时使用vnc客户端连接5901,然后按提示安装即可

你可能感兴趣的:(image)