LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-17-2008, 06:49 AM   #1
ibkoxls
Member
 
Registered: Jun 2007
Posts: 34

Rep: Reputation: 15
Trouble viewing Windows guest on xen


Hello,

I have xen running on Debian Etch (64-bit version) I'm running a Windows XP guest, but I haven't been able to view its desktop.

I think it has something to do with VNC.

Here's my windows guest config file (winxp.cfg):

Code:
import os, re
arch = os.uname() [4]
if re.search ('64', arch):
     arch_libdir = 'lib64'
else:
     arch_libdir = 'lib'

kernel = '/usr/lib/xen-3.0.3-1/boot/hvmloader'
builder = 'hvm'
memory = 640
shadow_memory = 8
device_model = '/usr/' + arch_libdir + '/xen-3.0.3-1/bin/qemu-dm'

#HostName
name = "winxpVM"

#Networking
vif = [ 'type=ioemu, bridge=xenbr3' ]

#Behaviour
acpi = 1
apic = 1
stdvga=0
#boot on floppy (a), hard disk (c) or CD-ROM (d)
#default - hard disk, CD-ROM
boot='dc'
vcpus=2
sdl=0
vnc=1
vncviewer=1
serial='pty'
usbdevice='tablet'

#Disks
disk = ['file:/home/xen/windows/winxp.img,ioemu:hda,w', 'file:/home/xen/windows/winxp.iso,hdc:cdrom,r' ]
This is what happened when I started this guest:

Code:
user@vmbed:/home/xen/windows$ sudo xm list
Name                        ID Mem(MiB) VCPUs State   Time(s)
Domain-0                     0     7403     8 r-----     52.8
user@vmbed:/home/xen/windows$ sudo xm create winxp.cfg
Using config file "winxp.cfg".
VNC= 3
Started domain winxpVM
user@vmbed:/home/xen/windows$ sudo xvnc4viewer vmbed:3

VNC Viewer Free Edition 4.1.1 for X - built Feb 26 2007 22:40:56
Copyright (C) 2002-2005 RealVNC Ltd.
See http://www.realvnc.com for information on VNC.
xvnc4viewer: unable to open display ""
user@vmbed:/home/xen/windows$ sudo xm list
Name                         ID Mem(MiB) VCPUs State   Time(s)
Domain-0                     0     7403     8 r-----     58.3
winxpVM                      4      640     1 ------      0.0
What could the matter be, please?
 
Old 11-07-2008, 06:50 PM   #2
llg179
LQ Newbie
 
Registered: Nov 2008
Posts: 4

Rep: Reputation: 0
it might be network related

I prefer use real disks instead of images:
disk=['phy:/dev/sda8,ioemu:hda,w','phy:/dev/scd0,ioemu:hdc:cdrom,r']

The other config file contains network config:

/etc/xend/xend.config

If you use bridge as your configuration suggests you should google for iptables firewall fix. I use the machine as router also and for me it was faster to use pre-configuration of network-nat:

Uncomment this part:
(network-script network-nat)
(vif-script vif-nat)

and comment out the rest. You can comment out bridge in winxp.cfg

the vnc will be accessibile on locahost:3 based on your config
 
  


Reply


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
why can't I install a xen guest? extendedping Linux - Software 1 02-08-2007 05:08 PM
why can't I install a xen guest? extendedping Linux - Software 1 02-08-2007 07:11 AM
Xen 3.02 Suse 10.1 Windows Guest Anybody yet 1kyle SUSE / openSUSE 7 01-10-2007 05:53 AM
Can I use Gnome under Xen Guest OS? SquishyMarbles Linux - Software 1 09-07-2006 08:50 PM
How to run RHEL 4 as guest in Xen(SLES 10 XEN) darshanbv Linux - Software 1 06-26-2006 11:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:15 AM.

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