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
root@debian:~# xm create /etc/xen/ubuntu-hvm.cfg
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…?
When you ssh to your server, you need to pass either the
-Y option to allow for X11 forwarding from the server to your local workstation.
ssh -Y firstname.lastname@example.org
You must also have the
xauth package installed on the server for X11 forwarding to work.
root@debian:~# apt-get install xauth
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.