<div dir="ltr">Would the settings done while kernel recompilation wipe out my previous settings?<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 25, 2015 at 11:15 PM, Christopher Covington <span dir="ltr"><<a href="mailto:cov@codeaurora.org" target="_blank">cov@codeaurora.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 03/25/2015 01:33 PM, Christopher Covington wrote:<br>
> Hi Priyanka,<br>
><br>
> On 03/25/2015 01:16 PM, Priyanka Naik wrote:<br>
>> priyanka@priyanka-Lenovo-G510:~$ sudo mount -t 9p -o<br>
>> trans=virtio,version=9p2000.L hostshare /tmp/host_files<br>
>> mount: wrong fs type, bad option, bad superblock on hostshare,<br>
>> missing codepage or helper program, or other error<br>
>> (for several filesystems (e.g. nfs, cifs) you might<br>
>> need a /sbin/mount.<type> helper program)<br>
>> In some cases useful info is found in syslog - try<br>
>> dmesg | tail or so<br>
><br>
> Try it from inside the guest.<br>
<br>
</span>Oh I forgot these aren't on by default--make sure the following kernel config<br>
options are set:<br>
<br>
CONFIG_NET_9P=y<br>
CONFIG_NET_9P_VIRTIO=y<br>
CONFIG_9P_FS=y<br>
<br>
<a href="http://wiki.qemu.org/Documentation/9psetup#Preparation" target="_blank">http://wiki.qemu.org/Documentation/9psetup#Preparation</a><br>
<br>
Or load the corresponding modules if you've got them configured as modules.<br>
<div class="HOEnZb"><div class="h5"><br>
Chris<br>
<br>
>> On Wed, Mar 25, 2015 at 10:42 PM, Christopher Covington <<a href="mailto:cov@codeaurora.org">cov@codeaurora.org</a><br>
>> <mailto:<a href="mailto:cov@codeaurora.org">cov@codeaurora.org</a>>> wrote:<br>
>><br>
>> On 03/25/2015 01:00 PM, Priyanka Naik wrote:<br>
>> > This command ran successfully. Now how to access files from guest??<br>
>><br>
>> <a href="http://www.linux-kvm.org/page/9p_virtio" target="_blank">http://www.linux-kvm.org/page/9p_virtio</a><br>
>><br>
>> mkdir /tmp/host_files<br>
>> mount -t 9p -o trans=virtio,version=9p2000.L hostshare /tmp/host_files<br>
>><br>
>> > Another thing while accessing those files does my guest need to be shutdown??<br>
>><br>
>> I don't. It's based on a network filesystem.<br>
>><br>
>> Chris<br>
>><br>
>> > On Wed, Mar 25, 2015 at 10:15 PM, Christopher Covington <<a href="mailto:cov@codeaurora.org">cov@codeaurora.org</a> <mailto:<a href="mailto:cov@codeaurora.org">cov@codeaurora.org</a>><br>
>> > <mailto:<a href="mailto:cov@codeaurora.org">cov@codeaurora.org</a> <mailto:<a href="mailto:cov@codeaurora.org">cov@codeaurora.org</a>>>> wrote:<br>
>> ><br>
>> > On 03/25/2015 12:25 PM, Priyanka Naik wrote:<br>
>> > ><br>
>> > > ---------- Forwarded message ----------<br>
>> > > From: *Priyanka Naik* <<a href="mailto:prnk.nk1@gmail.com">prnk.nk1@gmail.com</a> <mailto:<a href="mailto:prnk.nk1@gmail.com">prnk.nk1@gmail.com</a>> <mailto:<a href="mailto:prnk.nk1@gmail.com">prnk.nk1@gmail.com</a><br>
>> <mailto:<a href="mailto:prnk.nk1@gmail.com">prnk.nk1@gmail.com</a>>> <mailto:<a href="mailto:prnk.nk1@gmail.com">prnk.nk1@gmail.com</a><br>
>> <mailto:<a href="mailto:prnk.nk1@gmail.com">prnk.nk1@gmail.com</a>><br>
>> > <mailto:<a href="mailto:prnk.nk1@gmail.com">prnk.nk1@gmail.com</a> <mailto:<a href="mailto:prnk.nk1@gmail.com">prnk.nk1@gmail.com</a>>>>><br>
>> > > Date: Wed, Mar 25, 2015 at 9:54 PM<br>
>> > > Subject: Re: [CRIU] Criu Restore Error<br>
>> > > To: Christopher Covington <<a href="mailto:cov@codeaurora.org">cov@codeaurora.org</a><br>
>> <mailto:<a href="mailto:cov@codeaurora.org">cov@codeaurora.org</a>> <mailto:<a href="mailto:cov@codeaurora.org">cov@codeaurora.org</a><br>
>> <mailto:<a href="mailto:cov@codeaurora.org">cov@codeaurora.org</a>>> <mailto:<a href="mailto:cov@codeaurora.org">cov@codeaurora.org</a><br>
>> <mailto:<a href="mailto:cov@codeaurora.org">cov@codeaurora.org</a>><br>
>> > <mailto:<a href="mailto:cov@codeaurora.org">cov@codeaurora.org</a> <mailto:<a href="mailto:cov@codeaurora.org">cov@codeaurora.org</a>>>>><br>
>> > ><br>
>> > ><br>
>> > > I got these errors after running following command :<br>
>> > ><br>
>> > > root@priyanka-Lenovo-G510:/usr/bin# qemu-system-x86_64 -m 1024 -s -hda<br>
>> > > vdisk.img -kernel /usr/src/linux-3.17.6/arch/x86_64/boot/bzImage<br>
>> -initrd<br>
>> > > /home/priyanka/tmp2/newinitrd.img -append "root=/dev/sda10" -name<br>
>> myguest<br>
>> > > -device virtio-serial -chardev<br>
>> socket,path=/tmp/foo,server,nowait,id=foo<br>
>> > > -device virtserialport,chardev=foo,name=org.fedoraproject.port.0<br>
>> -fsdev<br>
>> > > local,security_model=passthrough,id=fsdev0,path=/tmp/share -device<br>
>> > > virtio-9p-pci,id=fs0,fsdev=fsdev0,mount_tag=hostshare<br>
>> > ><br>
>> > ><br>
>> > > qemu-system-x86_64: -device<br>
>> > > virtio-9p-pci,id=fs0,fsdev=fsdev0,mount_tag=hostshare: Virtio-9p<br>
>> Failed to<br>
>> > > initialize fs-driver with id:fsdev0 and export path:/tmp/share<br>
>> ><br>
>> > This fixed this error for me:<br>
>> ><br>
>> > mkdir /tmp/share<br>
>> ><br>
>> > Note that this is a host machine path.<br>
>> ><br>
>> > Chris<br>
<br>
<br>
--<br>
Qualcomm Innovation Center, Inc.<br>
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,<br>
a Linux Foundation Collaborative Project<br>
</div></div></blockquote></div><br></div>