我在Ubuntu 14.04盒子上,我需要使用“virt-install”创建一个VM。我本来想使用“virt-manager”,但我只有ssh shell访问权限。我咨询了各种资源,了解如何创建磁盘映像和“virt-install”命令行。我最终构建了我认为是有效命令的东西,但是在提交之后,virt-install只发出几行输出然后基本上挂了,没有做任何事情。我现在已经看了约30分钟左右,似乎没有任何事情发生过。我尝试从另一个shell查看环境,但我不知道如何判断它是否在做任何事情。
这是我到目前为止所做的。
我用这个创建了一个磁盘映像(全部带有sudo):
fallocate -l 200g /var/lib/libvirt/images/jumphost.img
这很快就返回并且似乎分配了一个磁盘映像。
这是我的“virt-install”命令行,以及整个输出:
attuser@bl12-kvm-nest:/var/lib/libvirt/images$ sudo virt-install -r 24576 -n opnfv-arno-foreman -f /var/lib/libvirt/images/jumphost.img --cdrom=~/arno.2015.1.0.foreman.iso
ERROR Error validating install location: Checking installer location failed: Could not find media '~/arno.2015.1.0.foreman.iso'.
attuser@bl12-kvm-nest:/var/lib/libvirt/images$ sudo virt-install -r 24576 -n opnfv-arno-foreman -f /var/lib/libvirt/images/jumphost.img --cdrom=$HOME/arno.2015.1.0.foreman.iso
Starting install...
Creating domain... | 0 B 00:00
Connected to domain opnfv-arno-foreman
Escape character is ^]
最后两行让我觉得它正在等待我的输入,但我不知道为什么。
答案 0 :(得分:0)
I guess what's happening here is that virt-install has created the VM, and it's trying to do something to display information about the VM, perhaps in a graphical view.
I've moved past this (hopefully), as I can now run "virt-manager" over a VNC connection so I can use a GUI to manage my VMs.