1. Stop the VirtualBox machine.
2. Convert VDI Image to RAW Disk Format
vboxmanage clonehd --format RAW /home/user/VirtualBox_VMs/Debian_vm.vdi /home/user/VirtualBox_VMs/Debian_vm.img
3. Copy RAW image to KVM server
rsync -av --progress /home/user/VirtualBox_VMs/Debian_vm.img user@kvmserver:/home/kvm/Debian_vm.img
4. Convert RAW Image Disk Format to KVM Format
qemu-img convert -f raw Debian_vm.img -O qcow2 Debian_vm.qcow2
Źródło: https://www.tecmint.com/migrate-virtualbox-vms-into-kvm-vms/
mkdir /home/images
virsh pool-destroy default
virsh pool-edit default
change
<path>/var/lib/libvirt/images</path>
to
<path>/home/images</path>
virsh pool-start default
Create new pool for ISO files
virsh pool-define-as --name iso --type dir --target /home/iso/ virsh pool-start iso virsh pool-autostart iso
https://ostechnix.com/how-to-change-kvm-libvirt-default-storage-pool-location/
- Shut down the guest machine.
- In the 'Display spice' section, select "All interfaces" instead of 'Localhost only' in "Address"
- Restart the guest machine
1. Hardware check
egrep -c '(vmx|svm)' /proc/cpuinfo grep -E --color '(vmx|svm)' /proc/cpuinfo
2. Install packages
sudo apt install qemu-kvm libvirt-clients libvirt-daemon-system bridge-utils virtinst libvirt-daemon virt-manager -y
3. Check libvirt status
sudo systemctl status libvirtd.service
4. Add user to libvirt and libvirt-qemu group
adduser user1 libvirt adduser user1 libvirt-qemu
newgrp libvirt newgrp libvirt-qemu
5. Create bridged network card
vim /etc/network/interfaces
iface enp6s0 inet manual auto br0 iface br0 inet manual bridge_ports enp6s0
https://www.linuxtechi.com/install-configure-kvm-debian-10-buster/
https://www.cyberciti.biz/faq/install-kvm-server-debian-linux-9-headless-server/
bez wpisywania hasła wiele razy