[root@ovirthost18 ~]# hosted-engine --vm-start
50d9d728-9bcf-4ab6-a278-c5a454a32f2c
Status = WaitForLaunch
nicModel = rtl8139,pv
statusTime = 4305117770
emulatedMachine = pc
pid = 0
vmName = HostedEngine
devices = [{'index': '2', 'iface': 'ide', 'specParams': {}, 'readonly': 'true', 'deviceId': '5a88fbe5-3e06-4d7b-bf92-107fd04671b5', 'address': {'bus': '1', 'controller': '0', 'type': 'drive', 'target': '0', 'unit': '0'}, 'device': 'cdrom', 'shared': 'false', 'path': '', 'type': 'disk'}, {'index': '0', 'iface': 'virtio', 'format': 'raw', 'bootOrder': '1', 'poolID': '00000000-0000-0000-0000-000000000000', 'volumeID': '0d00f1eb-6830-444e-96d0-6c0df99d7faf', 'imageID': '4af8861b-92b6-45c0-9761-d04f04c8f183', 'specParams': {}, 'readonly': 'false', 'domainID': 'c585e108-8832-489e-bad1-01bc9476e1e8', 'optional': 'false', 'deviceId': '4af8861b-92b6-45c0-9761-d04f04c8f183', 'address': {'slot': '0x06', 'bus': '0x00', 'domain': '0x0000', 'type': 'pci', 'function': '0x0'}, 'device': 'disk', 'shared': 'exclusive', 'propagateErrors': 'off', 'type': 'disk'}, {'device': 'scsi', 'model': 'virtio-scsi', 'type': 'controller'}, {'nicModel': 'pv', 'macAddr': '00:16:3e:3b:7c:1a', 'linkActive': 'true', 'network': 'ovirtmgmt', 'filter': 'vdsm-no-mac-spoofing', 'specParams': {}, 'deviceId': 'a173df1e-2bb7-487c-885a-02b03ba3a46e', 'address': {'slot': '0x03', 'bus': '0x00', 'domain': '0x0000', 'type': 'pci', 'function': '0x0'}, 'device': 'bridge', 'type': 'interface'}, {'device': 'console', 'specParams': {}, 'type': 'console', 'deviceId': 'b4086d8b-d69f-46e6-8fbb-4ab04b3a1708', 'alias': 'console0'}]
guestDiskMapping = {}
vmType = kvm
clientIp =
displaySecurePort = -1
memSize = 16384
displayPort = -1
cpuType = Nehalem
spiceSecureChannels = smain,sdisplay,sinputs,scursor,splayback,srecord,ssmartcard,susbredir
smp = 4
displayIp = 0
display = vnc
[root@ovirthost18 ~]# hosted-engine --vm-status
--== Host 1 status ==--
Status up-to-date : True
Hostname : ovirthost18.skyovirt.com
Host ID : 1
Engine status : {"health": "good", "vm": "up", "detail": "up"}
Score : 0
stopped : False
Local maintenance : True
crc32 : fe880da9
Host timestamp : 10511
在另一台主机上执行:
[root@ovirthost17 ~]# screen hosted-engine --deploy
点击(此处)折叠或打开
- [root@ovirthost17 ~]# screen hosted-engine --deploy
- [ INFO ] Stage: Initializing
- [ INFO ] Generating a temporary VNC password.
- [ INFO ] Stage: Environment setup
- Continuing will configure this host for serving as hypervisor and create a VM where you have to install the engine afterwards.
- Are you sure you want to continue? (Yes, No)[Yes]:
- [ INFO ] Stage: Initializing
- [ INFO ] Generating a temporary VNC password.
- [ INFO ] Stage: Environment setup
- Continuing will configure this host for serving as hypervisor and create a VM where you have to install the engine afterwards.
- Are you sure you want to continue? (Yes, No)[Yes]:
- Configuration files: []
- Log file: /var/log/ovirt-hosted-engine-setup/ovirt-hosted-engine-setup-20160311183220-et0uiy.log
- Version: otopi-1.4.1 (otopi-1.4.1-1.el7.centos)
- [ INFO ] Hardware supports virtualization
- [ INFO ] Bridge ovirtmgmt already created
- [ INFO ] Stage: Environment packages setup
- [ INFO ] Stage: Programs detection
- [ INFO ] Stage: Environment setup
- [ INFO ] Stage: Environment customization
-
- --== STORAGE CONFIGURATION ==--
-
- During customization use CTRL-D to abort.
- Please specify the storage you would like to use (glusterfs, iscsi, fc, nfs3, nfs4)[nfs3]: glusterfs
- [ INFO ] Please note that Replica 3 support is required for the shared storage.
- Please specify the full shared storage connection path to use (example: host:/path): 192.168.184.17:/GO
- [ INFO ] GlusterFS replica 3 Volume detected
- The specified storage location already contains a data domain. Is this an additional host setup (Yes, No)[Yes]?
- [ INFO ] Installing on additional host
- Please specify the Host ID [Must be integer, default: 2]:
-
- --== SYSTEM CONFIGURATION ==--
-
- [WARNING] A configuration file must be supplied to deploy Hosted Engine on an additional host.
- The answer file may be fetched from an active HE host using scp.
- If you do not want to download it automatically you can abort the setup answering no to the following question.
- Do you want to scp the answer file from another HE host? (Yes, No)[Yes]:
- Please provide the FQDN or IP of an active HE host: ovirthost18.skyovirt.com
- Enter 'root' user password for host ovirthost18.skyovirt.com:
- [ INFO ] Answer file successfully downloaded
-
- --== NETWORK CONFIGURATION ==--
-
- iptables was detected on your computer, do you wish setup to configure it? (Yes, No)[Yes]: NO
- The following CPU types are supported by this host:
- - model_Nehalem: Intel Nehalem Family
- - model_Penryn: Intel Penryn Family
- - model_Conroe: Intel Conroe Family
-
- --== HOSTED ENGINE CONFIGURATION ==--
-
- Enter the name which will be used to identify this host inside the Administrator Portal [hosted_engine_2]: ovirthost17.skyovirt.com
- Enter 'admin@internal' user password that will be used for accessing the Administrator Portal:
- Confirm 'admin@internal' user password:
- [ INFO ] Stage: Setup validation
-
- --== CONFIGURATION PREVIEW ==--
-
- Engine FQDN : ovirt.skyovirt.com
- Bridge name : ovirtmgmt
- Host address : ovirthost17.skyovirt.com
- SSH daemon port : 22
- Gateway address : 192.168.184.1
- Host name for web application : ovirthost17.skyovirt.com
- Host ID : 2
- Image size GB : 10
- GlusterFS Share Name : hosted_engine_glusterfs
- GlusterFS Brick Provisioning : False
- Storage connection : 192.168.184.18:/GO
- Console type : vnc
- Memory size MB : 16384
- MAC address : 00:16:3e:3b:7c:1a
- Boot type : disk
- Number of CPUs : 4
- Restart engine VM after engine-setup: True
- CPU Type : model_Nehalem
- [ INFO ] Stage: Transaction setup
- [ INFO ] Stage: Misc configuration
- [ INFO ] Stage: Package installation
- [ INFO ] Stage: Misc configuration
- [ INFO ] Configuring libvirt
- [ INFO ] Configuring VDSM
- [ INFO ] Starting vdsmd
- [ INFO ] Waiting for VDSM hardware info
- [ INFO ] Configuring VM
- [ INFO ] Updating hosted-engine configuration
- [ INFO ] Stage: Transaction commit
- [ INFO ] Stage: Closing up
- [ INFO ] Acquiring internal CA cert from the engine
- [ INFO ] The following CA certificate is going to be used, please immediately interrupt if not correct:
- [ INFO ] Issuer: C=US, O=skyovirt.com, CN=ovirt.skyovirt.com.69415, Subject: C=US, O=skyovirt.com, CN=ovirt.skyovirt.com.69415, Fingerprint (SHA-1): AECA33331DEC34A847A1B7BCAB02D8C2F3678770
- [ INFO ] Connecting to the Engine
- [ INFO ] Waiting for the host to become operational in the engine. This may take several minutes...
- [ INFO ] The VDSM Host is now operational
- [ INFO ] Enabling and starting HA services
- [ INFO ] Stage: Clean up
- [ INFO ] Generating answer file '/var/lib/ovirt-hosted-engine-setup/answers/answers-20160311183850.conf'
- [ INFO ] Generating answer file '/etc/ovirt-hosted-engine/answers.conf'
- [ INFO ] Stage: Pre-termination
- [ INFO ] Stage: Termination
- [ INFO ] Hosted Engine successfully set up
- [screen is terminating]