我已经在戴尔 poweredge1000m 刀片之一上进行了kvm
设置。libvirt
我正在使用以下语法从现有映像安装虚拟机(以 root 身份执行)。
virt-install --name=vm_test --ram=1024 --arch=i686 --vcpus=1 --os-type=linux --import --disk path=/root/shared.qcow2,bus=virtio,format=qcow2 --graphics vnc,port=5901,listen=0.0.0.0,password=newone --noautoconsole --description --autostart
我收到以下错误。
Starting install...
ERROR internal error process exited while connecting to monitor: char device redirected to /dev/pts/1
open /dev/kvm: Permission denied
failed to initialize KVM: Operation not permitted
Domain installation does not appear to have been successful.
If it was, you can restart your domain by running:
virsh --connect qemu:///system start vm_test
otherwise, please restart your installation.
我对其他桌面主机之一使用了完全相同的命令,它在那里工作。virt-manager
我可以使用 ISO 映像安装 VM ,virt-manager
并将磁盘映像存储在默认位置。
对我来说,这似乎是一个文件权限错误,因为它不适用于/vms
目录,但正在使用其他/home/vm
目录。
提前感谢您的帮助