xen install windows server


This tutorial will give you details on how to install virtualized windows  on xen

pvcreate /dev/sdd

check withe the following command

( pvscan  vgscan   lvdisplay   pvdisplay )

vgcreate VolumeGroup01 /dev/sdd

lvcreate -L50G -n windows1 VolumeGroup01



virt-install --name win2k8 –-hvm --ram 512 --disk path=/dev/VolumeGroup01/windows1,size=10   --network bridge=xenbr0  --vnc --os-variant win2k8 --cdrom /dev/scd1

withe the  #xm list  command you will see some things like this

[root@KB ~]# xm list
Name                                      ID Mem(MiB) VCPUs State   Time(s)
Domain-0                                   0    19966    16 r-----   7149.7
win2k8                                  14     4007     1 -b----    286.9


make sure you have your /etc/xen/win2k8.cfg file like this :

name = "win2k8"
uuid = "5d61b35a-9b6d-3df0-f280-14457280bc79"
maxmem = 512
memory = 512
vcpus = 1
builder = "hvm"
kernel = "/usr/lib/xen/boot/hvmloader"
boot = "d"                       # changed from c to d
pae = 1
acpi = 1
apic = 1
localtime = 1
on_poweroff = "destroy"
on_reboot = "restart"
on_crash = "restart"
device_model = "/usr/lib64/xen/bin/qemu-dm"
usb = 1
usbdevice = "tablet"
sdl = 0
vnc = 1
vncunused = 1
vnclisten = "192.168.1.134"     # this is the Dom0  ip address
keymap = "en-us"
disk = [ "phy:/dev/VolumeGroup01/win2k8,hda,w", "phy:/dev/scd1,hdc:cdrom,r" ]
vif = [ "mac=00:16:36:4d:65:ca,bridge=xenbr0,script=vif-bridge" ]
parallel = "none"
serial = "pty"



now with the vncviewer client on your desktop connect to 5914  ( see how to get the port number )

[root@KB ~]# xm list
Name                                      ID Mem(MiB) VCPUs State   Time(s)
Domain-0                                   0    19966    16 r-----   7149.7
win2k8                                  14     4007     1 -b----    286.9


cloning the server use the following command


virt-clone  --original=win2k8 --name=win2k8a  --file=/dev/VolGroup01/win2k8a





No comments:

Other Articles

Enter your email address: