Tags:
view all tags
---+ Installing in a HVM with CD and then converting it to PV. OBSOLETE, DOESN'T WORK There's some info here:<verbatim>http://markmail.org/message/ib5bctd3amqqzl5u#query:convert%20hvm%20xen%20to%20paravirtual%20initrd+page:1+mid:pg3g44k5cdmuyqes+state:results http://old.nabble.com/Converting-full-virtualized-Linux-domUs-to-use-paravirtualized-drivers-td18942359.html</verbatim> To install a Xen Guest Os from the first time, you need to: * Create the Filesystems for it on the Xen Host: <verbatim>vgdisplay lvcreate -L 12G -n ui64_root vg_root lvcreate -L 4G -n ui64_swap vg_root lvdisplay</verbatim> * Create the Xen config file for the machine in /etc/xen/ui64 with this content:<verbatim>name = "ui64" vcpus = 2 memory = 2048 disk = ['phy:/dev/vg_root/ui64_root,hda,w', 'file:/root/SL.54.110309.DVD.x86_64.disc1.iso,hdc:cdrom,r', 'phy:/dev/vg_root/ui64_swap,hdb,w'] vif = ['mac=00:16:3e:b7:77:3e,bridge=xenbr0'] builder = "hvm" kernel = "/usr/lib/xen/boot/hvmloader" device_model = "/usr/lib64/xen/bin/qemu-dm" pae = 1 boot = "cd" vnc = 1 vncviewer = 1 vncdisplay = 7</verbatim> * Start the virtual machine and open the vnc console: <verbatim>xm create ui64 vncviewer localhost:7</verbatim> * Finish the installation (the least software installed the better), confirm reboot. Then shut down the machine with =xm destroy ui64= * Backup the basic installation if wanted. From the Xen Host perform <verbatim>dd if=/dev/vg_root/ui64_root of=/root/ui64_root.img</verbatim> * Upon restart remove all unnecesary services from bootup, and edit the /etc/modprobe.conf file to be like this. After a kernel reinstallation (or running mkinitrd manually) the initrd image will be able to boot from paravirtualized devices:<verbatim>alias eth0 xennet alias scsi_hostadapter xenblk </verbatim> * Finally install the xen kernel, which should be on the cdrom (mount it first) and uninstall the non-xen one. <verbatim>mount /dev/hdc /mnt rpm -i /mnt/SL/kernel-xen-2.6.18-164.2.1.el5.x86_64.rpm rpm -i /mnt/SL/kernel-xen-devel-2.6.18-164.2.1.el5.x86_64.rpm rpm -e kernel-devel-2.6.18-164.2.1.el5.x86_64 kernel-2.6.18-164.2.1.el5.x86_64 cat /boot/grub/menu.lst</verbatim> * Then check the xen kernel is the default to be loaded on boot, and halt the VM. * Before starting it again, replace the /etc/xen/ui64 xen config file to match this content (to be para-virtualized):<verbatim>name = "ui64" vcpus = 2 memory = 2048 disk = ['phy:/dev/vg_root/ui64_root,hda,w', 'phy:/dev/vg_root/ui64_swap,hdb,w'] vif = ['mac=00:16:3e:b7:77:3e,bridge=xenbr0'] bootloader = "/usr/bin/pygrub"</verbatim> -- Main.PabloFernandez - 2010-02-15</verbatim>
Edit
|
Attach
|
Watch
|
P
rint version
|
H
istory
:
r11
|
r6
<
r5
<
r4
<
r3
|
B
acklinks
|
V
iew topic
|
Raw edit
|
More topic actions...
Topic revision: r4 - 2010-02-16
-
PabloFernandez
LCGTier2
Log In
(Topic)
LCGTier2 Web
Create New Topic
Index
Search
Changes
Notifications
Statistics
Preferences
Users
Entry point / Contact
RoadMap
ATLAS Pages
CMS Pages
CMS User Howto
CHIPP CB
Outreach
Technical
Cluster details
Services
Hardware and OS
Tools & Tips
Monitoring
Logs
Maintenances
Meetings
Tests
Issues
Blog
Home
Site map
CmsTier3 web
LCGTier2 web
PhaseC web
Main web
Sandbox web
TWiki web
LCGTier2 Web
Users
Groups
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
P
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
Warning: Can't find topic "".""
Account
Log In
Edit
Attach
Copyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback