Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I recently installed qemu-kvm in Centos 6.3 x86_64.

I want to start a VM only with an iso file, so i typed:

qemu-kvm -hda file.iso -m 1024

but I only get

VNC server running on 127.0.0.1:5901

I tried appending '-vga std' to the command, but i cant get virt-viewer to start.

How can I get qemu-kvm to automatically start virt-viewer?

share|improve this question
add comment

3 Answers

up vote 0 down vote accepted

qemu-kvm has no option to launch the viewer; you must do it manually:

 qemu-kvm -hda file.iso -m 1024 && virt-viewer .. 
share|improve this answer
add comment

Simply type in "virt-manager" in the shell. You should be able to connect to the local hypervisor (KVM) and have a view on the VM you just started.

You can also start the VM through virt-manager, btw.

share|improve this answer
add comment

qemu-kvm has nothing to do with virt-viewer, which is a part of libvirt. virt-viewer can actually connect to VMs started through libvirt (using virsh or virt-manager), not directly via qemu-kvm. Of course there can be workarounds, but if you want to use virt-viewer, there should be no reason not to run your VMs via libvirt.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.