virt-install can be interactive if you supply a few necessary options first. I've put a sample of what I normally do below.
[root@dom0 ~]$ /usr/sbin/virt-install -p --nonsparse -b xenbr0
What is the name of your virtual machine? <VM NAME HERE> How much RAM should be allocated (in megabytes)? 256 What would you like to use as the disk (path)? /xen/images/<VM NAME HERE>.disk
How large would you like the disk (/xen/images/<VM NAME HERE>) to be (in gigabytes)? 5
Would you like to enable graphics support? (yes or no) no What is the install location? http://mirror.clarkson.edu/centos/5.3/os/x86_64/
Also, if your willing to spend a few bucks, the Running Xen book is a great source of information for anything relating to Xen (and I'm not saying that just because I'm friends with several of the authors). Also, you might find the following slides useful. http://cosi.clarkson.edu/docs/installingxen/
-- Mathew S. McCarrell Clarkson University '10
mccarrms@gmail.com mccarrms@clarkson.edu 1-518-314-9214
On Thu, Aug 20, 2009 at 10:09 PM, Ian Murray murrayie@yahoo.co.uk wrote:
----- Original Message ----
From: Kai Schaetzl maillists@conactive.com To: centos@centos.org Sent: Thursday, 20 August, 2009 19:31:21 Subject: Re: [CentOS] virt-manager crashes Host during installation of
guest
Ian Murray wrote on Thu, 20 Aug 2009 14:21:33 +0000 (GMT):
Actual, virt-install commmand line looks no less daunting to me.
What is "daunting" about "virt-install -p"?
[root@xen ~]# virt-install -p ERROR A name is required for the virtual machine. [root@xen ~]# virt-install -p -n newdom ERROR Memory amount is required for the virtual machine. [root@xen ~]# virt-install -p -n newdom -r 256 ERROR A disk must be specified (use --nodisks to override)
So it goes on... I suppose once you plough through all the options and save the whole command somewhere, then it is trivial to create new ones, but I got the impression that it was interactive for any missing options.
Perhaps for the benefit of the OP, perhaps you could give a complete known working example.
I don't know if that is possible under virt-install.
Everything is possible, it depends on how deep you want to dig into it.
This guy
just wants to get his first Xen VM up for some testing (I suppose). There
is no
need to follow lengthy explanations and fail in the end if there is a
simple
command available.
I think tap:aio is more favoured than file, for performance reasons.
This is general belief. I suggest doing some tests. After that you may
think
different. ;-) Also, there have been various problems with tap:aio
devices in
the various Xen incarnations over time that weren't present in file.
Well, if you have done such tests, please do share... especially on the xen-users list, as there are far more competent Xen-ers to discuss your findings than me.
You want to use LVM or remote storage for real world usage, anyway, but
that
wasn't the task outlined by the OP.
File based domains initially seemed the simplest way for me, but after a while I concluded they were a but of a pain actually, so indeed I do stick with LVs.
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos