On Tue, Oct 25, 2011 at 03:27:42PM +0000, Itzik Brown wrote: > Hi, > > I installed Fedora 16 Beta and installed VDSM from yum. > I checked it's status and it's running.
Having vital signs is good. But which Vdsm version are you using? The one posted by Federico few days ago? Plain master branch has several known issues related to running in Fedora, as does the version shipped as part of RHEV-3.0-beta-3. > > Is there a Howto or a Document with instructions for basic usage so I > can start to work with it? We have a lot to improve in the field of documentation. In particular, it is not yet simple to drive Vdsm without ovirt-engine. Please try out the attached hackish script. It defines a "local storage domain" under /tmp/localstoragedomain, creates a disk image there, and starts up a virual machine (with nothing installed). If you haven't set up ssl for Vdsm, you should put in your /etc/vdsm/vdsm.conf [var] ssl = false Tell us where it breaks. Dan.
#!/usr/bin/python import sys import uuid import time sys.path.append('/usr/share/vdsm') import vdscli from storage.sd import LOCALFS_DOMAIN, DATA_DOMAIN from storage.volume import COW_FORMAT, SPARSE_VOL, LEAF_VOL, BLANK_UUID spUUID = str(uuid.uuid4()) sdUUID = str(uuid.uuid4()) imgUUID = str(uuid.uuid4()) volUUID = str(uuid.uuid4()) path = "/tmp/localstoragedomain" # chown vdsm:kvm /tmp/localstoragedomain s = vdscli.connect() masterVersion = 1 hostID = 1 def vdsOK(d): print d if d['status']['code']: raise Exception(str(d)) return d def waitTask(s, taskid): while vdsOK(s.getTaskStatus(taskid))['taskStatus']['taskState'] != 'finished': time.sleep(3) vdsOK(s.clearTask(taskid)) vdsOK(s.connectStorageServer(LOCALFS_DOMAIN, "my favorite pet", [dict(id=1, connection=path)])) vdsOK(s.createStorageDomain(LOCALFS_DOMAIN, sdUUID, "my local domain", path, DATA_DOMAIN, 0)) vdsOK(s.createStoragePool(LOCALFS_DOMAIN, spUUID, "pool name", sdUUID, [sdUUID], masterVersion)) # connect to an existing pool, and become pool manager. vdsOK(s.connectStoragePool(spUUID, hostID, "scsikey", sdUUID, masterVersion)) tid = vdsOK(s.spmStart(spUUID, -1, -1, -1, 0))['uuid'] waitTask(s, tid) sizeGiB = 100 tid = vdsOK(s.createVolume(sdUUID, spUUID, imgUUID, sizeGiB, COW_FORMAT, SPARSE_VOL, LEAF_VOL, volUUID, "volly", BLANK_UUID, BLANK_UUID))['uuid'] waitTask(s, tid) vmId = str(uuid.uuid4()) vdsOK( s.create(dict(vmId=vmId, drives=[dict(poolID=spUUID, domainID=sdUUID, imageID=imgUUID, volumeID=volUUID)], memSize=256, display="vnc", vmName="vm1", ) ) )
_______________________________________________ vdsm-devel mailing list firstname.lastname@example.org https://fedorahosted.org/mailman/listinfo/vdsm-devel