The tag has no usage guidance.

learn more… | top users | synonyms

9
votes
2answers
4k views

Use VirtualBox provider by default on Fedora 21

Right now, any time I use vagrant, it tries to use libvirt as the provider. I want to use VirtualBox by default. vagrant-libvirt is not installed. It's bothersome because some commands don't work, ...
5
votes
1answer
936 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 ...
5
votes
1answer
2k 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 ...
4
votes
1answer
80 views

Is libvirt dnsmasq exposed to the network, if I run Fedora without a firewall?

There's this nice saying from Ubuntu: no open ports on the default install. Other Linux OS's look the same, including Fedora. No-one wants to worry about firewalls, if they don't need to. Yuck, ...
4
votes
1answer
1k views

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

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 ...
3
votes
3answers
5k 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
2answers
643 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 ...
3
votes
0answers
331 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 ...
3
votes
2answers
208 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. ...
3
votes
3answers
400 views

how do I build a bridge between two virtual machines?

I have used virt-install to create two CentOS 7 virtual machine guests on a CentOS 7 host computer. One virtual machine is called webvm, and hosts web sites on a private network. The other virtual ...
2
votes
1answer
286 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.
2
votes
1answer
134 views

how do I create an appropriate drive for a libvirt virtual machine?

I am trying to use virt-install to create a CentOS 7 virtual machine in a CentOS 7 host. Towards that end, I have been reading the virt-install documentation at the RHEL web site, and I have also ...
2
votes
1answer
353 views

Modifying files inside a snapshot (qemu img file)

I have taken a snapshot recently to assist me build VMs quickly with the operating system I desire (through virsh), however, every time I build a VM, I would like to modify few files inside the img ...
2
votes
1answer
232 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
3k 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: ...
2
votes
1answer
2k views

how to create custom vagrant box from libvirt/kvm instance?

There are many resources on the Internet to create a custom vagrant box from a VirtualBox instance. But I want to know a direct method to create a custom vagrant box directly from a kvm/libvirt ...
2
votes
1answer
559 views

Xen libvirt access for non-root user

I've installed Xen and libvirt on a CentOS 6.6 machine. All the tools (virt-manager, virsh etc) work perfectly as root (directly or via sudo) but I cannot allow another user to connect (failed to ...
2
votes
1answer
823 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 ...
2
votes
1answer
649 views

Configure public IP addresses in KVM VMs

I have a physical server running CentOS 6.5 with one interface connected to the Internet (with one public IP address). Inside this server I have two VMs created with KVM through libvirt with one ...
2
votes
0answers
708 views

How to convert the qemu parameters for an osx guest for libvirtd

I managed to have an osx guest running in qemu with the following commands: // create the virtual image $ qemu-img create -f qcow2 mac_hdd.img 35G // .. install osx ... // start the guest $ ...
2
votes
0answers
252 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 ...
2
votes
0answers
55 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
665 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 ...
2
votes
1answer
1k views

libvirt daemon doesn't start on Gentoo [closed]

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
2answers
2k 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, ...
1
vote
2answers
214 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 ...
1
vote
1answer
2k 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
1answer
52 views

virt-install automatic Debian installation with preseed.cfg

I am trying to script a Debian installation using virt-install and a preseed.cfg file. I am installing into a virtual machine. Currently, I am using an ISO file rather than a network installation. I ...
1
vote
1answer
109 views

Virtualisation: follow symbolic links in VirtFS (9p) share

I have folder on host machine which have symlinks to another device. Like this $ ls -all ~/folder_to_share ... file1 file2 linked_dir -> /mnt/bdrive/real_dir/ ... I setup QEMU virtual machine ...
1
vote
1answer
445 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
1answer
257 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 ...
1
vote
2answers
1k 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
0answers
36 views

xen + libvirt share disks betwee VM on diferent hosts

I have another problem. what I've done is: We deploy 2 physical hosts with SLES 12 SP1 and install XEN hypervizor on both. On each host we provide few block devices via FC. On each host we ...
1
vote
0answers
40 views

How to check if 'Per-node memory binding' is supported in any libvirt version?

I am using kvm and getting an error: unsupported configuration: Per-node memory binding is not supported with this QEMU I have the #virsh version: Compiled against library: libvirt 1.2.9 Using ...
1
vote
0answers
126 views

Is it possible to pass USB DVD drive to KVM (QEMU) virtual machine on Ubuntu?

I've got a KVM host on Ubuntu 15.10 Server. I'm fairly new at it so I'm managing it via an Ubuntu 15.10 Desktop VM running on itself and accessing the host via Virtual Machine Manager. That works ...
1
vote
0answers
19 views

Golden image updates in qemu

Consider that there are 100 windows virtual machines coming from a single base image and each vm is added to domain along with minor other machine specific settings which can be done by a script. ...
1
vote
1answer
702 views

Libvirt: how to pass qemu command line args?

I have the current libvirt 1.2.20 i want to pass to my machine create with virt-manager some qemu flags. I edited the file and add </devices> <qemu:commandline> <qemu:arg ...
1
vote
0answers
86 views

Gnome-boxes not able to see virtual machines after sleep

I am having a bit of trouble to solve this issue. I am using gnome-boxes to run my windows boxes for my school project purpose. When I boot the system, everything works just fine When I type : ...
1
vote
0answers
215 views

Passthrough PS/2 keyboard to guest OS

OS Windows run on VM (ubuntu, libvirt, qemu-kvm). And I have PS/2 keyboard on host hardware. Is there any way to pass it to guest OS without lost of performance (maybe emulate USB keyboard with keys ...
1
vote
1answer
238 views

nova volume-detach fails silently, compute log shows libvirtError: invalid argument: no target device vdb

Using Openstack Havana, I'm trying to detach a cinder volume from a nova instance. Nova volume-list shows it as in-use: | 34b0ea26-f85c-4b62-8ebd-884b0e63e2d5 | in-use | filestore | 256 | None| ...
1
vote
1answer
470 views

How to set up samba sharing with libvirtd

I'm using QEmu with a Windows 7 guest on my (Arch) Linux system. I'd like to use the samba to share a directory on my host system with the Windows guest. I can do this from the terminal with a command ...
1
vote
0answers
297 views

(virt-manager:4796): Client failed to connect to the D-BUS daemon / Unable to connect to libvirt

I would like to boot and run Windows 8 with kvm or xen while I'm running Debian Wheezy. Actually I have installed Windows 8 on the external USB disk and Debian Wheezy on the hard disk sata. I'm tryng ...
1
vote
2answers
136 views

nginx web server on VM inaccessible to host

My laptop is running Ubuntu 14.10 desktop and hosting 14.10 server in a libvirt VM (set up using virt-manager). I installed it in minimal virtual server mode with only openssh-server. After ...
1
vote
0answers
131 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 ...
1
vote
1answer
293 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: ...
1
vote
0answers
166 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
0answers
254 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 ...
0
votes
2answers
129 views

QEMU Guest Agent for Ubuntu 12.04 LTS

I've been looking for the QEMU Guest Agent for Ubuntu 12.04 LTS. It seems like the Guest Agent is included in the official Repository from Ubuntu 14.04 and up ...
0
votes
1answer
193 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?
0
votes
1answer
3k 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' ...