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] Install guest domains using virt-manager and iso images

To: Daniel Lam <daniel@xxxxxxxxxxxxxxxx>, matt@xxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Install guest domains using virt-manager and iso images
From: Boris Derzhavets <bderzhavets@xxxxxxxxx>
Date: Tue, 5 Jan 2010 02:42:52 -0800 (PST)
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 05 Jan 2010 02:43:44 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1262688172; bh=0HO2Yo2UTa92fGDaQuc4B9wXq+AqQOumFlFQBv+NUXw=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=RdpUYaV3KUqaj1lb5Xo83UYEFexvfwdA5uyznKm0VAwe1fXXRPMaN79JRsqrJTarYbXnIymHM4mmz3I5cVofPNfsI4eQoGDl9nik/WKrDY0A9igqtlxfE6QqJbrghtK/1BKgKxY6dN4WzRqohOelnPsVqsFsrxh6Cz/003x7oQ8=
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=s4Rd8Gnc+EAuqlj2K/ZApEsCnSIK6In2f0zUV8AGVc2HqWMoXg/IABaCO3QhysAhD9rtfTXlFjdRnSNPos71Llon34K9iTENvASucjZsN3g3gz+6FSVn11mq4XhyHlIUWG0BDFozWI2x0pGNzw+8itW0d++V9xzLecyE0rYcvEc=;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <b8a06a2c3731cf70cc1bd0e59ee65a74.squirrel@xxxxxxxxxxxxxxxxxxxxxx>
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/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
> For the record, I also tried creating guest domains just by
> "xm create" as well, however it threw some errors to me
> when it tries to change the partition table. Not sure why.
> Don't want to spend time on that approach.attachments.

Libvirt (virsh, virt-install) is always nice to have, however it's not required
for Xen Host managing :-

View for instance :-

http://bderzhavets.wordpress.com/2009/06/10/setup-fedora-11-pv-domu-at-xen-3-4-1-dom0-kernel-2-6-30-rc6-tip-on-top-of-fedora-11/

Boris.

--- On Tue, 1/5/10, Matthew Law <matt@xxxxxxxxxxxxxxxxxx> wrote:

From: Matthew Law <matt@xxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-users] Install guest domains using virt-manager and iso images
To: "Daniel Lam" <daniel@xxxxxxxxxxxxxxxx>
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Date: Tuesday, January 5, 2010, 5:19 AM

On Tue, January 5, 2010 9:58 am, Daniel Lam wrote:
> Hi All,
>
> Hope I'm not too annoying yet..
>
> I have CentOS 5.4 running as Domain 0.
> I can create CentOS guest domains via network using virt-install.
> However that's a bit slow, and I don't want to repeat the
> download process again if I create new guest domains.
>
> So my questions:
>
> - Can I create guest CentOS domains using virt-install
>   and specify a dvd iso image as its installation source?
>
> - If I can, where can I obtain the iso images? Should I
>   just use the standard installation iso images? However
>   I actually tried specifying "cd-rom" as installation source
>   before, hoping that I could create a guest domain
>   using the DVD I already burnt. However it says
>   "Paravirtualized guests cannot install off cdrom media".
>
>
> For the record, I also tried creating guest domains just by
> "xm create" as well, however it threw some errors to me
> when it tries to change the partition table. Not sure why..
> Don't want to spend time on that approach.attachments.

Hi Daniel,

investigate the '--location' parameter to virt-install.  You can specify
an image to load over http, NFS, etc. -many people do it this way.  If you
don't have an external NFS box to hand you can run one from the dom0 if
you have to, although I would suggest you add some iptables rules to
restrict access to it.

IMHO, you shouldn't run anything that you don't absolutely need on the
dom0 - maybe only SSH.  You can always create a small domU to serve VM
images, do DHCP etc. and keep the dom0 being, well, just a dom0! :-)

Hope this helps,

Matt.



_______________________________________________
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
<Prev in Thread] Current Thread [Next in Thread>