free tutorials logo spacer
spacer
X Free Tutorials
 
     
   
shaddow bottom left

The following files are XEN 3.2 config files (.CFG), one will run Windows Vista, The other runs a new linux Kernel, the differences are very few, but beware that a mounted CD will not boot the system, To boot the system you will need to put it on a loop.

Also, here is how to create a virtual hard disk file (You can use LVM or a partition), but if you want to use a virtual hard disk file, this is how we do it.

Assuming you want to put the .img file (A XEN Virtual Hard Drive) in the directory /HD2, and name it vhdd.img

dd

To boot from an iso file, we create a loopback device from the iso file (No copeying, you can think of it as a pointer)

1- We find out what the next vacant loopback device is, the following will print something like /dev/loop1 take note of it
$ losetup -f
2- The actual trick, make sure you replace the path with your actual ISO
$ losetup -f /hd2/winxpsp2.iso
3- change the number in front of loop with the one you got in step 1 to see if it is pointing to has your CD / DVD
will display something like /dev/loop1: [0811]:24577 (/hd2/winxpsp2.iso)
$ losetup /dev/loop1

Windows Vista xen config file
    
# Configuration file for the Xen instance atest, created
# by xen-tools 3.8 on Mon May 19 02:15:05 2008.
#

#
# Kernel + memory size
#
#kernel = '/boot/vmlinuz-2.6.24-17-xen'
#ramdisk = '/boot/initrd.img-2.6.24-17-xen'
builder = "hvm"
memory = '1024'
#
# Hostname
#
name = "atest"
vcpus=4
#cpus = "0,1,2,3"
pae=0
acpi=1#1 for windows vista....
apic=1 #If it works on your guest, keep it
#apic is One of the best known APIC architectures by intel, provides much more complex priority schemas than 8259A
#
# Networking
#
dhcp = "dhcp"
#vif = [ 'mac=00:16:3E:5F:C3:25' ]
vif = ['bridge=xenbr0']
#vif = ['ip = "10.0.11.13", bridge=xenbr0']

#vif = [ 'ip=192.168.0.132,mac=00:16:3E:5F:C3:25' ] if you want a static IP, this is the way to go

#
# Disk device(s).
#
root = '/dev/xvda2 ro'
disk = [

'tap:aio:/hd2/testmatch.img,hda,w',
'tap:aio:/hd2/TAFEELEH_V2.iso,hdc:cdrom,r'
#'phy:/dev/loop0,hdc:cdrom,r'

#To mount a CD and not boot from it
# normally, we would say 'tap:aio:/hd2/Fedora-9-x86_64-DVD.iso,hdc:cdrom,r' to load a cd rom into IDE-2 master



# : will display something like /dev/loop1: [0811]:24577 (/hd2/winxpsp2.iso)
#and now you can use 'phy:/dev/loop0,hdc:cdrom,r' as cd, remember to set boot="dc" on the next line if you want to boot from hdc (Our CD)
]
boot="dc"
#
# Behaviour
#
on_poweroff = 'destroy'
on_reboot = 'restart'
on_crash = 'restart'
#device_model = "/usr/lib/xen/bin/qemu-dm"
#cdrom='/hd2/TAFEELEH_V2.iso' this is old thing, these days it is merged with disks
#boot='d' Also obsolete
sdl=1
#vnc=1
#vncviewer=0
stdvga=0#this means, use the cirrus VGA not the old VGA
#serial="pty"
#ne2000=0


#i commented this coz i added above
extra = '2 console=xvc0'

    
    
Linux xen config file
#
# Kernel + memory size
#
#kernel = '/boot/vmlinuz-2.6.24-17-xen'
#ramdisk = '/boot/initrd.img-2.6.24-17-xen'
#kernel = 'vmlinuz-2.6.24-16-generic'

####################################################################################
#Virtualization
####################################################################################
builder = "hvm"                                    #(Slower) this one is when 
                                                   #you want full virtualization for 
                                                   #something like Windows
####################################################################################
#Memory
####################################################################################
memory = '1024'
####################################################################################
# Hostname
####################################################################################
name = "ubtest"
####################################################################################
#Processor/Chipset features
####################################################################################
vcpus=4                                            #Number of processors to use
#cpus = "0,1,2,3"                                  #What processors
pae=1                                              #the PAE in processor is requiered 
                                                   #by new linux kernels....
acpi=0                                             #1 required for windows vista....
apic=1                                             #If it works on your guest, keep it
                                                   #apic is One of the best known APIC
                                                   #architectures (by intel), provides 
                                                   #much more complex priority schemas
####################################################################################
# Networking
####################################################################################
#vif = [ 'ip=192.168.0.132,mac=00:16:3E:5F:C0:25' ]
vif = ['bridge=xenbr0']    #if in only dhcp mode
#vif = ['ip = "10.0.11.13", bridge=xenbr0']

####################################################################################
# Disk device(s).
####################################################################################

root = '/dev/xvda2 ro'           #found it somewhere, and forgot what it is for
                                 #most probably for para virt guests
disk = [
         'tap:aio:/hd2/ubdns5.img,hda,w',
         #'tap:aio:/hd2/TAFEELEH_V2.iso,hdc:cdrom,r'
         'phy:/dev/loop1,hdc:cdrom,r'
#To mount a CD and not boot from it
# normally, we would say 'tap:aio:/hd2/Fedora-9-x86_64-DVD.iso,hdc:cdrom,r' to load a cd rom into IDE-2 master
#to mount a CD for booting
#when we want to boot from from CDROM / DVD drive, we have to create a loopback device from the ISO file
# losetup -f : will tell us what loop device is free EX /dev/loop1
# losetup -f /hd2/winxpsp2.iso : The actual trick
# losetup /dev/loop1 : will display something like /dev/loop1: [0811]:24577 (/hd2/winxpsp2.iso)
#and now you can use 'phy:/dev/loop1,hdc:cdrom,r' as cd, remember to set boot="dc" on the next line if you want to boot from hdc (Our CD)
]
boot="dc"
#
# Behaviour
#
on_poweroff = 'destroy'
on_reboot = 'restart'
on_crash = 'restart'
#device_model = "/usr/lib/xen/bin/qemu-dm"
#cdrom='/hd2/TAFEELEH_V2.iso' this is old shit, these days it is merged with disks
#boot='d' but how do we boot from CD now ?
sdl=1
#vnc=1
#vncviewer=0
stdvga=0#this means, use the cirrus VGA not the old VGA
#serial="pty"
#ne2000=0


#i commented this coz i added above
extra = '2 console=xvc0'
    
    

 

 

 


Your Name:

Subject:

Your Comment:


From: nansey
Subject: ddDJWrOHpD
PriFDZ dfv814t4fdfvmlfn093fvgbos
From: abraham
Subject: MyKBlOAVydNXqyN
PERtWI fv9db5dgbn3207vybfv5
From: Tmfssoji
Subject: cnIGiHWgqqZMDT
Very funny pictures beach cheap hotel in west palm beach florida =[
From: Qwaujwvy
Subject: HJDnukMydvXVAns
Good crew it's cool :) frankenmuth michigan cheap hotels granbury texas rza
From: Tjqaphvb
Subject: SizioRSGBgoHEO
It's serious beach cheap hotels cheap hotels colton ca 139530
From: Edwfajkb
Subject: SWTVvjkyQcmUMCySER
this post is fantastic bangkok cheap cheap san fransisco hotel qllg
From: Hcrftgcx
Subject: bdPMhxPugkBKD
Cool site goodluck :) flights holidays hotels car hire cheap hotels wwgf
From: Wewfksou
Subject: wekqRyNJXjuFD
Hello good day hotel reservation vegas cheap hotel discount 267
From: Fhzqnkgq
Subject: iKVMpVjhMeJDnSowMu
Gloomy tales park cheap air fare to 5057
From: Zabdfthe
Subject: zRfZPrYoZUT
perfect design thanks flights and hotels in san francisco cheap king hotel mattress >:))
From: Akpngscl
Subject: xuKyOMQFvpMLPMycCrc
Best Site Good Work magnificent mile hotels cheap hotels in moscow 5564
From: Rshwzyge
Subject: njEUQhnqcdHeIrt
magic story very thanks fliegt and hotel in paris istanbul cheap 646
From: Rcqamqad
Subject: zbYSfqDDrpwBOO
perfect design thanks the strip las vegas cheap hotel bed linens 8-(
From: Slzttavx
Subject: ojiZmjtfMrSNYfm
real beauty page in dubai cheap london england hotel rooms 109704
From: Qbsxphtl
Subject: syXdZcurgo
Jonny was here hotels in burlington vermont bahama island hotels bimini cheap eyrp
From: Tjqaphvb
Subject: SizioRSGBgoHEO
It's serious beach cheap hotels cheap hotels colton ca 139530
From: Plgiebhl
Subject: CHcrEedLmFyGheXgs
Gloomy tales downtown chicago cheap hotel san diego ca qvcsv
From: Iwpxwvkz
Subject: yNlEXjNpcZApeirgj
It's serious hotels around asheville nc cheap hotel waco ijfpf
From: Lrscuzsy
Subject: CtBuOGCktjTr
best work man great
From: Lrscuzsy
Subject: CtBuOGCktjTr
best work man great
From: Ipabyxpd
Subject: CFUFwIJpmIxOmbruT
Thanks funny site free pictures of porn jytrx free bisexaul porn 059
From: Fgupnfie
Subject: encewnzXGmxUUOXwTg
I love this site
From: osher
Subject: dpcvqcPNNkRZyM
free preteen nude pics and videos
From: Zsxbrled
Subject: QbnOTAzytISW
good material thanks underage porno gqccj teen porn video >:(
From: Hwezjtan
Subject: GJTTXHbAMiFFtTD
i'm fine good work gay male porn galleries %-)) porn star persia's lesbian scenes jph
From: Clgcbhmn
Subject: PdteJRwOpJhaRfNQuFs
good work man
From: Lqyadmly
Subject: mBgEaMUlhuEzDFP
Wonderfull great site young free porn 8(( dragon ball porno :-DD
From: Xzhmuprg
Subject: dytrAwQUPO
It's funny goodluck welovefreeporn cxxch psp porn 452
From: Dfekhfos
Subject: qnrcSwZYgVWhaeI
magic story very thanks gia porn 01820 members =-(
From: Dfekhfos
Subject: qnrcSwZYgVWhaeI
magic story very thanks gia porn 01820 members =-(
From: Gtrnnjpc
Subject: CRsCAbprYydxuXJI
good material thanks free porn picture 988436 porno4all ljq
From: Mjfgglxs
Subject: YdgSGmYyFefrupEXg
Best Site good looking completely free adult porn 373 latina ass porn >:PP
From: Wxvsxptu
Subject: nHpAdAEqIIfWWli
Wonderfull great site cheerleader 896370 scatt porn >:-[
From: Qflmrkkb
Subject: kruDdbLDTkEO
this post is fantastic free gay male porn 4915 xxx 123 black porn 8-DDD
From: Iyifdovm
Subject: LNYXYxOgXFcu
Cool site goodluck :) free skinny flat chested teens qai boot camp for troubled teens kerjsp
From: Jmyfubkw
Subject: eybIeOkOcsSSnFsdEFh
It's funny goodluck teen gallerys umirqw grteen valley az-quail valley :[[
From: Jmyfubkw
Subject: eybIeOkOcsSSnFsdEFh
It's funny goodluck teen gallerys umirqw grteen valley az-quail valley :[[
From: Jnbwtzqa
Subject: goWgXPrtIOqrIlXEW
Gloomy tales teenagers and motivation =(( help for teen moms 917450
From: Mhvmzyef
Subject: QBqZEkpOrFtEgbaZYJ
this is be cool 8) help for troubled teen zljj diets for teens 9436
From: Gjarqtmb
Subject: uHvwwjKQQBGaRzBWEv
magic story very thanks daily devotional for teens 298031 teens snowboard pictures 1916
From: Qmsdolrp
Subject: VSlPAtovGZIAdQHQSkP
Punk not dead nu preteens hfeoae fourteen amendment 424735
From: Xfuvhfoq
Subject: BvLENyZHbaVUsimJxyg
Very Good Site asian vps teens kissing teens tgp >:-P
From: Huluhjon
Subject: GLCNUdlxHajHv
Excellent work, Nice Design teen male models 2448 teen lust 40706
From: Chxeylnp
Subject: JErVfcEEIiRLYCKexQ
Thanks funny site
From: Jozlsqoi
Subject: fNsNGUeZwCHz
Thanks funny site
From: Blxhmufp
Subject: AvMUPKYratseurTKaJ
sweet site thx
From: Rcszzzom
Subject: JcuAkhpAmNkR
good material thanks rules for bipolar teens xlt
From: Rcszzzom
Subject: JcuAkhpAmNkR
good material thanks rules for bipolar teens xlt
From: Bflofsbn
Subject: DiqgGdKGZp
perfect design thanks lolitasex archive 413
From: Bflofsbn
Subject: DiqgGdKGZp
perfect design thanks lolitasex archive 413