Re: [libvirt-users] ESX VM from scratch

2015-04-01 Thread Paul Apostolescu
I can create vms using the vSphere API, I was interested if it's possible to programmatically create and start (i.e. without calling external tools) using libvirt only. On Wed, Apr 1, 2015 at 12:42 PM Mihamina Rakotomandimby < mihamina.rakotomandi...@rktmb.org> wrote: > On 04/01/2015 07:25 PM, Pa

Re: [libvirt-users] ESX VM from scratch

2015-04-01 Thread Paul Apostolescu
Thanks, that works perfectly ! On Wed, Apr 1, 2015 at 2:46 PM Matthias Bolte wrote: > 2015-04-01 18:25 GMT+02:00 Paul Apostolescu : > > I want to create a virtual machine from scratch in ESX but I can't figure > > out how to create the disks - the vmdk files. Any hints on how that can > be > >

Re: [libvirt-users] ESX VM from scratch

2015-04-01 Thread Matthias Bolte
2015-04-01 18:25 GMT+02:00 Paul Apostolescu : > I want to create a virtual machine from scratch in ESX but I can't figure > out how to create the disks - the vmdk files. Any hints on how that can be > done or even if it's possible at all ? You can use the following virsh command: vol-create-as -

Re: [libvirt-users] ESX VM from scratch

2015-04-01 Thread Paul Apostolescu
I need to disk files to be created and allocated so I can start the vm - the vm itself will be PXE booted. I can programmatically create the domain however it fails to start because the disk files are not there. Thanks On Wed, Apr 1, 2015 at 12:35 PM Pierre Schweitzer wrote: > Dear Paul, > > D

Re: [libvirt-users] ESX VM from scratch

2015-04-01 Thread Mihamina Rakotomandimby
On 04/01/2015 07:25 PM, Paul Apostolescu wrote: I want to create a virtual machine from scratch in ESX May be https://communities.vmware.com/community/vmtn/vsphere/content?filterID=contentstatus[published]~objecttype~objecttype[thread] ___ libvirt-use

Re: [libvirt-users] ESX VM from scratch

2015-04-01 Thread Pierre Schweitzer
Dear Paul, Depending on how you want to create them, qemu-img tool might be what you're looking for. It can create empty vmdk disk images: qemu-img create -f vmdk ... Cheers, On 04/01/2015 06:25 PM, Paul Apostolescu wrote: > I want to create a virtual machine from scratch in ESX but I can't figu