0.10.2: driver ISO (virtio-win) in the create wizard, separate download row, docs
This commit is contained in:
1 parent
d8bf6ff475
commit
f4160054ab
6 files changed
+55
-11
No files matched your search
@@ -2,6 +2,10 @@
|
||||
|
||||
All notable changes to the VM Manager extension.
|
||||
|
||||
## 0.10.2
|
||||
- Create wizard: driver ISO (virtio-win) as second CD device, separate download row,
|
||||
hint when no virtio image is present.
|
||||
|
||||
## 0.10.1
|
||||
- Create wizard: pick an ISO from `.iso`, download one inline by URL, optional
|
||||
"start right after create" (ISO is attached as CD before boot).
|
||||
|
||||
@@ -14,7 +14,7 @@ Status: **0.10.1** – feature-complete for daily use on a single node.
|
||||
|---|---|
|
||||
| Dashboard | all guests with state, loader, vCPU, RAM, datastore, autostart; start/stop/restart inline |
|
||||
| VM actions | start, stop, restart, reset, power-off, destroy (typed name required, ZFS holds released first) |
|
||||
| Create wizard | template, datastore, vCPU/RAM/disk, switch, optional boot ISO, optional start, optional cloud-init image |
|
||||
| Create wizard | template, datastore, vCPU/RAM/disk, switch, optional boot ISO, optional virtio-win driver ISO, optional start, optional cloud-init image |
|
||||
| Images | ISO/IMG inventory, HTTP(S) downloads as jobs, delete with typed confirmation, virtio-win preset |
|
||||
| Templates | list, edit, duplicate, delete, create from skeleton |
|
||||
| Datastores | add/remove vm-bhyve datastores, usage column, default cannot be removed |
|
||||
|
||||
+11
-3
@@ -192,12 +192,20 @@ if ($verb === 'create' && !empty($job['switch'])) {
|
||||
|
||||
// optional: attach the chosen ISO and boot right away
|
||||
if ($verb === 'create' && $rc === 0 && empty($timedOut)) {
|
||||
if (!empty($job['iso'])) {
|
||||
$att = vmm_iso_attach($name, [(string)$job['iso']]);
|
||||
$isos = [];
|
||||
foreach (['iso', 'driver_iso'] as $key) {
|
||||
if (!empty($job[$key])) {
|
||||
$isos[] = (string)$job[$key];
|
||||
}
|
||||
}
|
||||
if ($isos !== []) {
|
||||
$att = vmm_iso_attach($name, $isos);
|
||||
if (isset($att['error'])) {
|
||||
joblog($log, 'iso attach failed: ' . $att['error']);
|
||||
} else {
|
||||
joblog($log, 'iso attached: ' . basename((string)$job['iso']));
|
||||
foreach ($isos as $isoPath) {
|
||||
joblog($log, 'iso attached: ' . basename($isoPath));
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!empty($job['autostart']) && !empty($job['iso'])) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"appname": "VM Manager",
|
||||
"version": "0.10.1",
|
||||
"version": "0.10.2",
|
||||
"rootfolder": "/mnt/Daten/extensions/vmmngr",
|
||||
"vm_source": "auto",
|
||||
"bridges": ["ix0bridge"],
|
||||
|
||||
+37
-5
@@ -36,6 +36,7 @@ if ($post) {
|
||||
$img = (string)($_POST['image'] ?? '');
|
||||
$switch = trim((string)($_POST['switch'] ?? ''));
|
||||
$iso = vmm_safe_basename((string)($_POST['iso'] ?? ''));
|
||||
$driverIso = vmm_safe_basename((string)($_POST['driver_iso'] ?? ''));
|
||||
$autostart = isset($_POST['autostart']);
|
||||
|
||||
if (!vmm_valid_name($name)) {
|
||||
@@ -76,6 +77,9 @@ if ($post) {
|
||||
if ($iso !== '' && str_ends_with(strtolower($iso), '.iso')) {
|
||||
$meta['iso'] = vmm_data_dir('.iso') . '/' . $iso;
|
||||
}
|
||||
if ($driverIso !== '' && str_ends_with(strtolower($driverIso), '.iso')) {
|
||||
$meta['driver_iso'] = vmm_data_dir('.iso') . '/' . $driverIso;
|
||||
}
|
||||
if ($autostart) {
|
||||
$meta['autostart'] = '1';
|
||||
}
|
||||
@@ -184,11 +188,39 @@ vmm_nav('create');
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<label style="margin-left:10px;"><input type="checkbox" name="autostart" value="1"/> <?=gettext('start right after create');?></label>
|
||||
<div style="margin-top:8px;">
|
||||
<input type="text" name="iso_url" size="52" placeholder="https://.../debian-13-netinst.iso"/>
|
||||
<button type="submit" class="formbtn" name="act" value="download_iso"><?=gettext('Download ISO');?></button>
|
||||
<a href="vmmngr_images.php" style="margin-left:8px;"><?=gettext('Images page');?></a>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="celltag"><?=gettext('Driver ISO');?></td>
|
||||
<td class="celldata">
|
||||
<select name="driver_iso">
|
||||
<option value=""><?=gettext('none');?></option>
|
||||
<?php
|
||||
$virtioCount = 0;
|
||||
foreach ($isos as $i) {
|
||||
if (stripos((string)$i['name'], 'virtio') !== false) {
|
||||
$virtioCount++;
|
||||
}
|
||||
}
|
||||
?>
|
||||
<?php if ($virtioCount === 0): ?>
|
||||
<option value="" disabled><?=gettext('no virtio ISO in .iso - download it on the Images page');?></option>
|
||||
<?php endif; ?>
|
||||
<?php foreach ($isos as $i): ?>
|
||||
<?php if (stripos((string)$i['name'], 'virtio') === false) { continue; } ?>
|
||||
<option value="<?=vmm_h((string)$i['name']);?>"><?=vmm_h((string)$i['name']);?></option>
|
||||
<?php endforeach; ?>
|
||||
</select>
|
||||
<span style="opacity:.75;margin-left:8px;"><?=gettext('Windows: virtio-win ISO as second CD (drivers for disk/network).');?></span>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="celltag"><?=gettext('Download ISO');?></td>
|
||||
<td class="celldata">
|
||||
<input type="text" name="iso_url" size="52" placeholder="https://.../debian-13-netinst.iso"/>
|
||||
<button type="submit" class="formbtn" name="act" value="download_iso"><?=gettext('Download');?></button>
|
||||
<a href="vmmngr_images.php" style="margin-left:8px;"><?=gettext('Images page');?></a>
|
||||
<div style="opacity:.75;margin-top:4px;"><?=gettext('Downloads run as a job; reload the page afterwards to see the new file in the lists.');?></div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
0.10.1
|
||||
0.10.2
|
||||
Reference in new issue
Block a user