WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] Full Virtualization: linux in linux?

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Full Virtualization: linux in linux?
From: Alex Iribarren <Alex.Iribarren@xxxxxxx>
Date: Wed, 16 Aug 2006 17:30:02 +0200
Delivery-date: Wed, 16 Aug 2006 08:31:04 -0700
Domainkey-signature: a=rsa-sha1; c=nofws; s=beta; d=cern.ch; q=dns; h=received:message-id:date:from:to:subject:mime-version:content-type; b=AerryknaLwmpJ4g/xDWSBHubnAgOZvDP/Qa5bOIfKuQvhJ7X5zPXf6SwHv1GenPrgiVSWWIiJenib9N2NC0iLL2T0KCwNaZIsoGTaqQGZpnacoDYKRphT3lxv6/dydMD;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
Keywords: CERN SpamKiller Note: -49 Charset: west-latin
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Openpgp: url=http://www.cern.ch/Alex.Iribarren/AlexIribarren_0xCAE83E64.asc
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.5 (X11/20060719)
Hi,

I'm doing some tests of Xen with the latest Intel processors and I'd
like to run an unmodified linux inside a virtual machine. If possible,
I'd like to be able to install this OS (a version of Scientific Linux,
in case you're interested) from our PXE servers, but I can also install
it from a DVD image.

I've seen several HOWTOs on running Windows like this, so I thought it
would be pretty similar. I basically replaced the Windows CD image for
an SL image, but I haven't been able to get it to work. I get this:

xenmaster ~ # xm create -c /etc/xen/slc43.hvm
Using config file "/etc/xen/slc43.hvm".
Started domain SLC43
xenconsole: Could not read tty from store: No such file or directory
xenmaster ~ # xm list
Name                              ID Mem(MiB) VCPUs State  Time(s)
Domain-0                           0      343     4 r----- 11909.8
SLC43                             36     2048     1 -b----     0.0

The virtual machine is apparently up, but I can't (or don't know how to)
connect to it, it just sits there blocked. The same thing happens if I
use SDL and VNC. I've googled to see if I could fix that problem with
xencosole, but with no results. I've downloaded a Debian image from
jailtime.org and that works fine (although I don't see the kernel boot
messages, which is kind of odd).

Can anyone offer some tips?

Thanks,
Alex

---- Some more info ----
xenmaster ~ # xm info
host                   : xenmaster
release                : 2.6.16.26-xen
version                : #10 SMP Mon Aug 14 20:34:44 CEST 2006
machine                : i686
nr_cpus                : 4
nr_nodes               : 1
sockets_per_node       : 2
cores_per_socket       : 2
threads_per_core       : 1
cpu_mhz                : 2992
hw_caps                :
bfebfbff:20100000:00000000:00000140:0004e3bd:00000000:00000001
total_memory           : 2555
free_memory            : 132
xen_major              : 3
xen_minor              : 0
xen_extra              : .2
xen_caps               : xen-3.0-x86_32 hvm-3.0-x86_32
platform_params        : virt_start=0xfc000000
xen_changeset          : Sat Apr  8 12:14:27 2006 +0100 9598:1bce05ff1e52
cc_compiler            : gcc version 3.4.6 (Gentoo 3.4.6-r1,
ssp-3.4.5-1.0, pie-8.7.9)
cc_compile_by          : root
cc_compile_domain      :
cc_compile_date        : Mon Aug 14 19:29:17 CEST 2006

(from /var/log/xend.log)
[2006-08-16 17:13:44 xend.XendDomainInfo] DEBUG (XendDomainInfo:178)
XendDomainInfo.create(['vm', ['name', 'SLC43'], ['memory', 2048],
['vcpus', 1], ['image', ['hvm', ['kernel',
'/usr/lib/xen/boot/hvmloader'], ['args', 'VNC_VIEWER=127.0.0.1:5501 '],
['device_model', '/usr/lib/xen/bin/qemu-dm'], ['vcpus', 1], ['cdrom',
'/root/SLC43_i386_dvd.iso'], ['boot', 'd'], ['vnc', 1], ['vncviewer',
1], ['xauthority', '/root/.Xauthority']]], ['device', ['vbd', ['uname',
'phy:/dev/xenfs/slc4root'], ['dev', 'ioemu:hda'], ['mode', 'w']]],
['device', ['vif', ['bridge', 'xenbr0'], ['mac', '00:04:23:D1:9E:4A'],
['type', 'ioemu']]]])
[2006-08-16 17:13:45 xend.XendDomainInfo] DEBUG (XendDomainInfo:284)
parseConfig: config is ['vm', ['name', 'SLC43'], ['memory', 2048],
['vcpus', 1], ['image', ['hvm', ['kernel',
'/usr/lib/xen/boot/hvmloader'], ['args', 'VNC_VIEWER=127.0.0.1:5501 '],
['device_model', '/usr/lib/xen/bin/qemu-dm'], ['vcpus', 1], ['cdrom',
'/root/SLC43_i386_dvd.iso'], ['boot', 'd'], ['vnc', 1], ['vncviewer',
1], ['xauthority', '/root/.Xauthority']]], ['device', ['vbd', ['uname',
'phy:/dev/xenfs/slc4root'], ['dev', 'ioemu:hda'], ['mode', 'w']]],
['device', ['vif', ['bridge', 'xenbr0'], ['mac', '00:04:23:D1:9E:4A'],
['type', 'ioemu']]]]
[2006-08-16 17:13:45 xend.XendDomainInfo] DEBUG (XendDomainInfo:380)
parseConfig: result is {'ssidref': None, 'uuid': None, 'on_crash': None,
'on_reboot': None, 'image': ['hvm', ['kernel',
'/usr/lib/xen/boot/hvmloader'], ['args', 'VNC_VIEWER=127.0.0.1:5501 '],
['device_model', '/usr/lib/xen/bin/qemu-dm'], ['vcpus', 1], ['cdrom',
'/root/SLC43_i386_dvd.iso'], ['boot', 'd'], ['vnc', 1], ['vncviewer',
1], ['xauthority', '/root/.Xauthority']], 'on_poweroff': None, 'cpus':
None, 'name': 'SLC43', 'backend': [], 'vcpus': 1, 'cpu_weight': None,
'vcpu_avail': None, 'memory': 2048, 'device': [('vbd', ['vbd', ['uname',
'phy:/dev/xenfs/slc4root'], ['dev', 'ioemu:hda'], ['mode', 'w
']]), ('vif', ['vif', ['bridge', 'xenbr0'], ['mac',
'00:04:23:D1:9E:4A'], ['type', 'ioemu']])], 'bootloader': None, 'cpu':
None, 'maxmem': None}                         [2006-08-16 17:13:45
xend.XendDomainInfo] DEBUG (XendDomainInfo:1164)
XendDomainInfo.construct: None 0
                           [2006-08-16 17:13:46 xend.XendDomainInfo]
DEBUG (XendDomainInfo:1196) XendDomainInfo.initDomain: 36 1.0
                                                       [2006-08-16
17:13:47 xend] DEBUG (image:266) args: cdrom, val: /root/SLC43_i386_dvd.iso
[2006-08-16 17:13:47 xend] DEBUG (image:266) args: boot, val: d

                         [2006-08-16 17:13:47 xend] DEBUG (image:266)
args: fda, val: None
                                                    [2006-08-16 17:13:47
xend] DEBUG (image:266) args: fdb, val: None

    [2006-08-16 17:13:47 xend] DEBUG (image:266) args: nic-ne2000, val: None
[2006-08-16 17:13:47 xend] DEBUG (image:266) args: enable-audio, val:
None
                           [2006-08-16 17:13:47 xend] DEBUG (image:266)
args: localtime, val: None
                                                    [2006-08-16 17:13:47
xend] DEBUG (image:266) args: serial, val: None

    [2006-08-16 17:13:47 xend] DEBUG (image:266) args: std-vga, val: None
[2006-08-16 17:13:47 xend] DEBUG (image:266) args: isa, val: None

                         [2006-08-16 17:13:47 xend] DEBUG (image:266)
args: vcpus, val: 1
                                                    [2006-08-16 17:13:47
xend] DEBUG (balloon:126) Balloon: free 2182; need 2049; done.

    [2006-08-16 17:13:48 xend] INFO (image:135) buildDomain os=hvm
dom=36 vcpus=1
[2006-08-16 17:13:48 xend] DEBUG (image:224) dom            = 36

                         [2006-08-16 17:13:48 xend] DEBUG (image:225)
image          = /usr/lib/xen/boot/hvmloader
                                                    [2006-08-16 17:13:48
xend] DEBUG (image:226) store_evtchn   = 1

    [2006-08-16 17:13:48 xend] DEBUG (image:227) memsize        = 2048
[2006-08-16 17:13:48 xend] DEBUG (image:228) vcpus          = 1

                         [2006-08-16 17:13:48 xend] DEBUG (image:229)
pae            = 0
                                                    [2006-08-16 17:13:48
xend] DEBUG (image:230) acpi           = 0

    [2006-08-16 17:13:48 xend] DEBUG (image:231) apic           = 0
[2006-08-16 17:13:48 xend] DEBUG (image:396) hvm shutdown watch
registered
[2006-08-16 17:13:49 xend] DEBUG (blkif:24) exception looking up device
number for hda: [Errno 2] No such file or directory: '/dev/hda'
[2006-08-16 17:13:49 xend] DEBUG (DevController:103) DevController:
writing {'state': '1', 'backend-id': '0', 'backend':
'/local/domain/0/backend/vbd/36/768'} to /local/domain/36/device/vbd/768.
[2006-08-16 17:13:49 xend] DEBUG (DevController:105) DevController:
writing {'domain': 'SLC43', 'frontend':
'/local/domain/36/device/vbd/768', 'dev': 'ioemu:hda', 'state': '1',
'params': '/dev/xenfs/slc4root', 'mode': 'w', 'frontend-id': '36',
'type': 'phy'} to /local/domain/0/backend/vbd/36/768.
[2006-08-16 17:13:49 xend] DEBUG (DevController:103) DevController:
writing {'state': '1', 'backend-id': '0', 'backend':
'/local/domain/0/backend/vif/36/0'} to /local/domain/36/device/vif/0.
[2006-08-16 17:13:49 xend] DEBUG (DevController:105) DevController:
writing {'bridge': 'xenbr0', 'domain': 'SLC43', 'handle': '0', 'script':
'/etc/xen/scripts/vif-bridge', 'state': '1', 'frontend':
'/local/domain/36/device/vif/0', 'mac': '00:04:23:D1:9E:4A',
'frontend-id': '36', 'type': 'ioemu'} to /local/domain/0/backend/vif/36/0.
[2006-08-16 17:13:49 xend] INFO (image:355) spawning device models:
/usr/lib/xen/bin/qemu-dm ['/usr/lib/xen/bin/qemu-dm', '-vncconnect',
'127.0.0.1:5501', '-d', '36', '-m', '2048', '-cdrom',
'/root/SLC43_i386_dvd.iso', '-boot', 'd', '-vcpus', '1', '-domain-name',
'SLC43', '-hda', '/dev/xenfs/slc4root', '-macaddr', '00:04:23:D1:9E:4A',
'-bridge', 'xenbr0', '-nics', '1', '-vnc', '-k', 'en-us', '-vncport',
'5936']
[2006-08-16 17:13:49 xend] INFO (image:357) device model pid: 28580
[2006-08-16 17:13:49 xend.XendDomainInfo] DEBUG (XendDomainInfo:671)
Storing VM details: {'ssidref': '0', 'uuid':
'b497d350-07ce-cfd7-dc5b-d6bc584b7421', 'on_reboot': 'restart',
'start_time': '1155741229.36', 'on_poweroff': 'destroy', 'name':
'SLC43', 'vcpus': '1', 'vcpu_avail': '1', 'memory': '2048', 'on_crash':
'restart', 'image': "(hvm (kernel /usr/lib/xen/boot/hvmloader) (args
'VNC_VIEWER=127.0.0.1:5501 ') (device_model /usr/lib/xen/bin/qemu-dm)
(vcpus 1) (cdrom /root/SLC43_i386_dvd.iso) (boot d) (vnc 1) (vncviewer
1) (xauthority /root/.Xauthority))", 'maxmem': '2048'}
[2006-08-16 17:13:49 xend.XendDomainInfo] DEBUG (XendDomainInfo:696)
Storing domain details: {'console/port': '2', 'name': 'SLC43',
'console/limit': '1048576', 'vm':
'/vm/b497d350-07ce-cfd7-dc5b-d6bc584b7421', 'domid': '36',
'cpu/0/availability': 'online', 'memory/target': '2097152',
'store/ring-ref': '345485', 'store/port': '1'}
[2006-08-16 17:13:49 xend] DEBUG (image:419) hvm_shutdown fired,
shutdown reason=None
[2006-08-16 17:13:49 xend.XendDomainInfo] DEBUG (XendDomainInfo:877)
XendDomainInfo.handleShutdownWatch
[2006-08-16 17:13:49 xend] DEBUG (DevController:132) Waiting for devices
vif.
[2006-08-16 17:13:49 xend] DEBUG (DevController:138) Waiting for 0.
[2006-08-16 17:13:49 xend] DEBUG (DevController:403)
hotplugStatusCallback /local/domain/0/backend/vif/36/0/hotplug-status.
[2006-08-16 17:13:53 xend] DEBUG (DevController:403)
hotplugStatusCallback /local/domain/0/backend/vif/36/0/hotplug-status.
[2006-08-16 17:13:53 xend] DEBUG (DevController:417)
hotplugStatusCallback 1.
[2006-08-16 17:13:53 xend] DEBUG (DevController:132) Waiting for devices
usb.
[2006-08-16 17:13:53 xend] DEBUG (DevController:132) Waiting for devices
vbd.
[2006-08-16 17:13:53 xend] DEBUG (DevController:138) Waiting for 768.
[2006-08-16 17:13:53 xend] DEBUG (DevController:403)
hotplugStatusCallback /local/domain/0/backend/vbd/36/768/hotplug-status.
[2006-08-16 17:13:53 xend] DEBUG (DevController:403)
hotplugStatusCallback /local/domain/0/backend/vbd/36/768/hotplug-status.
[2006-08-16 17:13:53 xend] DEBUG (DevController:417)
hotplugStatusCallback 1.
[2006-08-16 17:13:53 xend] DEBUG (DevController:132) Waiting for devices
irq.
[2006-08-16 17:13:53 xend] DEBUG (DevController:132) Waiting for devices
pci.
[2006-08-16 17:13:53 xend] DEBUG (DevController:132) Waiting for devices
ioports.
[2006-08-16 17:13:53 xend] DEBUG (DevController:132) Waiting for devices
vtpm.
[2006-08-16 17:13:53 xend] INFO (XendDomain:363) Domain SLC43 (36) unpaused.
(and then it just stops there until I kill the VM)

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users