827828829830831832833834835836837
DiskDef iso = new DiskDef(); iso.defISODisk(isoPath); isoXml = iso.toString(); } else { DiskDef iso = new DiskDef(); iso.defISODisk(null); isoXml = iso.toString(); } List<DiskDef> disks = resource.getDisks(conn, vmName); String result = attachOrDetachDevice(conn, true, vmName, isoXml);
802803804805806807808809810811812
KVMStoragePool secondaryPool = storagePoolMgr.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();
806807808809810811812813814815816
DiskDef iso = new DiskDef(); iso.defISODisk(isoPath); isoXml = iso.toString(); } else { DiskDef iso = new DiskDef(); iso.defISODisk(null); isoXml = iso.toString(); } List<DiskDef> disks = this.resource.getDisks(conn, vmName); String result = attachOrDetachDevice(conn, true, vmName, isoXml);
36813682368336843685368636873688368936903691
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();
36833684368536863687368836893690369136923693
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) {
37303731373237333734373537363737373837393740
} 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
38293830383138323833383438353836383738383839
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();
38333834383538363837383838393840384138423843
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);
29742975297629772978297929802981298229832984
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();
29762977297829792980298129822983298429852986
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) {