我试图将我的系统分割成多个虚拟机,但似乎无法使这个工作。 我觉得我很接近,但不是那样。 我已经安装了xen,virsh,xl等,我正在使用virsh来尝试创build一个新的虚拟机。
virt-install --virt-type xen --name centos6 --ram 2048 --vcpus=4 -f /dev/vg0/centosvirtfs --location http://mirror.internode.on.net/pub/centos/6.5/os/x86_64/ --os-type linux --accelerate --nographics --network=bridge:br0
正如你所看到的,我正在尝试创build一个名为centos6的新容器,它具有2048 MB RAM和4个VCPU。 它开始从位置指令下载必要的资源,但在创build域的时候,我得到以下错误 –
[root@server install]# virt-install --virt-type xen --name centos6 --ram 2048 --vcpus=4 -f /dev/vg0/centos6 --location http://mirror.internode.on.net/pub/centos/6.5/os/x86_64/ --os-type linux --accelerate --nographics --network=bridge:br0 Starting install... Retrieving file .treeinfo... | 728 B 00:00 ... Retrieving file vmlinuz... | 7.9 MB 00:11 ... Retrieving file initrd.img... | 64 MB 00:06 ... Creating domain... | 0 B 00:00 Connected to domain centos6 Escape character is ^] error: this function is not supported by the connection driver: virDomainOpenConsole Domain installation still in progress. You can reconnect to the console to complete the installation process. [root@server install]# virsh console centos6 Connected to domain centos6 Escape character is ^] error: this function is not supported by the connection driver: virDomainOpenConsole
所以你可以看到它几乎创build容器,当我尝试和控制进入它,我得到virDomainOpenConsole错误。 有任何想法吗?
克里斯。