28962897289828992900290129022903290429052906
DiskDef.diskBus diskBusType = getGuestDiskModel(vmSpec.getOs()); DiskDef disk = new DiskDef(); if (volume.getType() == Volume.Type.ISO) { if (volPath == null) { /* Add iso as placeholder */ disk.defISODisk(null); } else { disk.defISODisk(volPath); } } else { int devId = (int) volume.getDeviceId();
28982899290029012902290329042905290629072908
if (volume.getType() == Volume.Type.ISO) { if (volPath == null) { /* Add iso as placeholder */ disk.defISODisk(null); } else { disk.defISODisk(volPath); } } else { int devId = (int) volume.getDeviceId(); if (pool.getType() == StoragePoolType.RBD) {
29342935293629372938293929402941294229432944
} if (vmSpec.getType() != VirtualMachine.Type.User) { if (_sysvmISOPath != null) { DiskDef iso = new DiskDef(); iso.defISODisk(_sysvmISOPath); vm.getDevices().addDevice(iso); } createPatchVbd(conn, vmName, vm, vmSpec); }
30803081308230833084308530863087308830893090
.getStoragePoolByURI(path); KVMPhysicalDisk isoVol = secondaryPool.getPhysicalDisk(name); isoPath = isoVol.getPath(); DiskDef iso = new DiskDef(); iso.defISODisk(isoPath); isoXml = iso.toString(); } else { DiskDef iso = new DiskDef(); iso.defISODisk(null); isoXml = iso.toString();
30843085308630873088308930903091309230933094
DiskDef iso = new DiskDef(); iso.defISODisk(isoPath); isoXml = iso.toString(); } else { DiskDef iso = new DiskDef(); iso.defISODisk(null); isoXml = iso.toString(); } List<DiskDef> disks = getDisks(conn, vmName); String result = attachOrDetachDevice(conn, true, vmName, isoXml);
38273828382938303831383238333834383538363837
path); KVMPhysicalDisk isoVol = secondaryPool.getPhysicalDisk(name); isoPath = isoVol.getPath(); DiskDef iso = new DiskDef(); iso.defISODisk(isoPath); isoXml = iso.toString(); } else { DiskDef iso = new DiskDef(); iso.defISODisk(null); isoXml = iso.toString();
38313832383338343835383638373838383938403841
36793680368136823683368436853686368736883689
DiskDef.diskBus diskBusType = getGuestDiskModel(vmSpec.getOs()); DiskDef disk = new DiskDef(); if (volume.getType() == Volume.Type.ISO) { if (volPath == null) { /* Add iso as placeholder */ disk.defISODisk(null); } else { disk.defISODisk(volPath); } } else { int devId = volume.getDiskSeq().intValue();
36813682368336843685368636873688368936903691
if (volume.getType() == Volume.Type.ISO) { if (volPath == null) { /* Add iso as placeholder */ disk.defISODisk(null); } else { disk.defISODisk(volPath); } } else { int devId = volume.getDiskSeq().intValue(); if (pool.getType() == StoragePoolType.RBD) {
37283729373037313732373337343735373637373738
} if (vmSpec.getType() != VirtualMachine.Type.User) { if (_sysvmISOPath != null) { DiskDef iso = new DiskDef(); iso.defISODisk(_sysvmISOPath); vm.getDevices().addDevice(iso); } } // For LXC, find and add the root filesystem