Articles avec le tag ‘Xen’
Installation d’une debian Squeeze en PVM sous xen
Pareil que pour l’installation d’une debian PVM stable, il suffit de rajouter à la ligne de commande install-suite=squeeze
ex : xm create -c squeeze.cfg install=true install-mirror=ftp://ftp.fr.debian.org/debian install-suite=squeeze
Attention, on installe grub2 par défaut… ce qui pose problème. On ne peut pas booter dessus en pygrub.
Il suffit de monter le /boot pour créer un fichier menu.lst correspondant au noyau (lomount -t ext3 -diskimage disk.img -partition 1 /mnt par exemple)
Puis on créé et édite le fichier (/mnt/boot/grub/menu.lst)
Dans mon cas :
default 0
timeout 5
color cyan/blue white/blue
title Debian GNU/Linux, kernel 2.6.26-2-686-bigmem
root (hd0,0)
kernel /boot/vmlinuz-2.6.32-5-686-bigmem root=/dev/xvda1 ro console=hvc0 quiet
initrd /boot/initrd.img-2.6.32-5-686-bigmem
title Debian GNU/Linux, kernel 2.6.32-5-686-bigmem (single-user mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.32-5-686-bigmem root=/dev/xvda1 ro console=hvc0 single
initrd /boot/initrd.img-2.6.32-5-686-bigmem
Drivers Paravirtualisés pour Windows
Extrait de la page d’OraVM :
Accelerate the performance of your virtual environment
Windows Paravirtualized drivers are high-performance network and disk drivers that significantly reduce the overhead of the traditional implementation of I/O device emulation. These drivers provide improved network and disk throughput to run fully virtualized Windows guests in an Oracle VM environment.
With Oracle VM, you can deploy both your Linux and Windows applications as is and realize the full benefits from virtualization, without compromising performance.
The following Windows guest operating systems are supported with Oracle VM:
• Windows Server 2008
• Windows Server 2003
• Windows Vista
• Windows XP
Learn more about Oracle VM Windows PV Drivers
Je complète l’annonce par un iso nommé PVM_driver.iso qui possède les drivers paravirtualisés et ainsi le Framework 2 SP2.
En effet, c’est pas évident de télécharger des drivers réseaux quand on a pas de carte réseau !
Si vous vouliez faire votre propre iso, il suffit de mettre les fichiers que vous voulez dans un répertoire et de lancer la commande :
mkisofs -r -l -L -J -o PVM_driver.iso iso/*
Contrôler les Oracle VM en XML-RPC
Il est possible de contrôler les Hyperviseurs Oracle en XML-RPC.
Voici quelques exemples de commande :
/opt/ovs-agent-2.2/utils/do_rpc.py https://oracle:motdepasse@IPdelHYPERVISEUR:8899 xen_get_vm_names
xen_get_vm_names [] =>
success:vm_names=OVM-TEST,OVM_MANAGER
/opt/ovs-agent-2.2/utils/do_rpc.py https://oracle:motdepasse@IPdelHYPERVISEUR:8899 xen_get_vm_path OVM-TEST
xen_get_vm_path ['OVM-TEST'] =>
success:path=/OVS/remote/OVM-TEST
/opt/ovs-agent-2.2/utils/do_rpc.py https://oracle:motdepasse@IPdelHYPERVISEUR:8899 xen_migrate_vm /OVS/remote/OVM-TEST IP_DE_LA_VM
xen_migrate_vm ['/OVS/remote/OVM-TEST', 'IP_DE_LA_VM'] =>
success:target_host=IPdelHYPERVISEUR
/opt/ovs-agent-2.2/utils/do_rpc.py https://oracle:motdepasse@IPdelHYPERVISEUR:8899 xen_get_vnc_port /OVS/remote/OVM-TEST
xen_get_vnc_port ['/OVS/remote/OVM-TEST'] =>
success:vnc_port=5901
Il ne reste plus qu’à faire une interface web ou graphique de gestion plus légère que l’Oracle VM Manager
Installation Lenny PVM sous OraVM (Xen en général)
On peut très facilement installer une debian stable directement avec la commande xm.
La documentation est disponible sur :
http://wiki.debian.org/Xen#DomU.28guest.29
Il suffit de télécharger le fichier de config :
ftp://ftp.debian.org/debian/dists/lenny/main/installer-i386/current/images/netboot/xen/xm-debian.cfg
Modifier un peu le fichier de configuration, avec des éléments comme :
dhcp = 'dhcp'
vif = [ 'mac=00:16:3E:BE:E3:E3' ]
disk = ['file:/OVS2/domains/lenny/disk.img,xvda,w',]
Ensuite on tappe la commande suivante pour lancer l’installation :
xm create -c xm-debian.cfg install=true install-mirror=ftp://ftp.fr.debian.org/debian
Important : Pour que le pygrub fonctionne, il faut que le /boot soit accessible dans la première partition
Sortie de OraVM 2.2.0
Voir pour plus d’informations :
http://blogs.oracle.com/virtualization/2009/10/annoucing_oracle_vm_storage_co.html
Update (10/15/2009): Oracle VM 2.2 ISO images are now available for download from Oracle E-Delivery web site :
