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

Re: [Xen-users] booting an ISO inside Xen (full virt)

To: Mark Williamson <mark.williamson@xxxxxxxxxxxx>
Subject: Re: [Xen-users] booting an ISO inside Xen (full virt)
From: José Alberto Suárez López <jasuarez@xxxxxxxxxxxxxxxxxx>
Date: Tue, 13 Mar 2007 11:22:18 +0100 (CET)
Cc: xen-users@xxxxxxxxxxxxxxxxxxx
Delivery-date: Tue, 13 Mar 2007 03:21:41 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <7088278.01173781274221.JavaMail.root@correo>
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>
Reply-to: jasuarez@xxxxxxxxxxxxxxxxxx
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thanks Mark and Matt,

i tryed sdl=1 and then:

peggy xen # xm list
Name                                      ID   Mem VCPUs      State   Time(s)
Domain-0                                   0  1195     2     r-----   9024.0
centos                                    44   128     1     -b----    111.0
general_100.28                            40   256     1     -b----     18.6
iso                                       47   256     1     ------      0.0
peggy xen # xm console 47
xenconsole: Could not read tty from store: No such file or directory

And:

peggy xen # netstat -tuna | grep 5900
peggy xen # netstat -tuna | grep 5947

so not vnc running.

And in logs i have this:

peggy xen # tail -f  /var/log/xen/qemu*.log /var/log/xen/xend{,-debug}.log

[2007-03-13 11:17:43 xend.XendDomainInfo 3738] DEBUG (XendDomainInfo:94) 
XendDomainInfo.create(['vm', ['name', 'iso'], ['memory', 256], 
['shadow_memory', 10], ['on_reboot', 'restart'], ['on_crash', 'destroy'], 
['vcpus', 1], ['on_xend_start', 'ignore'], ['on_xend_stop', 'ignore'], 
['image', ['hvm', ['kernel', '/usr/lib/xen/boot/hvmloader'], ['device_model', 
'/usr/lib/usr/lib/xen/bin/qemu-dm'], ['pae', 0], ['vcpus', 1], ['boot', 'd'], 
['fda', ''], ['fdb', ''], ['localtime', 0], ['serial', ''], ['stdvga', 0], 
['isa', 0], ['nographic', 0], ['soundhw', ''], ['vnc', 1], ['vncunused', 0], 
['sdl', 1], ['display', 'localhost:11.0'], ['xauthority', '/root/.Xauthority'], 
['acpi', 0], ['apic', 0], ['usb', 0], ['usbdevice', ''], ['keymap', ''], 
['vncpasswd', 'XXXXXXXX']]], ['device', ['vbd', ['uname', 
'file:/var/xen/iso.disk.xm'], ['dev', 'hda'], ['mode', 'w']]], ['device', 
['vbd', ['uname', 'file:/var/xen/ubuntu-6.10-desktop-i386.iso'], ['dev', 
'hdc:cdrom'], ['mode', 'r']]], ['device', ['vif', ['bridge', 'xenbr0'], 
['type', 'ioemu']]]])
[2007-03-13 11:17:43 xend.XendConfig 3738] WARNING (XendConfig:607) Unconverted 
key: cpus
[2007-03-13 11:17:43 xend.XendDomainInfo 3738] DEBUG (XendDomainInfo:1284) 
XendDomainInfo.constructDomain
[2007-03-13 11:17:43 xend.XendDomainInfo 3738] DEBUG (XendDomainInfo:1330) 
XendDomainInfo.initDomain: 48 256
[2007-03-13 11:17:43 xend 3738] DEBUG (image:397) args: boot, val: d
[2007-03-13 11:17:43 xend 3738] DEBUG (image:397) args: fda, val: 
[2007-03-13 11:17:43 xend 3738] DEBUG (image:397) args: fdb, val: 
[2007-03-13 11:17:43 xend 3738] DEBUG (image:397) args: soundhw, val: 
[2007-03-13 11:17:43 xend 3738] DEBUG (image:397) args: localtime, val: 0
[2007-03-13 11:17:43 xend 3738] DEBUG (image:397) args: serial, val: 
[2007-03-13 11:17:43 xend 3738] DEBUG (image:397) args: std-vga, val: 0
[2007-03-13 11:17:43 xend 3738] DEBUG (image:397) args: isa, val: 0
[2007-03-13 11:17:43 xend 3738] DEBUG (image:397) args: vcpus, val: 1
[2007-03-13 11:17:43 xend 3738] DEBUG (image:397) args: acpi, val: 0
[2007-03-13 11:17:43 xend 3738] DEBUG (image:397) args: usb, val: 0
[2007-03-13 11:17:43 xend 3738] DEBUG (image:397) args: usbdevice, val: 
[2007-03-13 11:17:43 xend 3738] DEBUG (image:397) args: k, val: 
[2007-03-13 11:17:43 xend 3738] DEBUG (balloon:127) Balloon: 451064 KiB free; 
need 280576; done.
[2007-03-13 11:17:43 xend 3738] INFO (image:125) buildDomain os=hvm dom=48 
vcpus=1
[2007-03-13 11:17:43 xend 3738] DEBUG (image:347) domid          = 48
[2007-03-13 11:17:43 xend 3738] DEBUG (image:348) image          = 
/usr/lib/xen/boot/hvmloader
[2007-03-13 11:17:43 xend 3738] DEBUG (image:349) store_evtchn   = 2
[2007-03-13 11:17:43 xend 3738] DEBUG (image:350) memsize        = 256
[2007-03-13 11:17:43 xend 3738] DEBUG (image:351) vcpus          = 1
[2007-03-13 11:17:43 xend 3738] DEBUG (image:352) pae            = 0
[2007-03-13 11:17:43 xend 3738] DEBUG (image:353) acpi           = 0
[2007-03-13 11:17:43 xend 3738] DEBUG (image:354) apic           = 0
[2007-03-13 11:17:43 xend 3738] DEBUG (image:521) hvm shutdown watch registered
[2007-03-13 11:17:43 xend 3738] DEBUG (image:560) hvm reboot feature watch 
registered
[2007-03-13 11:17:43 xend.XendDomainInfo 3738] INFO (XendDomainInfo:1194) 
createDevice: vbd : {'uname': 'file:/var/xen/iso.disk.xm', 'driver': 
'paravirtualised', 'mode': 'w', 'dev': 'hda', 'uuid': 
'3a057770-4583-a409-f57a-a1bbfef8a85e'}
[2007-03-13 11:17:43 xend 3738] DEBUG (DevController:115) DevController: 
writing {'backend-id': '0', 'virtual-device': '768', 'device-type': 'disk', 
'state': '1', 'backend': '/local/domain/0/backend/vbd/48/768'} to 
/local/domain/48/device/vbd/768.
[2007-03-13 11:17:43 xend 3738] DEBUG (DevController:117) DevController: 
writing {'domain': 'iso', 'frontend': '/local/domain/48/device/vbd/768', 
'uuid': '3a057770-4583-a409-f57a-a1bbfef8a85e', 'dev': 'hda', 'state': '1', 
'params': '/var/xen/iso.disk.xm', 'mode': 'w', 'online': '1', 'frontend-id': 
'48', 'type': 'file'} to /local/domain/0/backend/vbd/48/768.
[2007-03-13 11:17:43 xend.XendDomainInfo 3738] INFO (XendDomainInfo:1194) 
createDevice: vif : {'bridge': 'xenbr0', 'type': 'ioemu', 'uuid': 
'2918c890-9d85-4006-c1bd-1028257f9d21'}
[2007-03-13 11:17:43 xend 3738] DEBUG (DevController:115) DevController: 
writing {'state': '1', 'backend-id': '0', 'backend': 
'/local/domain/0/backend/vif/48/0'} to /local/domain/48/device/vif/0.
[2007-03-13 11:17:43 xend 3738] DEBUG (DevController:117) DevController: 
writing {'bridge': 'xenbr0', 'domain': 'iso', 'handle': '0', 'uuid': 
'2918c890-9d85-4006-c1bd-1028257f9d21', 'script': 
'/etc/xen/scripts/vif-bridge', 'state': '1', 'frontend': 
'/local/domain/48/device/vif/0', 'mac': '00:16:3e:3f:9f:41', 'online': '1', 
'frontend-id': '48', 'type': 'ioemu'} to /local/domain/0/backend/vif/48/0.
[2007-03-13 11:17:43 xend.XendDomainInfo 3738] INFO (XendDomainInfo:1194) 
createDevice: vbd : {'uname': 'file:/var/xen/ubuntu-6.10-desktop-i386.iso', 
'driver': 'paravirtualised', 'mode': 'r', 'dev': 'hdc:cdrom', 'uuid': 
'be0394f0-4ef6-c3b8-9eeb-ed1220e62d09'}
[2007-03-13 11:17:43 xend 3738] DEBUG (DevController:115) DevController: 
writing {'backend-id': '0', 'virtual-device': '5632', 'device-type': 'cdrom', 
'state': '1', 'backend': '/local/domain/0/backend/vbd/48/5632'} to 
/local/domain/48/device/vbd/5632.
[2007-03-13 11:17:43 xend 3738] DEBUG (DevController:117) DevController: 
writing {'domain': 'iso', 'frontend': '/local/domain/48/device/vbd/5632', 
'uuid': 'be0394f0-4ef6-c3b8-9eeb-ed1220e62d09', 'dev': 'hdc', 'state': '1', 
'params': '/var/xen/ubuntu-6.10-desktop-i386.iso', 'mode': 'r', 'online': '1', 
'frontend-id': '48', 'type': 'file'} to /local/domain/0/backend/vbd/48/5632.
[2007-03-13 11:17:43 xend 3738] INFO (image:489) spawning device models: 
/usr/lib/usr/lib/xen/bin/qemu-dm ['/usr/lib/usr/lib/xen/bin/qemu-dm', '-d', 
'48', '-m', '256', '-boot', 'd', '-vcpus', '1', '-domain-name', 'iso', '-net', 
'nic,vlan=1,macaddr=00:16:3e:1b:af:f5,model=rtl8139', '-net', 
'tap,vlan=1,bridge=xenbr0', '-vnc', '48', '-vnclisten', '127.0.0.1']
[2007-03-13 11:17:43 xend 3738] INFO (image:493) device model pid: 10954
[2007-03-13 11:17:43 xend.XendDomainInfo 3738] DEBUG (XendDomainInfo:1714) 
Storing VM details: {'on_xend_stop': 'ignore', 'shadow_memory': '10', 'uuid': 
'4cd6184a-448b-4af2-0800-3cdb179d7f03', 'name': 'iso', 'on_reboot': 'restart', 
'start_time': '1173781063.93', 'on_poweroff': 'destroy', 'on_xend_start': 
'ignore', 'on_crash': 'destroy', 'xend/restart_count': '0', 'vcpus': '1', 
'vcpu_avail': '1', 'memory': '256', 'image': '(hvm (kernel 
/usr/lib/xen/boot/hvmloader) (nographic 0) (vnc 1) (sdl 1) (vncunused 0) 
(device_model /usr/lib/usr/lib/xen/bin/qemu-dm) (display localhost:11.0) 
(xauthority /root/.Xauthority) (boot d) (isa 0) (localtime 0) (usb 0) (vcpus 
1))', 'maxmem': '256'}
[2007-03-13 11:17:43 xend.XendDomainInfo 3738] DEBUG (XendDomainInfo:731) 
Storing domain details: {'console/port': '3', 'name': 'iso', 'console/limit': 
'1048576', 'vm': '/vm/4cd6184a-448b-4af2-0800-3cdb179d7f03', 'domid': '48', 
'cpu/0/availability': 'online', 'memory/target': '262144', 'store/ring-ref': 
'65534', 'store/port': '2'}
[2007-03-13 11:17:43 xend 3738] DEBUG (XendDomain:428) Adding Domain: 48
[2007-03-13 11:17:43 xend 3738] DEBUG (image:547) hvm_shutdown fired, shutdown 
reason=None
[2007-03-13 11:17:43 xend 3738] DEBUG (image:579) hvm_reboot_feature fired, 
module status=None
[2007-03-13 11:17:43 xend.XendDomainInfo 3738] DEBUG (XendDomainInfo:731) 
Storing domain details: {'console/port': '3', 'name': 'iso', 'console/limit': 
'1048576', 'vm': '/vm/4cd6184a-448b-4af2-0800-3cdb179d7f03', 'domid': '48', 
'cpu/0/availability': 'online', 'memory/target': '262144', 'store/ring-ref': 
'65534', 'store/port': '2'}
[2007-03-13 11:17:43 xend.XendDomainInfo 3738] DEBUG (XendDomainInfo:798) 
XendDomainInfo.handleShutdownWatch
[2007-03-13 11:17:43 xend 3738] DEBUG (DevController:148) Waiting for devices 
vif.
[2007-03-13 11:17:43 xend 3738] DEBUG (DevController:153) Waiting for 0.
[2007-03-13 11:17:43 xend 3738] DEBUG (DevController:521) hotplugStatusCallback 
/local/domain/0/backend/vif/48/0/hotplug-status.
[2007-03-13 11:17:44 xend 3738] DEBUG (DevController:521) hotplugStatusCallback 
/local/domain/0/backend/vif/48/0/hotplug-status.
[2007-03-13 11:17:44 xend 3738] DEBUG (DevController:535) hotplugStatusCallback 
1.
[2007-03-13 11:17:44 xend 3738] DEBUG (DevController:148) Waiting for devices 
usb.
[2007-03-13 11:17:44 xend 3738] DEBUG (DevController:148) Waiting for devices 
vbd.
[2007-03-13 11:17:44 xend 3738] DEBUG (DevController:153) Waiting for 768.
[2007-03-13 11:17:44 xend 3738] DEBUG (DevController:521) hotplugStatusCallback 
/local/domain/0/backend/vbd/48/768/hotplug-status.
[2007-03-13 11:17:44 xend 3738] DEBUG (DevController:521) hotplugStatusCallback 
/local/domain/0/backend/vbd/48/768/hotplug-status.
[2007-03-13 11:17:44 xend 3738] DEBUG (DevController:535) hotplugStatusCallback 
1.
[2007-03-13 11:17:44 xend 3738] DEBUG (DevController:153) Waiting for 5632.
[2007-03-13 11:17:44 xend 3738] DEBUG (DevController:521) hotplugStatusCallback 
/local/domain/0/backend/vbd/48/5632/hotplug-status.
[2007-03-13 11:17:45 xend 3738] DEBUG (DevController:521) hotplugStatusCallback 
/local/domain/0/backend/vbd/48/5632/hotplug-status.
[2007-03-13 11:17:45 xend 3738] DEBUG (DevController:535) hotplugStatusCallback 
1.
[2007-03-13 11:17:45 xend 3738] DEBUG (DevController:148) Waiting for devices 
irq.
[2007-03-13 11:17:45 xend 3738] DEBUG (DevController:148) Waiting for devices 
vkbd.
[2007-03-13 11:17:45 xend 3738] DEBUG (DevController:148) Waiting for devices 
vfb.
[2007-03-13 11:17:45 xend 3738] DEBUG (DevController:148) Waiting for devices 
pci.
[2007-03-13 11:17:45 xend 3738] DEBUG (DevController:148) Waiting for devices 
ioports.
[2007-03-13 11:17:45 xend 3738] DEBUG (DevController:148) Waiting for devices 
tap.
[2007-03-13 11:17:45 xend 3738] DEBUG (DevController:148) Waiting for devices 
vtpm.
[2007-03-13 11:17:45 xend 3738] INFO (XendDomain:1020) Domain iso (48) unpaused.


----- Mark Williamson <mark.williamson@xxxxxxxxxxxx> wrote:
| Please don't cry just yet! ;-)
| 
| Have you tried connecting to the VNC console for that domain?  It
| should be on 
| port 5900 + domid or you could just enable the SDL display...
| 
| Did it give you any output?
| 
| Cheers,
| Mark
| 
| On Monday 12 March 2007 15:41, José Alberto Suárez López wrote:
| > Hi list,
| >
| > I'm using Dom0 gentoo with xen 3.0.4 and xenman. I have several
| DomU
| > working and it is really nice :) so all my DomUs are installed with
| disk
| > images. Now i want to use an ISO to boot and install a linux system
| (or
| > win).
| >
| > When i try to boot the DomU i dont have nothing, nothing relevant
| (for me)
| > in logs and i can connect to the console. The state of the DomU is
| unknow.
| > Any help please? i'm going crazy.
| >
| > xm list output:
| >
| > peggy xen # xm list
| > Name                                      ID   Mem VCPUs      State 
| 
| > Time(s) Domain-0                                   0  1195     2    
| r-----
| >   8671.1 centos                                    44   128     1   
| 
| > -b----    106.8 general_100.28                            40   256  
|   1   
| >  -b----     12.9 iso                                       45   256 
|    1  
| >   ------      0.0
| >
| > Yes, the ISo works, i tryed with different distros (ubuntu, gentoo,
| etc)
| > and Yes i can mount the ISO in a loop device w/o problems.
| >
| > Any clue is welcome, i will cry soon :(
| >
| > I'm usign this cfg:
| >
| > import os, re
| > arch = os.uname()[4]
| > if re.search('64', arch):
| >     arch_libdir = 'lib64'
| > else:
| >     arch_libdir = 'lib'
| >
| > name='iso'
| >
| > kernel='/usr/lib/xen/boot/hvmloader'
| > builder='hvm'
| >
| >
| > memory=256
| > shadow_memory=10
| > #vcpus=1»···# number of vcpu's
| > #cpus = "0"»# all vcpus run on CPU0
| >
| > pae=0
| > acpi=0
| > apic=0
| >
| > vif=['type=ioemu, bridge=xenbr0']
| > disk=['file:/var/xen/iso.disk.xm,hda,w',
| > 'file:/var/xen/stresslinux-0.3.1.iso,hdc:cdrom,r']
| >
| > device_model = '/usr/' + arch_libdir + '/usr/lib/xen/bin/qemu-dm'
| >
| > # Boots from CDROM.·
| > # Change to 'c' after windows installation in order to boot from
| disk.
| > boot='d'
| > #boot='c'·
| >
| > sdl=0
| > vnc=1
| > vncunused=0
| > stdvga=0
| > extra=''
| > on_reboot='restart'
| > on_shutdown='rename-restart'
| > ramdisk=''
| > image_name='Linux_CD_Install'
| > on_crash='destroy'
| >
| image_conf='/var/log/xenman/image_store/Linux_CD_Install/Linux_CD_Install_i
| >so_image.conf' bootloader=''
| > vcpus=1
| > root=''
| >
| >
| > _______________________________________________
| > Xen-users mailing list
| > Xen-users@xxxxxxxxxxxxxxxxxxx
| > http://lists.xensource.com/xen-users
| 
| -- 
| Dave: Just a question. What use is a unicyle with no seat?  And no
| pedals!
| Mark: To answer a question with a question: What use is a skateboard?
| Dave: Skateboards have wheels.
| Mark: My wheel has a wheel!


-- 
José Alberto Suárez López
Técnico I+D / Administrador
Eneo Tecnología S.L.
<www.eneotecnologia.com>


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