Modify

Ticket #3453 (closed enhancement: worksforme)

Opened 20 months ago

Last modified 17 months ago

Virtual machine not work: could not remove profile

Reported by: papp.gyula@… Owned by: jacalvo@…
Milestone: 2.2.X Component: virt
Severity: blocker Keywords: image crash
Cc: papp.gyula@…

Description

Hello! In today's virtual machine after the update I wanted one. Virtualbox image file extension, run ova BR1 bridgge interface. This module did not work for me so far thought to try it again now! However, while saving Zentyal module has failed. The virtual machine up during launch failure occurred. I attach the logs.

Attachments

zentyal.log.zip Download (96.6 KB) - added by papp.gyula@… 20 months ago.
/var/log/zentyal/zentyal.log
error.log.zip Download (126.1 KB) - added by papp.gyula@… 20 months ago.
/var/log/zentyal/error.log

Change History

Changed 20 months ago by papp.gyula@…

/var/log/zentyal/zentyal.log

Changed 20 months ago by papp.gyula@…

/var/log/zentyal/error.log

comment:1 Changed 20 months ago by jamor@…

  • Summary changed from Virtual machine not work. to Virtual machine not work: could not remove profile

It seems that the relevant zentyal log lines are:

2011/10/25 14:39:30 INFO> Base.pm:228 EBox::Module::Base::save - Restarting service for module: virt
2011/10/25 14:39:31 ERROR> Service.pm:39 EBox::Service::manage - No such daemon: zentyal-virt.vnc.Elastix
2011/10/25 14:40:02 ERROR> Sudo.pm:213 EBox::Sudo::_rootError - root command /var/lib/zentyal/machines/Elastix/manage.sh start failed. 
Error output: error: Failed to create domain from /var/lib/zentyal/machines/Elastix/domain.xml
 error: could not remove profile for 'libvirt-37d157db-45b7-97bc-e4ac-3bdefef87a79'

Command output: 
. 
Exit value: 1
2011/10/25 14:40:02 ERROR> GlobalImpl.pm:612 EBox::GlobalImpl::__ANON__ - Failed to save changes in module virt: root command /var/lib/zentyal/machines/Elastix/manage.sh start failed. 
Error output: error: Failed to create domain from /var/lib/zentyal/machines/Elastix/domain.xml
 error: could not remove profile for 'libvirt-37d157db-45b7-97bc-e4ac-3bdefef87a79'

Command output: 
. 
Exit value: 1

comment:2 Changed 20 months ago by papp.gyula@…

Hello Javier! Since it is not chronic in the virtual machine has been dropped. This means that neither the deletion took place without problems. Regards: Gyula

comment:3 Changed 18 months ago by jacalvo@…

  • Status changed from new to closed
  • Resolution set to worksforme

Hi Gyula,

Not sure if you still have this problem, but I can't reproduce it, if you still have it, try to upgrade to the new zentyal-virt 2.2.3 to see if it is fixed now...

Thanks.

comment:4 Changed 18 months ago by papp.gyula@…

Ok! Test Plot and write the result! Gyula

comment:5 Changed 17 months ago by mreose7@…

  • Status changed from closed to reopened
  • Resolution worksforme deleted

I am using Virtualization Manager 2.2.3 and am getting the same error!

ERROR:

Command output: 
. 
Exit value: 1
2012/01/22 00:22:35 WARN> Configuration.pm:110 EBox::Monitor::Configuration::RRDBaseDirPath - Neither /var/lib/collectd/rrd/ruuter/ and /var/lib/collectd/rrd/ruuter/ still exists. Did Collectd never run?
2012/01/22 00:22:37 INFO> GlobalImpl.pm:539 EBox::GlobalImpl::saveAllModules - Saving config and restarting services: firewall virt
2012/01/22 00:22:37 INFO> Base.pm:228 EBox::Module::Base::save - Restarting service for module: firewall
2012/01/22 00:22:41 INFO> Base.pm:228 EBox::Module::Base::save - Restarting service for module: virt
2012/01/22 00:23:13 ERROR> Sudo.pm:213 EBox::Sudo::_rootError - root command /var/lib/zentyal/machines/OPSI/manage.sh start failed. 
Error output: error: Failed to create domain from /var/lib/zentyal/machines/OPSI/domain.xml
 error: monitor socket did not show up.: Connection refused

Command output: 
. 
Exit value: 1
2012/01/22 00:23:13 ERROR> GlobalImpl.pm:612 EBox::GlobalImpl::__ANON__ - Failed to save changes in module virt: root command /var/lib/zentyal/machines/OPSI/manage.sh start failed. 
Error output: error: Failed to create domain from /var/lib/zentyal/machines/OPSI/domain.xml
 error: monitor socket did not show up.: Connection refused

Command output: 
. 
Exit value: 1
2012/01/22 00:23:13 ERROR> GlobalImpl.pm:664 EBox::GlobalImpl::saveAllModules - The following modules failed while saving their changes, their state is unknown: virt

domain.xml

<domain type='qemu'>
    <name>OPSI</name>
    <memory>131072</memory>
    <vcpu>1</vcpu>
    <os>
        <type arch='i686' machine='pc'>hvm</type>
        <boot dev='hd'/>
    </os>
    <features><acpi/></features>
    <clock sync='localtime'/>
    <on_poweroff>destroy</on_poweroff>
    <on_reboot>restart</on_reboot>
    <on_crash>restart</on_crash>
    <devices>
        <emulator>/usr/bin/qemu</emulator>
        <disk type='file' device='disk'>
            <driver name='qemu' type='qcow2'/>
            <target dev='sda' bus='scsi'/>
            <source file='/home/opsi/opsidemo.vmdk'/>
        </disk>
        <input type='mouse' bus='usb'/>
        <video>
            <model type='cirrus' vram='9216' heads='1'/>
            <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
        </video>
        <graphics type='vnc' listen='0.0.0.0' port='5900' passwd='uspFdLsU' keymap='en-us'/>
    </devices>
</domain>

comment:6 Changed 17 months ago by jamor@…

Hello Mreose,

do you get this error after removing a profile like the original poster?. If not, what changes you made in your virtual machines configuration?.

Regards, Javier

comment:7 Changed 17 months ago by mreose7@…

If I remove the machine then I get: virtual machine deleted :)

When I switch the machine to autostart (with my added hd image), then it goes nuts like this:

2012/01/23 21:33:56 INFO> Base.pm:228 EBox::Module::Base::save - Restarting service for module: virt 2012/01/23 21:33:57 INFO> GlobalImpl?.pm:653 EBox::GlobalImpl::saveAllModules - Changes saved successfully 2012/01/23 21:34:35 ERROR> Sudo.pm:213 EBox::Sudo::_rootError - root command /var/lib/zentyal/machines/opsi/manage.sh start failed. Error output: error: Failed to create domain from /var/lib/zentyal/machines/opsi/domain.xml

error: monitor socket did not show up.: Connection refused

Command output: . Exit value: 1 2012/01/23 21:34:47 WARN> Configuration.pm:110 EBox::Monitor::Configuration::RRDBaseDirPath - Neither /var/lib/collectd/rrd/ruuter/ and /var/lib/collectd/rrd/ruuter/ still exists. Did Collectd never run? 2012/01/23 21:34:50 INFO> GlobalImpl?.pm:539 EBox::GlobalImpl::saveAllModules - Saving config and restarting services: firewall virt 2012/01/23 21:34:50 INFO> Base.pm:228 EBox::Module::Base::save - Restarting service for module: firewall 2012/01/23 21:34:54 INFO> Base.pm:228 EBox::Module::Base::save - Restarting service for module: virt 2012/01/23 21:35:26 ERROR> Sudo.pm:213 EBox::Sudo::_rootError - root command /var/lib/zentyal/machines/opsi/manage.sh start failed. Error output: error: Failed to create domain from /var/lib/zentyal/machines/opsi/domain.xml

error: monitor socket did not show up.: Connection refused

Command output: . Exit value: 1 2012/01/23 21:35:26 ERROR> GlobalImpl?.pm:612 EBox::GlobalImpl::ANON - Failed to save changes in module virt: root command /var/lib/zentyal/machines/opsi/manage.sh start failed. Error output: error: Failed to create domain from /var/lib/zentyal/machines/opsi/domain.xml

error: monitor socket did not show up.: Connection refused

Command output: . Exit value: 1 2012/01/23 21:35:26 ERROR> GlobalImpl?.pm:664 EBox::GlobalImpl::saveAllModules - The following modules failed while saving their changes, their state is unknown: virt

comment:8 Changed 17 months ago by mreose7@…

I am sorry... Correct formatting:

2012/01/23 21:33:56 INFO> Base.pm:228 EBox::Module::Base::save - Restarting service for module: virt
2012/01/23 21:33:57 INFO> GlobalImpl.pm:653 EBox::GlobalImpl::saveAllModules - Changes saved successfully
2012/01/23 21:34:35 ERROR> Sudo.pm:213 EBox::Sudo::_rootError - root command /var/lib/zentyal/machines/opsi/manage.sh start failed. 
Error output: error: Failed to create domain from /var/lib/zentyal/machines/opsi/domain.xml
 error: monitor socket did not show up.: Connection refused

Command output: 
. 
Exit value: 1
2012/01/23 21:34:47 WARN> Configuration.pm:110 EBox::Monitor::Configuration::RRDBaseDirPath - Neither /var/lib/collectd/rrd/ruuter/ and /var/lib/collectd/rrd/ruuter/ still exists. Did Collectd never run?
2012/01/23 21:34:50 INFO> GlobalImpl.pm:539 EBox::GlobalImpl::saveAllModules - Saving config and restarting services: firewall virt
2012/01/23 21:34:50 INFO> Base.pm:228 EBox::Module::Base::save - Restarting service for module: firewall
2012/01/23 21:34:54 INFO> Base.pm:228 EBox::Module::Base::save - Restarting service for module: virt
2012/01/23 21:35:26 ERROR> Sudo.pm:213 EBox::Sudo::_rootError - root command /var/lib/zentyal/machines/opsi/manage.sh start failed. 
Error output: error: Failed to create domain from /var/lib/zentyal/machines/opsi/domain.xml
 error: monitor socket did not show up.: Connection refused

Command output: 
. 
Exit value: 1
2012/01/23 21:35:26 ERROR> GlobalImpl.pm:612 EBox::GlobalImpl::__ANON__ - Failed to save changes in module virt: root command /var/lib/zentyal/machines/opsi/manage.sh start failed. 
Error output: error: Failed to create domain from /var/lib/zentyal/machines/opsi/domain.xml
 error: monitor socket did not show up.: Connection refused

Command output: 
. 
Exit value: 1
2012/01/23 21:35:26 ERROR> GlobalImpl.pm:664 EBox::GlobalImpl::saveAllModules - The following modules failed while saving their changes, their state is unknown: virt 

comment:9 Changed 17 months ago by jamor@…

Hello Mreose,

the " monitor socket did not show up" is a kind of catch-all error which could be caused by a lot of different causes. Your system does not seem to have anything special besides you added drive. Can you try with a system with a created hard drive instead of attaching yours?.

Regards,

Javier

comment:10 Changed 17 months ago by mreose7@…

The system created drive works fine. Does zentyal have problems with .vmdk files?

comment:11 Changed 17 months ago by jamor@…

  • Status changed from reopened to closed
  • Resolution set to worksforme

Yes, currently we only support qcow2 format. If you need to use this disk use the qemu-img tool to convert it.

In future versions we will try to autodetect the format to warn about incompatible formats.

Regards,

Javier

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.