You are not logged in.
Pages: 1
I tried to load the virtio-* modules after installing linux64-kvm, but the vda disk that is installed on the vm is detected.
Offline
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
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
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
Hi purpleleaf,
slitaz rolling use 3.16.55 kernel, i thinking you use current64 (should be call 6.0 x64
)
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
Hi shann,
sorry for the late, the VM i'm using right now is on the pc i have at work 
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 
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
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
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
You're right, but i will not connect in the next few days (very likely until new year) so... best wishes 
Offline
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
What is the difference between base64 and core64?
Offline
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 
if you could also create a spice-vda-agent package it could improve vm management (ex. copy/paste support)
Offline
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 
I try if related to miss clipboard, why i install clipit to test.
[attachment=53621,3780]
Offline
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
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
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
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
Pages: 1
[ Generated in 0.018 seconds, 7 queries executed - Memory usage: 1.59 MiB (Peak: 1.77 MiB) ]