how can you install a KVM guest os in nographic mode

3

I need to install a KVM guest OS but without the use of a GUI. What I found so far:

create a disk image for the guest

qemu-img create -f qcow2 vdisk.img 10G

install the guest OS

qemu-system-x86_64 -hda vdisk.img -cdrom /path/to/boot-media.iso \ 
   -boot d  -m 1024 -localtime -clock unix -nographic

Adding in the nographic paramater will disable the video output and I'll see nothing; I would have expected some output to be redirected to the console, but I get nothing.

I tried replacing -nographic with -curses but that did not help either.

So the question stands: can you install an guess OS in kvm without a GUI?

Pandrei

Posted 2015-10-16T15:23:18.143

Reputation: 141

Answers

1

eventually I figured it out; It can be done using a vnc connection. Use the following options:

-nographic -vnc your_server_ip:1 -k en-us

This will start a vnc server to which you can connect from another machine using a vnc client.

Pandrei

Posted 2015-10-16T15:23:18.143

Reputation: 141