You are not logged in.

#1 2009-08-25 21:32:19

lifanov
Member
Registered: 2009-03-16
Posts: 44

[SOLVED] KVM + QEMU launch virtual machine without virtual monitor

I am a total QEMU noob.
I moved two servers from physical machines to KVM and they work great, except that I connect to them through ssh and rdp and I don't care for the screen that pops up when I launch a machine. Also, I want to be able to launch them without X running.
Is there a command line switch or some such that does it? Google failed me.

Last edited by lifanov (2009-08-26 18:00:07)

Offline

#2 2009-08-25 22:30:06

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: [SOLVED] KVM + QEMU launch virtual machine without virtual monitor

qemu-kvm --help
...
-nographic      disable graphical output and redirect serial I/Os to console
...

Is that what you're looking for?

As for not launching X, isn't that something you need to change in the hosted OS?


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#3 2009-08-26 17:30:38

rine
Member
From: Germany
Registered: 2008-03-04
Posts: 217

Re: [SOLVED] KVM + QEMU launch virtual machine without virtual monitor

Xyne wrote:
qemu-kvm --help
...
-nographic      disable graphical output and redirect serial I/Os to console
...

Is that what you're looking for?

As for not launching X, isn't that something you need to change in the hosted OS?

I guess the creators expect people to use X or vnc. I never managed to install a VM without one of those. I like virsh (libvirt) for managing stuff. Sadly, when installing something the vnc output is only accessible from localhost, so to install a machine I use something like

/usr/bin/kvm -M pc -m 256 -smp 1 -monitor pty -boot d -hda /dev/vg01/opsi -cdrom /root/debian-500-i386-netinst.iso -net nic,macaddr=00:16:3e:49:da:10,vlan=0 -net tap,script=,vlan=0,ifname=vnet0 -serial pty -parallel none -usb -vnc :0

When the server is running I copy and modify a libvirt cfg from another server. From there on everything runs smoothly.

Offline

#4 2009-08-26 17:59:40

lifanov
Member
Registered: 2009-03-16
Posts: 44

Re: [SOLVED] KVM + QEMU launch virtual machine without virtual monitor

Thanks a bunch!
That's what I was looking for.
I didn't try --help.

Offline

#5 2009-08-26 18:03:04

lifanov
Member
Registered: 2009-03-16
Posts: 44

Re: [SOLVED] KVM + QEMU launch virtual machine without virtual monitor

I start X by hand anyway.

Offline

Board footer

Powered by FluxBB