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

I've got XEN Hypervisor running on Debian as my base system. I understand VNC and conceptually installing PV based systems on my hypervisor but I'm getting stuck starting from scratch on a ISO-based HVM.

I connect via SSH to DOM0, downloaded the Ubuntu Desktop ISO, created a volume and setup my configuration file like so (instructions from Ubuntu's website from Manually Installing HVM Guest):

builder = "hvm"
name = "ubuntu-hvm"
memory = "512"
vcpus = 1
vif = ['']
disk = ['phy:/dev/vg0/ubuntu-hvm,hda,w','file:/root/ubuntu-12.04.2-desktop-amd64.iso,hdc:cdrom,r']
vnc = 1

Than:

root@debian:~# xm create /etc/xen/ubuntu-hvm.cfg

Which returns:

Started domain ubuntu-hvm (id=13)

VM starts, now I need to run the GUI to install via VNC...but this is where I'm stuck: I'm connected via SSH or a terminal, there isn't a VNC application I can "Launch" so to speak, and the VM doesn't have an IP I can route to connect VNC (which is assumed isn't already running).

root@debian:~# xm vncviewer ubuntu-hvm
invoking  vncviewer 0.0.0.0:0
Error: Can't open display: 

I understand I can install Ubuntu server and add a desktop (and I assume a vnc server after the installation) - but this didn't feel right given they given instructions for installing HVM and connecting via VNC?

Do I need to do some sort of PV style installation of desktop...?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

When you ssh to your server, you need to pass either the -X or -Y option to allow for X11 forwarding from the server to your local workstation.

ssh -Y root@debian.hypervisor.example.com

You must also have the xauth package installed on the server for X11 forwarding to work.

root@debian:~# apt-get install xauth
share|improve this answer
    
Ok same result, but I'm a OS X 10.8, so I think X11 isn't installed anymore and I have to download and install it ... could that be me error? I got the same result as before opening with ssh -Y and ssh -X and I have xauth installed –  jordan.baucke Feb 27 '13 at 23:24
    
Yeah, you won't get that far with X11 forwarding until you have X11 running on your system. –  Michael Hampton Feb 27 '13 at 23:24
    
Woop woop! Thanks @Michael Hampton! –  jordan.baucke Feb 27 '13 at 23:34

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.