Hi. I have an AMD Athlon 64 X2/dual core processor and 2 gigs of ram running SXDE/87 (as far as I can tell, it''s on a ufs filesystem, not zfs). I''m attempting to install Vista from cd and the virt-install command fails with the same error regardless of what I do. I''m running this from my user (not root) account. I''m using qemu-img to create my hard drive images. Here''s the cut and paste from gnome-terminal: bash-3.2$ uname -a SunOS pacifica 5.11 snv_87 i86pc i386 i86xpv bash-3.2$ virt-install --name Vista1 -r 1024 --location /dev/dsk/c1t0d0s2 --file $HOME/guests/Vista1.img --vnc Traceback (most recent call last): File "/usr/bin/virt-install", line 657, in ? main() File "/usr/bin/virt-install", line 509, in main conn = libvirt.open(options.connect) File "/usr/lib/python2.4/vendor-packages/libvirt.py", line 135, in open if ret is None:raise libvirtError(''virConnectOpen() failed'') libvirt.libvirtError: virConnectOpen() failed I have also tried using "--cdrom" instead of "--location" and "--ram" instead of "-r", I''ve also typed out the full pathname for $HOME and I''ve gotten the same error message. This doesn''t seem to be vista or cd specific, as I got the same results when I attempted to make a windows 2003 guest: bash-3.2$ virt-install --name 2k3-1 -r 512 --location /export/home/user/Documents/iso/w2k3/2k3.iso --file /export/home/user/guests/2k3-1.img --vnc Traceback (most recent call last): File "/usr/bin/virt-install", line 657, in ? main() File "/usr/bin/virt-install", line 509, in main conn = libvirt.open(options.connect) File "/usr/lib/python2.4/vendor-packages/libvirt.py", line 135, in open if ret is None:raise libvirtError(''virConnectOpen() failed'') libvirt.libvirtError: virConnectOpen() failed I''ve read and I''m sttumped, I have amd vt extentions and I am booting into dom0 (as you can see from the output of uname -a). I have no idea what is going wrong or how to fix it. Any help would be appreciated, thanks! PS apologies in advance if this is posted twice. This message posted from opensolaris.org
On Mon, May 12, 2008 at 02:26:30PM -0700, Michael Huff wrote:> Hi. I have an AMD Athlon 64 X2/dual core processor and 2 gigs of ram > running SXDE/87 (as far as I can tell, it''s on a ufs filesystem, not > zfs). I''m attempting to install Vista from cd and the virt-install > command fails with the same error regardless of what I do. I''m running > this from my user (not root) account. I''m using qemu-img to create my^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^> I''ve read and I''m sttumped, I have amd vt extentions and I am booting > into dom0 (as you can see from the output of uname -a). I have no idea > what is going wrong or how to fix it.Actually you do: you must run it as root. regards john
Michael Huff wrote:> Hi. I have an AMD Athlon 64 X2/dual core processor and 2 gigs of ram running SXDE/87 (as far as I can tell, it''s on a ufs filesystem, not zfs). I''m attempting to install Vista from cd and the virt-install command fails with the same error regardless of what I do. I''m running this from my user (not root) account. I''m using qemu-img to create my hard drive images. > > Here''s the cut and paste from gnome-terminal: > > bash-3.2$ uname -a > SunOS pacifica 5.11 snv_87 i86pc i386 i86xpv > bash-3.2$ virt-install --name Vista1 -r 1024 --location /dev/dsk/c1t0d0s2 --file $HOME/guests/Vista1.img --vnc > Traceback (most recent call last): > File "/usr/bin/virt-install", line 657, in ? > main() > File "/usr/bin/virt-install", line 509, in main > conn = libvirt.open(options.connect) > File "/usr/lib/python2.4/vendor-packages/libvirt.py", line 135, in open > if ret is None:raise libvirtError(''virConnectOpen() failed'') > libvirt.libvirtError: virConnectOpen() failed > > I have also tried using "--cdrom" instead of "--location" and "--ram" instead of "-r", I''ve also typed out the full pathname for $HOME and I''ve gotten the same error message. > > This doesn''t seem to be vista or cd specific, as I got the same results when I attempted to make a windows 2003 guest: > > bash-3.2$ virt-install --name 2k3-1 -r 512 --location /export/home/user/Documents/iso/w2k3/2k3.iso --file /export/home/user/guests/2k3-1.img --vnc > Traceback (most recent call last): > File "/usr/bin/virt-install", line 657, in ? > main() > File "/usr/bin/virt-install", line 509, in main > conn = libvirt.open(options.connect) > File "/usr/lib/python2.4/vendor-packages/libvirt.py", line 135, in open > if ret is None:raise libvirtError(''virConnectOpen() failed'') > libvirt.libvirtError: virConnectOpen() failed > > I''ve read and I''m sttumped, I have amd vt extentions and I am booting into dom0 (as you can see from the output of uname -a). I have no idea what is going wrong or how to fix it. > > Any help would be appreciated, thanks! > > PS apologies in advance if this is posted twice. > > > This message posted from opensolaris.org > _______________________________________________ > xen-discuss mailing list > xen-discuss@opensolaris.org >Looks like you haven''t configured vnc through svcprop. James
Thanks, guys. I *hate* it when the answer is right under my nose about that --sure enough, running virt-install as root solved the problem I was having. I also ran into problems because of not having vncpasswd set although I managed to get around that by using the legacy instructions and the config provided here: http://opensolaris.org/os/community/xen/docs/windowsguest/ I was able to kludge around the vncpasswd problem by adding an arbitary string as the vncpasswd entry. Now that I know what I was *supposed* to do (ie use svcprop) I''ll go back and set that up and try to get things set up the proper way. Thanks again for helping me to get this going! This message posted from opensolaris.org
I believe Vista is supposed to be HVM guest:- # virt-install -n Winds --hvm -r 512 --vnc -f /second_root/dsk/winxp-dsk \ -s 15 -c /export/home/ISO/winxp.iso This message posted from opensolaris.org