User Tools

Site Tools


технология_kvm

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
технология_kvm [2024/07/16 12:07]
val [Создание тома]
технология_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 172: Line 174:
  
 # virsh vol-upload --pool pool-nodes --vol cloud-init-node1 --file cloud-init-node1.iso # virsh vol-upload --pool pool-nodes --vol cloud-init-node1 --file cloud-init-node1.iso
- 
-# ###virsh vol-delete --pool pool-nodes --vol cloud-init-node1 
  
 # virsh vol-list --pool pool-nodes # virsh vol-list --pool pool-nodes
 +
 +# ###virsh vol-delete --pool pool-nodes --vol cloud-init-node1
 </​code>​ </​code>​
  
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.
технология_kvm.1721120863.txt.gz · Last modified: 2024/07/16 12:07 by val