Article ID: 120599, created on Mar 18, 2014, last review on Jun 17, 2016

  • Applies to:
  • Operations Automation 5.4
  • Virtuozzo
  • Virtuozzo hypervisor

Symptoms

On attempt to create PACI Virtual Machine from image new VM gets created, but deleted almost immediately afterwards. Following information can be observed in PACI logs (/var/log/IM/PACI-vm2vf.log):

2014-03-17 13:15:37,868 INFO  NativeVm2VfCode [Thread-57920372] - [?:4429112] callback: job [__PrlVm_LoginInGuest] index [429409] h type [PHT_JOB] evt type [PET_VM_INF_UNINITIALIZED_EVENT_CODE] (__create_ve_cb, create.c, 677)
2014-03-17 13:15:37,868 ERROR NativeVm2VfCode [Thread-57920373] - [?:4429112] job(login_finished) [2] warning: PRL_ERR_VM_EXEC_GUEST_TOOL_NOT_AVAILABLE
2014-03-17 13:15:37,870 INFO  NativeVm2VfCode [Thread-57920374] - [?:4429112] get_err_message() [1] error message: (Make sure the latest version of Parallels Tools is installed in this virtual machine and it has finished booting.)
2014-03-17 13:15:37,871 ERROR NativeVm2VfCode [Thread-57920375] - [?:4429112] __PrlVm_LoginInGuest (CHANGE_VE) __wait_job_chk_result: result PRL_ERR_VM_EXEC_GUEST_TOOL_NOT_AVAILABLE / "Make sure the latest version of Parallels Tools is installed in this virtual machine and it has finished booting."
...
2014-03-17 13:16:53,098 INFO  LoggingProxy [RequestProcessor-71895] - invoked: delete_ve_cb(

The following error can be found on the hardware node in /var/log/parallels.log:

03-17 14:15:27.055 F /prl_net:10433:d9ef8700/ [PrlNet] Failed to set up adapter configuration: SIOCSIFNETMASK for vme797259a3.0 failed.

Cause

Parallels Tools service launches on VM startup almost immediately, however in some case race condition arises - the service starts even before network is initialized. Since PACI fails to configure network it considers provisioning to be failed and destroys the Virtual Machine.

This behavior is considered as a bug with internal ID #PSBM-23163.

Solution

The permanent fix is included in Parallels Cloud Server 6.0 Update 7 (6.0.7-2195)

Note: the fix will be valid for all VM templates that are created after the update. For already existing VM templates you need to update Parallels Tools manually:

Workaround

To make sure Parallels Tools service starts after the network is initialized it is recommended to configure startup type for the service to "Delayed".

To achieve this, for each affected Virtual Machine image following steps should be performed:

NOTE: replace imagename with actual name of the image in the following steps.

  1. Connect via SSH to the storage node where image is located, make sure it is present:

    # prlctl list -t | grep imagename
    
  2. Create a backup of image's configuration file:

    # cp /var/parallels/imagename.pvm/config.pvs{,.backup}
    
  3. Modify configuration file in order to convert image into a Virtual Machine:

    # grep IsTemplate /var/parallels/imagename.pvm/config.pvs
             <IsTemplate>1</IsTemplate>
    # sed -i 's/ <IsTemplate>1<\/IsTemplate>/<IsTemplate>0<\/IsTemplate>/g' /var/parallels/imagename.pvm/config.pvs
    # grep IsTemplate /var/parallels/imagename.pvm/config.pvs
            <IsTemplate>0</IsTemplate>
    
  4. Start the virtual machine you've got after converting template:

    # prlctl start imagename
    
  5. Log into the imagename VM (you can use RDP, VNC, or prlctl enter command) and configure Parallels Tools Service startup type:

    C:\> sc config "Parallels Tools Service" start= delayed-auto
    
  6. Shutdown the VM:

    # prlctl stop imagename
    
  7. Convert VM back to a template:

    # sed -i 's/ <IsTemplate>0<\/IsTemplate>/<IsTemplate>1<\/IsTemplate>/g' /var/parallels/imagename.pvm/config.pvs
    # grep IsTemplate /var/parallels/imagename.pvm/config.pvs
           <IsTemplate>1</IsTemplate>
    # prlctl list -t
    UUID                                    DIST            T  NAME
    {fea571f2-6edc-470b-ae12-48d00df2c00e}  centos          VM imagename
    

Once these steps are performed VM creation should run properly.

Search Words

Make sure the latest version of Parallels Tools is installed in this virtual machine and it has finished booting

'startup type', 'Parallels Tools Service', 'Make sure the latest version of Parallels Tools is installed in this virtual machine and it has finished booting'

ac82ce33439a9c1feec4ff4f2f638899 caea8340e2d186a540518d08602aa065 5356b422f65bdad1c3e9edca5d74a1ae 2554725ed606193dd9bbce21365bed4e a26b38f94253cdfbf1028d72cf3a498b 2897d76d56d2010f4e3a28f864d69223 0dd5b9380c7d4884d77587f3eb0fa8ef 614fd0b754f34d5efe9627f2057b8642

Email subscription for changes to this article
Save as PDF