WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] Installing Fedora 5 as the guest domain...

To: "Petersson, Mats" <Mats.Petersson@xxxxxxx>
Subject: Re: [Xen-users] Installing Fedora 5 as the guest domain...
From: "John R. Shannon" <john@xxxxxxxxxxxxxxxx>
Date: Wed, 02 Aug 2006 12:39:45 -0600
Cc: Arsen Hayrapetyan <ahairape@xxxxxxxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 02 Aug 2006 11:40:33 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <907625E08839C4409CE5768403633E0BA7FDF4@xxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <907625E08839C4409CE5768403633E0BA7FDF4@xxxxxxxxxxxxxxxxx>
Reply-to: john@xxxxxxxxxxxxxxxx
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mail/News 1.5.0.5 (X11/20060731)
Petersson, Mats wrote:
-----Original Message-----
From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx [mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Arsen Hayrapetyan
Sent: 02 August 2006 14:15
To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Installing Fedora 5 as the guest domain...

Hello,

I have the RHEL4.1 Linux as dom0 and want to intstall
Fedora 5 Core Linux as domU...
I have created the ext3 filesystem in vm1disk file:

================================================
dd if=/dev/zero  of=vm1disk bs=1k seek=16384k count=1
mkfs -t ext3 vm1disk
================================================

Then I created a logical volume:

================================================
mount -o loop vm1disk /mnt
losetup /dev/loop0 vm1disk
pvcreate /dev/loop0
vgcreate vg /dev/loop0
lvcreate -L14G -n compnode vg
lvcreate -L1G -n compswap vg
================================================

Now I want to install Fedora 5 Core Linux as the guest domain
on that volume.
Can anyone point me to the documentation of how can I do that?

The easiest way (that I know of) is to use the CDROM/DVD image(s) to
install the OS directly into the device, using a CD-boot as the way to
tell the HVM domain what to do... Of course, this doesn't work if you
don't have VT/SVM  - in that case you're probably best off creating a
separate partition and if you must have a file-base installation, create
a file by using dd from the partition to the file...
Here's a HVM congiguration to boot CDROM I posted earlier:
import os, re
arch = os.uname()[4]
if re.search('64', arch):
    arch_libdir = 'lib64'
else:
    arch_libdir = 'lib'
kernel = "/usr/lib/xen/boot/hvmloader"
builder='hvm'
memory = 1024
name = "CDROM-boot"
vif = [ 'type=ioemu, bridge=xenbr0' ]
disk = [ 'file:/root/disk.img,ioemu:hda,w' ]
device_model = '/usr/' + arch_libdir + '/xen/bin/qemu-dm'
cdrom='/root/isoguest.iso'
boot='d'
sdl=0
vnc=1
vncviewer=1
serial='pty'
ne2000=0


An alternative, if you're not using VT/SVM, is to follow these instructions:

http://www.fedoraproject.org/wiki/FedoraXenQuickstart

I found it necessary to revise the yum.conf file.


--
John R. Shannon, CISSP
Chief Scientist
DSCI, Information Assurance Division
jshannon@xxxxxxxxxxxx
john.r.shannon@xxxxxxxxxxx
shannonjr@xxxxxxxxxx
(208)522-4506

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

<Prev in Thread] Current Thread [Next in Thread>