0

I'm trying to install some Lucid VMs on a Lucid host using virt-install. After I create the image, I want to go through the guest installation without using a GUI, such as virt-manager or VNC.

Is there a way to access the installation screen via terminal?

Luke has no name
  • 1,249
  • 1
  • 12
  • 14

3 Answers3

0

This isn't accessing the installation screen via the terminal, but it's possible to install the VM from the command line, using a script instead of the traditional graphical installation tool. Look into python-vm-builder. It's powerful, but won't support every option such as disk encryption. Installing in such a way will be far quicker, however - a matter of minutes rather than tens of minutes.

lime-like
  • 96
  • 1
0

If you are familiar with vnc you can use a vnc client to connect to the console of the virtual machine. virsh vncdisplay $machinename will return a port such as :2 this is the VNC port so in a vnc client put $yourserversip:5900+the port so if it returns :2 and your server is 10.44.56.25 then the address would be 10.44.56.25:5902.

By default vnc binds to localhost so you would need to use a ssh tunnel IE ssh 10.44.56.2 -L 5902:localhost:5902 then vnc to localhost:5902. You can modify this in the libvirt config.

Hope this helps!

Damian
  • 86
  • 2
  • So there is no way to continue the installation through a terminal, rather than having to have X installed SOMEWHERE in the environment? – Luke has no name Aug 10 '10 at 18:43
  • I've not found any way of getting virsh console to work, technically kvm does redirect the output to a pts which should be accessible by /dev/pts/. I suspect this dosn't work for me because I use HVM rather than PV but havn't seen decent working examples of it even when running PV. virsh console should just connect to the pts but dosn't return anything as far as I can tell. Possibly could try the mailling list but I've never had much luck there! Sorry for not being much help. – Damian Aug 12 '10 at 08:52
0

qemu/kvm supports ncurses console, but libvirt does not -- you will have to start kvm manually, not from virsh.

alternately, you can use Google's SGABIOS instead of standard VGA BIOS.

sendmoreinfo
  • 1,772
  • 13
  • 34