[libvirt-users] How to create a guest os from existing disk image file with virt-install

Carla Araujo carla.asouza at gmail.com
Mon Jul 19 17:45:29 UTC 2010


Hi Rajiv

On Mon, Jul 19, 2010 at 02:45, Rajiv Rajaian <rajiv.care at gmail.com> wrote:

> Hi
> I want to the create the guest os from existing configured disk
> /var/lib/libvirt/images/centos.img.. What modifications should be done with
> my configuration file ??
>

You can import the *.img* executing virt-install with this parameters (this
is just an example):
virt-install --name NewVM --ram 512 --vcpus 1 --disk path=/var/lib/libvirt
/images/centos.img *--import* --noautoconsole --force

-- Carla
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20100719/be09012d/attachment.htm>


More information about the libvirt-users mailing list