Tagged Questions

The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
11 views

Adding QEMU/KVM option to virsh VM starting script

I use libvirt to manage a QEMU/KVM system. Starting a VM only by using virsh start vmname What I want to know is how to add an option to virsh starting script, in my case I want to add QEMU ...
2
votes
0answers
50 views

USB ethernet device not working in VM

I'm having trouble getting a USB ethernet device working in a qemu-kvm/libvirt VM. The problem is that even though the guest OS sees the USB device just fine it can't mount it. lsusb on the guest ...
0
votes
1answer
24 views

What are the diffence between virsh, virt-install, and virt-manager?

I know all of virsh, virt-install, and virt-manager can manage the virtual machines. However, what are the difference between the three?
1
vote
1answer
23 views

What commands in virsh corresponds to “Force Off” button in virt-manager?

I'm trying to find the corresponding command to the buttons in virt-manager, I read about virsh help domain and I found start, shutdown and reset etc. But the one for Force Off is missing. Anyone ...
1
vote
2answers
67 views

how to access the running VMs?

A colleague of a friend of mine established a voluntary project for a gaming union. But the problem now is, that the person is unavailable and I don´t know how I should access the running VMs. I spent ...
2
votes
1answer
94 views

Is it possible to use comments in virsh / libvirt xml files?

I am using. virsh -c qemu:///system edit VM-Name And adding comments. <!-- test comment here --> It won't complain.* But the comment is removed. *Usually if you make a syntax error (for ...
0
votes
0answers
23 views

Can we add ports to OVS AFTER the VM is created?

I wanted to write up a program where I can create VMs first using libvirt. Initially they would not be added to any network. Then I want them to be attached to an OVS bridge where I can specify the ...
0
votes
0answers
115 views

vdsm service won't start

I am currently evaluating Red Hat Enterprise Virtualization and have managed to set up the management server and the bare metal hypervisor. Now I'm trying to add a regular box running RHEL server 6.5 ...
5
votes
1answer
220 views

Retrieve serial port information of a libvirt domain?

I'm trying to retrieve the serial port information, aka Source Path of a libvirt domain (using qemu/KVM machine): Serial Device 1 (Primary Console) Device type: pty Source path: /dev/pts/2 But ...
2
votes
1answer
146 views

How to name network adapters created with virt-install?

In order to test preseeded installation, I want to create a virtual machine as close as possible to an actual server I use in production. The server has two network adapters: p1p1 and p2p1. When ...
1
vote
0answers
68 views

complete KVM / libvirt breakdown after OS upgrade (openSUSE)

I have upgraded two E-350 systems which have been running VMs (one of the systems only Linux VMs, the other one Windows VMs) to openSUSE 13.1 (i.e kernel 3.11.10, kvm-1.6.0, libvirt-1.1.2). After a ...
2
votes
0answers
20 views

libvirtd (KVM) doesn't reload the kernel when I reboot the machine

I'm using Direct kernel boot with libvirtd and KVM as backend. But, every time I recompiled the kernel, and reboot inside the VM, the changes doesn't reflect until I do a Force off and Power on ...
2
votes
2answers
495 views

virsh, how to list autostart domains?

In virsh how do I see which domains are marked as autostart? virsh list does not show which domains are marked as autostart.
3
votes
0answers
109 views

Migrate a qcow2 image between storage pools

I have 2 storage pools. host_images (directory storage pool) remote_images (nfs storage pool) How do I copy qcow images from remote_images to host_images using libvirt APIs? I've tried using the ...
1
vote
1answer
99 views

virt-resize complains: “virt-resize: error: You cannot use --expand when there is no surplus space to expand into.”

I am resizing an installed KVM domain # resize the partitions virt-resize --expand /dev/vda2 --LV-expand /dev/vg_main/lv_root $VMFILE $VMFILE.tmp and virt-resize throws an error: virt-resize: ...
0
votes
1answer
1k views

KVM Domain not creating

While I am trying to create a new KVM Machine , I am getting the following error , Unable to complete install: 'Domain has not existed. You should be able to find more information in the logs' ...
0
votes
0answers
378 views

kvm/qemu linux guest vm wont boot

host linux (kvm/qemu/libvirt) guest linux (slackware) the slack vm pauses just after Loading Linux-virtio...... message. it's stuck in paused state. i think i shutdown the host without shutting the vm ...
0
votes
1answer
88 views

Some issues when install libvirt

I am trying to install libvirt from source codes, my workflow is shown below, #!/bin/sh apt-get install gnutls-bin libgnutls-dev -y apt-get install libxml++2.6-2 libxml++2.6-dev -y apt-get install ...
2
votes
1answer
325 views

KVM linux guest, 2nd HDD, LVM partition or whole disk

I've got a RAID 10 arrays on a couple of KVM host machines. The RAID 10 array is one big VG. I usually create a small LV for guest disk image storage then the rest of the VG I carve out as LVs to add ...
0
votes
0answers
30 views

Proper way for setting general policy and firewall rules with libvirtd

I'm just struggling with the firewall configuration of our new KVM Host. I think by now I understand how libvirtd implements networking, but I'm missing a way to set some decent firewall rules. To ...
0
votes
1answer
91 views

How to setup permission for virtfs in system libvirtd

I have troubles setting up the permissions for virtfs. I need to share a folder with several VMs in a way that user (same username, uid and gid on guests and host) can access it (have full ...
0
votes
0answers
102 views

Paravirtualized disk for Xen using libvirt?

I'm trying to use libvirt to create a paravirtualized xen domain. Here's the xml file that I'm passing to virsh --connect xen:/// define: <domain type='xen'> <name>xenguest</name> ...
3
votes
1answer
619 views

VGA passthrough - Code 43 with KVM and libvirt on all AMD hardware

I've set up a system with an R9-270 and an ATI Rage (PCI graphics card, doesn't use radeon driver) on an FX-8320 and an ASRock 970 Extreme3 R2.0 motherboard with the intention of running Debian Wheezy ...
2
votes
1answer
84 views

Prevent libvirtd from modifying file attributes

I have a .vdi disk file that is shared between libvirtd and VirtualBox. Each time I start a program with libvirtd, the owner of the .vdi file is set to root. I'm wondering if it's configurable? I ...
2
votes
1answer
1k views

Bridged network with different subnets

I want to virtualize my webserver with lxc/virsh for this reason, I want to pass a IP to the lxc container. But my IPs are from different subnets, what I tried (but not successfully): Virsh network: ...
1
vote
0answers
87 views

libvirtd not suspending guests

My guests, one windows, one linux, are not being suspended. I'm not sure why. Here's the output of systemctl, which looks wrong, but I've done systemctl start libvirt-guests && systemctl ...
1
vote
2answers
350 views

Meaning of “target” in virsh XML VM definitions.

I recently found that the target=hda tag in virsh was actually not translating into guest OS (guest OS's use /dev/sdX as the disk device names, in general, it seems). virt-install and /dev/hda vs. ...
1
vote
2answers
727 views

virt-install and /dev/hda vs. /dev/sda

It appears that my virt-install xml file (i.e. created when defining a VM) specifies targets "hda", "hdb", and so on as the devices for disks, however, the VM, once created, lists /dev/sda, /dev/sdb, ...
4
votes
1answer
476 views

Emulate unplugging a network cable with qemu-kvm

[Background: I'd like to actually test How to take down a static network interface when not connected? ] I'm setting up a QEMU-KVM virtual machine using libvirt (via virt-manager). I put two NICs on ...
1
vote
1answer
692 views

libvirt daemon doesn't start on Gentoo

I'm trying to use Xen with virt-manager on Gentoo system and I have some troubles with libvirt daemon. When it starts: Starting libvirtd ... /usr/sbin/libvirtd: error: Unable to initialize ...
1
vote
1answer
1k views

How do I port-forward 169.254.169.254-bound packets from libvirt/KVM guests to localhost?

This is a followup to What's the best way to have a 169.254.169.254 address local to my laptop?. Short story: 169.254.169.254 is the "well known" address of cloud metadata services for EC2 and for ...
1
vote
0answers
140 views

Virsh hangs while trying to connect

Running this command: # virsh -c qemu:///system list As root user, hangs with no error message. Not sure what's causing this. This problem started after a power failure in my lab. When I brought ...
3
votes
2answers
160 views

How to report back system installation progress

I'd like to do some reporting from the system setup progress for virtualised (libvirt/kvm) Ubuntu servers. I expected some kind of such system to already exist out there, but couldn't find anything. ...
2
votes
1answer
209 views

can't start default network, is there a way to run dnsmasq for both local and kvm?

I can't start KVM since I use dnsmasq on my laptop as a DNS cache server, So, I'm wondering if this can be merged to the server I'm running.