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 22:35] – [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__ | ||
Line 95: | Line 94: | ||
< | < | ||
- | --noautoconsole --wait=-1 | + | --initrd-inject preseed.cfg |
</ | </ | ||
+ | |||
+ | This preseed file uses a fixed IP address. | ||
+ | |||
+ | [[: | ||
+ | |||
==List== | ==List== | ||
Line 115: | Line 119: | ||
virsh autostart debian12 | virsh autostart debian12 | ||
</ | </ | ||
+ | |||
+ | == No auto start== | ||
+ | |||
+ | < | ||
+ | virsh autostart --disable debian12 | ||
+ | </ | ||
+ | |||
+ | == Information == | ||
+ | |||
+ | < | ||
+ | virsh dominfo debian12 | ||
+ | </ | ||
+ | |||
==Console== | ==Console== | ||
Line 123: | Line 140: | ||
==Stop== | ==Stop== | ||
+ | |||
+ | < | ||
+ | virsh shutdown debian12 | ||
+ | </ | ||
+ | |||
+ | NB there are optional modes | ||
+ | |||
+ | == Force stop== | ||
< | < | ||
Line 132: | Line 157: | ||
< | < | ||
virsh undefine debian12 | virsh undefine debian12 | ||
+ | </ | ||
+ | |||
+ | ==Export== | ||
+ | |||
+ | < | ||
+ | virsh dumpxml debian12 > debian12.xml | ||
+ | </ | ||
+ | |||
+ | ==Import== | ||
+ | |||
+ | < | ||
+ | virsh define debian12.xml | ||
</ | </ | ||
===Resources=== | ===Resources=== | ||
Line 139: | Line 176: | ||
[[https:// | [[https:// | ||
+ | [[https:// | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | [[https:// |