Editing domains in virsh results in "Extra element os in interleave"

605 views
Skip to first unread message

rune.p...@gmail.com

unread,
Feb 7, 2019, 7:35:39 AM2/7/19
to qubes-users
When I edit domains in virsh I get the message
```
error: XML document failed to validate against schema: Unable to validate doc against /usr/share/libvirt/schemas/domain.rng
Extra element os in interleave
Element domain failed to validate content
```

This happens even if I only change the amount of vcpu from 2 to 1. So I haven't added any elements.

This is in Qubes 4.

Dupéron Georges

unread,
Feb 10, 2019, 2:34:58 PM2/10/19
to rune.p...@gmail.com, qubes-users
I don't know if editing in virsh is supported.

I use this to change settings from the command-line:

qvm-prefs myvm vcpus 1

Cheers,
Georges Dupéron

--
You received this message because you are subscribed to the Google Groups "qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to qubes-users...@googlegroups.com.
To post to this group, send email to qubes...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/qubes-users/35dee470-e6e1-4b70-a0fa-a01cfcca13e8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Rune Philosof

unread,
Feb 11, 2019, 3:29:17 AM2/11/19
to Dupéron Georges, qubes-users


søn. 10. feb. 2019 20.34 skrev Dupéron Georges <georges...@gmail.com>:
I don't know if editing in virsh is supported.

I use this to change settings from the command-line:

qvm-prefs myvm vcpus 1

Well, the problem is that I wanted to add network to the booting options.
I want to PXE boot the VM.

Dupéron Georges

unread,
Feb 11, 2019, 10:31:17 AM2/11/19
to Rune Philosof, qubes-users
Well, the problem is that I wanted to add network to the booting options.
I want to PXE boot the VM.

qvm-prefs the-vm kernelopts 'your kernel options here' 

You might need to also edit the QEMU command-line if you're using HVM, e.g. in case PXE is not activated in the BIOS. It is fairly difficult to do so, I used this hack to switch the disks from SCSI to IDE:

sudo cp -i /usr/lib/xen/boot/stubdom-linux-rootfs /usr/lib/xen/boot/stubdom-linux-rootfs.bak-"$(date +%s)"
mkdir stubroot
cd stubroot
# unpack:
zcat /usr/lib/xen/boot/stubdom-linux-rootfs | cpio -i -d -H newc --no-absolute-filenames
nano init # make your changes here. The blunt way is to use sed to edit/append options in $dm_args just before the IFS=$'\x1b' which precedes the actual call to qemu.
# repack:
find . -print0 | cpio --null -ov --format=newc | gzip -9 | sudo tee /usr/lib/xen/boot/stubdom-linux-rootfs > /dev/null

Cheers,
Georges Dupéron
Reply all
Reply to author
Forward
0 new messages