This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
технология_kvm [2024/07/17 10:25] val [Создание образа cloud-init] |
технология_kvm [2025/02/13 08:34] (current) val [Загрузка образа] |
||
|---|---|---|---|
| Line 16: | Line 16: | ||
| # egrep -c '(vmx|svm)' /proc/cpuinfo | # egrep -c '(vmx|svm)' /proc/cpuinfo | ||
| + | # apt update | ||
| # time apt install qemu-kvm libvirt-daemon libvirt-clients bridge-utils virt-manager #qemu | # time apt install qemu-kvm libvirt-daemon libvirt-clients bridge-utils virt-manager #qemu | ||
| real 4m27.401s | real 4m27.401s | ||
| Line 34: | Line 35: | ||
| node1# virsh list --all | node1# virsh list --all | ||
| - | node1# virsh vncdisplay winxp1 | + | node1# virsh vncdisplay winxp |
| :0 | :0 | ||
| </code> | </code> | ||
| Line 113: | Line 114: | ||
| # qemu-img info --output json /root/noble-server-cloudimg-amd64.img | # qemu-img info --output json /root/noble-server-cloudimg-amd64.img | ||
| + | # qemu-img info --output json /root/debian-12-generic-amd64.qcow2 | ||
| # time apt install libguestfs-tools | # time apt install libguestfs-tools | ||
| Line 187: | Line 189: | ||
| # virt-install \ | # virt-install \ | ||
| --name domain-node1 \ | --name domain-node1 \ | ||
| - | --osinfo ubuntu-lts-latest \ | + | --osinfo debian11 \ |
| --ram=2048 \ | --ram=2048 \ | ||
| --vcpus=2 \ | --vcpus=2 \ | ||
| Line 199: | Line 201: | ||
| --import | --import | ||
| </code><code> | </code><code> | ||
| + | Escape character is ^] (Ctrl + ]) | ||
| + | ... | ||
| + | node1 login: | ||
| ... | ... | ||
| [ OK ] Reached target cloud-init.target - Cloud-init target. | [ OK ] Reached target cloud-init.target - Cloud-init target. | ||