[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] hvm booting guest OS problem



Hi all,

  This may be a stupid question but have been wrestling with it for days
now.  I have successfully (I thought) installed a guest OS under domU,
via VNC (took me a while to give up on trying to get normal console).

  I'm using a file as the target drive and gave it 3 partitions (/boot /
and swap).  I installed grub and it seems to believe it installed in the
MBR (of this file-based disk) correctly.

  But after ejecting the CDROM and rebooting the VM just dies.  Very
little error output in logs (that I can understand).

  My thinking is that if you can install Windows under HVM and it boot
just fine, a linux guest should work just fine too..?.. Or am I missing
something about the MBR and Windows installer?

  Any feedback would be greatly appreciated..

-jason


Overview:
---------
- Xen3.3.0 on Gentoo Host OS dom0
- PV guests in domU boot and display console just fine (other Gentoo
builds).
- HVM guest installed from scratch in domU, boot CD just fine, cant boot
from "disk"


HVM guest config (that works to boot CD install):
-----------------
kernel = '/usr/lib/xen/boot/hvmloader'
builder='hvm'
memory = 512
shadow_memory = 8
vcpus=1
name='new'
disk=['file:/webapps/data/guest1/disks/ext3root.img,sda,w','phy:/dev/cdrom,hda:cdrom,r']
root='/dev/sda3 ro'
dhcp='dhcp'
vif=['']
boot='dc'
vnc=1
vncviewer=0
sdl=0
stdvga=0
device_model='/usr/lib/xen/bin/qemu-dm'
serial='pty'
extra = 'xencons=tty'


HVM guest config (after install to just boot from disk, doesnt work):
----------------
kernel = '/usr/lib/xen/boot/hvmloader'
builder='hvm'
memory = 512
shadow_memory = 8
vcpus=1
name='new'
disk = ['file:/webapps/data/guest1/disks/ext3root.img,sda,w']
root='/dev/sda3 ro'
dhcp='dhcp'
vif=['']
boot='c'
vnc=1
vncviewer=0
sdl=0
stdvga=0
device_model='/usr/lib/xen/bin/qemu-dm'
serial='pty'
extra = 'xencons=tty'


qemu-dm-new.log
----------------
domid: 28
qemu: the number of cpus is 1
config qemu network with xen bridge for  tap28.0 xenbr0
Watching /local/domain/0/device-model/28/logdirty/next-active
Watching /local/domain/0/device-model/28/command
xs_read(): vncpasswd get error.
/vm/97c5a559-abf6-004e-70f5-afd07240a8e8/vncpasswd.
char device redirected to /dev/pts/0
qemu_map_cache_init nr_buckets = 4000 size 196608
shared page at pfn 1fffe
buffered io page at pfn 1fffc
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



xend.log
---------
[2008-11-13 20:05:18 27192] INFO (SrvDaemon:331) Xend Daemon started
[2008-11-13 20:05:18 27192] INFO (SrvDaemon:335) Xend changeset:
unavailable.
[2008-11-13 20:05:18 27192] INFO (XendNetwork:114) Not recreating
missing unmanaged network tmpbridge
[2008-11-13 20:05:18 27192] DEBUG (XendDomainInfo:137)
XendDomainInfo.recreate({'max_vcpu_id': 7, 'cpu_time': 11548808583905L,
'ssidref': 0, 'hvm': 0, 'shutdown_reason': 0, 'dying': 0,
'online_vcpus': 8, 'domid': 0, 'paused': 0, 'crashed': 0, 'running': 1,
'maxmem_kb': 4294967292L, 'shutdown': 0, 'mem_kb': 15319040L, 'handle':
[0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], 'blocked': 0, 'name':
'Domain-0'})
[2008-11-13 20:05:18 27192] INFO (XendDomainInfo:154) Recreating domain
0, UUID 00000000-0000-0000-0000-000000000000. at /local/domain/0
[2008-11-13 20:05:18 27192] DEBUG (XendDomain:447) Adding Domain: 0
[2008-11-13 20:05:18 27192] DEBUG (XendDomain:383) number of vcpus to
use is 0
[2008-11-13 20:05:19 27192] DEBUG (XendDomainInfo:1359) Storing domain
details: {'cpu/3/availability': 'online', 'name': 'Domain-0',
'console/limit': '1048576', 'memory/target': '15319040',
'cpu/2/availability': 'online', 'vm':
'/vm/00000000-0000-0000-0000-000000000000', 'domid': '0',
'cpu/7/availability': 'online', 'cpu/0/availability': 'online',
'cpu/1/availability': 'online', 'cpu/5/availability': 'online',
'control/platform-feature-multiprocessor-suspend': '1',
'cpu/6/availability': 'online', 'console/type': 'xenconsoled',
'cpu/4/availability': 'online'}
[2008-11-13 20:05:19 27192] WARNING (XendAPI:684) API call:
VBD.set_device not found
[2008-11-13 20:05:19 27192] WARNING (XendAPI:684) API call: VBD.set_type
not found
[2008-11-13 20:05:19 27192] DEBUG (XendDomainInfo:1443)
XendDomainInfo.handleShutdownWatch
[2008-11-13 20:05:19 27192] WARNING (XendAPI:684) API call:
session.get_all_records not found
[2008-11-13 20:05:19 27192] WARNING (XendAPI:684) API call:
event.get_record not found
[2008-11-13 20:05:19 27192] WARNING (XendAPI:684) API call:
event.get_all not found
[2008-11-13 20:05:19 27192] WARNING (XendAPI:684) API call:
VM.get_auto_power_on not found
[2008-11-13 20:05:19 27192] WARNING (XendAPI:684) API call:
VM.set_auto_power_on not found
[2008-11-13 20:05:19 27192] WARNING (XendAPI:684) API call:
VIF.get_network not found
[2008-11-13 20:05:19 27192] WARNING (XendAPI:684) API call:
VIF.set_device not found
[2008-11-13 20:05:19 27192] WARNING (XendAPI:684) API call: VIF.set_MAC
not found
[2008-11-13 20:05:19 27192] WARNING (XendAPI:684) API call: VIF.set_MTU
not found
[2008-11-13 20:05:19 27192] WARNING (XendAPI:684) API call:
debug.get_all not found
[2008-11-13 20:05:19 27192] INFO (XMLRPCServer:156) Opening Unix domain
socket XML-RPC server on /var/run/xend/xen-api.sock; authentication has
been disabled for this server.
[2008-11-13 20:05:19 27192] INFO (XMLRPCServer:156) Opening Unix domain
socket XML-RPC server on /var/run/xend/xmlrpc.sock.
[2008-11-13 20:05:53 27192] DEBUG (XendDomainInfo:89)
XendDomainInfo.create(['vm', ['name', 'new'], ['memory', 512],
['shadow_memory', 8], ['vcpus', 1], ['on_xend_start', 'ignore'],
['on_xend_stop', 'ignore'], ['image', ['hvm', ['kernel',
'/usr/lib/xen/boot/hvmloader'], ['ip', ':127.0.255.255::::eth0:dhcp'],
['root', '/dev/sda3 ro'], ['args', 'xencons=tty'], ['device_model',
'/usr/lib/xen/bin/qemu-dm'], ['pae', 1], ['vcpus', 1], ['boot', 'c'],
['fda', ''], ['fdb', ''], ['timer_mode', 0], ['localtime', 0],
['serial', 'pty'], ['stdvga', 0], ['isa', 0], ['nographic', 0],
['soundhw', ''], ['vnc', 1], ['vncunused', 1], ['sdl', 0],
['xauthority', '/root/.Xauthority'], ['rtc_timeoffset', '0'],
['monitor', 0], ['acpi', 1], ['apic', 1], ['usb', 0], ['usbdevice', ''],
['keymap', ''], ['pci', []], ['hpet', 0], ['guest_os_type', 'default'],
['hap', 1], ['cpuid', []], ['cpuid_check', []]]], ['device', ['vbd',
['uname', 'file:/webapps/data/guest1/disks/ext3root.img'], ['dev',
'sda'], ['mode', 'w']]], ['device', ['vif']]])
[2008-11-13 20:05:53 27192] DEBUG (XendDomainInfo:2028)
XendDomainInfo.constructDomain
[2008-11-13 20:05:53 27192] DEBUG (balloon:132) Balloon: 544128 KiB
free; need 2048; done.
[2008-11-13 20:05:53 27192] DEBUG (XendDomain:447) Adding Domain: 28
[2008-11-13 20:05:53 27192] DEBUG (XendDomainInfo:2134)
XendDomainInfo.initDomain: 28 256
[2008-11-13 20:05:53 27192] DEBUG (image:302) No VNC passwd configured
for vfb access
[2008-11-13 20:05:53 27192] DEBUG (image:712) cmdline        =
root=/dev/sda3 ro ip=:127.0.255.255::::eth0:dhcp xencons=tty
[2008-11-13 20:05:53 27192] DEBUG (image:743) args: boot, val: c
[2008-11-13 20:05:53 27192] DEBUG (image:743) args: fda, val: None
[2008-11-13 20:05:53 27192] DEBUG (image:743) args: fdb, val: None
[2008-11-13 20:05:53 27192] DEBUG (image:743) args: soundhw, val: None
[2008-11-13 20:05:53 27192] DEBUG (image:743) args: localtime, val: 0
[2008-11-13 20:05:53 27192] DEBUG (image:743) args: serial, val: pty
[2008-11-13 20:05:53 27192] DEBUG (image:743) args: std-vga, val: 0
[2008-11-13 20:05:53 27192] DEBUG (image:743) args: isa, val: 0
[2008-11-13 20:05:53 27192] DEBUG (image:743) args: acpi, val: 1
[2008-11-13 20:05:53 27192] DEBUG (image:743) args: usb, val: 0
[2008-11-13 20:05:53 27192] DEBUG (image:743) args: usbdevice, val: None
[2008-11-13 20:05:53 27192] DEBUG (XendDomainInfo:2215)
_initDomain:shadow_memory=0x8, memory_static_max=0x20000000,
memory_static_min=0x0.
[2008-11-13 20:05:53 27192] DEBUG (balloon:132) Balloon: 542844 KiB
free; need 542720; done.
[2008-11-13 20:05:53 27192] INFO (image:166) buildDomain os=hvm dom=28
vcpus=1
[2008-11-13 20:05:53 27192] DEBUG (image:795) domid          = 28
[2008-11-13 20:05:53 27192] DEBUG (image:796) image          =
/usr/lib/xen/boot/hvmloader
[2008-11-13 20:05:53 27192] DEBUG (image:797) store_evtchn   = 2
[2008-11-13 20:05:53 27192] DEBUG (image:798) memsize        = 512
[2008-11-13 20:05:53 27192] DEBUG (image:799) vcpus          = 1
[2008-11-13 20:05:53 27192] DEBUG (image:800) acpi           = 1
[2008-11-13 20:05:53 27192] DEBUG (image:801) apic           = 1
[2008-11-13 20:05:53 27192] INFO (XendDomainInfo:1900) createDevice: vfb
: {'vncunused': 1, 'other_config': {'vncunused': 1, 'type': 'vnc'},
'type': 'vnc', 'uuid': 'fcbfb45a-b20d-ed19-ec2a-9147676b1eae'}
[2008-11-13 20:05:53 27192] DEBUG (DevController:122) DevController:
writing {'state': '1', 'backend-id': '0', 'backend':
'/local/domain/0/backend/vfb/28/0'} to /local/domain/28/device/vfb/0.
[2008-11-13 20:05:53 27192] DEBUG (DevController:124) DevController:
writing {'vncunused': '1', 'domain': 'new', 'frontend':
'/local/domain/28/device/vfb/0', 'uuid':
'fcbfb45a-b20d-ed19-ec2a-9147676b1eae', 'state': '1', 'online': '1',
'frontend-id': '28', 'type': 'vnc'} to /local/domain/0/backend/vfb/28/0.
[2008-11-13 20:05:53 27192] INFO (XendDomainInfo:1900) createDevice: vbd
: {'uuid': 'a4a38795-74cf-440c-a230-08024c1e42ec', 'bootable': 1,
'driver': 'paravirtualised', 'dev': 'sda', 'uname':
'file:/webapps/data/guest1/disks/ext3root.img', 'mode': 'w'}
[2008-11-13 20:05:53 27192] DEBUG (DevController:122) DevController:
writing {'backend-id': '0', 'virtual-device': '2048', 'device-type':
'disk', 'state': '1', 'backend': '/local/domain/0/backend/vbd/28/2048'}
to /local/domain/28/device/vbd/2048.
[2008-11-13 20:05:53 27192] DEBUG (DevController:124) DevController:
writing {'domain': 'new', 'frontend':
'/local/domain/28/device/vbd/2048', 'uuid':
'a4a38795-74cf-440c-a230-08024c1e42ec', 'dev': 'sda', 'state': '1',
'params': '/webapps/data/guest1/disks/ext3root.img', 'mode': 'w',
'online': '1', 'frontend-id': '28', 'type': 'file'} to
/local/domain/0/backend/vbd/28/2048.
[2008-11-13 20:05:53 27192] INFO (XendDomainInfo:1900) createDevice: vif
: {'mac': '00:16:3e:0b:cb:0a', 'uuid':
'9d04dafc-35d2-503b-36d5-521313dc3136'}
[2008-11-13 20:05:53 27192] DEBUG (DevController:122) DevController:
writing {'backend-id': '0', 'mac': '00:16:3e:0b:cb:0a', 'handle': '0',
'state': '1', 'backend': '/local/domain/0/backend/vif/28/0'} to
/local/domain/28/device/vif/0.
[2008-11-13 20:05:53 27192] DEBUG (DevController:124) DevController:
writing {'domain': 'new', 'frontend': '/local/domain/28/device/vif/0',
'uuid': '9d04dafc-35d2-503b-36d5-521313dc3136', 'script':
'/etc/xen/scripts/vif-bridge', 'mac': '00:16:3e:0b:cb:0a',
'frontend-id': '28', 'state': '1', 'online': '1', 'handle': '0'} to
/local/domain/0/backend/vif/28/0.
[2008-11-13 20:05:53 27192] INFO (image:375) spawning device models:
/usr/lib/xen/bin/qemu-dm ['/usr/lib/xen/bin/qemu-dm', '-d', '28',
'-domain-name', 'new', '-k', 'en-us', '-vnc', '0.0.0.0:0', '-vncunused',
'-vcpus', '1', '-append', 'root=/dev/sda3 ro
ip=:127.0.255.255::::eth0:dhcp xencons=tty', '-boot', 'c', '-serial',
'pty', '-acpi', '-net',
'nic,vlan=1,macaddr=00:16:3e:0b:cb:0a,model=rtl8139', '-net',
'tap,vlan=1,ifname=tap28.0,bridge=xenbr0', '-M', 'xenfv']
[2008-11-13 20:05:53 27192] INFO (image:422) device model pid: 27247
[2008-11-13 20:05:53 27192] DEBUG (XendDomainInfo:2729) Storing VM
details: {'on_xend_stop': 'ignore', 'shadow_memory': '8', 'uuid':
'97c5a559-abf6-004e-70f5-afd07240a8e8', 'on_reboot': 'restart',
'start_time': '1226628353.98', 'on_poweroff': 'destroy',
'on_xend_start': 'ignore', 'on_crash': 'restart', 'xend/restart_count':
'0', 'vcpus': '1', 'vcpu_avail': '1', 'image': "(hvm (kernel ) (args
'root=/dev/sda3 ro ip=:127.0.255.255::::eth0:dhcp xencons=tty') (hpet 0)
(stdvga 0) (loader /usr/lib/xen/boot/hvmloader) (serial pty) (vncunused
1) (boot c) (rtc_timeoffset 0) (pci ()) (pae 1) (hap 1) (acpi 1)
(localtime 0) (timer_mode 0) (vnc 1) (nographic 0) (guest_os_type
default) (apic 1) (sdl 0) (monitor 0) (device_model
/usr/lib/xen/bin/qemu-dm) (keymap en-us) (usb 0) (xauthority
/root/.Xauthority) (isa 0) (notes (SUSPEND_CANCEL 1)))", 'name': 'new'}
[2008-11-13 20:05:53 27192] INFO (image:511) waiting for sentinel_fifo
[2008-11-13 20:05:54 27192] DEBUG (XendDomainInfo:1359) Storing domain
details: {'console/port': '3', 'name': 'new', 'console/limit':
'1048576', 'store/port': '2', 'vm':
'/vm/97c5a559-abf6-004e-70f5-afd07240a8e8', 'domid': '28',
'image/suspend-cancel': '1', 'cpu/0/availability': 'online',
'memory/target': '524288',
'control/platform-feature-multiprocessor-suspend': '1',
'store/ring-ref': '131069', 'console/type': 'ioemu'}
[2008-11-13 20:05:54 27192] DEBUG (DevController:122) DevController:
writing {'state': '1', 'backend-id': '0', 'backend':
'/local/domain/0/backend/console/28/0'} to
/local/domain/28/device/console/0.
[2008-11-13 20:05:54 27192] DEBUG (DevController:124) DevController:
writing {'domain': 'new', 'frontend':
'/local/domain/28/device/console/0', 'uuid':
'4f7be2bb-ab0f-b754-24ca-5ee2f1473b37', 'frontend-id': '28', 'state':
'1', 'location': '3', 'online': '1', 'protocol': 'vt100'} to
/local/domain/0/backend/console/28/0.
[2008-11-13 20:05:54 27192] DEBUG (XendDomainInfo:1443)
XendDomainInfo.handleShutdownWatch
[2008-11-13 20:05:54 27192] DEBUG (DevController:155) Waiting for
devices vif.
[2008-11-13 20:05:54 27192] DEBUG (DevController:160) Waiting for 0.
[2008-11-13 20:05:54 27192] DEBUG (DevController:645)
hotplugStatusCallback /local/domain/0/backend/vif/28/0/hotplug-status.
[2008-11-13 20:05:54 27192] DEBUG (DevController:659)
hotplugStatusCallback 1.
[2008-11-13 20:05:54 27192] DEBUG (DevController:155) Waiting for
devices vscsi.
[2008-11-13 20:05:54 27192] DEBUG (DevController:155) Waiting for
devices vbd.
[2008-11-13 20:05:54 27192] DEBUG (DevController:160) Waiting for 2048.
[2008-11-13 20:05:54 27192] DEBUG (DevController:645)
hotplugStatusCallback /local/domain/0/backend/vbd/28/2048/hotplug-status.
[2008-11-13 20:05:54 27192] DEBUG (DevController:659)
hotplugStatusCallback 1.
[2008-11-13 20:05:54 27192] DEBUG (DevController:155) Waiting for
devices irq.
[2008-11-13 20:05:54 27192] DEBUG (DevController:155) Waiting for
devices vkbd.
[2008-11-13 20:05:54 27192] DEBUG (DevController:155) Waiting for
devices vfb.
[2008-11-13 20:05:54 27192] DEBUG (DevController:155) Waiting for
devices console.
[2008-11-13 20:05:54 27192] DEBUG (DevController:160) Waiting for 0.
[2008-11-13 20:05:54 27192] DEBUG (DevController:155) Waiting for
devices pci.
[2008-11-13 20:05:54 27192] DEBUG (DevController:155) Waiting for
devices ioports.
[2008-11-13 20:05:54 27192] DEBUG (DevController:155) Waiting for
devices tap.
[2008-11-13 20:05:54 27192] DEBUG (DevController:155) Waiting for
devices vtpm.
[2008-11-13 20:05:54 27192] INFO (XendDomain:1172) Domain new (28) unpaused.
[2008-11-13 20:05:55 27192] INFO (XendDomainInfo:1634) Domain has
shutdown: name=new id=28 reason=poweroff.
[2008-11-13 20:05:55 27192] DEBUG (XendDomainInfo:2389)
XendDomainInfo.destroy: domid=28
[2008-11-13 20:05:55 27192] DEBUG (XendDomainInfo:2406)
XendDomainInfo.destroyDomain(28)
[2008-11-13 20:05:55 27192] DEBUG (XendDomainInfo:1939) Destroying
device model
[2008-11-13 20:05:55 27192] WARNING (image:472) domain new: device model
failure: no longer running; see /var/log/xen/qemu-dm-new.log
[2008-11-13 20:05:55 27192] DEBUG (XendDomainInfo:1946) Releasing devices
[2008-11-13 20:05:55 27192] DEBUG (XendDomainInfo:1952) Removing vif/0
[2008-11-13 20:05:55 27192] DEBUG (XendDomainInfo:888)
XendDomainInfo.destroyDevice: deviceClass = vif, device = vif/0
[2008-11-13 20:05:55 27192] DEBUG (XendDomainInfo:1952) Removing vbd/2048
[2008-11-13 20:05:55 27192] DEBUG (XendDomainInfo:888)
XendDomainInfo.destroyDevice: deviceClass = vbd, device = vbd/2048
[2008-11-13 20:05:55 27192] DEBUG (XendDomainInfo:1952) Removing vfb/0
[2008-11-13 20:05:55 27192] DEBUG (XendDomainInfo:888)
XendDomainInfo.destroyDevice: deviceClass = vfb, device = vfb/0
[2008-11-13 20:05:55 27192] DEBUG (XendDomainInfo:1952) Removing console/0
[2008-11-13 20:05:55 27192] DEBUG (XendDomainInfo:888)
XendDomainInfo.destroyDevice: deviceClass = console, device = console/0
[2008-11-13 20:05:55 27192] DEBUG (XendDomainInfo:1944) No device model
[2008-11-13 20:05:55 27192] DEBUG (XendDomainInfo:1946) Releasing devices



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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.