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] Xen guest swap use

I use file backed, but here's what i do for swap..
disk =
['file:/XEN/images/CentOS-4.0.img,sda1,w','file:/XEN/images/swapfile.img,sda2,w']

then in the xenU's fstab, make the appropriate swap entry.

/dev/sda2   swap   swap   defaults        0 0

I would think you'd just have to adjust the file: line to your setup.
Hope that helps some.

John

> Since Xen has trouble identifying all partitions on a virtual disk, what
> does it do about the swap partition (if present on the virtual disk). Does
> that need to be specified explicitly in the
> configuration option?
>
> Arijit
>
> On 5/26/05, Paul Jakma <paul@xxxxxxxx> wrote:
>>
>> On Thu, 26 May 2005, Arijit Ganguly wrote:
>>
>> > Is it possible for Xen itself to detect the preexisting partitions
>> > (which we have created from domain 0) on the device we are trying
>> > to connect. Something like:
>> >
>> > [phy:/dev/sda,/dev/hda, 'w'], just mapping some device to a virtual
>> > physical device on guest. The ghuest OS be able to detect the
>> > partitions drawn on /dev/sda from domain 0 I tried but does't seem
>> > to work.
>>
>> http://bugzilla.xensource.com/cgi-bin/bugzilla/show_bug.cgi?id=43
>>
>> > a. The device would appear as /dev/hda0 and not as /dev/hda.
>> > b. fdisk even shows the partitions on the /dev/hda0, but /dev file
>> system
>> > doesn't have any corresponding devices.
>>
>> It does seem to find the first partition, just doesnt scan for any
>> others.
>>
>> I'd like to be able to assign whole disks to domU's and have domU's
>> handle partitioning particularly so that Linux extX fs labels aren't
>> visible to the dom0. And to simplify management of disks.
>>
>> regards,
>> --
>> Paul Jakma paul@xxxxxxxx paul@xxxxxxxxx Key ID: 64A2FF6A
>> Fortune:
>> If you find a solution and become attached to it, the solution may
>> become
>> your next problem.
>>
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users



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