SliTaz SliTaz Forum

You are not logged in.

#1 2025-12-05 14:38:26

purpleleaf
Member
Registered: 2025-12-05
Posts: 10

kvm guest installation

I tried to load the virtio-* modules after installing linux64-kvm, but the vda disk that is installed on the vm is detected.

Offline

#2 2025-12-06 07:09:10

shann
Administrator
Registered: 2011-04-01
Posts: 1,296
Website

Re: kvm guest installation

Hi purpleleaf,

Sorry for mistake, think found reason, can you paste result of this command please ?

[c]find /lib/modules/5.10.238-slitaz64/kernel -name "*virtio*"[/c]

If not found suspect you use iso of april instead november with grub2 suffix

https://people.slitaz.org/~shann/slitaz-current64-stuff/isos/

I rework tazpkg package compress function since, in this case you need upgrade tazpkg first, and reinstall packages, sorry for issue.

Need to rebuild iso without grub2 installed or remove old isos (for 64 bits could be prefered to use grub2 as default bootloader).

Suggest to use slitaz-current64-base64-grub2.iso, tazpkg is uptodate with slitaz-boot-scripts include fix to boot smooth in kvm vm.

You need also initrd to be boot and detect vda disk, i build it and could be found here.

https://people.slitaz.org/~shann/initrd-kvmraid.gz, should be rename to /boot/initrd-5.10.238-slitaz64.gz.

After edit /etc/default/grub and uncomment [c]GRUB_CMDLINE_LINUX_DEFAULT=""[/c] and change to it [c]GRUB_CMDLINE_LINUX_DEFAULT="kvmroot=/dev/vdXY"[/c] (XY for disk and partition, exemple vda1).

Don't forget to update grub.cfg [c]grub-mkconfig -o /boot/grub/grub.cfg[/c]

He found automatically initrd and add line for him.

Offline

#3 2025-12-09 07:51:22

purpleleaf
Member
Registered: 2025-12-05
Posts: 10

Re: kvm guest installation

Hi Shann,

i downloaded the last slitaz-rolling-core-5in1.iso from https://mirror.slitaz.org/iso/rolling/

in /lib/modules there are only the 3.16.55-slitaz and 3.16.55-slitaz64 dirs.

I will try your suggestion,

many thanks

Offline

#4 2025-12-09 15:36:25

purpleleaf
Member
Registered: 2025-12-05
Posts: 10

Re: kvm guest installation

Ok, finally i got a working system but it was a little bit tricky; i will try to report all step i followed (i had some problems updating the packages with tazpkg under chroot environment):

changed the NIC to e1000 on guest configuration

boot from slitaz-current64-core64-grub2.iso

updated tazpkg

updated all remaining packages

installed linux64-kvm

executed modprobe virtio-pci - the system now recognize the vda disk

created a vda1 and vda2 partition for / and swap

downloaded in live system slitaz-current64-core64-grub2.iso (the only way i found to proceed with installation)

after installation i mounted /dev/vda1 under /mnt

mounted /dev /proc /sys on /mnt

chroot /mnt

the i followed the step suggested by @shann (download of initrd, editing of /etc/default/grub, grub-mkconfig and also a grub-install /dev/vda (it should already be done during the installation...)

reboot the system then update again tazpkg and the remaining packages, install linux64-kvm, shutdown the guest and switch NIC to virtio, boot again.

done.

Now i miss the vda-agent and the qxl video driver.

There are any way to install them from some package or the only way is compiling?

Last question, the system is using the vda2 swap partition as /run. I must continue to use this settings or can i reconfigure the system to use a normal swap partition?

many thanks.

Offline

#5 2025-12-11 18:57:02

shann
Administrator
Registered: 2011-04-01
Posts: 1,296
Website

Re: kvm guest installation

Hi purpleleaf,

slitaz rolling use 3.16.55 kernel, i thinking you use current64 (should be call 6.0 x64 wink)

Infact at first, you need to define e1000 nic to have internet access for install linux64-kvm.

After install linux64-kvm, nic can be switched to virtio.

For moment, i don't build vda-agent and qxl video, let's me check this week-end.

/run for swap it's strange, can you do [c]free -m[/c] and [c]df -h[/c] command please ? thanks

Offline

#6 2025-12-15 11:37:38

purpleleaf
Member
Registered: 2025-12-05
Posts: 10

Re: kvm guest installation

Hi shann,

sorry for the late, the VM  i'm using right now is on the pc i have at work smile

current64  is available only from your personal space? and if not what is the correct iso to download from slitaz mirrors?

many thanks for you work, I will wait for vda-agent and qxl-video as long as it takes wink

about / run, my fault, swap on /dev/vda2 is correctly mounted, but to me is strange that run is mounted with 3.9 GB, following free -m and df -h output:

free -m

              total        used        free      shared  buff/cache   available

Mem:           7970         130        7754           0          85        7757

Swap:          8081           0        8081

df -h

Filesystem                Size      Used Available Use% Mounted on

tmpfs                     3.9G    236.0K      3.9G   0% /run

/dev/vda1                15.6G      1.0G     13.8G   7% /

devtmpfs                  3.9G         0      3.9G   0% /dev

tmpfs                     3.9G         0      3.9G   0% /dev/shm

tmpfs                     3.9G     12.0K      3.9G   0% /var/lock

Offline

#7 2025-12-15 13:00:51

shann
Administrator
Registered: 2011-04-01
Posts: 1,296
Website

Re: kvm guest installation

Hi purpleleaf,

Thanks for return.

For /run, it's tmpfs and by default size is 50% of memory.

For isos, i push them on my space because not follow official process on tank.

Each version have cook chroot env on tank and automatically build/push packages/isos on mirror.

For current64, use more recent kernel / toolchain can't be use cook chroot env on tank, why i push iso on my space.

Offline

#8 2025-12-18 21:35:09

shann
Administrator
Registered: 2011-04-01
Posts: 1,296
Website

Re: kvm guest installation

Hi purpleleaf,

For video driver qxl, it's available on repository, you can install it with [c]tazpkg -gi xorg-xf86-video-qxl[/c].

For vda-agent, need to take time to build it.

Offline

#9 2025-12-19 08:54:56

purpleleaf
Member
Registered: 2025-12-05
Posts: 10

Re: kvm guest installation

Hi shann,

many many thanks.

The qxl driver works fine, but trying to run xrandr to set monitor resolution make xorg crash.

I succesfully changed monitor resolution configuring a xorg conf file.

I will wait for the vda-agent

Many thanks again and Merry Christmas and Happy New Year

Offline

#10 2025-12-19 10:14:14

shann
Administrator
Registered: 2011-04-01
Posts: 1,296
Website

Re: kvm guest installation

Hi purpleleaf,

Thanks for feedback, for xorg crash, need to check why hmm

Thanks, merry christmas and happy new year too (early little bit ^^)

Offline

#11 2025-12-19 10:37:46

purpleleaf
Member
Registered: 2025-12-05
Posts: 10

Re: kvm guest installation

You're right, but i will not connect in the next few days (very likely until new year) so... best wishes wink

Offline

#12 2026-01-18 10:12:49

shann
Administrator
Registered: 2011-04-01
Posts: 1,296
Website

Re: kvm guest installation

Hi purpleleaf,

To be sure when you said vda-agent, it's qemu guest agent ?

I build it, test with success on proxmox vm with slitaz 60 x64

Remain create init.d script, for moment i run it manually.

[c]qemu-ga -f /var/run/qemu-ga.pid -t /var/run -l /var/log/qemu-ga.log -d[/c]

root@cluster-aragog-01:~# qm agent 3002 get-osinfo

{

   "kernel-release" : "5.10.238-slitaz64",

   "kernel-version" : "#2 SMP Mon Dec 22 13:07:01 Europe 2025",

   "machine" : "x86_64"

}

Offline

#13 2026-01-18 10:41:08

shann
Administrator
Registered: 2011-04-01
Posts: 1,296
Website

Re: kvm guest installation

packages qemu-guest-agent available and have init script to start/stop agent.

Offline

#14 2026-01-19 10:08:11

akm
Member
Registered: 2018-02-03
Posts: 79

Re: kvm guest installation

What is the difference between base64 and core64?

Offline

#15 2026-01-19 10:20:34

shann
Administrator
Registered: 2011-04-01
Posts: 1,296
Website

Re: kvm guest installation

Hi akm,

base64 => SliTaz with text mode only (minimal)

core64 => SliTaz with gui (full desktop)

Offline

#16 2026-01-19 11:37:16

purpleleaf
Member
Registered: 2025-12-05
Posts: 10

Re: kvm guest installation

Hi shann,

To be sure when you said vda-agent, it's qemu guest agent ?

Well, i intended spice-vda-agent, but also qemu-qa is really appreciated wink

if you could also create a spice-vda-agent package it could improve vm management  (ex. copy/paste support)

Offline

#17 2026-01-19 13:19:25

shann
Administrator
Registered: 2011-04-01
Posts: 1,296
Website

Re: kvm guest installation

Hi purpleleaf,

Ok i see, i build spice-vdagent package.

Sucessfully run spice-vdagentd and spice-vdagent, need to do more test seem copy/paste not shared.

Offline

#18 2026-01-19 14:18:24

shann
Administrator
Registered: 2011-04-01
Posts: 1,296
Website

Re: kvm guest installation

Below screen of vm running SliTaz 6.0 x64 with spice agent running and qxl driver.

Need to debug for copy/paste not work.

[attachment=53620,3779]

Offline

#19 2026-01-19 15:19:29

shann
Administrator
Registered: 2011-04-01
Posts: 1,296
Website

Re: kvm guest installation

To be sure, i launch ubuntu liveusb and install virt-viewer.

Connect to spice and test copy/paste.

Good news it's work as expected wink

I try if related to miss clipboard, why i install clipit to test.

[attachment=53621,3780]

Offline

#20 2026-01-19 17:59:25

shann
Administrator
Registered: 2011-04-01
Posts: 1,296
Website

Re: kvm guest installation

purpleleaf,

i build virt-viewer for 6.0 x86_64.

Below you see virt-viewer running on my eeepc (SliTaz 6.0 x86_64 live) with vm running on my hp laptop.

Copy/Paste from/to VM work as expected.

Need add spice-vdagentd daemon in init.d and also add spice-vdagent to run on desktop session.

[attachment=53622,3781]

Offline

#21 2026-01-20 11:12:02

purpleleaf
Member
Registered: 2025-12-05
Posts: 10

Re: kvm guest installation

Hi shann,

running spice-vdagentd i obtain this error:

[c]

sudo spice-vdagentd -x

Password:

spice-vdagentd: Unable to connect to system bus: Failed to connect to socket /var/run/dbus/system_bus_socket: Connection refused

spice-vdagentd: no session info, max 1 session agent allowed

[/c]

after launching spice-vdagent, spice-vdagentd exits with this error:

[c]spice-vdagentd: open /dev/uinput: No such file or directory

spice-vdagentd: Fatal uinput error

spice-vdagentd: vdagentd quitting, returning status 1

[/c]

I googled a litle bit and found that the uinput kernel module is missing. It does not seem to exist on the system.

Offline

#22 2026-01-20 12:10:42

shann
Administrator
Registered: 2011-04-01
Posts: 1,296
Website

Re: kvm guest installation

Hi purpleleaf,

Sorry for issue, i forgot to post that i add stuff necessary for spice-vdagent.

packages are up to date, maybe miss to do last sync

Yes uinput it's build on kernel but module not packed, i add it to linux64-kvm packages.

To use spice-vdagentd :

When run guest if you use qemu-system-x86_64 you need this command to have spice device

qemu-system-x86_64 --enable-kvm -smp <nproc> -m <memsize> -cdrom <path_iso> -spice port=<portnumber>,disable-ticketing=on -device virtio-serial -device virtserialport,chardev=vdagent,name=com.redhat.spice.0 -chardev spicevmc,id=vdagent,debug=0,name=vdagent -vga qxl

On guest, install spice-vdagent package (it's installed qemu-guest-agent, linux64-kvm and xorg-xf86-video-qxl).

post_install of spice-vdagent load uinput module and start spice-vdagentd.

Disconnect / reconnect, spice-vdagent run automatically with session.

Seem not necessary to use tazx for define qxl, it's load automatically

Offline

#23 2026-01-20 12:26:38

purpleleaf
Member
Registered: 2025-12-05
Posts: 10

Re: kvm guest installation

Hi shann,

updated linux64-kvm and all works like a charm.

spice-vdagent is already automatically run by lxde-session.

Many many many thanks for your great work!

Offline

#24 2026-01-20 12:33:33

shann
Administrator
Registered: 2011-04-01
Posts: 1,296
Website

Re: kvm guest installation

Thanks, you are welcome wink

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.018 seconds, 7 queries executed - Memory usage: 1.59 MiB (Peak: 1.77 MiB) ]