Hi Prateek,

Unfortunately, it looks like the demo image was built for newer hardware (it requires Haswell or newer).

Kind regards,

James.

2015-11-24 14:15 GMT+00:00 Prateek Sharma <prateek3.14@gmail.com>:
Hi James,
   Thanks for the response.

On Tue, Nov 24, 2015 at 7:07 AM, Hunt, James O <james.o.hunt@intel.com> wrote:
> Hi Prateek,
>
> 2015-11-23 23:54 GMT+00:00 Prateek Sharma <prateek3.14@gmail.com>:
>>
>> Hello everyone,
>>    Super excited about Clear Linux, and I have been trying to run the
>> clear containers demo at
>> https://download.clearlinux.org/demos/containers/
>>
>> When I run boot.sh, I get a few warnings, ending with  "# KVM session
>> ended normally.". I cant observe any new containers/VMs.
>>
>> I am running this on a 3rd generation Intel Xeon E3-1240 V2. Can
>> clearlinux run on this CPU?
>
>
> This will tell you:
>
>     $ grep -q vmx /proc/cpuinfo && echo yes || echo no
>
>>
>>
>> The full output of ./boot.sh is:
>> ---
>>   # lkvm run -k ./vmlinux.container -m 1024 -c 6 --name guest-373
>>   Warning: ./vmlinux.container is not a bzImage. Trying to load it as
>> a flat binary...
>>
>>   # KVM compatibility warning.
>>     virtio-net device was not detected.
>>     While you have requested a virtio-net device, the guest kernel did
>> not initialize it.
>>     Please make sure that the guest kernel was compiled with
>> CONFIG_VIRTIO_NET=y enabled in .config.
>
> This message is telling you that the host kernel does not have the correct
> modules available. What distribution are you running? Also, what do the
> commands below show?:
>
>     $ uname -r
>     $ grep ^CONFIG_VIRTIO /boot/config-`uname -r`
>

CONFIG_VIRTIO_BLK=y
CONFIG_VIRTIO_NET=y
CONFIG_VIRTIO_CONSOLE=y
CONFIG_VIRTIO=y
CONFIG_VIRTIO_PCI=y
CONFIG_VIRTIO_BALLOON=y
CONFIG_VIRTIO_MMIO=y
CONFIG_VIRTIO_MMIO_CMDLINE_DEVICES=y

[obelix73|containers]# uname -r
3.19.0-25-generic

I tried loading these modules using modprobe as well.

Just to clarify, I am trying to run the clear containers demo on an
existing KVM host (so it has VMX), and *not* clearlinux.
Should I try a more recent kernel?

The strace logs when I run the script are here:
https://gist.github.com/prateek-s/71f6b1b23eeca7f3d58e


Thanks,
--Prateek

> If you see CONFIG_VIRTIO_NET=m, you can try loading the module:
>
>     $ sudo modprobe virtio_net
>
> The same applies for virtio_console. If those options are not listed at all,
> your kernel is either too old, or you need to rebuild it so that the virtio
> features are either built-in or built as modules to run the demo.
>
> Kind regards,
>
> James.
>
>>
>>   # KVM compatibility warning.
>>     virtio-console device was not detected.
>>     While you have requested a virtio-console device, the guest kernel
>> did not initialize it.
>>     Please make sure that the guest kernel was compiled with
>> CONFIG_VIRTIO_CONSOLE=y enabled in .config.
>>
>>   # KVM session ended normally.
>>
>> --- END LOG
>>
>>
>> Thank you,
>> --Prateek
>> _______________________________________________
>> Dev mailing list
>> Dev@lists.clearlinux.org
>> https://lists.clearlinux.org/mailman/listinfo/dev
>
>
>
> -----
> https://clearlinux.org
> Open Source Technology Center
> Intel Corporation (UK) Ltd. - Co. Reg. #1134945 - Pipers Way, Swindon SN3
> 1RJ.



--
James
-----
https://clearlinux.org
Open Source Technology Center
Intel Corporation (UK) Ltd. - Co. Reg. #1134945 - Pipers Way, Swindon SN3 1RJ.