Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tools:kvm [2024/01/19 18:36] – [VM] darron | tools:kvm [2024/08/15 00:35] (current) – [VM] darron | ||
---|---|---|---|
Line 60: | Line 60: | ||
__Interactive__ | __Interactive__ | ||
+ | |||
+ | This example uses a fixed MAC address. | ||
< | < | ||
Line 84: | Line 86: | ||
--console pty, | --console pty, | ||
--location " | --location " | ||
- | --initrd-inject preseed.cfg \ | ||
--extra-args ' | --extra-args ' | ||
</ | </ | ||
- | |||
- | [[: | ||
__Non interactive__ | __Non interactive__ | ||
- | Append the following. | + | Append the following |
< | < | ||
- | --noautoconsole | + | --initrd-inject preseed.cfg |
</ | </ | ||
- | When installation completes the VM will shutdown so start the VM afterwards. | + | This preseed file uses a fixed IP address. |
+ | |||
+ | [[: | ||
==List== | ==List== | ||
Line 117: | Line 119: | ||
virsh autostart debian12 | virsh autostart debian12 | ||
</ | </ | ||
+ | |||
+ | == No auto start== | ||
+ | |||
+ | < | ||
+ | virsh autostart --disable debian12 | ||
+ | </ | ||
+ | |||
+ | == Information == | ||
+ | |||
+ | < | ||
+ | virsh dominfo debian12 | ||
+ | </ | ||
+ | |||
==Console== | ==Console== | ||
Line 125: | Line 140: | ||
==Stop== | ==Stop== | ||
+ | |||
+ | < | ||
+ | virsh shutdown debian12 | ||
+ | </ | ||
+ | |||
+ | NB there are optional modes | ||
+ | |||
+ | == Force stop== | ||
< | < | ||
Line 134: | Line 157: | ||
< | < | ||
virsh undefine debian12 | virsh undefine debian12 | ||
+ | </ | ||
+ | |||
+ | ==Export== | ||
+ | |||
+ | < | ||
+ | virsh dumpxml debian12 > debian12.xml | ||
+ | </ | ||
+ | |||
+ | ==Import== | ||
+ | |||
+ | < | ||
+ | virsh define debian12.xml | ||
</ | </ | ||
===Resources=== | ===Resources=== | ||
Line 141: | Line 176: | ||
[[https:// | [[https:// | ||
+ | [[https:// | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | [[https:// |