Xen on Debian: Difference between revisions

Jump to navigation Jump to search
Line 473: Line 473:
Paste the config below into the file and save it, NOTE this assumes your Windows iso is located in /root/ with the filename windows.iso and that you're using Squeeze (for Wheezy change the kernel line to a xen-4.1 instead of xen-4.0 folder). In Debian Jessie, please use 'qemu-xen' rather than 'qemu-xen-traditional'.
Paste the config below into the file and save it, NOTE this assumes your Windows iso is located in /root/ with the filename windows.iso and that you're using Squeeze (for Wheezy change the kernel line to a xen-4.1 instead of xen-4.0 folder). In Debian Jessie, please use 'qemu-xen' rather than 'qemu-xen-traditional'.


     kernel = "/usr/lib/xen-4.0/boot/hvmloader"
     kernel = "/usr/lib/xen-4.8/boot/hvmloader"
     builder='hvm'
     builder='hvm'
     memory = 4096
     memory = 4096
    vcpus=4
     name = "windows"
     name = "ovm-1734"
     vif = ['bridge=xenbr0']
     vif = ['bridge=xenbr0']
     disk = ['phy:/dev/vg0/windows,hda,w','file:/root/windows.iso,hdc:cdrom,r']
     disk = ['phy:/dev/vg0/windows,hda,w','file:/root/windows.iso,hdc:cdrom,r']
or
    disk = [ 'file:/home/xen/xenwin10.img,hda,w', 'file:/root/windows.iso,hdc:cdrom,r' ]
     acpi = 1
     acpi = 1
<!--    device_model = 'qemu-dm' -->
     device_model_version = 'qemu-xen'
     device_model_version = 'qemu-xen-traditional'
     boot="dc"
     boot="d"
     sdl=0
     sdl=0
     serial='pty'
     serial='pty'
     vnc=1
     vnc=1
     vnclisten=""
     vncconsole=1
     vncpasswd=""
     vnclisten="10.0.1.10"
 
    vncpasswd="Passw0rd"
 
THIS WORKS:
kernel = "/usr/lib/xen-4.8/boot/hvmloader"
builder='hvm'
memory = 1024
 
# Should be at least 2KB per MB of domain memory, plus a few MB per vcpu.
shadow_memory = 8
name = "xenwin10"
vif = [ 'bridge=xenbr0' ]
acpi = 1
disk = [ 'file:/home/xen/xenwin10.img,hda,w', 'file:/root/windows.iso,hdc:cdrom,r' ]
 
device_model_version = 'qemu-xen'
 
#-----------------------------------------------------------------------------
# boot on floppy (a), hard disk (c) or CD-ROM (d)
# default: hard disk, cd-rom, floppy
boot="dc"
sdl=0
vnc=1
vncconsole=1
vncpasswd='Passw0rd'
vnclisten='10.5.0.173'
 
serial='pty'