On 11/26/2015 11:43 AM, Jesse Larrew wrote:
> Hi all,
>
> When trying to mount the root filesystem image on a non-clearlinux host (ubuntu), I get a "wrong fstype" error from mount. (dmesg says "VFS: Can't find ext4 filesystem".)
> Do I need the pmem driver on the host kernel in order to mount/edit the filesystem images?
no need for pmem, but remember that the image is a full disk, including a partition table
try something like
losetup /dev/loop1 clear.img
partprobe /dev/loop1
as long as your kernel has loop partitions enabled (max_part module parameter as well) this should get you
/dev/loop1p1
/dev/loop1p2
etc
Hi all,
When trying to mount the root filesystem image on a non-clearlinux host
(ubuntu), I get a "wrong fstype" error from mount. (dmesg says "VFS: Can't
find ext4 filesystem".) Do I need the pmem driver on the host kernel in
order to mount/edit the filesystem images?
Thanks!
Sincerely,
Jesse Larrew
On 2015/11/26 1:44, Hunt, James O wrote:
> Hi Prateek,
>
> Unfortunately, it looks like the demo image was built for newer hardware
> (it requires Haswell or
> newer).<https://clearlinux.org/documentation/supported-hardware>
Which part of modification/optimization in Clear Container is dependent
on what feature on newer hardware?
> Kind regards,
>
> James.
>
> 2015-11-24 14:15 GMT+00:00 Prateek Sharma <prateek3.14(a)gmail.com
> <mailto:prateek3.14(a)gmail.com>>:
>
> Hi James,
> Thanks for the response.
>
> On Tue, Nov 24, 2015 at 7:07 AM, Hunt, James O
> <james.o.hunt(a)intel.com <mailto:james.o.hunt(a)intel.com>> wrote:
> > Hi Prateek,
> >
> > 2015-11-23 23:54 GMT+00:00 Prateek Sharma <prateek3.14(a)gmail.com <mailto:prateek3.14(a)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(a)lists.clearlinux.org <mailto:Dev(a)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.
>
>
> _______________________________________________
> Dev mailing list
> Dev(a)lists.clearlinux.org
> https://lists.clearlinux.org/mailman/listinfo/dev
>
Hi Prateek,
Unfortunately, it looks like the demo image was built for newer hardware
(it requires Haswell or newer).
<https://clearlinux.org/documentation/supported-hardware>
Kind regards,
James.
2015-11-24 14:15 GMT+00:00 Prateek Sharma <prateek3.14(a)gmail.com>:
> Hi James,
> Thanks for the response.
>
> On Tue, Nov 24, 2015 at 7:07 AM, Hunt, James O <james.o.hunt(a)intel.com>
> wrote:
> > Hi Prateek,
> >
> > 2015-11-23 23:54 GMT+00:00 Prateek Sharma <prateek3.14(a)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(a)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.
Hi James,
Thanks for the response.
On Tue, Nov 24, 2015 at 7:07 AM, Hunt, James O <james.o.hunt(a)intel.com> wrote:
> Hi Prateek,
>
> 2015-11-23 23:54 GMT+00:00 Prateek Sharma <prateek3.14(a)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(a)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.
Hi Prateek,
2015-11-23 23:54 GMT+00:00 Prateek Sharma <prateek3.14(a)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`
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(a)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.
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?
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.
# 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
On 11/20/2015 1:19 PM, Kok, Auke-jan H wrote:
> On Fri, Nov 20, 2015 at 12:30 PM, SGhosh <sghosh(a)redhat.com> wrote:
>> Is there a different scope here from CoreOS is doing with the Go
>> implementation in cloud-config ?
>
> Hi,
>
> I'd say no - everyone (including the reference implementation) is
> clearly implementing along the same spec here - as it should be. We
> want users to be able to provide the same cloud-config syntax to all
> of their cloud nodes, no matter the VM OS. I do not think that this
> project will turn into something that is radically different over
> time, either.
>
...and before people ask.. "then why not use the CoreOS one";
we're looking at adding custom extensions in the future, and in addition,
for the super-tiny segment, GO tends to not be quite as nice due to
binary size.
On 11/20/2015 03:12 PM, Kok, Auke-jan H wrote:
> For the full article, see:
> https://clearlinux.org/blogs/announcing-clr-cloud-init
>
> All,
>
> Julio Montes and me have been working for the past period on a native
> C implementation of cloud-init, with the goal of eliminating sizeable
> unwanted dependencies from our cloud-focused images. This is now
> public code (available at
> https://github.com/clearlinux/clr-cloud-init) and will become
> available soon in clear linux cloud images.
>
> The implementation is optimized for Clear Linux* project for Intel
> Architecture, and implements the basic container initialization steps
> for (currently) running Clear Linux OS under OpenStack. In the future
> we will expand it to other cloud deployments.
>
> We appreciate the feedback, feel free to start a discussion here on
> this mailing list. Bugs and pull requests can be sent to the github
> project as well.
>
> Thanks,
>
> Auke Kok
> Julio Montes
>
Is there a different scope here from CoreOS is doing with the Go
implementation in cloud-config ?
-subhendu