KVM fails to autostart guest

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

KVM fails to autostart guest

Sunny_bg
I have a kvm virtual machine hosted in Tumbleweed, with bridged
network setup. I have set the guest to autostart when the host boots.

Unfortunately, after reboot of the host, the virtual machine is not started.

Looking at the log files, libvirt fails to start it, because the
bridged network interface is not ready when it tries to start the
guest:

libvirtd[1403]: 2012-06-20 13:23:49.833+0000: 1485: error :
qemuAutostartDomain:177 : Failed to autostart VM 'testguest': Cannot
get interface MTU on
 'br0': No such device

I can see that the interface br0 is started after that.

So, this is possible bug, and I'll report it so it can be fixed, but
meanwhile, where should I change the startup order of the services, so
libvirt is invoked after fully working network? I'm not familiar with
the new (not init.d) startup process.

--
Svetoslav Milenov (Sunny)

Artificial Intelligence is no match for natural stupidity.
--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Fixed] KVM fails to autostart guest

Sunny_bg
I ended up modifying /lib/systemd/system/libvirtd.service:

In the [Unit] section I added the line:
After=network.target

I guess upon update it may get overwritten, but until then ... it works.

On Wed, Jun 20, 2012 at 8:39 AM, Sunny <[hidden email]> wrote:

> I have a kvm virtual machine hosted in Tumbleweed, with bridged
> network setup. I have set the guest to autostart when the host boots.
>
> Unfortunately, after reboot of the host, the virtual machine is not started.
>
> Looking at the log files, libvirt fails to start it, because the
> bridged network interface is not ready when it tries to start the
> guest:
>
> libvirtd[1403]: 2012-06-20 13:23:49.833+0000: 1485: error :
> qemuAutostartDomain:177 : Failed to autostart VM 'testguest': Cannot
> get interface MTU on
>  'br0': No such device
>
> I can see that the interface br0 is started after that.
>
> So, this is possible bug, and I'll report it so it can be fixed, but
> meanwhile, where should I change the startup order of the services, so
> libvirt is invoked after fully working network? I'm not familiar with
> the new (not init.d) startup process.
>
> --
> Svetoslav Milenov (Sunny)
>
> Artificial Intelligence is no match for natural stupidity.



--
Svetoslav Milenov (Sunny)

Artificial Intelligence is no match for natural stupidity.
--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: [Fixed] KVM fails to autostart guest

Lars Müller-2
On Mon, Jul 09, 2012 at 08:12:59AM -0500, Sunny wrote:
> I ended up modifying /lib/systemd/system/libvirtd.service:
>
> In the [Unit] section I added the line:
> After=network.target
>
> I guess upon update it may get overwritten, but until then ... it works.

To get this working on the long run you need to file a defect report and
point to your solution.  Else this will stay broken till others report
it.

As you have at least a work around solution it looks like others would
benefit from your work.

Please report the bug ID as a clickable URL back to this thread.

Better would be you follow the instruction to the Open Build Service
available from
http://en.openSUSE.org/openSUSE:Build_Service_Collaboration and submit
the required changes back via this way.

Cheers,

Lars
--
Lars Müller [ˈlaː(r)z ˈmʏlɐ]
Samba Team + SUSE Labs
SUSE Linux, Maxfeldstraße 5, 90409 Nürnberg, Germany

attachment0 (197 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [Fixed] KVM fails to autostart guest

Sunny_bg
I have published the bug and the workaround here:
https://bugzilla.novell.com/show_bug.cgi?id=767932

Isn't this the supposed way? I'm not sure how the defect tracking
works after Novell was sold.

On Tue, Jul 10, 2012 at 3:03 AM, Lars Müller <[hidden email]> wrote:

> On Mon, Jul 09, 2012 at 08:12:59AM -0500, Sunny wrote:
>> I ended up modifying /lib/systemd/system/libvirtd.service:
>>
>> In the [Unit] section I added the line:
>> After=network.target
>>
>> I guess upon update it may get overwritten, but until then ... it works.
>
> To get this working on the long run you need to file a defect report and
> point to your solution.  Else this will stay broken till others report
> it.
>
> As you have at least a work around solution it looks like others would
> benefit from your work.
>
> Please report the bug ID as a clickable URL back to this thread.
>
> Better would be you follow the instruction to the Open Build Service
> available from
> http://en.openSUSE.org/openSUSE:Build_Service_Collaboration and submit
> the required changes back via this way.
>
> Cheers,
>
> Lars
> --
> Lars Müller [ˈlaː(r)z ˈmʏlɐ]
> Samba Team + SUSE Labs
> SUSE Linux, Maxfeldstraße 5, 90409 Nürnberg, Germany



--
Svetoslav Milenov (Sunny)

Artificial Intelligence is no match for natural stupidity.
--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: [Fixed] KVM fails to autostart guest

Lars Müller-2
On Tue, Jul 10, 2012 at 08:46:52AM -0500, Sunny wrote:
> I have published the bug and the workaround here:
> https://bugzilla.novell.com/show_bug.cgi?id=767932
>
> Isn't this the supposed way? I'm not sure how the defect tracking
> works after Novell was sold.

That's still the correct mechanism for openSUSE.

I've added a comment to ensure we'll see this change in openSUSE 12.2.

If you like to see this fixed for 12.1 too please add your comment in
bugzilla too.

Cheers,

Lars
--
Lars Müller [ˈlaː(r)z ˈmʏlɐ]
Samba Team + SUSE Labs
SUSE Linux, Maxfeldstraße 5, 90409 Nürnberg, Germany

attachment0 (197 bytes) Download Attachment