Skip to contentSkip to conversation

virtfs: kernel compile fails

Qemu-devel Avishay Traeger 1 participant 6 messages Nov 28, 2011 – Apr 11, 2017

lore
Share & tools
lore
#0 lore raw

Public bug reported:

I am trying to compile a kernel under virtfs, and am getting an error. The error does not occur when compiling outside of the virtfs mount.

Both guest and host are running the 3.0.4 kernel.
QEMU is latest from git: bc75c9e50d308b2ec6623a40179c5cdc84b63dae

QEMU command line:
/usr/local/bin/qemu-system-x86_64 -nographic -boot c -m 1024 -machine type=pc,accel=kvm -drive file=/root/hdd1.img,if=virtio -drive file=/root/test1.img,if=virtio -drive file=/root/test2.img,if=virtio -virtfs local,path=/mnt/virtfs,security_model=none,mount_tag=virtfs -net nic,model=virtio,macaddr=DE:AD:BE:EF:AA:BB -net tap,ifname=qtap0,script=no

virtfs line in /etc/fstab:
virtfs /mnt/virtfs 9p defaults,noauto,trans=virtio 0 0

Steps to reproduce and output:

[root@guest linux-3.0.4]# make mrproper

  CLEAN   scripts/basic
  CLEAN   scripts/kconfig
  CLEAN   include/config include/generated
  CLEAN   .config .config.old

[root@guest linux-3.0.4]# make defconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/lex.zconf.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
*** Default configuration is based on 'x86_64_defconfig' #

# configuration written to .config
#
[root@guest linux-3.0.4]# make
scripts/kconfig/conf --silentoldconfig Kconfig

*** Error during update of the configuration.

make[2]: *** [silentoldconfig] Error 1
make[1]: *** [silentoldconfig] Error 2
make: *** No rule to make target include/config/auto.conf', needed by include/config/kernel.release'. Stop.

Please let me know if you need any other information. Thanks!

** Affects: qemu
Importance: Undecided
Status: New

Signature · 56 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/897193

Title:
  virtfs: kernel compile fails

Status in QEMU:
  New

Bug description:
  I am trying to compile a kernel under virtfs, and am getting an error.
  The error does not occur when compiling outside of the virtfs mount.

  Both guest and host are running the 3.0.4 kernel.
  QEMU is latest from git: bc75c9e50d308b2ec6623a40179c5cdc84b63dae

  QEMU command line:
  /usr/local/bin/qemu-system-x86_64 -nographic -boot c -m 1024 -machine type=pc,accel=kvm -drive file=/root/hdd1.img,if=virtio -drive file=/root/test1.img,if=virtio -drive file=/root/test2.img,if=virtio -virtfs local,path=/mnt/virtfs,security_model=none,mount_tag=virtfs -net nic,model=virtio,macaddr=DE:AD:BE:EF:AA:BB -net tap,ifname=qtap0,script=no

  virtfs line in /etc/fstab:
  virtfs                  /mnt/virtfs             9p      defaults,noauto,trans=virtio    0 0

  Steps to reproduce and output:

  [root@guest linux-3.0.4]# make mrproper
    CLEAN   scripts/basic
    CLEAN   scripts/kconfig
    CLEAN   include/config include/generated
    CLEAN   .config .config.old
  [root@guest linux-3.0.4]# make defconfig
    HOSTCC  scripts/basic/fixdep
    HOSTCC  scripts/kconfig/conf.o
    SHIPPED scripts/kconfig/zconf.tab.c
    SHIPPED scripts/kconfig/lex.zconf.c
    SHIPPED scripts/kconfig/zconf.hash.c
    HOSTCC  scripts/kconfig/zconf.tab.o
    HOSTLD  scripts/kconfig/conf
  *** Default configuration is based on 'x86_64_defconfig'
  #
  # configuration written to .config
  #
  [root@guest linux-3.0.4]# make
  scripts/kconfig/conf --silentoldconfig Kconfig

  *** Error during update of the configuration.

  make[2]: *** [silentoldconfig] Error 1
  make[1]: *** [silentoldconfig] Error 2
  make: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'.  Stop.

  
  Please let me know if you need any other information.  Thanks!

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/897193/+subscriptions
#1 lore raw

uname -a on host:
Linux host 3.0.4 #1 SMP Mon Oct 17 11:54:45 IST 2011 x86_64 x86_64 x86_64 GNU/Linux

uname -a on guest:
Linux guest 3.0.4 #2 SMP Wed Nov 23 12:39:03 IST 2011 x86_64 x86_64 x86_64 GNU/Linux

Signature · 56 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/897193

Title:
  virtfs: kernel compile fails

Status in QEMU:
  New

Bug description:
  I am trying to compile a kernel under virtfs, and am getting an error.
  The error does not occur when compiling outside of the virtfs mount.

  Both guest and host are running the 3.0.4 kernel.
  QEMU is latest from git: bc75c9e50d308b2ec6623a40179c5cdc84b63dae

  QEMU command line:
  /usr/local/bin/qemu-system-x86_64 -nographic -boot c -m 1024 -machine type=pc,accel=kvm -drive file=/root/hdd1.img,if=virtio -drive file=/root/test1.img,if=virtio -drive file=/root/test2.img,if=virtio -virtfs local,path=/mnt/virtfs,security_model=none,mount_tag=virtfs -net nic,model=virtio,macaddr=DE:AD:BE:EF:AA:BB -net tap,ifname=qtap0,script=no

  virtfs line in /etc/fstab:
  virtfs                  /mnt/virtfs             9p      defaults,noauto,trans=virtio    0 0

  Steps to reproduce and output:

  [root@guest linux-3.0.4]# make mrproper
    CLEAN   scripts/basic
    CLEAN   scripts/kconfig
    CLEAN   include/config include/generated
    CLEAN   .config .config.old
  [root@guest linux-3.0.4]# make defconfig
    HOSTCC  scripts/basic/fixdep
    HOSTCC  scripts/kconfig/conf.o
    SHIPPED scripts/kconfig/zconf.tab.c
    SHIPPED scripts/kconfig/lex.zconf.c
    SHIPPED scripts/kconfig/zconf.hash.c
    HOSTCC  scripts/kconfig/zconf.tab.o
    HOSTLD  scripts/kconfig/conf
  *** Default configuration is based on 'x86_64_defconfig'
  #
  # configuration written to .config
  #
  [root@guest linux-3.0.4]# make
  scripts/kconfig/conf --silentoldconfig Kconfig

  *** Error during update of the configuration.

  make[2]: *** [silentoldconfig] Error 1
  make[1]: *** [silentoldconfig] Error 2
  make: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'.  Stop.

  
  Please let me know if you need any other information.  Thanks!

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/897193/+subscriptions
#2 lore raw
In reply to Avishay Traeger

Hi Avishay,

Are you running qemu as a normal user? In that case, could you please check whether normal user has rw access to the kernel source?

Also could you please attach the output of strace scripts/kconfig/conf --silentoldconfig Kconfig ?

Signature · 56 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/897193

Title:
  virtfs: kernel compile fails

Status in QEMU:
  New

Bug description:
  I am trying to compile a kernel under virtfs, and am getting an error.
  The error does not occur when compiling outside of the virtfs mount.

  Both guest and host are running the 3.0.4 kernel.
  QEMU is latest from git: bc75c9e50d308b2ec6623a40179c5cdc84b63dae

  QEMU command line:
  /usr/local/bin/qemu-system-x86_64 -nographic -boot c -m 1024 -machine type=pc,accel=kvm -drive file=/root/hdd1.img,if=virtio -drive file=/root/test1.img,if=virtio -drive file=/root/test2.img,if=virtio -virtfs local,path=/mnt/virtfs,security_model=none,mount_tag=virtfs -net nic,model=virtio,macaddr=DE:AD:BE:EF:AA:BB -net tap,ifname=qtap0,script=no

  virtfs line in /etc/fstab:
  virtfs                  /mnt/virtfs             9p      defaults,noauto,trans=virtio    0 0

  Steps to reproduce and output:

  [root@guest linux-3.0.4]# make mrproper
    CLEAN   scripts/basic
    CLEAN   scripts/kconfig
    CLEAN   include/config include/generated
    CLEAN   .config .config.old
  [root@guest linux-3.0.4]# make defconfig
    HOSTCC  scripts/basic/fixdep
    HOSTCC  scripts/kconfig/conf.o
    SHIPPED scripts/kconfig/zconf.tab.c
    SHIPPED scripts/kconfig/lex.zconf.c
    SHIPPED scripts/kconfig/zconf.hash.c
    HOSTCC  scripts/kconfig/zconf.tab.o
    HOSTLD  scripts/kconfig/conf
  *** Default configuration is based on 'x86_64_defconfig'
  #
  # configuration written to .config
  #
  [root@guest linux-3.0.4]# make
  scripts/kconfig/conf --silentoldconfig Kconfig

  *** Error during update of the configuration.

  make[2]: *** [silentoldconfig] Error 1
  make[1]: *** [silentoldconfig] Error 2
  make: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'.  Stop.

  
  Please let me know if you need any other information.  Thanks!

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/897193/+subscriptions
#3 lore raw
In reply to Avishay Traeger

Hi,

I am running qemu as root.

The output from strace for the command that you requested shows that this is the problem:
rename(".tmpconfig.h", "include/generated/autoconf.h") = -1 ENOENT (No such file or directory)

The command fails because the directory 'include/generated' doesn't exist because I ran only the command you mentioned, and not 'make'.

So I attached the output for: strace -f make &> /tmp/strace.out

Hope that helps, and thanks!

** Attachment added: "strace output for make"
https://bugs.launchpad.net/qemu/+bug/897193/+attachment/2612472/+files/strace.out

Signature · 56 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/897193

Title:
  virtfs: kernel compile fails

Status in QEMU:
  New

Bug description:
  I am trying to compile a kernel under virtfs, and am getting an error.
  The error does not occur when compiling outside of the virtfs mount.

  Both guest and host are running the 3.0.4 kernel.
  QEMU is latest from git: bc75c9e50d308b2ec6623a40179c5cdc84b63dae

  QEMU command line:
  /usr/local/bin/qemu-system-x86_64 -nographic -boot c -m 1024 -machine type=pc,accel=kvm -drive file=/root/hdd1.img,if=virtio -drive file=/root/test1.img,if=virtio -drive file=/root/test2.img,if=virtio -virtfs local,path=/mnt/virtfs,security_model=none,mount_tag=virtfs -net nic,model=virtio,macaddr=DE:AD:BE:EF:AA:BB -net tap,ifname=qtap0,script=no

  virtfs line in /etc/fstab:
  virtfs                  /mnt/virtfs             9p      defaults,noauto,trans=virtio    0 0

  Steps to reproduce and output:

  [root@guest linux-3.0.4]# make mrproper
    CLEAN   scripts/basic
    CLEAN   scripts/kconfig
    CLEAN   include/config include/generated
    CLEAN   .config .config.old
  [root@guest linux-3.0.4]# make defconfig
    HOSTCC  scripts/basic/fixdep
    HOSTCC  scripts/kconfig/conf.o
    SHIPPED scripts/kconfig/zconf.tab.c
    SHIPPED scripts/kconfig/lex.zconf.c
    SHIPPED scripts/kconfig/zconf.hash.c
    HOSTCC  scripts/kconfig/zconf.tab.o
    HOSTLD  scripts/kconfig/conf
  *** Default configuration is based on 'x86_64_defconfig'
  #
  # configuration written to .config
  #
  [root@guest linux-3.0.4]# make
  scripts/kconfig/conf --silentoldconfig Kconfig

  *** Error during update of the configuration.

  make[2]: *** [silentoldconfig] Error 1
  make[1]: *** [silentoldconfig] Error 2
  make: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'.  Stop.

  
  Please let me know if you need any other information.  Thanks!

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/897193/+subscriptions
#4 lore raw
In reply to Avishay Traeger

Triaging old bug tickets ... can you still reproduce this problem with the latest version of QEMU?

** Changed in: qemu
Status: New => Incomplete

Signature · 56 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/897193

Title:
  virtfs: kernel compile fails

Status in QEMU:
  Incomplete

Bug description:
  I am trying to compile a kernel under virtfs, and am getting an error.
  The error does not occur when compiling outside of the virtfs mount.

  Both guest and host are running the 3.0.4 kernel.
  QEMU is latest from git: bc75c9e50d308b2ec6623a40179c5cdc84b63dae

  QEMU command line:
  /usr/local/bin/qemu-system-x86_64 -nographic -boot c -m 1024 -machine type=pc,accel=kvm -drive file=/root/hdd1.img,if=virtio -drive file=/root/test1.img,if=virtio -drive file=/root/test2.img,if=virtio -virtfs local,path=/mnt/virtfs,security_model=none,mount_tag=virtfs -net nic,model=virtio,macaddr=DE:AD:BE:EF:AA:BB -net tap,ifname=qtap0,script=no

  virtfs line in /etc/fstab:
  virtfs                  /mnt/virtfs             9p      defaults,noauto,trans=virtio    0 0

  Steps to reproduce and output:

  [root@guest linux-3.0.4]# make mrproper
    CLEAN   scripts/basic
    CLEAN   scripts/kconfig
    CLEAN   include/config include/generated
    CLEAN   .config .config.old
  [root@guest linux-3.0.4]# make defconfig
    HOSTCC  scripts/basic/fixdep
    HOSTCC  scripts/kconfig/conf.o
    SHIPPED scripts/kconfig/zconf.tab.c
    SHIPPED scripts/kconfig/lex.zconf.c
    SHIPPED scripts/kconfig/zconf.hash.c
    HOSTCC  scripts/kconfig/zconf.tab.o
    HOSTLD  scripts/kconfig/conf
  *** Default configuration is based on 'x86_64_defconfig'
  #
  # configuration written to .config
  #
  [root@guest linux-3.0.4]# make
  scripts/kconfig/conf --silentoldconfig Kconfig

  *** Error during update of the configuration.

  make[2]: *** [silentoldconfig] Error 1
  make[1]: *** [silentoldconfig] Error 2
  make: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'.  Stop.

  
  Please let me know if you need any other information.  Thanks!

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/897193/+subscriptions
#5 lore raw
In reply to Avishay Traeger

[Expired for QEMU because there has been no activity for 60 days.]

** Changed in: qemu
Status: Incomplete => Expired

Signature · 56 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/897193

Title:
  virtfs: kernel compile fails

Status in QEMU:
  Expired

Bug description:
  I am trying to compile a kernel under virtfs, and am getting an error.
  The error does not occur when compiling outside of the virtfs mount.

  Both guest and host are running the 3.0.4 kernel.
  QEMU is latest from git: bc75c9e50d308b2ec6623a40179c5cdc84b63dae

  QEMU command line:
  /usr/local/bin/qemu-system-x86_64 -nographic -boot c -m 1024 -machine type=pc,accel=kvm -drive file=/root/hdd1.img,if=virtio -drive file=/root/test1.img,if=virtio -drive file=/root/test2.img,if=virtio -virtfs local,path=/mnt/virtfs,security_model=none,mount_tag=virtfs -net nic,model=virtio,macaddr=DE:AD:BE:EF:AA:BB -net tap,ifname=qtap0,script=no

  virtfs line in /etc/fstab:
  virtfs                  /mnt/virtfs             9p      defaults,noauto,trans=virtio    0 0

  Steps to reproduce and output:

  [root@guest linux-3.0.4]# make mrproper
    CLEAN   scripts/basic
    CLEAN   scripts/kconfig
    CLEAN   include/config include/generated
    CLEAN   .config .config.old
  [root@guest linux-3.0.4]# make defconfig
    HOSTCC  scripts/basic/fixdep
    HOSTCC  scripts/kconfig/conf.o
    SHIPPED scripts/kconfig/zconf.tab.c
    SHIPPED scripts/kconfig/lex.zconf.c
    SHIPPED scripts/kconfig/zconf.hash.c
    HOSTCC  scripts/kconfig/zconf.tab.o
    HOSTLD  scripts/kconfig/conf
  *** Default configuration is based on 'x86_64_defconfig'
  #
  # configuration written to .config
  #
  [root@guest linux-3.0.4]# make
  scripts/kconfig/conf --silentoldconfig Kconfig

  *** Error during update of the configuration.

  make[2]: *** [silentoldconfig] Error 1
  make[1]: *** [silentoldconfig] Error 2
  make: *** No rule to make target `include/config/auto.conf', needed by `include/config/kernel.release'.  Stop.

  
  Please let me know if you need any other information.  Thanks!

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/897193/+subscriptions