Thanks guys ,I will use virt-install to create simple guest for me .
于 06/07/2012 05:04 PM, Osier Yang 写道:
On 2012年06月07日 06:38, Eric Blake wrote:
> On 06/05/2012 12:23 AM, whuang wrote:
>> Hi,
>>
>> I am a libvirt user , there is a requirement about libvirt :
>> I need a virsh cmd like "#virsh *create-as* --disk --net " to create a
>> very sample guest
>> I have not xml file and I think it's a little hard for me to create a
>> NEW xml for libvirt , so I need a virsh cmd like "vol-create-as " help
>> me do that.
>> I know there are a lot of options for creating a guest , I just need
>> --disk and --net options , others libvirt can set a defaut value .
>> I just want an easy way to create a guest :>
>
> I personally find it easier to use virt-manager or virt-install or
> gnome-boxes to create an initial guest template, then to modify that XML
> for any final tweaks before using the guest in earnest. I'm not sure
> how easy it would be to add guest templating directly into libvirt,
It would need too much defaults, and differs for different hypervisor
drivers, and it's a good question that what defaults are the best
choices for each driver. (recall Daniel Berrange talked it internally
for qemu driver).
I once thought the RFE is not a valid request from a command p.o.v
(if we provide too much options for the various config tags, it's
just duplicate work of tools like virt-install, and somehow it's
even not better than XML), but now IMHO it'd be wonderful if we
have the best default configuration template for each driver. And
if so, using the templates to implement the command will make sense.
Regards,
Osier
--
Best Regards!
Wenlong Huang
IRC Account: wenlong
Phone: 62608117 / 15011214521