[CRIU] Fwd: Criu Restore Error
Christopher Covington
cov at codeaurora.org
Thu Mar 26 05:53:04 PDT 2015
On 03/26/2015 12:13 AM, Priyanka Naik wrote:
> Would the settings done while kernel recompilation wipe out my previous settings?
They shouldn't. What I usually do is run `make menuconfig` and then hit "/"
and type in each option to see where it's located in the menu and what
settings it depends on that aren't already enabled. Then I go through the
dependencies and configuration options and turn them on. Then I save the
.config and build the kernel.
I also have a checker script to make sure the CRIU settings (and others I'm
interested like Android) are turned on. I could probably share that if anyone
was interested. It just greps the .config for the settings listed on the wiki.
CRIU has the run-time `criu check` which does essentially the same thing in a
more versatile way (it doesn't need a .config or /proc/config.gz).
Chris
> On Wed, Mar 25, 2015 at 11:15 PM, Christopher Covington <cov at codeaurora.org
> <mailto:cov at codeaurora.org>> wrote:
>
> On 03/25/2015 01:33 PM, Christopher Covington wrote:
> > Hi Priyanka,
> >
> > On 03/25/2015 01:16 PM, Priyanka Naik wrote:
> >> priyanka at priyanka-Lenovo-G510:~$ sudo mount -t 9p -o
> >> trans=virtio,version=9p2000.L hostshare /tmp/host_files
> >> mount: wrong fs type, bad option, bad superblock on hostshare,
> >> missing codepage or helper program, or other error
> >> (for several filesystems (e.g. nfs, cifs) you might
> >> need a /sbin/mount.<type> helper program)
> >> In some cases useful info is found in syslog - try
> >> dmesg | tail or so
> >
> > Try it from inside the guest.
>
> Oh I forgot these aren't on by default--make sure the following kernel config
> options are set:
>
> CONFIG_NET_9P=y
> CONFIG_NET_9P_VIRTIO=y
> CONFIG_9P_FS=y
>
> http://wiki.qemu.org/Documentation/9psetup#Preparation
>
> Or load the corresponding modules if you've got them configured as modules.
>
> Chris
>
> >> On Wed, Mar 25, 2015 at 10:42 PM, Christopher Covington
> <cov at codeaurora.org <mailto:cov at codeaurora.org>
> >> <mailto:cov at codeaurora.org <mailto:cov at codeaurora.org>>> wrote:
> >>
> >> On 03/25/2015 01:00 PM, Priyanka Naik wrote:
> >> > This command ran successfully. Now how to access files from guest??
> >>
> >> http://www.linux-kvm.org/page/9p_virtio
> >>
> >> mkdir /tmp/host_files
> >> mount -t 9p -o trans=virtio,version=9p2000.L hostshare /tmp/host_files
> >>
> >> > Another thing while accessing those files does my guest need to
> be shutdown??
> >>
> >> I don't. It's based on a network filesystem.
> >>
> >> Chris
> >>
> >> > On Wed, Mar 25, 2015 at 10:15 PM, Christopher Covington
> <cov at codeaurora.org <mailto:cov at codeaurora.org> <mailto:cov at codeaurora.org
> <mailto:cov at codeaurora.org>>
> >> > <mailto:cov at codeaurora.org <mailto:cov at codeaurora.org>
> <mailto:cov at codeaurora.org <mailto:cov at codeaurora.org>>>> wrote:
> >> >
> >> > On 03/25/2015 12:25 PM, Priyanka Naik wrote:
> >> > >
> >> > > ---------- Forwarded message ----------
> >> > > From: *Priyanka Naik* <prnk.nk1 at gmail.com
> <mailto:prnk.nk1 at gmail.com> <mailto:prnk.nk1 at gmail.com
> <mailto:prnk.nk1 at gmail.com>> <mailto:prnk.nk1 at gmail.com
> <mailto:prnk.nk1 at gmail.com>
> >> <mailto:prnk.nk1 at gmail.com <mailto:prnk.nk1 at gmail.com>>>
> <mailto:prnk.nk1 at gmail.com <mailto:prnk.nk1 at gmail.com>
> >> <mailto:prnk.nk1 at gmail.com <mailto:prnk.nk1 at gmail.com>>
> >> > <mailto:prnk.nk1 at gmail.com <mailto:prnk.nk1 at gmail.com>
> <mailto:prnk.nk1 at gmail.com <mailto:prnk.nk1 at gmail.com>>>>>
> >> > > Date: Wed, Mar 25, 2015 at 9:54 PM
> >> > > Subject: Re: [CRIU] Criu Restore Error
> >> > > To: Christopher Covington <cov at codeaurora.org
> <mailto:cov at codeaurora.org>
> >> <mailto:cov at codeaurora.org <mailto:cov at codeaurora.org>>
> <mailto:cov at codeaurora.org <mailto:cov at codeaurora.org>
> >> <mailto:cov at codeaurora.org <mailto:cov at codeaurora.org>>>
> <mailto:cov at codeaurora.org <mailto:cov at codeaurora.org>
> >> <mailto:cov at codeaurora.org <mailto:cov at codeaurora.org>>
> >> > <mailto:cov at codeaurora.org <mailto:cov at codeaurora.org>
> <mailto:cov at codeaurora.org <mailto:cov at codeaurora.org>>>>>
> >> > >
> >> > >
> >> > > I got these errors after running following command :
> >> > >
> >> > > root at priyanka-Lenovo-G510:/usr/bin# qemu-system-x86_64 -m
> 1024 -s -hda
> >> > > vdisk.img -kernel
> /usr/src/linux-3.17.6/arch/x86_64/boot/bzImage
> >> -initrd
> >> > > /home/priyanka/tmp2/newinitrd.img -append "root=/dev/sda10"
> -name
> >> myguest
> >> > > -device virtio-serial -chardev
> >> socket,path=/tmp/foo,server,nowait,id=foo
> >> > > -device
> virtserialport,chardev=foo,name=org.fedoraproject.port.0
> >> -fsdev
> >> > > local,security_model=passthrough,id=fsdev0,path=/tmp/share
> -device
> >> > > virtio-9p-pci,id=fs0,fsdev=fsdev0,mount_tag=hostshare
> >> > >
> >> > >
> >> > > qemu-system-x86_64: -device
> >> > > virtio-9p-pci,id=fs0,fsdev=fsdev0,mount_tag=hostshare:
> Virtio-9p
> >> Failed to
> >> > > initialize fs-driver with id:fsdev0 and export path:/tmp/share
> >> >
> >> > This fixed this error for me:
> >> >
> >> > mkdir /tmp/share
> >> >
> >> > Note that this is a host machine path.
> >> >
> >> > Chris
--
Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project
More information about the CRIU
mailing list