You are not logged in.

#1 2019-12-10 14:36:54

utiadenfgnuve
Member
Registered: 2018-11-20
Posts: 19

virt-install ERROR <built-in function virDomainCreateXML>

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

#2 2019-12-15 18:30:56

utiadenfgnuve
Member
Registered: 2018-11-20
Posts: 19

Re: virt-install ERROR <built-in function virDomainCreateXML>

Nobody?

Offline

#3 2019-12-15 18:31:45

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,645

Re: virt-install ERROR <built-in function virDomainCreateXML>

utiadenfgnuve wrote:

Nobody?

Please don't do that.

Offline

#4 2019-12-16 11:55:05

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,919

Re: virt-install ERROR <built-in function virDomainCreateXML>

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

#5 2019-12-18 14:48:17

utiadenfgnuve
Member
Registered: 2018-11-20
Posts: 19

Re: virt-install ERROR <built-in function virDomainCreateXML>

2ManyDogs wrote:
utiadenfgnuve wrote:

Nobody?

Please don't do that.

I am sorry, I wont do that again.

Offline

#6 2019-12-18 14:53:14

utiadenfgnuve
Member
Registered: 2018-11-20
Posts: 19

Re: virt-install ERROR <built-in function virDomainCreateXML>

Lone_Wolf wrote:

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

#7 2019-12-18 15:31:41

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,919

Re: virt-install ERROR <built-in function virDomainCreateXML>

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

#8 2019-12-18 23:43:00

utiadenfgnuve
Member
Registered: 2018-11-20
Posts: 19

Re: virt-install ERROR <built-in function virDomainCreateXML>

Lone_Wolf wrote:

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

#9 2019-12-19 00:03:46

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: virt-install ERROR <built-in function virDomainCreateXML>

Please remember to mark this thread as [SOLVED].
CoC - How to post


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

Board footer

Powered by FluxBB