Questions tagged [libvirt]

libvirt is an API and toolkit for developing applications which manage virtual machine hypervisors, the virtual machines running under them, and virtual machine storage.

libvirt is an API and toolkit for developing applications which manage virtual machine hypervisors, the virtual machines running under them, and virtual machine storage.

libvirt runs on Linux, Solaris and Windows.

libvirt supports the following hypervisors: KVM/QEMU, Hyper-V, VMware, Xen, VirtualBox, OpenVZ, LXC, User Mode Linux, and others.

libvirt suports the following storage: local file images, raw disk storage, LVM, FibreChannel, iSCSI, NFS.

650 questions
0
votes
1 answer

Virsh: Different XML with edit than dumpxml. Why?

I'm trying to fetch the VNC access data from a virtual machine managed by libVirt. However, when I run virsh dumpxml $machine, the vnc passwd is missing: Checking the same using virsh edit $machine, I…
Dave Vogt
  • 257
  • 2
  • 12
0
votes
2 answers

Question about libvirt autostart and virtual manager

I'm running Ubuntu 10.04 I installed kvm and virtual manager and created a guest OS. Everything worked fine until I rebooted my pc. After reboot libvirt was not running despite of init script inside /etc/init.d If I start it manually it works. It's…
gansbrest
  • 835
  • 2
  • 9
  • 17
0
votes
1 answer

Booting ubuntu with libvirt pass in custom script to be run from rc.local

I have an ubuntu image that I start under libvirt/qemu. I'd like to pass in a custom script at boot time that can be executed from rc.local. I can do this with Amazon EC2 instances via their user-data. I'd like to replicate this feature with my own…
bradgonesurfing
  • 271
  • 1
  • 4
  • 6
0
votes
0 answers

systemd: How to wait for a network device provided dynamicly at runtime?

We have a server (hypervisor) hosting many virtual machines controlled by libvirt. libvirt provides a virtual network for communication between the virtual machines and the hypervisor. This virtual network is established at runtime by…
0
votes
1 answer

Create a VM from snapshot use /dev/VDA instead /dev/SDA

0 We have an OpenStack instance configured with multiple images, including CentOS, Redhat, and Ubuntu. When creating a new instance, the root partition attaches as SCSI without any issues. All images are correctly set to use the appropriate…
F.Rosado
  • 101
  • 3
0
votes
0 answers

AppArmor issues with Libvirt

I have a fresh Ubuntu Server 22.04.3 and Debian 12.1.0 installed and updated. Along with Cockpit and Cockpit virtual machines on both tests machines. I am getting the following errors and warning when looking at the log section in Cockpit: Failed to…
0
votes
0 answers

Converting QEMU Solaris VM to libvirt

I have a QEMU VM running Solaris 2.6 on a SPARCstation-5 machine. I currently start it with the following command: qemu-system-sparc \ -name sunvm \ -machine SS-5 \ -m 256 \ -drive file=sunvm.img,bus=0,unit=0,media=disk \ -nic…
MP64
  • 1
0
votes
2 answers

How to access service from virtual machine of another machine in local network?

I have two Ubuntu machines A and B in my local network. Computer B has an openmediavault instance set up via KVM. Computer B has the IP address 192.168.177.58, the openmediavault instance provides a service that I can access in the browser at the…
user7468395
  • 101
  • 1
0
votes
0 answers

Cannot establish an IPv4 connection from my bridge to an external node on the same network (IPv6 works tho)

I am currently trying to build a little lab for testing purposes: I have a Linux Host-System (currently Arch-Based)deploying 2 vms, abridge with an assigned NIC and a CISCO Router that is directly linked to the NIC that is enslaved to the…
0
votes
0 answers

Networking KVM virtual machines to VLAN interface on host

I have a VLAN interface (enp98s0f0.4000) set up on my KVM host, which is a Hetzner dedicated server. The VLAN is set up to route through a Hetzner vSwitch, and I can ping out to Cloud instances sitting on the other side of the vSwitch (for the sake…
emberdex
  • 111
  • 2
0
votes
0 answers

network does not work for VM after a while, only resolves after changing MAC

I have installed pfSense as a KVM guest in a Debian 11 host using libvirt. The host has two interfaces. One is attached to the VM using macVLAN driver, and serves as pfSense's WAN interface. The other is attached to a linux bridge, and serves the…
0
votes
0 answers

How to make KVM guest configs persistent across reboots/shutdown

I create a KVM Guest VM (virsh define a.xml, virsh start a.xml). Guest uses pre-configured/pre-made QCOW2 disk image, which represents a virtual router (Arista vEOS). Host is Redhat 9.1. Guest is based on Centos 7.9. The VM uses a boot loader…
Mo Fatty
  • 121
  • 2
0
votes
0 answers

How do I route ALL VM (qemu-kvm, libvirt) traffic through proxy running in Host?

Host: Ubuntu 20.04 Proxy Client and Server: V2ray Proxy Client connecting to Server and is available in the host on 127.0.0.110808 for Socks and 127.0.0.1:10809 for http. VMs: Multiple vms running in the Host via qemu-kvm and libvirt My Goal:…
Malvo
  • 1
0
votes
0 answers

Can you use virsh to reset vm id sequence?

Question in regards to "Id" for running VMs, using virsh running local Qemu VMs. command virsh list will bring up a list of the current running VMs defined, eg,  Id Name State  -------------------  1 ubuntu running upon stopping and undefining the…
0
votes
0 answers

qemu set different dynamic ip address for each machine

I need to run about 7 virtual machines via qemu at the same time. The problem is that they all have the same public IP address as the host. Is there any way to give them different ip addresses? host and guest system is debian. I searched the…
wineT
  • 1