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] Some Doubts regarding HVM

To: "Petersson, Mats" <Mats.Petersson@xxxxxxx>
Subject: Re: [Xen-users] Some Doubts regarding HVM
From: "trilok nuwal" <tc.nuwal@xxxxxxxxx>
Date: Thu, 12 Apr 2007 17:41:51 +0530
Cc: Xen list <Xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 12 Apr 2007 05:10:46 -0700
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=B1TatV2oyx2WZ7BTPYoPNYM6FRzZ1FjIXumVxCQ/FXcy2VggIPbWwdzQjZSQ8Xnzw2ksWg8aLhQo77Mv8c4Y0I/GI0F+2iGESeyF9COrIlvXVPHYhn75z1CPKZ0R6T1JuDYNnBgDljVuKRyQQK30CxLesX/6uYYPviCIumsOIU8=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=i94AEYZbU4d0LAZ1jEdcmQIv/hLRzh6kJFEGrjP+DDYynF3hg3Wr7yItVmBHfyifafKA/xgjjoIlnOfKFnpaJAlaaDGF1uhn1y6HnIf41/h2v4Bbkw0cWnZH2j0NBvtCztvD1zlmiEKADFCy6MWSJ122Pqa3JEduhadulhla9YY=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <907625E08839C4409CE5768403633E0B018E1BBF@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: <f58fc26d0704112346x563cd78di9576f63328d011c1@xxxxxxxxxxxxxx> <907625E08839C4409CE5768403633E0B018E1BBF@xxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx


On 4/12/07, Petersson, Mats <Mats.Petersson@xxxxxxx> wrote:


> -----Original Message-----
> From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
> [mailto: xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of
> trilok nuwal
> Sent: 12 April 2007 07:46
> To: Xen list
> Subject: [Xen-users] Some Doubts regarding HVM
>
> Hi All,
>
> My dom0  REHL5 xen OS.
>
> I installed RHEL4U4  on disk /dev/cciss/c0d1. I exported this
> to domU in config file as hda as below.
>
> disk = [ 'phy:/dev/cciss/c0d1,hda,w' , 'phy:/dev/sdb2,hdb2,w' ]
>
> hda is exported properly but my other partition /dev/sdb2 is
> not exported to Domu.
>
> And if I change to disk with full disk then it works fine.
>
> disk = [ 'phy:/dev/cciss/c0d1,hda,w' , 'phy:/dev/sdb,hdb,w' ]
>
> So conclusion is that we can't export a partition in HVM
> case. Is it correct ?

That is correct. The reason for this is that the hardware emulation
layer doesn't know anything about partitions. You can of course make a
partition into a disk if you want, such as:
'phy:/dev/sdb2,hdb,w'

I tried this phy:/dev/sdb2,hdb,w. So in DomU, i am able to export and mount /dev/sdb2 partition.
So that mean, we can insatll an Linux OS on a partition and can export this partition as disk and can mount in
guest OS as disk. It looks fine to me.

What u say. Should this work, i wll do some work on this and let u know wht i get ?


But the hardware (or io) emulation doesn't have a clue what a partition
is, because partitions are just a way for the OS to partition a disk
into sections (it used to be really important because disks could only
have a certain size [x number of sectors, blocks or clusters, whichever
the file-system utilized], but nowadays, with 64-bit pointers in
file-systems, it's pretty much just a organizational tool to keep
different types of data separated from each other).
>
> If this then we cant install a OS on a partition and start a
> HVM domain.

That would be correct.
>
> My problem is that on my laptop i have a single hard disk, so
> i can't install a Guest OS on this, because this require a
> full disk to be exported to guest OS.

Get a USB-disk, perhaps?

I don't believe Xen is meant to solve this problem, really. [And I have
some doubt that you'd actually be successful in running a native OS and
the same OS as guest-OS, but that's a different story].

--
Mats
>
> Any help..
>
> Thanks,
> Trilok
>
>



_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>