简体   繁体   English

如何在Linux KVM实例中安装SmartOS?

[英]How to install SmartOS in a Linux KVM instance?

I need to test a program on SmartOS. 我需要在SmartOS上测试一个程序。 I don't have any spare systems lying around so I wanted to install it into a KVM image on my GNU/Linux distribution. 我没有任何备用系统,所以我想将它安装到我的GNU / Linux发行版的KVM映像中。 I've installed Solaris 11 that way and that worked pretty well. 我已经安装了Solaris 11,并且运行良好。

I downloaded the ISO and booted it inside KVM and the installation appeared to work fine. 我下载了ISO并在KVM中启动它,安装似乎工作正常。 However when I boot the virtual machine it always starts to come up and says: 但是,当我启动虚拟机时,它总是会出现并说:

Booting from harddisk ...

and then it just sits there, with the virtual CPU pegged, and never proceeds any further. 它只是坐在那里,虚拟CPU固定,永远不会继续前进。 No key presses appear to do anything (except Ctrl-Alt-Del which starts the boot again, giving the same result). 没有按键似乎可以做任何事情(除了Ctrl-Alt-Del再次启动引导,给出相同的结果)。

I created my KVM from virt-manager with 2G RAM, 2 CPUs, 50G of disk space using a "raw" disk format, and selected "Solaris" / "OpenSolaris" as the OS type. 我使用2G RAM,2个CPU,使用“原始”磁盘格式的50G磁盘空间,并选择“Solaris”/“OpenSolaris”作为操作系统类型,从virt-manager创建了我的KVM。

I don't have a copy of VMWare and it seems really expensive to get one for Linux, so I don't think using the SmartOS VMWare image is an option for me. 我没有VMWare的副本,而且为Linux获取一个看起来真的很贵,所以我不认为使用SmartOS VMWare图像是我的选择。

Anyone have any hints? 有人有任何提示吗? Google shows me lots of information about creating Linux instances inside SmartOS KVMs, but nothing on doing it the other way. 谷歌向我展示了很多关于在SmartOS KVM中创建Linux实例的信息,但没有采取其他方式。

I figured it out with some help from the mailing list. 我在邮件列表的帮助下找到了它。 SmartOS is a PXE booting operating system: it doesn't actually install to the harddisk. SmartOS是PXE引导操作系统:它实际上并未安装到硬盘上。 When my installation was complete and the VM rebooted KVM automatically unmounted the ISO file from my virtual CDROM, so on boot it was looking for a PXE image to boot from and couldn't find it. 当我的安装完成并且VM重新启动时,KVM会自动从我的虚拟CDROM卸载ISO文件,因此在启动时它正在查找要从中启动的PXE映像,但无法找到它。

All I had to do was re-attach the ISO file to the virtual CDROM and it worked fine after that. 我所要做的就是将ISO文件重新附加到虚拟CDROM上,之后它就可以了。 Ugh. 啊。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM