Hi James, looks like you didn't set the DISPLAY variable: > Cannot open display:
In my setup I have to 'xhost +localhost' as the desktop user. As root: export DISPLAY=:0 Good luck. Tim Ruehsen Am Wednesday, 25. January 2012 schrieb James Allsopp: > Hi, > I'm having trouble building a kvm virtual machine, The script I'm using > to build this is: > #!/bin/bash > virt-install \ > --connect qemu:///system \ > -n deb1 \ > -r 512 \ > --vcpus=1 \ > --os-variant=debiansqueeze \ > --accelerate \ > -v \ > -c /var/lib/libvirt/images/debian-6.0.3-amd64-netinst.iso \ > -w bridge:br0 \ > --vnc \ > --disk path=/var/lib/libvirt/images/debiantest.img,size=4 > > > but when I run I get the following error, I've tried to debug this > afterwards; > > awaiian:/home/ja/vm_kvm# ./kvmInstall > > > Starting install... > Allocating 'debiantest.img' | 4.0 GB > 00:00 > Creating domain... | 0 B > 00:00 > Cannot open display: > Run 'virt-viewer --help' to see a full list of available command line > options > Domain installation does not appear to have been > successful. If it was, you can restart your domain > by running 'virsh start deb1'; otherwise, please > restart your installation. > Hawaiian:/home/ja/vm_kvm# virsh start deb1 > error: failed to get domain 'deb1' > error: Unknown failure > > Hawaiian:/home/ja/vm_kvm# virsh > Welcome to virsh, the virtualization interactive terminal. > > Type: 'help' for help with commands > 'quit' to quit > > virsh # nodeinfo > CPU model: x86_64 > CPU(s): 2 > CPU frequency: 2000 MHz > CPU socket(s): 1 > Core(s) per socket: 2 > Thread(s) per core: 1 > NUMA cell(s): 1 > Memory size: 4061292 kB > > virsh # list --al > error: command 'list' doesn't support option --al > virsh # list --all > Id Name State > ---------------------------------- > > virsh # net-list --all > Name State Autostart > ----------------------------------------- > vboxnet0 inactive no autostart > > virsh # net-edit default > error: failed to get network 'default' > error: Unknown failure > > virsh # quit > > Hawaiian:/home/ja/vm_kvm# virsh > Welcome to virsh, the virtualization interactive terminal. > > Type: 'help' for help with commands > 'quit' to quit > > virsh # net-autostart default > error: failed to get network 'default' > error: Unknown failure > > > > If anyone can offer me any help on how to fix this I'd be really grateful, > > James -- -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/201201301054.33054.tim.rueh...@openmediasystem.de