On Tuesday, August 2, 2016 at 10:55:04 PM UTC-4, [email protected] wrote:
>
> Hi Geoff,
> For using Libvirt to install CoreOS, we should use virt-install
> --filesystem to mapped the user_data to guest VM.
> I find that for using --filesystem, the guest kernel should have the
> 9p module. But in CoreOS , I run "lsmod|grep 9p", I don't find the
> essential module. I wonder if we compile the CoreOS kernel, the config file
> has the setting:
>
> CONFIG_NET_9P=y
> # needed for virtfs mount
> CONFIG_NET_9P_VIRTIO=y
>
> If not, that means I should recompile the kernel?
>
It's already built into the kernel:
*$* zcat /proc/config.gz | grep 9P
CONFIG_NET_*9P*=y
CONFIG_NET_*9P*_VIRTIO=y
# CONFIG_NET_*9P*_DEBUG is not set
CONFIG_*9P*_FS=y
# CONFIG_*9P*_FS_POSIX_ACL is not set
# CONFIG_*9P*_FS_SECURITY is not set
But it didn't work for me either, using qemu directly (no libvirt). I
didn't really investigate very far. For my application it ended up making
more sense to serve the user_data over HTTP using "cloud-config-url= " on
the linux command line in grub.
Thanks Geoff~
>
> On Wednesday, 27 July 2016 04:59:37 UTC+8, Geoff Levand wrote:
>>
>> Hi,
>>
>> On Fri, 2016-07-22 at 10:32 +0800, Kevin Zhao wrote:
>> > Now status is that I have used libvirt-to-launch-coreos in
>> > X86_64. But for Arm64, I can use libvirt to launch it , but can't login
>> the OS(The sshd works, but the public key doesn't, I need to type into the
>> passwd). I have a little questions:
>> > 1.For the link:
>> https://stable.release.core-os.net/arm64-usr/current/, which image do I
>> need for libvirt to launch? I use coreos_production_image.bin.bz2.
>>
>> I recomend you use the alpha channel for now. There
>> a fair number of fixes for arm64 going in.
>>
>> > 2. There is a script deploy_coreos_libvirt.sh, I have modified the
>> virt-install command so that I can boot the image.
>>
>> I don't think anyone has used libvirt booting yet, so
>> please submit any fixups you find you need.
>>
>>
>> > 3. Apart from libvirt, what another methods that we can use to
>> > launch the CoreOS Arm64, such as PXE,OpenStack...?
>>
>> Nick said he can pxe boot successfully.
>>
>> -Geoff
>>
>>