LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization
User Name
Password
Linux - Virtualization This forum is for the discussion of all topics relating to Linux Virtualization. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices

Reply
 
LinkBack Search this Thread
Old 06-10-2010, 01:23 PM   #1
scheidel21
Senior Member
 
Registered: Feb 2003
Location: CT
Distribution: Debian PPC/i386/AMD64 5.0(Lenny), Vista, XP , WIN7, Server 03/08
Posts: 1,164

Rep: Reputation: 77
Debian Win 2008 xen HVM starts but doesn't do anything, pulling hair out!


Hey there trying to get a new production machine up, for disaster and recovery purposes we have chosen to virtualize our new Windows Server 2008 SBS server in xen. I have used xen before but that's been a few years and I didn't have any trouble getting the VM up and running once I got the virtual drives issue I had worked out. But I didn't experience anyhting like this. What happens is that I start the machine and xen reports the machine started but then it doesn't do anything. Running xm list reveals that the machine is up but it is not doing anything there is no status for it. I also do not get a VNC console seesion to come up either.
Here is my config:
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.2-1/boot/hvmloader'
builder = 'hvm'
memory = 4608

shadow_memory = 48
name = 'xen2008SBS'
vif = [ 'type=ioemu, bridge=xenbr0' ]
pae = 1
acpi = 1
apic = 1
disk = [ 'file:/vms/2008SBS.img,sda,w','phy:/dev/dvdrw,scd0:cdrom,r' ]
#pci= ['04:08.0']

device_model = '/usr/ + arch_libdir + /xen/bin/qemu-dm'

boot="dc"

vnc = 1
sdl = 0
vncconsole=1
vncdisplay=2
vncpasswd=''

usb = 1
usbtablet = 1
serial = 'pty'

on_poweroff = 'destroy'
on_reboot = 'restart'
on_crash = 'restart'
This is the output when I start the machine, it takes no time at all to start.

Code:
vmbeta:~# xm create /home/administrator/xen2008SBS.cfg
Using config file "/home/administrator/xen2008SBS.cfg".
Started domain xen2008SBS
xm list output

Code:
vmbeta:~# xm list
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0  3378     4     r-----    495.2
xen2008SBS                                   4  4608     1     ------      0.0
startup log output.
Code:
connected to /var/run/xenstored/socket_ro
/                                                                :  ""
/local/domain/5                                                  :  ""
/local/domain/5/vm                                               :  "/vm/c9bf421d-18d5-bd76-263f-4f94fe117d32"
/vm/c9bf421d-18d5-bd76-263f-4f94fe117d32/image/ostype            :  "hvm"
/vm/c9bf421d-18d5-bd76-263f-4f94fe117d32/image/kernel            :  "/usr/lib/xen-3.2-1/boot/hvmloader"
/vm/c9bf421d-18d5-bd76-263f-4f94fe117d32/image/cmdline           :  ""
/vm/c9bf421d-18d5-bd76-263f-4f94fe117d32/image/ramdisk           :  ""
/vm/c9bf421d-18d5-bd76-263f-4f94fe117d32/image/dmargs            :  "-domain-name xen2008SBS -vnc 127.0.0.1:2 -vncunused -vcpus 1 -boot dc -serial pty -acpi -usb -net nic,vlan$
/vm/c9bf421d-18d5-bd76-263f-4f94fe117d32/image/device-model      :  "/usr/ + arch_libdir + /xen/bin/qemu-dm"
/vm/c9bf421d-18d5-bd76-263f-4f94fe117d32/rtc/timeoffset          :  "0"
@introduceDomain                                                 :  "<null>"
/local/domain/0/backend/vfb/5/0                                  :  ""
/local/domain/5/device/vfb/0                                     :  ""
/local/domain/5/device/vfb/0/state                               :  "1"
/local/domain/5/device/vfb/0/backend-id                          :  "0"
/local/domain/5/device/vfb/0/backend                             :  "/local/domain/0/backend/vfb/5/0"
/local/domain/0/backend/vfb/5/0/vncunused                        :  "1"
/local/domain/0/backend/vfb/5/0/domain                           :  "xen2008SBS"
/local/domain/0/backend/vfb/5/0/frontend                         :  "/local/domain/5/device/vfb/0"
/local/domain/0/backend/vfb/5/0/uuid                             :  "d6c59887-aa75-1f99-fe5a-c80f291bb42c"
/local/domain/0/backend/vfb/5/0/vncdisplay                       :  "2"
/local/domain/0/backend/vfb/5/0/state                            :  "1"
/local/domain/0/backend/vfb/5/0/online                           :  "1"
/local/domain/0/backend/vfb/5/0/frontend-id                      :  "5"
/local/domain/0/backend/vfb/5/0/type                             :  "vnc"
/local/domain/0/backend/vbd/5/2048                               :  ""
/local/domain/5/device/vbd/2048                                  :  ""
/local/domain/5/device/vbd/2048/backend-id                       :  "0"
/local/domain/5/device/vbd/2048/virtual-device                   :  "2048"
/local/domain/5/device/vbd/2048/device-type                      :  "disk"
/local/domain/5/device/vbd/2048/state                            :  "1"
/local/domain/5/device/vbd/2048/backend                          :  "/local/domain/0/backend/vbd/5/2048"
/local/domain/0/backend/vbd/5/2048/domain                        :  "xen2008SBS"
/local/domain/0/backend/vbd/5/2048/frontend                      :  "/local/domain/5/device/vbd/2048"
/local/domain/0/backend/vbd/5/2048/uuid                          :  "b6664e5d-3225-8c4b-ec7c-06ef18527d0d"
/local/domain/0/backend/vbd/5/2048/dev                           :  "sda"
/local/domain/0/backend/vbd/5/2048/state                         :  "2"
/local/domain/0/backend/vbd/5/2048/params                        :  "/vms/2008SBS.img"
/local/domain/0/backend/vbd/5/2048/mode                          :  "w"
/local/domain/0/backend/vbd/5/2048/online                        :  "1"
/local/domain/0/backend/vbd/5/2048/frontend-id                   :  "5"
/local/domain/0/backend/vbd/5/2048/type                          :  "file"
/local/domain/0/backend/vbd/5/2048/state                         :  "2"
/local/domain/0/backend/vbd/5/2816                               :  ""
/local/domain/5/device/vbd/2816                                  :  ""
/local/domain/5/device/vbd/2816/backend-id                       :  "0"
/local/domain/5/device/vbd/2816/virtual-device                   :  "2816"
/local/domain/5/device/vbd/2816/device-type                      :  "cdrom"
/local/domain/5/device/vbd/2816/state                            :  "1"
/local/domain/5/device/vbd/2816/backend                          :  "/local/domain/0/backend/vbd/5/2816"
/local/domain/0/backend/vbd/5/2816/domain                        :  "xen2008SBS"
/local/domain/0/backend/vbd/5/2816/frontend                      :  "/local/domain/5/device/vbd/2816"
/local/domain/0/backend/vbd/5/2816/uuid                          :  "bea06c21-d0b7-c1ff-fc02-8c14f1a7b30a"
/local/domain/0/backend/vbd/5/2816/dev                           :  "scd0"
/local/domain/0/backend/vbd/5/2816/state                         :  "2"
/local/domain/0/backend/vbd/5/2816/params                        :  "/dev/dvdrw"
/local/domain/0/backend/vbd/5/2816/mode                          :  "r"
/local/domain/0/backend/vbd/5/2816/online                        :  "1"
/local/domain/0/backend/vbd/5/2816/frontend-id                   :  "5"
/local/domain/0/backend/vbd/5/2816/type                          :  "phy"
/local/domain/0/backend/vbd/5/2816/state                         :  "2"
/local/domain/5/device-misc/vif/nextDeviceID                     :  "1"
/vm/c9bf421d-18d5-bd76-263f-4f94fe117d32/device/vif/0/bridge     :  "xenbr0"
/vm/c9bf421d-18d5-bd76-263f-4f94fe117d32/device/vif/0/mac        :  "00:16:3e:32:03:96"
/vm/c9bf421d-18d5-bd76-263f-4f94fe117d32/device/vif/0/type       :  "ioemu"
/vm/c9bf421d-18d5-bd76-263f-4f94fe117d32/device/vif/0/uuid       :  "4b4ffd9f-31f4-f7cb-81e1-5964d4542edb"
/vm/c9bf421d-18d5-bd76-263f-4f94fe117d32/device/vif/0/script     :  "vif-bridge"
/local/domain/0/backend/vif/5/0                                  :  ""
/local/domain/5/device/vif/0                                     :  ""
/local/domain/5/device/vif/0/state                               :  "1"
/local/domain/5/device/vif/0/backend-id                          :  "0"
/local/domain/5/device/vif/0/backend                             :  "/local/domain/0/backend/vif/5/0"
/local/domain/0/backend/vif/5/0/bridge                           :  "xenbr0"
/local/domain/0/backend/vif/5/0/domain                           :  "xen2008SBS"
/local/domain/0/backend/vif/5/0/handle                           :  "0"
/local/domain/0/backend/vif/5/0/uuid                             :  "4b4ffd9f-31f4-f7cb-81e1-5964d4542edb"
/local/domain/0/backend/vif/5/0/script                           :  "/etc/xen/scripts/vif-bridge"
/local/domain/0/backend/vif/5/0/state                            :  "1"
/local/domain/0/backend/vif/5/0/frontend                         :  "/local/domain/5/device/vif/0"
/local/domain/0/backend/vif/5/0/mac                              :  "00:16:3e:32:03:96"
/local/domain/0/backend/vif/5/0/online                           :  "1"
/local/domain/0/backend/vif/5/0/frontend-id                      :  "5"
/local/domain/0/backend/vif/5/0/type                             :  "ioemu"
/local/domain/5/image/device-model-pid                           :  "6397"
/vm/c9bf421d-18d5-bd76-263f-4f94fe117d32/on_xend_stop            :  "ignore"
/vm/c9bf421d-18d5-bd76-263f-4f94fe117d32/shadow_memory           :  "48"
/vm/c9bf421d-18d5-bd76-263f-4f94fe117d32/uuid                    :  "c9bf421d-18d5-bd76-263f-4f94fe117d32"
/vm/c9bf421d-18d5-bd76-263f-4f94fe117d32/on_reboot               :  "restart"
/vm/c9bf421d-18d5-bd76-263f-4f94fe117d32/start_time              :  "1276193905.14"
/vm/c9bf421d-18d5-bd76-263f-4f94fe117d32/on_poweroff             :  "destroy"
/vm/c9bf421d-18d5-bd76-263f-4f94fe117d32/on_xend_start           :  "ignore"
/vm/c9bf421d-18d5-bd76-263f-4f94fe117d32/on_crash                :  "restart"
/vm/c9bf421d-18d5-bd76-263f-4f94fe117d32/xend/restart_count      :  "0"
/vm/c9bf421d-18d5-bd76-263f-4f94fe117d32/vcpus                   :  "1"
/vm/c9bf421d-18d5-bd76-263f-4f94fe117d32/vcpu_avail              :  "1"
/vm/c9bf421d-18d5-bd76-263f-4f94fe117d32/image                   :  "(hvm (kernel /usr/lib/xen-3.2-1/boot/hvmloader) (acpi 1) (apic 1) (boot dc) (device_model '/usr/ + arch_li$
/vm/c9bf421d-18d5-bd76-263f-4f94fe117d32/name                    :  "xen2008SBS"
/vm/c9bf421d-18d5-bd76-263f-4f94fe117d32/uuid                    :  "c9bf421d-18d5-bd76-263f-4f94fe117d32"
/local/domain/0/backend/vif/5/0/feature-sg                       :  "1"
/local/domain/0/backend/vif/5/0/feature-gso-tcpv4                :  "1"
/local/domain/0/backend/vif/5/0/feature-rx-copy                  :  "1"
/local/domain/0/backend/vif/5/0/feature-rx-flip                  :  "0"
/local/domain/0/backend/vif/5/0/state                            :  "2"
/local/domain/5/console/port                                     :  "3"
/local/domain/5/control/platform-feature-multiprocessor-suspend  :  "1"
/local/domain/5/name                                             :  "xen2008SBS"
/local/domain/5/console/limit                                    :  "1048576"
/local/domain/5/vm                                               :  "/vm/c9bf421d-18d5-bd76-263f-4f94fe117d32"
/local/domain/5/domid                                            :  "5"
/local/domain/5/image/suspend-cancel                             :  "1"
/local/domain/5/cpu/0/availability                               :  "online"
/local/domain/5/memory/target                                    :  "4718592"
/local/domain/5/store/ring-ref                                   :  "983038"
/local/domain/5/console/type                                     :  "ioemu"
/local/domain/5/store/port                                       :  "2"
/local/domain/5/device-misc/console/nextDeviceID                 :  "1"
/local/domain/0/backend/console/5/0                              :  ""
/local/domain/5/device/console/0                                 :  ""
/local/domain/5/device/console/0/state                           :  "1"
/local/domain/5/device/console/0/backend-id                      :  "0"
/local/domain/5/device/console/0/backend                         :  "/local/domain/0/backend/console/5/0"
/local/domain/0/backend/console/5/0/domain                       :  "xen2008SBS"
/local/domain/0/backend/console/5/0/protocol                     :  "vt100"
/local/domain/0/backend/console/5/0/uuid                         :  "b00acfa3-6c51-984d-58a0-bdb89f65ff49"
/local/domain/0/backend/console/5/0/frontend                     :  "/local/domain/5/device/console/0"
/local/domain/0/backend/console/5/0/state                        :  "1"
/local/domain/0/backend/console/5/0/location                     :  "3"
/local/domain/0/backend/console/5/0/online                       :  "1"
/local/domain/0/backend/console/5/0/frontend-id                  :  "5"
/local/domain/0/backend/vif/5/0/hotplug-status                   :  "connected"
/local/domain/0/backend/vbd/5/2048/node                          :  "/dev/loop0"
/local/domain/0/backend/vbd/5/2048/physical-device               :  "7:0"
/local/domain/0/backend/vbd/5/2048/hotplug-status                :  "connected"
/local/domain/0/backend/vbd/5/2816/physical-device               :  "b:0"
/local/domain/0/backend/vbd/5/2816/hotplug-status                :  "connected"
Any ideas? Thanks in advance for the help.
 
Old 06-11-2010, 09:17 AM   #2
scheidel21
Senior Member
 
Registered: Feb 2003
Location: CT
Distribution: Debian PPC/i386/AMD64 5.0(Lenny), Vista, XP , WIN7, Server 03/08
Posts: 1,164

Original Poster
Rep: Reputation: 77
Well after exhaustive research I found two people with similar issues with xen and Debian Lenny. They were issues related to the network bridge being eth0 instead of xenbr0, This however, I can almost assuredly say is not my issue though, while the bridge did turn out to be eth0 which I verified with "brctl show" I made the appropriate adjustments and still no go. I also completely disable networking in the VM configuration and I still had the same issue. Still searching for the solution.
 
Old 06-11-2010, 10:08 AM   #3
scheidel21
Senior Member
 
Registered: Feb 2003
Location: CT
Distribution: Debian PPC/i386/AMD64 5.0(Lenny), Vista, XP , WIN7, Server 03/08
Posts: 1,164

Original Poster
Rep: Reputation: 77
I have made progress, sort of. I started a new machine config from scratch and made sure i placed this one in /etc/xen/ it starts and is listed as running, however, I cannot connect to VNC, but the VNC server is listening for connections. Additionally the HVM uses 100% of its VCPUs all the time while monitoring it in xentop. Here is the output of my qemu-dm log, which I didn't have with the first VM I created.

Code:
vmbeta:~# nano /var/log/xen/qemu-dm-15.log
  GNU nano 2.0.7                                        File: /var/log/xen/qemu-dm-15.log

shift keysym 0040 keycode 3
shift keysym 0023 keycode 4
shift keysym 0024 keycode 5
shift keysym 0025 keycode 6
shift keysym 005e keycode 7
shift keysym 0026 keycode 8
shift keysym 002a keycode 9
shift keysym 0028 keycode 10
shift keysym 0029 keycode 11
shift keysym 005f keycode 12
shift keysym 002b keycode 13
shift keysym 007b keycode 26
shift keysym 007d keycode 27
shift keysym 003a keycode 39
shift keysym 0022 keycode 40
shift keysym 007e keycode 41
shift keysym 007c keycode 43
shift keysym 003c keycode 51
shift keysym 003e keycode 52
shift keysym 003f keycode 53
xs_read(): vncpasswd get error. /vm/daed7f85-08de-eb3f-f10a-f10e96bd6801/vncpasswd.
vncviewer execlp failed
qemu_map_cache_init nr_buckets = 10000 size 3145728
shared page at pfn effff
buffered io page at pfn efffd
Time offset set 0
Register xen platform.
Done register platform.
I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0
I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0
I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0
I/O request not ready: 0, ptr: 0, port: 0, data: 0, count: 0, size: 0
I guess this has something to do with either the qemu model, my drive config for the VM, or because I tried installing the 2.6.32 kernel from Debian backports and now linux-base doesn't want to finish configuring linux-base.
 
Old 06-11-2010, 11:21 AM   #4
scheidel21
Senior Member
 
Registered: Feb 2003
Location: CT
Distribution: Debian PPC/i386/AMD64 5.0(Lenny), Vista, XP , WIN7, Server 03/08
Posts: 1,164

Original Poster
Rep: Reputation: 77
Solution:

1) Create the VM configuration file in /etc/xen/

2)Make sure your configuration file for disks is appropriate. i.e. use hd* for your drives fro qemu emulation as sda is not recognized.
 
  


Reply

Tags
xen


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Setup Debian Lenny PV & HVM DomUs (64-bit) sharing same image device at Xen 3.4 LXer Syndicated Linux News 0 10-14-2009 01:00 PM
LXer: How To Run Fully-Virtualized Guests (HVM) With Xen 3.2 On Debian Lenny (x86_64) LXer Syndicated Linux News 0 03-08-2009 08:30 AM
Madriva One Spring 2008 Can't connect to Internet - Pulling my Hair Out moshebagelfresser Linux - Networking 4 05-20-2008 07:30 AM
LXer: Install Oracle 11g on HVM VM (CentOS 5) under Xen 3.1 on Debian Etch (x86_64) LXer Syndicated Linux News 0 09-12-2007 09:30 PM
LXer: Xen 3.1 Solaris Express 05/07 (SXDE 64a) HVM VM install on Debian Etch (x86_64) LXer Syndicated Linux News 0 09-03-2007 05:21 PM


All times are GMT -5. The time now is 02:05 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration