FAQ
KVM not available / /dev/kvm does not exist
Check if the host supports hardware virtualization:
egrep -c '(vmx|svm)' /proc/cpuinfo
ls /dev/kvm2
If you cannot use KVM on a VPS, the host may not support nested virtualization. Please contact your VPS provider to confirm.
virsh: command not found
The QEMU/KVM environment was not installed correctly. Please re-run the installation script:
bash <(curl -sSL https://raw.githubusercontent.com/oneclickvirt/qemu/main/qemuinstall.sh)VM cannot access the internet (IPv4)
Check if the iptables NAT rules exist:
iptables -t nat -L POSTROUTING -n -v | grep virbrIf not, add them manually (assuming virbr0 subnet is 192.168.122.0/24):
iptables -t nat -A POSTROUTING -s 192.168.122.0/24 ! -d 192.168.122.0/24 -j MASQUERADE
iptables -A FORWARD -s 192.168.122.0/24 -j ACCEPT
iptables -A FORWARD -d 192.168.122.0/24 -j ACCEPT2
3
VM IPv6 not working
- Confirm the host has a public IPv6 address
- Check if the IPv6 bridge is configured:
ip -6 addr show- Confirm the installation script fully executed and configured the IPv6 network.
VM fails to start / status is shut off
Check the VM error log:
virsh dominfo vm1
cat /var/log/libvirt/qemu/vm1.log2
Common causes:
- Insufficient memory: check available memory with
free -h - Insufficient disk space: check disk with
df -h - KVM permission issue: confirm
/dev/kvmpermissions are correct
How to view SSH login info
View the vmlog file for batch-created VM info:
cat vmlogOr view port forwarding rules:
iptables -t nat -L PREROUTING -n -v | grep 25000How to completely reset the QEMU/KVM environment
Uninstall first, then reinstall:
bash <(curl -sSL https://raw.githubusercontent.com/oneclickvirt/qemu/main/scripts/qemuuninstall.sh)
bash <(curl -sSL https://raw.githubusercontent.com/oneclickvirt/qemu/main/qemuinstall.sh)2
No-CDN mode (WITHOUTCDN)
If your network is stable and useful, or you want to fully disable CDN acceleration, set this before running scripts:
export WITHOUTCDN=TRUEYou can also apply it to a single command only:
WITHOUTCDN=TRUEWhen enabled, scripts will no longer try CDN acceleration URLs during execution.
