因项目需要,在ubuntu 12.04上安装xen 4.0.1,内核已经配置过了,之后编译的时候,先make,然后make install一直出现下述错误提示。
对xen安装不怎么懂,网上查了很久也找不到缘由,希望大家尽快帮忙解决一下啊。
 *** Missing file: arch/x86/boot/vmlinuz
 *** You need to run "make" before "make install".make[1]: *** [install] 错误 1
make: *** [install] 错误 2
试过“ cp arch/x86/boot/vmlinuz /boot/vmlinuz ” ,提示无法获取“arch/x86/boot/vmlinuz”的文件状态:没有那个文件或目录

解决方案 »

  1.   

    xen我不知道是什么,但是根据你的信息你是不是在内核的目录进行make install的呢? arch/x86/boot/vmlinuz这个是在内核源码中的,且是编译(执行make)过后。如果没有那个文件一般就说明你没有编译出来,或者编译的不对。
      

  2.   

    ubuntu should have kernel built with xen, why do you have to compile on you own?
      

  3.   


    谢谢提醒啊,我按照 http://blog.csdn.net/zhou191954/article/details/38981267 所示的方法安装,安装到第四步一直没有出现Xen内核的系统,文中的方法尝试了也没有效果,执行xm list 一直提示 ERROR:Can't find hypervisor information in sysfs ! 请问这到底是怎么回事啊
      

  4.   


    谢谢提醒啊,我按照 http://blog.csdn.net/zhou191954/article/details/38981267 所示的方法安装,安装到第四步一直没有出现Xen内核的系统,文中的方法尝试了也没有效果,执行xm list 一直提示 ERROR:Can't find hypervisor information in sysfs ! 请问这到底是怎么回事啊to be honest with you, I will not recommend Xen (not commercial XenServer) to anyone due to its poor performance and compatibility issues...I am not sure why you have to use xen...why not KVM?As for installing it, if you could, you may want to switch from ubuntu to centos. The reason is simple: RHEL/CentOS has better support on Xen from day 1. Although RHEL dropped Xen () on version 6, it's not difficult at all to find a third party repository having xen enabled kernel built for your CentOS 6.XIn terms of compiling xen kernel, I am not interested at all because it's simply wasting your time...
      

  5.   

    ubuntu should have kernel built with xen, why do you have to compile on you own?
    谢谢提醒啊,我按照 http://blog.csdn.net/zhou191954/article/details/38981267 所示的方法安装,安装到第四步一直没有出现Xen内核的系统,文中的方法尝试了也没有效果,执行xm list 一直提示 ERROR:Can't find hypervisor information in sysfs ! 请问这到底是怎么回事啊
    to be honest with you, I will not recommend Xen (not commercial XenServer) to anyone due to its poor performance and compatibility issues...I am not sure why you have to use xen...why not KVM?As for installing it, if you could, you may want to switch from ubuntu to centos. The reason is simple: RHEL/CentOS has better support on Xen from day 1. Although RHEL dropped Xen () on version 6, it's not difficult at all to find a third party repository having xen enabled kernel built for your CentOS 6.XIn terms of compiling xen kernel, I am not interested at all because it's simply wasting your time...
      

  6.   

    别讲英文啊,虽然知道在推荐 kvm。
    多数linux发行版已经在逐渐减少对xen的支持。装了 xen 内核后如果提示没有使用xen内核,可能是启动时没选 xen 内核。编译内核时不建议用 make install。
    make 成功后会有生成 arch/x86_64/boot/bzImage 或 arch/x86/boot/bzImage,手动复制 /boot 目录,PS: bzImage 和 vmlinuz 是一个东东,名字不同而已。
    复制好后用 make modules_install 安装模块。
    再调整启动参数使用新内核。
    如果有使用initramfs,还得更新 initramfs。