Saya coba aplikasikan di Slackware64 13.37 dengan XEN terbaru (4.1.1) dan Xen patch terbaru+stabil, versi kernel 2.6.38.2
1. Change lilo with grub2(1.99) karena akan multiboot. Sebelum remove paket lilo, install dulu paket grub2 nya.
2. Setelah grub2 terinstall, jalankan grub-install [device]; contoh: grub-install /dev/sda
3. Jika muncul Installation finished. No error reported. lanjutkan ke grub-mkconfig; contoh: grub-mkconfig > /boot/grub/grub.cfg
4. Jika muncul:
- Generating grub.cfg ...
Found linux image: /boot/vmlinuz-huge-2.6.37.6
Found linux image: /boot/vmlinuz-generic-2.6.37.6
done
5. Now, download xen-4.1.1.tar.gz dan ekstrak.
6. Compile, jalankan make xen dan make install-xen. Dibutuhkan koneksi internet.
It will creates xen image in your /boot
7. Still in xen-4.1.1 directory, jalankan make tools dan make install-tools. Dibutuhkan acpica.
It will creates 'xm' command and /etc/xen
8. Lalu compile kernel yg sudah di-patch w/ xen, baca Posting saya sebelumnya.
Run make, make modules_install and make install. It will create and copy System.map+vmlinuz into /boot dan kernel modules into /lib/modules
9. Buat initrd di direktori /boot; contoh: mkinitrd -c -k 2.6.38.2 -m ext2 -f ext2 -R -r /dev/sda
10. Run grub-mkconfig again to generate xen image. Lalu edit beberapa baris.
Ini example grub.cfg saya:
- menuentry 'Slackware-13.37.0 GNU/Linux, with Linux 2.6.38.2-xen' --class slackware-13.37.0 --class gnu-linux --class gnu --class os {
load_video
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root ddd12055-3d37-454a-aa53-be58555fa2f8
echo 'Loading Linux 2.6.38.2-xen ...'
multiboot /boot/xen-4.1.1.gz dom0_mem=1024M
module /boot/vmlinuz-huge-2.6.38.2-xen root=/dev/sda1 ro
module /boot/initrd.gz
}
11. Booting using new xen-kernel. Jalankan service xen, pertama /etc/init.d/xencommons start, lalu /usr/sbin/xend start
12. Run 'xm list' jika berhasil keluar:
Name ID Mem VCPUs State Time(s)
Domain-0 0 1024 4 r----- 88.1
ps:
My /boot is ext2
have a nice try...
No comments:
Post a Comment