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] Converting the full-virtualization to para-virtualize

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Converting the full-virtualization to para-virtualize
From: Mark Williamson <mark.williamson@xxxxxxxxxxxx>
Date: Sun, 2 Dec 2007 18:14:08 +0000
Cc: neohtm <neohtm@xxxxxxxxx>, Daniel Mealha Cabrita <dancab@xxxxxxxxxxxx>
Delivery-date: Sun, 02 Dec 2007 10:14:57 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <000101c834ab$91677e70$b4367b50$@com>
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: <000101c834ab$91677e70$b4367b50$@com>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.9.6 (enterprise 0.20070907.709405)
> I got a question here. Can I install a full-virtualized fedora 7 as dom0
> then convert it into para-virtualized?
>
> It's because I had tried faced so many errors when installing the
> para-virtualized  fedora7 with the nfs server.

I assume you meant installing a paravirtualised F7 as domU, not dom0?  (if it 
were dom0 you could just use the F7 installer and specify that you wanted 
virtualisation).

Converting it in this way should be fairly straightforward.  Use yum in your 
domU and get it to install the F7 Xen-enabled guest kernel (don't install the 
Xen package itself, you don't want the hypervisor or tools).  This may 
configure a guest entry in grub automatically, or you may have to add one for 
your guest kernel and initrd manually - I've not used F7 much, so I'm not 
sure.  Then you need to change the configuration for the domain to be 
paravirtualised...

I assume you're using virt-manager?  I don't know if the version in F7 stores 
config files in /etc/xen/?  In which case you could just copy / alter those 
config files to conform to a PV guest.  If not, I understand you can 
use "virsh" to dump the config file into XML form, then modify it, then 
reload that file to change the config used for the domain.

To convert it to PV you'll basically want to remove all the HVM-isms (e.g. 
stuff like the ioemu devices, the hvmloader, the builder, etc may need to be 
changed) and add in the relevant PV-isms (e.g. different syntax for 
describing virtual framebuffer, "linux" builder, pygrub bootloader, device 
names changed to xvd*).

Then if you boot the domain with xm create -c you ought to see the pygrub 
screen appear; select the Xen-enabled grub entry that you installed.  It 
should boot (fingers crossed).

If you keep a copy of the original HVM config you should be able to switch 
between the two fairly easily for debugging purposes.  If you installed the 
guest to use partitions, not LVM, then it's trivial to mount the guest's 
filesystem from dom0 to make tweaks.

Cheers,
Mark

-- 
Dave: Just a question. What use is a unicyle with no seat?  And no pedals!
Mark: To answer a question with a question: What use is a skateboard?
Dave: Skateboards have wheels.
Mark: My wheel has a wheel!

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

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