Installing and running a guest OS on KVM-qemu with only serial console access

Posted by nixnotwin on Server Fault See other posts from Server Fault or by nixnotwin
Published on 2011-11-15T15:38:40Z Indexed on 2011/11/15 17:54 UTC
Read the original article Hit count: 329

Filed under:
|
|
|
|

I am trying to installing a bsd distro with virt-installer. With a Linux distro I used this:

virt-install -n debian -r 1024 --vcpus=1 --accelerate -v --disk /var/kvm/installation-disks/debian.img,size=6--nographics
--network=bridge:br0,model=ne2k_pci,mac=52:54:00:66:68:09 -l http://ftp.de.debian.org/debian/dists/squeeze/main/installer-amd64/current/images/
-x console=ttyS0,115200

This loads the installer directly from the online mirror. With Fedora I used this mirror: http://www.nic.funet.fi/pub/mirrors/fedora.redhat.com/pub/fedora/linux/releases/16/Fedora/x86_64/os/

Are there such mirrors for freebsd or openbsd?

The reason I want direct installable ftp/http mirrors is because I can access my physical server only via ssh, and it doesn't have a X server or a window manager to give me a VNC GUI.

When I tried installing centos 6 with an online mirror I was able to finish the installation via serial console, but after I rebooted it, the serial console never worked for me. I tried everything possible---editing menu.lst, inttab and securtty files.

Fedora 16 booted fine from serial console, but got stuck when it loaded anaconda installer.

I tried editing freebsd iso installation media by adding serial console option to boot option. And installation was successful. But couldn't boot into it becuase it wasn't giving console acess. I couldn't edit any files as ufs partition cannot be loaded with write access on my Ubuntu server 10.04.

Only debian squeeze worked well, it worked for me even without editing a single configuration file.

I want to have CLI versions of fedora/centos and freebsd/openbsd. But, looks like there isn't any hope for me to have them, as I have to depend on a serial console to do everything.

© Server Fault or respective owner

Related posts about virtualization

Related posts about kvm