Amazon ec2 (ec2上的Minishift CentOS VM)启动VM时出错:获取主机状态时出错:意外的EOF

Amazon ec2 (ec2上的Minishift CentOS VM)启动VM时出错:获取主机状态时出错:意外的EOF,amazon-ec2,virtualization,kvm,minishift,Amazon Ec2,Virtualization,Kvm,Minishift,我在ec2上配置了CentOS虚拟机并安装了Minishift,但它没有启动,我意识到这与嵌套虚拟化有关 要使用ec2上现有的CentOS虚拟机运行minishift,我应该做些什么 在云虚拟机上安装MiniShift的行之有效的方法是什么 我将只部署用于实验的项目 我正在使用Windows笔记本电脑上的“ssh”进行连接 -- Starting profile 'minishift' -- Check if deprecated options are used ... OK -- Check

我在ec2上配置了CentOS虚拟机并安装了Minishift,但它没有启动,我意识到这与嵌套虚拟化有关

要使用ec2上现有的CentOS虚拟机运行minishift,我应该做些什么

在云虚拟机上安装MiniShift的行之有效的方法是什么

我将只部署用于实验的项目

我正在使用Windows笔记本电脑上的“ssh”进行连接

-- Starting profile 'minishift'
-- Check if deprecated options are used ... OK
-- Checking if https://github.com is reachable ... OK
-- Checking if requested OpenShift version 'v3.11.0' is valid ... OK
-- Checking if requested OpenShift version 'v3.11.0' is supported ... OK
-- Checking if requested hypervisor 'kvm' is supported on this platform ... OK
-- Checking if KVM driver is installed ...
   Driver is available at /usr/local/bin/docker-machine-driver-kvm ...
   Checking driver binary is executable ... OK
-- Checking if Libvirt is installed ... OK
-- Checking if Libvirt default network is present ... OK
-- Checking if Libvirt default network is active ... OK
-- Checking the ISO URL ... OK
-- Checking if provided oc flags are supported ... OK
-- Starting the OpenShift cluster using 'kvm' hypervisor ...
-- Starting Minishift VM .... FAIL E0812 12:08:28.036276   17936 start.go:494] Error starting the VM: Error getting the state for host: unexpected EOF. Retrying.
Error starting the VM: Error getting the state for host: unexpected EOF
在云虚拟机上安装MiniShift的行之有效的方法是什么

安装微型换档所需的GCP支架。我想这就是我手术失败的原因。不确定AWS ec2实例是否支持此功能

安装微型换档可能有其他方法

我发布了在GCP VM实例上安装MiniShift的说明。请注意 这是我通过搜索找到的指南集。所以他们可以在其他地方找到,但我在回答,因为这对我来说真的很有效,而且很容易

我已成功部署了一个示例

gcloud compute disks create minishiftdisk \
 --image-project ubuntu-os-cloud \
 --image-family ubuntu-1804-lts --zone asia-south1-a



 gcloud compute images create nested-vm-image \
  --source-disk minishiftdisk --source-disk-zone asia-south1-a \
  --licenses "https://www.googleapis.com/compute/v1/projects/vm-options/global/licenses/enable-vmx"



  gcloud compute instances create minishift-vm \
  --zone asia-south1-a \
  --machine-type=n1-standard-2 \
  --boot-disk-size=50GB \
  --min-cpu-platform "Intel Skylake" \
  --image nested-vm-image



  sudo apt-get update
  sudo apt install qemu-kvm libvirt-daemon libvirt-daemon-system

curl -L https://github.com/minishift/minishift/releases/download/v1.34.1/minish
ift-1.34.1-linux-amd64.tgz -O

tar xvzf minishift-1.34.1-linux-amd64.tgz
sudo cp minishift-1.34.1-linux-amd64/minishift /usr/local/bin/

sudo curl -L https://github.com/dhiltgen/docker-machine-kvm/releases/download/v
0.10.0/docker-machine-driver-kvm-ubuntu16.04 -o /usr/local/bin/docker-machine-driver-kvm



sudo chmod +x /usr/local/bin/docker-machine-driver-kvm

minishift start

radhakrishnan_mohan@minishift-vm:~$ minishift oc-env
export PATH="/home/radhakrishnan_mohan/.minishift/cache/oc/v3.11.0/linux:$PATH"
# Run this command to configure your shell:
# eval $(minishift oc-env)
radhakrishnan_mohan@minishift-vm:~$ eval $(minishift oc-env)
radhakrishnan_mohan@minishift-vm:~$ oc get pods
No resources found.

sudo apt install -y xfce4 xfce4-goodies firefox
sudo apt install -y xrdp

radhakrishnan_mohan@minishift-vm:~$ echo xfce4-session > ~/.xsession

radhakrishnan_mohan@minishift-vm:~$ sudo nano /etc/xrdp/startwm.sh
我的剧本是这样的。我添加了最后一行并保存了它。 重新启动xrdp 更改root用户的密码 Windows远程桌面连接 一旦连接到GCP VM实例的公共IP,我就可以使用凭据根/密码登录

从linux桌面启动firefox并登录到OpenShift


EC2是否支持嵌套虚拟化?不确定。我可以从windows桌面将ec2 centos虚拟机用作现有虚拟机吗?
#!/bin/sh
# xrdp X session start script (c) 2015, 2017 mirabilos
# published under The MirOS Licence
if test -r /etc/profile; then
        . /etc/profile
fi
if test -r /etc/default/locale; then
        . /etc/default/locale
        test -z "${LANG+x}" || export LANG
        test -z "${LANGUAGE+x}" || export LANGUAGE
        test -z "${LC_ADDRESS+x}" || export LC_ADDRESS
        test -z "${LC_ALL+x}" || export LC_ALL
        test -z "${LC_COLLATE+x}" || export LC_COLLATE
        test -z "${LC_CTYPE+x}" || export LC_CTYPE
        test -z "${LC_IDENTIFICATION+x}" || export LC_IDENTIFICATION
        test -z "${LC_MEASUREMENT+x}" || export LC_MEASUREMENT
        test -z "${LC_MESSAGES+x}" || export LC_MESSAGES
        test -z "${LC_MONETARY+x}" || export LC_MONETARY
        test -z "${LC_NAME+x}" || export LC_NAME
        test -z "${LC_NUMERIC+x}" || export LC_NUMERIC
        test -z "${LC_PAPER+x}" || export LC_PAPER
        test -z "${LC_TELEPHONE+x}" || export LC_TELEPHONE
        test -z "${LC_TIME+x}" || export LC_TIME
        test -z "${LOCPATH+x}" || export LOCPATH
fi
if test -r /etc/profile; then
        . /etc/profile
fi
test -x /etc/X11/Xsession && exec /etc/X11/Xsession
exec /bin/sh /etc/X11/Xsession
startxfce4
radhakrishnan_mohan@minishift-vm:~$ sudo service xrdp restart
sudo su
passwd