Hello, I’d love Debian Live to support KVM+Virtio as a dev/testing environment, and would be glad to document it on the wiki... once it actually works. Hence this email.
My current use case is a custom usb-hdd image. I’m using a live-helper package built from Git, and live-initramfs 1.136.3-1, since my built images fail to boot with more up-to-date Git live-initramfs, with or without Virtio, but this is for another e-mail. ,---- | The good news: virtio_net (not perfect, but still) `---- The virtio_net network device works fine, but this module has to be loaded soon enough, because the auto-detection happens too late for it to be configured by dhclient (for the record, I added this module in /etc/initramfs-tools/modules and in /etc/modules, maybe only one of these would suffice). I may try latter to add out-of-the-box support for virtio_net to live-helper. ,---- | The bad news (+ fix): virtio_blk `---- When running the usual « kvm binary.img, no problem, but when I try to use Virtio (http://kvm.qumranet.com/kvmwiki/Virtio), with: kvm -drive file=./binary.img,boot=on ... the live system boot fails (Unable to find a medium containing a live file system). I end up in the ramdisk rescue shell, and was able to investigate a bit: This Virtio disk is present - as it should - as /dev/vda, its unique partition as /dev/vda1. The /dev/disk/by-label/DEBIAN_LIVE link is present as well, and /sys/block/vda/ looks nice. Digging a bit more, I found out the itch: '/lib/udev/path_id /block/vda' returns an empty string, and thus the is_nice_device function considers such a disk as « not nice »... and the drive is then not searched for the live file system. The following patch allows my live system to boot on a Virtio device. (I could not find any guidelines for posting patches, so I’m simply inserting the file generated by git-format-patch. I guess there’s a better way...) --- patch ------------------------------------------------------------ From 85617ec9753e26eaa84f5cb7725e048a88aed96c Mon Sep 17 00:00:00 2001 From: intrigeri <[EMAIL PROTECTED]> Date: Thu, 7 Aug 2008 03:05:38 +0200 Subject: [PATCH] live(is_nice_device): added support for Virtio vd[a-z] drives Signed-off-by: intrigeri <[EMAIL PROTECTED]> --- scripts/live | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/scripts/live b/scripts/live index 22d2210..6faf881 100755 --- a/scripts/live +++ b/scripts/live @@ -561,6 +561,9 @@ is_nice_device () if /lib/udev/path_id "${sysfs_path}" | grep -E -q "ID_PATH=(usb|pci-[^-]*-[ide|scsi|usb])" then return 0 + elif echo "${sysfs_path}" | grep -q '^/block/vd[a-z]$' + then + return 0 fi return 1 -- 1.5.6.3 ---- /patch ---------------------------------------------------------- Bye, -- intrigeri <[EMAIL PROTECTED]> _______________________________________________ debian-live-devel mailing list [email protected] http://lists.alioth.debian.org/mailman/listinfo/debian-live-devel

