使用Xen Server安装虚拟机报错解决办法
物理机安装好Xen Server6.2,用客户端Citrix XenCenter连接准备安装虚拟机时,新建VM时,老是报错:Aug 12, 2015 10:15:22 AM Error: Starting VM '192.168.1.10' - The bootloader for this VM returned an error -- did the VM installation succeed? INVALID_SOURCE
cdrom repo /dev/sm/backend/9a843a44-c029-2ab1-2f35-3f88700b6f83/f34a847f-cb4f-491d-8718-5774de21df48
Aug 12, 2015 10:52:41 AM
Error: Starting VM '192.168.1.10' - The bootloader for this VM returned an error -- did the VM installation succeed? INVALID_SOURCE
Unable to access a required file in the specified repository: file:///tmp/cdrom-repo-WsqSRg/install/vmlinuz.
Aug 12, 2015 11:12:01 AM
Error: Starting VM '192.168.1.10' - The bootloader for this VM returned an error -- did the VM installation succeed? INVALID_SOURCE
cdrom repo /dev/sm/backend/9a843a44-c029-2ab1-2f35-3f88700b6f83/f34a847f-cb4f-491d-8718-5774de21df48
查询得知:uuid为vm的uuid,order中的d表明光驱,c表明启动硬盘。这样设置完后通过xencenter中的虚机属性也可以设置启动顺序了
后来在国外一个网站上,才知道解决办法,其实是iso挂载问题,登陆宿主机,创建一个iso挂载在宿主机上,即可,命令格式如下:
xe sr-create name-label=Local type=iso device-config:legacy_mode=true device-config:location=/vm/iso content-type=iso
注: 1、你要把安装的镜像iso拷到宿主机上,如/data下
2、执行这条命令时,不能在/data下
假如我的iso拷到了: /data/ubuntu-12.04.5-server-amd64.iso 那么用下面的命令
xe sr-create name-label=Local type=iso device-config:legacy_mode=true device-config:location=/data content-type=iso
完成后,才新建VM,就可以顺利创建了,然后选择镜像时,就会看到你刚创建 的!
ok,Xen Server安装虚拟机报错The bootloader for this VM returned an error 问题解决!
评论