Ubuntu 企业云。 VM 正在挂起,然后终止。为什么?

发布于 2024-08-14 05:14:10 字数 1589 浏览 3 评论 0原文

我正在尝试设置私有云。 我按照以下教程操作:

https://help.ubuntu.com/community/UEC/CDInstall< /a>

但我无法运行新图像。每次我尝试启动映像时,虚拟机都会进入挂起状态,一段时间后它会进入关闭模式,最后终止。

Eucalyptus 的官方文档中报告了此行为,其中建议查看 httpd-nc_error_log (节点控制器的日志):

http://open.eucalyptus.com/wiki/EucalyptusTroubleshooting_v1.5.2

我真的很想看看这个文件,但我可以't,因为节点是由控制器管理的,显然我没有 ssh 访问它们的权限(我尝试从控制器连接,但它提示输入密码)。

在所有其他日志文件(在控制器中)中,我没有注意到任何特别的事情。

当我使用以下内容启动虚拟机实例时:

euca-run-instances -k mykey emi-**********

httpd-cc_error_log 说:

> RTNETLINK answers: File exists
> Internet Systems Consortium DHCP
> Server V3.1.2 [...] WARNING: Host
> declarations are global.  They are not
> limited to the scope you declared them
> in. Wrote 0 deleted host decls to
> leases file. Wrote 0 new dynamic host
> decls to leases file. Wrote 0 leases
> to leases file. Listening on
> LPF/eth0/**:**:**:**:**:**/euca
> Sending on  
> LPF/eth0/**:**:**:**:**:**/euca
> Sending on  
> Socket/fallback/fallback-net Using
> intrapositioned negation (`--option !
> this`) is deprecated in favor of
> extrapositioned (`! --option this`).
> Using intrapositioned negation
> (`--option ! this`) is deprecated in
> favor of extrapositioned (`! --option
> this`).

有什么想法吗?有什么地方我应该看吗?

I'm trying to setup a private cloud.
I followed the tutorial from:

https://help.ubuntu.com/community/UEC/CDInstall

But I'm not able to run a new image. Every time I try to start an image, the VM goes into the pending state and after a while it moves into shutting down mode and finally it terminates.

This behaviour is reported in the official doc for Eucalyptus, where it suggests to have a look to httpd-nc_error_log (the one for the node controller):

http://open.eucalyptus.com/wiki/EucalyptusTroubleshooting_v1.5.2

I would really like to have a look to this file, but I can't, since nodes are managed by the controller and apparently I don't have ssh access to them (I tried to connect from the controller, but it prompts for a passphrase).

In all other log files (in the controller), I didn't notice anything special.

When I start a VM instance with the following:

euca-run-instances -k mykey emi-**********

The httpd-cc_error_log says:

> RTNETLINK answers: File exists
> Internet Systems Consortium DHCP
> Server V3.1.2 [...] WARNING: Host
> declarations are global.  They are not
> limited to the scope you declared them
> in. Wrote 0 deleted host decls to
> leases file. Wrote 0 new dynamic host
> decls to leases file. Wrote 0 leases
> to leases file. Listening on
> LPF/eth0/**:**:**:**:**:**/euca
> Sending on  
> LPF/eth0/**:**:**:**:**:**/euca
> Sending on  
> Socket/fallback/fallback-net Using
> intrapositioned negation (`--option !
> this`) is deprecated in favor of
> extrapositioned (`! --option this`).
> Using intrapositioned negation
> (`--option ! this`) is deprecated in
> favor of extrapositioned (`! --option
> this`).

Any ideas? Any place where I should look?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

牵你手 2024-08-21 05:14:10

我遇到了这个问题,KVM虚拟机管理程序需要虚拟化的硬件支持。确保您的处理器支持虚拟化并且已在 BIOS 中激活。

I had this problem, the KVM hypervisor requires hardware support for virtualization . Make sure your prossesor supports virtualization and this is activated in the BIOS.

夜访吸血鬼 2024-08-21 05:14:10

此外,为了能够 ssh 进入节点,您必须在它们上设置密码:

须藤密码桉树

完成后不需要登录节点控制器,删除密码:

sudo passwd -d 桉树

导致实例问题的原因有很多:

  1. 您没有足够的资源来启动实例。

  2. 您为实例选择了错误的大小。例如,如果映像大小为 2GB,则无法运行 m1.small 实例,您应该使用 c1.medium。尽管 m1.small 是 2GB,但实际上,它需要额外的空间。

  3. 如上所述,您的处理器不支持硬件虚拟化 (VT) 或 BIOS 中未打开 VT 支持。节点控制器必须在启用 VT 支持的计算机上创建。如果您在虚拟机上进行此设置,则可能还需要指示虚拟机管理程序使用 VT 支持。

Also, to be able to ssh into your nodes, you have to set up a password on them:

sudo passwd eucalyptus

And after you are done and do not need to log into the node controller, remove the password:

sudo passwd -d eucalyptus

There are a number of reasons for your problem with instances:

  1. You have insufficient resources to launch instances.

  2. You are choosing the wrong size for your instance. For example, if the image is 2GB in size, you cannot run an m1.small instance, you should go for c1.medium instead. Even though m1.small is 2GB, in reality, it needs extra space.

  3. As mentioned above, your processor does not support hardware virtualization (VT) or VT-support is not turned on in BIOS. The node controller has to be created on a machine that has VT support enabled. If you're setting this up on virtual machines, you might also need to direct your hypervisor to make use of VT support.

柠北森屋 2024-08-21 05:14:10

检查 NC 上的/var/log/eucalyptus/nc.log。这是查找此类错误的好地方。

您可能遇到了 Eucalyptus 1.6.2(或接近该版本)报告的错误,其中 scsi 驱动程序无法工作。您可以通过将 hda 中的 sda 的所有引用更改为 /usr/share 来解决问题/eucalyptus/gen_kvm_libvirt_xml 文件

Check the /var/log/eucalyptus/nc.log on the NC. That's a good place to look for errors like that one.

It's possible that you're experiencing the reported error for Eucalyptus 1.6.2 (or close to that release) where the scsi drivers are not working. You can work around problem by changing all references to sda for hda int the /usr/share/eucalyptus/gen_kvm_libvirt_xml file.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文