|
From: serge <ser...@gm...> - 2015-12-31 04:29:33
|
Hi Heiko, Udo, could you please check if it's a good VM identification? > dmesg | grep 'DMI:' | grep -i qemu > /dev/null # dmesg | grep DMI DMI: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.8.2-0-g33fbe13 by qemu-project.org 04/01/2014 i didn't find anything useful yet in busybox' applets. dmidecode is not very big (~100kb) but i'd rather use kernel buffer. Serge On 12/30/2015 07:57 PM, serge wrote: > usually qemu/kvm identify itself as: > >> CPU: AMD QEMU Virtual CPU > and virtualization detection will definitely work. However, for "-cpu > host" option it uses real cpu information, so I'm afraid detections will > not work. > > i.e > > # qemu-system-x86_64 --version > QEMU emulator version 2.5.0, Copyright (c) 2003-2008 Fabrice Bellard > > no "-cpu host": > >> qemu-system-x86_64 -enable-kvm -kernel /tmp/vmlinuz -initrd > /tmp/initrd -append "console=ttyS0" -serial telnet::9001,server,nowait > > > # mount -t proc none /proc > # cat /proc/cpuinfo > processor : 0 > vendor_id : AuthenticAMD > cpu family : 6 > model : 6 > model name : QEMU Virtual CPU version 2.5+ > > > with "-cpu host": > > # qemu-system-x86_64 -enable-kvm -cpu host -kernel /tmp/vmlinuz > -initrd /tmp/initrd -append "console=ttyS0" -serial > telnet::9001,server,nowait > > # mount -t proc none /proc > # cat /proc/cpuinfo > processor : 0 > vendor_id : AuthenticAMD > cpu family : 16 > model : 10 > model name : AMD Phenom(tm) II X6 1090T Processor > > i'll try to find another identification sign - and let you know. My > assumption is - qemu uses a very specific seabios, so "dmidecode" or > something similar should identify a vm pretty good. > > Serge > > > On 12/30/2015 12:57 PM, Heiko Zuerker wrote: >> Udo, >> >> I just downloaded QEMU and tested this and I see a different behavior. >> But I'm also new, so I'm not sure if I'm doing this right. >> I don't see a vd0 device at all, the harddisk I configured showed up as hda. >> What's the command line you use to start it? >> >> I also added a message now that tells if it detects QEMU and loads the >> modules. >> It correctly loaded them on during my test. >> >> Which version of QEMU are you using? I downloaded 2.5. >> >> Heiko >> >> Quoting Udo Lembke <udo...@al... >> <mailto:udo...@al...>>: >> >>> Hi Heiko, >>> just testet devil-linux-1.8.0-2015-12-29-i686 with config on vda1 - >>> onscreen message: >>> >>> Creating devices in /dev >>> Assembking Software RAID >>> mdadm: No arrays found in config file or automatically >>> Searching for configuration media >>> Search list: /dev/hdc >>> Checking for "etc-mods.tar.bz2" on "/dev/hdc" ... file not found >>> Examination of /dev/hdc >>> Would you really like to load DL without Configuration Media? >>> (y/n) >>> >>> >>> You see, the "Search list" contains the virtual cdrom only. >>> >>> I connect two hdds to the DL-VM, one ide with the config and an virtio >>> one. Put in S01boot an "ls /dev" and "lsmod" and I see no vda-device, >>> wich don't suprise, because lsmod shows only: >>> ata_piix >>> libata >>> loop >>> >>> Thats all! - so virtio_blk must be loaded after the config file is readed! >>> >>> >>> Udo >>> >>> >>> On 26.12.2015 16:14, Heiko Zuerker wrote: >>>> Udo, >>>> >>>> I'm just working on the booting logic and it seems /dev/vd?? devices >>>> are supported already. >>>> What exactly doesn't work? >>>> >>>> Heiko >>>> >>>> Quoting Udo Lembke <udo...@al... >>>> <mailto:udo...@al...>>: >>>> >>>>> Hi Heiko, >>>>> support for config virtio-device would be very nice for me. The most >>>>> of my devil linux system are virtualisized. >>>>> >>>>> >>>>> Udo >>>>> >>>>> On 20.12.2015 22:15, Heiko Zuerker wrote: >>>>>> Should we add support for vdX devices ? >>>>>> >>>>>> Heiko >>>>>> >>>> >>>> >>>> -- >>>> >>>> Regards >>>> Heiko Zuerker >>>> >>>> >>>> >>>> ------------------------------------------------------------------------------ >>>> >>>> >>>> _______________________________________________ >>>> Devil-linux-discuss mailing list >>>> Dev...@li... >>>> https://lists.sourceforge.net/lists/listinfo/devil-linux-discuss >>>> >> >> >> -- >> >> Regards >> Heiko Zuerker >> >> >> >> ------------------------------------------------------------------------------ >> >> >> >> _______________________________________________ >> Devil-linux-discuss mailing list >> Dev...@li... >> https://lists.sourceforge.net/lists/listinfo/devil-linux-discuss >> |