LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 11-28-2020, 12:37 AM   #1
gallienus215
LQ Newbie
 
Registered: Jul 2013
Posts: 8

Rep: Reputation: Disabled
Networking lost to KVM/Qemu guests after Host reboot in Manjaro linux


Hello,

I’m running an up to date installation of manjaro-plasma. I’ve installed all the dependancies for kvm/qemu to work. The other night I created a virtual machine for windows and installed a trial version of windows 10 pro. The installation was a simple default installation and it went fine I completely updated the vm and even added a cd-rom drive to the vm to install the virtio-win drivers in the the virtual machine. However when I rebooted my pc the vm won’t start because it’s reporting the default newtork device was not found.
This is the error I get when I try to start the vm. Error starting domain: Requested operation is not valid: network ‘default’ is not active

Traceback (most recent call last):
File “/usr/share/virt-manager/virtManager/asyncjob.py”, line 65, in cb_wrapper
callback(asyncjob, *args, **kwargs)
File “/usr/share/virt-manager/virtManager/asyncjob.py”, line 101, in tmpcb
callback(*args, **kwargs)
File “/usr/share/virt-manager/virtManager/object/libvirtobject.py”, line 57, in newfn
ret = fn(self, *args, **kwargs)
File “/usr/share/virt-manager/virtManager/object/domain.py”, line 1330, in startup
self._backend.create()
File “/usr/lib/python3.8/site-packages/libvirt.py”, line 1234, in create
if ret == -1: raise libvirtError (‘virDomainCreate() failed’, dom=self)
libvirt.libvirtError: Requested operation is not valid: network ‘default’ is not active
I’ve made sure the libvirt service is started with : sudo systemctl restart libvirtd.service
An idea what’s going on?

Update: I went to install a linux vm in qemu/kvm. I again used the vm creation wizard and aside from picking the .iso I’d use to install from and the hard drive size I just went with the defaults. After the machine was created and I went to start it a window popped up saying the network wasn’t started and would I like to start networking along with the vm. I selected yes and went through with the install and the vm installed without a hitch. I tried starting the win10 vm and that started as well. So…why isn’t qemu’s networking starting when I start the virtual machine manager?
 
Old 11-28-2020, 05:36 PM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
libvirt networks must be "started" before you can use them. You can set their autostart flag, in which case they get started automatically when libvirt is started.

Normally, the default network has that flag set, but perhaps it's cleared in your case. The command to set it is virsh net-autostart; I don't know how this is done in the GUI.
 
Old 11-29-2020, 11:56 PM   #3
gallienus215
LQ Newbie
 
Registered: Jul 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
Thanks for your reply. I typed virsh net-autostart default into the terminal and rebooted to see if it worked and that did the trick. Thank you very much for your help.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Install KVM with UEFI Guests support on Manjaro KDE 20.1.1 LXer Syndicated Linux News 0 10-17-2020 09:03 AM
[SOLVED] "No KVM, No qemu-kvm" Available error while trying to install KVM on CentOS 6.3 sriramdas Linux - Virtualization and Cloud 5 01-01-2013 10:46 AM
LXer: Set up qemu-kvm-1.0+noroms as spice enabled qemu server vs qemu-kvm-spice on Ubuntu Precise LXer Syndicated Linux News 0 05-26-2012 07:41 AM
[Debian/Qemu/KVM] Why qemu --enable-kvm works but not kvm directly? gb2312 Linux - Virtualization and Cloud 2 03-21-2011 02:05 PM
LXer: Attempt of qemu-kvm-0.14 patching via Gerd’s Hoffmann “spice/qxl: locking fix for qemu-kvm” on LXer Syndicated Linux News 0 03-14-2011 01:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 02:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration