You are not logged in.
Hello everyone,
I get an error when i want to set up an KVM-Server. It is a headless Arch Server and i have evering set up but when i want to install a domain with
virt-install --virt-type=kvm --hvm --name KVM-mopsam --cpu host-model-only --vcpus=2 --memory 4096 \
--network=bridge=kvm0mopsam,model=virtio --graphics spice,port=5901,tlsport=5902,listen=0.0.0.0,password=XXX \
--cdrom=/pool/iso/archlinux-2019.12.01-x86_64.iso --disk path=/pool/disk/mopsam-disk,bus=virtio --console pty --wait -1
i get the error
… ERROR <built-in function virDomainCreateXML> returned a result with an error set …
I can connect with the virt-manager and create a domain there, but then the spice will not connect.
I have done a lot of google search, but that didn't help. Please, can anyone help?
Last edited by utiadenfgnuve (2019-12-10 14:37:18)
Offline
Nobody?
Offline
Nobody?
Offline
The error suggests something is wrong with the listed options.
Try simplifying the command to narrow down where the error is.
example :
virt-install --virt-type=kvm --hvm --name KVM-mopsam-testing
If that works, the error is further on in the options.
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
(A works at time B) && (time C > time B ) ≠ (A works at time C)
Offline
utiadenfgnuve wrote:Nobody?
I am sorry, I wont do that again.
Offline
The error suggests something is wrong with the listed options.
Try simplifying the command to narrow down where the error is.example :
virt-install --virt-type=kvm --hvm --name KVM-mopsam-testing
If that works, the error is further on in the options.
Thank you. I tried, but virt-install asked me to add
--memory --disk and --cdrom
So with this it didn't show errors
virt-install --virt-type=kvm --hvm --name KVM-mopsam-testing --memory 4096 --disk path=/pool/disk/mopsam-disk,bus=virtio --cdrom=/pool/iso/archlinux-2019.12.01-x86_64.iso
But if I try a shorter version of my original line, like this
virt-install --virt-type=kvm --hvm --name KVM-mopsam --vcpus=2 --memory 4096 --network=bridge=kvm0mopsam,model=virtio --cdrom=/pool/iso/archlinux-2019.12.01-x86_64.iso --disk path=/pool/disk/mopsam-disk,bus=virtio
I still get the error with
<built-in function virDomainCreateXML>
The problem is, that I have no idea what that means.
Offline
It basically means virt-install doesn't understand the command, often caused by a typo .
Maybe I've found the typo.
--network=bridge=kvm0mopsam,model=virtio
Replace the first = (equal-sign) with a - (dash) and try again.
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
(A works at time B) && (time C > time B ) ≠ (A works at time C)
Offline
It basically means virt-install doesn't understand the command, often caused by a typo .
Maybe I've found the typo.
--network=bridge=kvm0mopsam,model=virtio
Replace the first = (equal-sign) with a - (dash) and try again.
Oh man, that is embarrassing. It actually is
--network bridge=kvm0mopsam,model=virtio
A space between --network and bridge.
Thank you very much, I would never have suspected a typo!
Offline
Please remember to mark this thread as [SOLVED].
CoC - How to post
Offline