On Thu, May 31, 2018 at 10:08 AM, 03CE 007 <[email protected]> wrote:

> Ok thanks, when you say guest agent, could you please provide the full
> name and how to have it installed, and I am assuming it should be installed
> on the the engineVM or the new VM I want to spin and boot up.
>

Generally speaking, we are transitioning from ovirt-guest-agent to
qemu-guest-agent.
I don't know what's the status of this transition with respect to centos as
I typically use latest-fedora.
Tomas, can you please advice what needs to be installed in centos 7.4?

And it should be installed in the new VM.


>
> On Thu, 31 May 2018, 7:57 am Arik Hadas, <[email protected]> wrote:
>
>>
>>
>> On Wed, May 30, 2018 at 7:30 PM, <[email protected]> wrote:
>>
>>> Some what new to the VM and Ovirt world here and need some help
>>> understanding terminologies and get the VM to work as per requirement.
>>>
>>> I have a self-hosted-engine (4.2) running on centos (7.4). The engine is
>>> in good health and I have deployed a test VM using below playbook
>>> successfully. It is currently in "up" state.
>>>
>>>
>>> - name: oVirt Self-Hosted-Engine - Manage VMs
>>>   hosts: hypervisor_ovirt
>>>   gather_facts: false
>>>
>>>   vars_files:
>>>     # Contains encrypted `engine_password` varibale using ansible-vault
>>>     - ovirt-secrets.yml
>>>
>>>   vars:
>>>     engine_url: https://engine-ovirt.dw/ovirt-engine/api
>>>     engine_user: admin@internal
>>>     engine_cafile: /etc/pki/ovirt-engine/ca.pem
>>>
>>>     mytest_vm:
>>>       cluster: Default
>>>       memory: 64GiB
>>>       memory_guaranteed: 1GiB
>>>       cores: 2
>>>       nics:
>>>         - name: vnet0
>>>           network: ovirtmgmt
>>>           profile: ovirtmgmt
>>>           interface: virtio
>>>       wait: true
>>>       domain: node.dev.dw
>>>       os_type: rhel_7x64
>>>       ssh_key: ssh-rsa AAA...LGx user01@mytestvm
>>>       root_password: super_password
>>>       disks:
>>>         - size: 20GiB
>>>           name: data
>>>           storage_domain: hosted_storage
>>>           interface: virtio
>>>           bootable: true
>>>       nics:
>>>         - name: vnet0
>>>           network: ovirtmgmt
>>>           profile: ovirtmgmt
>>>           interface: virtio
>>>
>>>     vms:
>>>       - name: mytest_vm
>>>         tag: mytest_vm
>>>         profile: "{{ mytest_vm }}"
>>>         cloud_init:
>>>           dns_servers:
>>>             - 10.90.x.1
>>>             - 10.90.x.1
>>>           nic_boot_protocol: static
>>>           nic_ip_address: 10.90.x.y
>>>           nic_netmask: 255.255.255.0
>>>           nic_gateway: 10.90.x.z
>>>           nic_name: eth0
>>>           nic_on_boot: true
>>>           host_name: mytestvm.test.dw
>>>           custom_script: |
>>>             write_files:
>>>              - content: |
>>>                  Hello, world!
>>>                path: /tmp/greeting.txt
>>>                permissions: '0644'
>>>           user_name: root
>>>           root_password: super_password
>>>         cloud_init_persist: true
>>>
>>>   roles:
>>>     - oVirt.vm-infra
>>>
>>>
>>> Above playbook runs fine, but when i see summary using ovirt4.py, i do
>>> not see ipaddr for this test vm.
>>>
>>> - I do not see the ipaddr for this VM despite specifying it using
>>> cloud_init
>>>
>>
>> You need to install a guest agent in order to be provided with ip
>> addresses.
>>
>>
>>> - does the "up" status mean it has "booted" or I need to do something
>>> else to boot it with centos 7.4 minimal
>>>
>>
>> Without a guest agent installed we know nothing about the state of the
>> guest so in this case the UP status only means that the VM process is
>> running for more than 1 minute.
>>
>>
>>>
>>> Thank you in advance.
>>> _______________________________________________
>>> Users mailing list -- [email protected]
>>> To unsubscribe send an email to [email protected]
>>> Privacy Statement: https://www.ovirt.org/site/privacy-policy/
>>> oVirt Code of Conduct: https://www.ovirt.org/community/about/community-
>>> guidelines/
>>> List Archives: https://lists.ovirt.org/archives/list/[email protected]/
>>> message/YF635QVUMPZTMVX3CMPSNUORXK527OFA/
>>>
>>
>>
_______________________________________________
Users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Privacy Statement: https://www.ovirt.org/site/privacy-policy/
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/[email protected]/message/RNDG6JSHOCRPT2OX4OJZFGK4CVTEH4LB/

Reply via email to