Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.


  Search this Thread
Old 03-03-2011, 03:44 PM   #1
LQ Newbie
Registered: Mar 2011
Distribution: Ubuntu
Posts: 2

Rep: Reputation: 0
Cannot connect to newly created vm's using virt-viewer

Hello there!

I've successfully created 2 virtual machines on my server using virt-install. I can see them listed using virsh but I can't connect to them using virt-viewer.. virt-viewer doesn't give me any helpful info besides the following:
vm-admin@ubuntu:~$ virt-viewer --connect qemu:///system vm1
Cannot open display: 
Run 'virt-viewer --help' to see a full list of available command line options
vm-admin@ubuntu:~$ virsh -c qemu:///system list
 Id Name                 State
 16 vm1                  running
 17 vm2                  running

My first vm was kind of an exotic os (called mineos). When I got this error, I tried it using a second vm running debian. However, i can't connect to it aswell. It leaves me with the same error message.

I used the following command to create my debian vm. I used a smilar command for my first vm
vm-admin@ubuntu:~$ virt-install --connect qemu:///system -n vm2 -r 512 --vcpus=2 -f /home/vm-admin/vms/vm2.qcow2 -s 1 -c /home/vm-admin/debian-6.0.0-amd64-netinst.iso --vnc --noautoconsole --os-type linux --accelerate --network=bridge:br0 --hvm
Being root doesn't help either. I'm currently running ubuntu 10.10 server edition (headless).

I'm relatively new to all this vm stuff so I was wondering if one of you guys might have a solution, or an direction where to look.

Thanks in advance!
Old 03-04-2011, 06:16 AM   #2
Registered: Dec 2007
Location: Canada
Distribution: RHEL,Fedora
Posts: 995

Rep: Reputation: 115Reputation: 115
you can try qemu+ssh:// or just use a VNC client
1 members found this post helpful.
Old 03-08-2011, 02:02 PM   #3
LQ Newbie
Registered: Mar 2011
Distribution: Ubuntu
Posts: 2

Original Poster
Rep: Reputation: 0
I thought I had read somewhere that virt-viewer doesn't need a gui:P
Apparently it does, got it working now (The Cannot open display error makes a lot more sense now actually....)



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Rename newly created threads Jeebizz LQ Suggestions & Feedback 11 09-02-2009 10:38 AM
How do I connect Linux to VM's Windows via serial ports ? mrguo Linux - Hardware 0 01-17-2009 09:11 PM
Newly created id on LQ.... ssinlr Linux - Newbie 1 12-01-2008 10:21 PM
I can't login with newly created user r_ibsen Linux - Newbie 2 06-19-2004 08:32 AM
Linux can't see newly created partition Dswissmiss Linux - Software 5 05-17-2004 08:05 AM > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 07:50 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration