Настройки на время установки системы:
builder = 'hvm' device_model_version = 'qemu-xen' memory = 128 vcpus = 1 pae = 0 name = 'winxp' # Network dhcp = 'dhcp' vif = [ 'mac=00:16:3e:00:00:01,bridge=xenbr0'] on_poweroff = 'destroy' on_reboot = 'restart' on_crash = 'restart' sdl = 0 # VNC vnc = 1 vncconsole = 1 vncdisplay=11 vncpasswd = 'ПАРОЛЬ' vnclisten = 'IP-адрес' keymap = 'ru' stdvga = 0 serial = 'pty' usb = 1 localtime = 3 videoram = 8 #На время установки системы acpi = 0 apic = 0 disk = [ 'file:/opt/xen/winxp.img,hda,w', 'file:/opt/xen/windows_xp_ru_sp3.iso,hdc:cdrom,r' ] boot = 'd'
Постоянные настройки:
acpi = 1 apic = 1 disk = ['file:/opt/xen/winxp.img,hda,w'] boot = 'c' usbdevice = ['host:0a89:0001', 'host:0951:1603'] # 0a89:0001 = Guardant Stealth/Net
Создание диска размером 4 Гбайт:
dd if=/dev/zero of=/opt/xen/winxp.img bs=1M count=4096
Запуск
xl create winxp.cfg
Проверяем VNC
netstat -an|grep 59
Останов
xl destroy winxp
Временное решение:
XENDOMAINS_SAVE=/tmp/xen/save
gvncviewer IP-адрес:11