Installationsbeispiel Windows 2000
1. ISO der CD erstellen
2. Config übernehmen
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
import os, re arch = os.uname()[4] if re.search('64', arch): arch_libdir = 'lib64' else: arch_libdir = 'lib' kernel = "/usr/lib/xen-4.1/boot/hvmloader" builder='hvm' vcpus = 8 memory = 1024 # Should be at least 2KB per MB of domain memory, plus a few MB per vcpu. shadow_memory = 8 name = "xenwin2000" vif = [ 'type=ioemu, bridge=eth0, mac=00:16:17:12:23:01, model=e1000' ] acpi = 1 apic = 1 viridian = 1 xen_platform_pci=1 disk = [ 'file:/mnt/server/VMs/domains/win2000/win2000.img,hda,w','file:/mnt/server/VMs/domains/win2000/win2000.iso,ioemu:hdc:cdrom,r'] device_model = '/usr/' + arch_libdir + '/xen/bin/qemu-dm' #gfx_passthru = 1 #pci=['00:02.0'] #----------------------------------------------------------------------------- # boot on floppy (a), hard disk (c) or CD-ROM (d) # default: hard disk, cd-rom, floppy boot="dc" sdl=0 vnc=1 vnclisten="0.0.0.0" vncconsole=0 vncpasswd='78466890' serial='pty' usb = 1 usbdevice='tablet' |
3. img Datei erstellen (Datei für die Festplatte)
1 |
dd if=/dev/zero of=/mnt/server/VMs/domains/win2000/win2000.img bs=512k seek=4096 count=0 |
4. Booten
1 |
xm create win2000.cfg |
5. Mittels TightVNC verbinden
1 2 |
ServerIP:5900 78466890 |
&. Installation durchführen