[Users] VM Creation
Schoenbrun, Dustin
Dustin.Schoenbrun at netapp.com
Fri Mar 30 13:24:28 UTC 2012
Hey Itamar,
Thanks for the information! This is exactly what I was after.
-- Dustin
-----Original Message-----
From: Itamar Heim [mailto:iheim at redhat.com]
Sent: Friday, March 30, 2012 7:28 AM
To: Schoenbrun, Dustin
Cc: users at ovirt.org
Subject: Re: [Users] VM Creation
On 03/29/2012 11:56 PM, Schoenbrun, Dustin wrote:
> Greetings,
>
> I was wondering if someone could point me in the proper direction in
> the code where VMs are created within the oVirt Engine. Any help that
> I can get would be greatly appreciated. Thanks!
if you mean creating the VM at configuration level: AddVm.
it has a few variants:
1. from template - will create the VM and clone/cow the disks 2. from scratch/blank template - will create the VM, and you will need to later add/attach the disks manually.
3. from an existing snapshot (will collapse layers iirc)
(you can also import a VM)
to run the VM: RunVm
relevant code classes in engine under this path:
./backend/manager/modules/bll/src/main/java/org/ovirt/engine/core
/bll/AddVmFromTemplateCommand.java
/bll/AddVmFromSnapshotCommand.java
/bll/AddVmTemplateInterfaceCommand.java
/bll/AddVmFromScratchCommand.java
for creating and attaching a disk to a VM bll/AddDiskToVmCommand.java
More information about the Users
mailing list