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

[Xen-users] exception looking up device number for hda1: [Errno 2] No such file or directory: '/dev/hda1'


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • From: "Mike Raath" <raathm@xxxxxxxxx>
  • Date: Thu, 28 Aug 2008 14:24:14 +0200
  • Delivery-date: Thu, 28 Aug 2008 05:25:14 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=Y1ArFSUawRiyS/oyWBB0928CQ40UWmG15GtdDOWpF1Z75Do86vcZdIfKWZIbA8msZU uD+SpTmqZZoLFBzpH0GGzBxO4qj+SdsHJUlLlWeOxk6YZkQ9JWmrz5Co1XAk3T7sFEal fSO1OAAy1k1treVlfr+7IzlkWkz0EEF0Zp1EI=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Hi,

I've been trying for days to get a simple xen domU installed on a Debian Etch system, but I'm going round in circles getting steadily more and more frustrated.

My host machine is, as I say, Etch running the 2.6.18-6-xen-686 kernel. Xen is 3.0.3-1. I've tried a few tutorials, but the most recent was this one: http://www.howtoforge.com/debian_etch_xen_from_debian_repository

The only real differences between that tutorial and my steps are that I don't use the vserver kernel and I commented out the initrd line (I don't need a RAM disk, although on other attempts to get it working I did uncomment it).

The command I use to create the image:
#xen-create-image --debootstrap --hostname xen-etch --dhcp --dist=etch --ide --force

Here's the xen-tools config:

-- Start
-- End


Here are the contents of my xen-etch config file:

-- Start
kernel  = '/boot/vmlinuz-2.6.18-6-xen-686'
memory  = '128'
root    = '/dev/hda1 ro'
disk    = [ 'file:/home/xen/domains/xen-etch/disk.img,hda1,w', 'file:/home/xen/domains/xen-etch/swap.img,hda2,w' ]
name    = 'xen-etch'
dhcp = 'dhcp'
vif  = [ '' ]
>on_reboot   = 'restart'
on_crash    = 'restart'
-- End

I then create the domain using sudo xm create xen-etch.cfg and it appears to create correctly:

# mraath@ld2:~$ sudo xm create xen-etch.cfg
# Using config file "/etc/xen/xen-etch.cfg".
# Started domain xen-etch

However, when I try to attach to the console, it reports that it couldn't find the disk device.

# mraath@ld2:~$ sudo xm console xen-etch
# Error: Domain 'xen-etch' does not exist.
# Usage: xm console <Domain>
#
# Attach to <Domain>'s console.

An extract from the log file shows this:

-- Start

[2008-08-28 14:18:52 xend.XendDomainInfo 3289] DEBUG (__init__:1072) XendDomainInfo.construct: None
[2008-08-28 14:18:52 xend.XendDomainInfo 3289] DEBUG (__init__:1072) XendDomainInfo.initDomain: 19 1.0
[2008-08-28 14:18:52 xend 3289] DEBUG (__init__:1072) Balloon: 131828 KiB free; need 131072; done.
[2008-08-28 14:18:52 xend 3289] INFO (__init__:1072) buildDomain os=linux dom=19 vcpus=1
[2008-08-28 14:18:52 xend 3289] DEBUG (__init__:1072) dom            = 19
[2008-08-28 14:18:52 xend 3289] DEBUG (__init__:1072) image          = /boot/vmlinuz-2.6.18-6-xen-686
[2008-08-28 14:18:52 xend 3289] DEBUG (__init__:1072) store_evtchn   = 1
[2008-08-28 14:18:52 xend 3289] DEBUG (__init__:1072) console_evtchn = 2
[2008-08-28 14:18:52 xend 3289] DEBUG (__init__:1072) cmdline        =  ip=:1.2.3.4::::eth0:dhcp root=/dev/hda1 ro
[2008-08-28 14:18:52 xend 3289] DEBUG (__init__:1072) ramdisk        =
[2008-08-28 14:18:52 xend 3289] DEBUG (__init__:1072) vcpus          = 1
[2008-08-28 14:18:52 xend 3289] DEBUG (__init__:1072) features       =
[2008-08-28 14:18:52 xend 3289] DEBUG (__init__:1072) exception looking up device number for hda1: [Errno 2] No such file or directory: '/dev/hda1'
[2008-08-28 14:18:52 xend 3289] DEBUG (__init__:1072) DevController: writing {'backend-id': '0', 'virtual-device': '769', 'device-type': 'disk', 'state': '1', 'backend': '/local/domain/0/backend/vbd/19/769'} to /local/domain/19/device/vbd/769.
[2008-08-28 14:18:52 xend 3289] DEBUG (__init__:1072) DevController: writing {'domain': 'xen-etch', 'frontend': '/local/domain/19/device/vbd/769', 'dev': 'hda1', 'state': '1', 'params': '/home/xen/domains/xen-etch/disk.img', 'mode': 'w', 'online': '1', 'frontend-id': '19', 'type': 'file'} to /local/domain/0/backend/vbd/19/769.
[2008-08-28 14:18:52 xend 3289] DEBUG (__init__:1072) exception looking up device number for hda2: [Errno 2] No such file or directory: '/dev/hda2'
[2008-08-28 14:18:52 xend 3289] DEBUG (__init__:1072) DevController: writing {'backend-id': '0', 'virtual-device': '770', 'device-type': 'disk', 'state': '1', 'backend': '/local/domain/0/backend/vbd/19/770'} to /local/domain/19/device/vbd/770.
[2008-08-28 14:18:52 xend 3289] DEBUG (__init__:1072) DevController: writing {'domain': 'xen-etch', 'frontend': '/local/domain/19/device/vbd/770', 'dev': 'hda2', 'state': '1', 'params': '/home/xen/domains/xen-etch/swap.img', 'mode': 'w', 'online': '1', 'frontend-id': '19', 'type': 'file'} to /local/domain/0/backend/vbd/19/770.
[2008-08-28 14:18:52 xend 3289] DEBUG (__init__:1072) DevController: writing {'backend-id': '0', 'mac': '00:16:3e:73:16:1d', 'handle': '0', 'state': '1', 'backend': '/local/domain/0/backend/vif/19/0'} to /local/domain/19/device/vif/0.
[2008-08-28 14:18:52 xend 3289] DEBUG (__init__:1072) DevController: writing {'domain': 'xen-etch', 'handle': '0', 'script': '/etc/xen/scripts/vif-bridge', 'state': '1', 'frontend': '/local/domain/19/device/vif/0', 'mac': '00:16:3e:73:16:1d', 'online': '1', 'frontend-id': '19'} to /local/domain/0/backend/vif/19/0.
[2008-08-28 14:18:52 xend.XendDomainInfo 3289] DEBUG (__init__:1072) Storing VM details: {'shadow_memory': '0', 'uuid': '3bc50a87-72ab-d4ab-e3d5-4bfded386524', 'on_reboot': 'restart', 'start_time': '1219925932.43', 'on_poweroff': 'destroy', 'name': 'xen-etch', 'xend/restart_count': '0', 'vcpus': '1', 'vcpu_avail': '1', 'memory': '128', 'on_crash': 'restart', 'image': "(linux (kernel /boot/vmlinuz-2.6.18-6-xen-686) (ip :1.2.3.4::::eth0:dhcp) (root '/dev/hda1 ro'))", 'maxmem': '128'}
[2008-08-28 14:18:52 xend.XendDomainInfo 3289] DEBUG (__init__:1072) Storing domain details: {'console/ring-ref': '827715', 'console/port': '2', 'name': 'xen-etch', 'console/limit': '1048576', 'vm': '/vm/3bc50a87-72ab-d4ab-e3d5-4bfded386524', 'domid': '19', 'cpu/0/availability': 'online', 'memory/target': '131072', 'store/ring-ref': '827716', 'store/port': '1'}
[2008-08-28 14:18:52 xend.XendDomainInfo 3289] DEBUG (__init__:1072) XendDomainInfo.handleShutdownWatch
[2008-08-28 14:18:52 xend 3289] DEBUG (__init__:1072) Waiting for devices vif.
[2008-08-28 14:18:52 xend 3289] DEBUG (__init__:1072) Waiting for 0.
[2008-08-28 14:18:52 xend 3289] DEBUG (__init__:1072) hotplugStatusCallback /local/domain/0/backend/vif/19/0/hotplug-status.
[2008-08-28 14:18:52 xend 3289] DEBUG (__init__:1072) hotplugStatusCallback /local/domain/0/backend/vif/19/0/hotplug-status.
[2008-08-28 14:18:52 xend 3289] DEBUG (__init__:1072) hotplugStatusCallback 1.
[2008-08-28 14:18:52 xend 3289] DEBUG (__init__:1072) Waiting for devices usb.
[2008-08-28 14:18:52 xend 3289] DEBUG (__init__:1072) Waiting for devices vbd.
[2008-08-28 14:18:52 xend 3289] DEBUG (__init__:1072) Waiting for 769.
[2008-08-28 14:18:52 xend 3289] DEBUG (__init__:1072) hotplugStatusCallback /local/domain/0/backend/vbd/19/769/hotplug-status.
[2008-08-28 14:18:52 xend 3289] DEBUG (__init__:1072) hotplugStatusCallback /local/domain/0/backend/vbd/19/769/hotplug-status.
[2008-08-28 14:18:52 xend 3289] DEBUG (__init__:1072) hotplugStatusCallback 1.
[2008-08-28 14:18:52 xend 3289] DEBUG (__init__:1072) Waiting for 770.
[2008-08-28 14:18:52 xend 3289] DEBUG (__init__:1072) hotplugStatusCallback /local/domain/0/backend/vbd/19/770/hotplug-status.
[2008-08-28 14:18:53 xend 3289] DEBUG (__init__:1072) hotplugStatusCallback /local/domain/0/backend/vbd/19/770/hotplug-status.
[2008-08-28 14:18:53 xend 3289] DEBUG (__init__:1072) hotplugStatusCallback 1.
[2008-08-28 14:18:53 xend 3289] DEBUG (__init__:1072) Waiting for devices irq.
[2008-08-28 14:18:53 xend 3289] DEBUG (__init__:1072) Waiting for devices pci.
[2008-08-28 14:18:53 xend 3289] DEBUG (__init__:1072) Waiting for devices ioports.
[2008-08-28 14:18:53 xend 3289] DEBUG (__init__:1072) Waiting for devices tap.
[2008-08-28 14:18:53 xend 3289] DEBUG (__init__:1072) Waiting for devices vtpm.
[2008-08-28 14:18:53 xend 3289] INFO (__init__:1072) Domain xen-etch (19) unpaused.
[2008-08-28 14:18:54 xend.XendDomainInfo 3289] WARNING (__init__:1072) Domain has crashed: name=xen-etch id=19.
[2008-08-28 14:18:54 xend.XendDomainInfo 3289] DEBUG (__init__:1072) XendDomainInfo.destroyDomain(19)
[2008-08-28 14:18:54 xend.XendDomainInfo 3289] DEBUG (__init__:1072) XendDomainInfo.create(['domain', ['domid', 19], ['uuid', '3bc50a87-72ab-d4ab-e3d5-4bfded386524'], ['vcpus', 1], ['vcpu_avail', 1], ['cpu_weight', 1.0], ['memory', 128], ['shadow_memory', 0], ['maxmem', 128], ['features', ''], ['name', 'xen-etch'], ['on_poweroff', 'destroy'], ['on_reboot', 'restart'], ['on_crash', 'restart'], ['image', ['linux', ['kernel', '/boot/vmlinuz-2.6.18-6-xen-686'], ['ip', ':1.2.3.4::::eth0:dhcp'], ['root', '/dev/hda1 ro']]], ['device', ['vif', ['backend', 0], ['script', 'vif-bridge'], ['mac', '00:16:3e:73:16:1d']]], ['device', ['vbd', ['backend', 0], ['dev', 'hda1:disk'], ['uname', 'file:/home/xen/domains/xen-etch/disk.img'], ['mode', 'w']]], ['device', ['vbd', ['backend', 0], ['dev', 'hda2:disk'], ['uname', 'file:/home/xen/domains/xen-etch/swap.img'], ['mode', 'w']]], ['state', '----c-'], ['shutdown_reason', 'crash'], ['cpu_time', 0.14183262799999999], ['online_vcpus', 1], ['up_time', '1.65827989578'], ['start_time', '1219925932.43'], ['store_mfn', 827716], ['console_mfn', 827715]])
[2008-08-28 14:18:54 xend.XendDomainInfo 3289] DEBUG (__init__:1072) parseConfig: config is ['domain', ['domid', 19], ['uuid', '3bc50a87-72ab-d4ab-e3d5-4bfded386524'], ['vcpus', 1], ['vcpu_avail', 1], ['cpu_weight', 1.0], ['memory', 128], ['shadow_memory', 0], ['maxmem', 128], ['features', ''], ['name', 'xen-etch'], ['on_poweroff', 'destroy'], ['on_reboot', 'restart'], ['on_crash', 'restart'], ['image', ['linux', ['kernel', '/boot/vmlinuz-2.6.18-6-xen-686'], ['ip', ':1.2.3.4::::eth0:dhcp'], ['root', '/dev/hda1 ro']]], ['device', ['vif', ['backend', 0], ['script', 'vif-bridge'], ['mac', '00:16:3e:73:16:1d']]], ['device', ['vbd', ['backend', 0], ['dev', 'hda1:disk'], ['uname', 'file:/home/xen/domains/xen-etch/disk.img'], ['mode', 'w']]], ['device', ['vbd', ['backend', 0], ['dev', 'hda2:disk'], ['uname', 'file:/home/xen/domains/xen-etch/swap.img'], ['mode', 'w']]], ['state', '----c-'], ['shutdown_reason', 'crash'], ['cpu_time', 0.14183262799999999], ['online_vcpus', 1], ['up_time', '1.65827989578'], ['start_time', '1219925932.43'], ['store_mfn', 827716], ['console_mfn', 827715]]
[2008-08-28 14:18:54 xend.XendDomainInfo 3289] DEBUG (__init__:1072) parseConfig: result is {'shadow_memory': 0, 'uuid': '3bc50a87-72ab-d4ab-e3d5-4bfded386524', 'on_crash': 'restart', 'on_reboot': 'restart', 'localtime': None, 'image': ['linux', ['kernel', '/boot/vmlinuz-2.6.18-6-xen-686'], ['ip', ':1.2.3.4::::eth0:dhcp'], ['root', '/dev/hda1 ro']], 'on_poweroff': 'destroy', 'bootloader_args': None, 'cpus': None, 'name': 'xen-etch', 'backend': [], 'vcpus': 1, 'cpu_weight': 1.0, 'features': '', 'vcpu_avail': 1, 'memory': 128, 'device': [('vif', ['vif', ['backend', 0], ['script', 'vif-bridge'], ['mac', '00:16:3e:73:16:1d']]), ('vbd', ['vbd', ['backend', 0], ['dev', 'hda1:disk'], ['uname', 'file:/home/xen/domains/xen-etch/disk.img'], ['mode', 'w']]), ('vbd', ['vbd', ['backend', 0], ['dev', 'hda2:disk'], ['uname', 'file:/home/xen/domains/xen-etch/swap.img'], ['mode', 'w']])], 'bootloader': None, 'cpu': None, 'maxmem': 128}
[2008-08-28 14:18:54 xend.XendDomainInfo 3289] DEBUG (__init__:1072) XendDomainInfo.construct: None
[2008-08-28 14:18:54 xend.XendDomainInfo 3289] DEBUG (__init__:1072) XendDomainInfo.initDomain: 20 1.0
[2008-08-28 14:18:54 xend 3289] DEBUG (__init__:1072) Balloon: 93360 KiB free; 38252 to scrub; need 131072; retries: 20.
[2008-08-28 14:18:54 xend 3289] DEBUG (__init__:1072) Balloon: waiting on scrubbing
[2008-08-28 14:18:54 xend 3289] DEBUG (__init__:1072) Balloon: 131812 KiB free; need 131072; done.
[2008-08-28 14:18:54 xend 3289] INFO (__init__:1072) buildDomain os=linux dom=20 vcpus=1
[2008-08-28 14:18:54 xend 3289] DEBUG (__init__:1072) dom            = 20
[2008-08-28 14:18:54 xend 3289] DEBUG (__init__:1072) image          = /boot/vmlinuz-2.6.18-6-xen-686
[2008-08-28 14:18:54 xend 3289] DEBUG (__init__:1072) store_evtchn   = 1
[2008-08-28 14:18:54 xend 3289] DEBUG (__init__:1072) console_evtchn = 2
[2008-08-28 14:18:54 xend 3289] DEBUG (__init__:1072) cmdline        =  ip=:1.2.3.4::::eth0:dhcp root=/dev/hda1 ro
[2008-08-28 14:18:54 xend 3289] DEBUG (__init__:1072) ramdisk        =
[2008-08-28 14:18:54 xend 3289] DEBUG (__init__:1072) vcpus          = 1
[2008-08-28 14:18:54 xend 3289] DEBUG (__init__:1072) features       =
[2008-08-28 14:18:54 xend 3289] DEBUG (__init__:1072) DevController: writing {'backend-id': '0', 'mac': '00:16:3e:73:16:1d', 'handle': '0', 'state': '1', 'backend': '/local/domain/0/backend/vif/20/0'} to /local/domain/20/device/vif/0.
[2008-08-28 14:18:54 xend 3289] DEBUG (__init__:1072) DevController: writing {'domain': 'xen-etch', 'handle': '0', 'script': '/etc/xen/scripts/vif-bridge', 'state': '1', 'frontend': '/local/domain/20/device/vif/0', 'mac': '00:16:3e:73:16:1d', 'online': '1', 'frontend-id': '20'} to /local/domain/0/backend/vif/20/0.
[2008-08-28 14:18:54 xend 3289] DEBUG (__init__:1072) exception looking up device number for hda1: [Errno 2] No such file or directory: '/dev/hda1'
[2008-08-28 14:18:54 xend 3289] DEBUG (__init__:1072) DevController: writing {'backend-id': '0', 'virtual-device': '769', 'device-type': 'disk', 'state': '1', 'backend': '/local/domain/0/backend/vbd/20/769'} to /local/domain/20/device/vbd/769.
[2008-08-28 14:18:54 xend 3289] DEBUG (__init__:1072) DevController: writing {'domain': 'xen-etch', 'frontend': '/local/domain/20/device/vbd/769', 'dev': 'hda1', 'state': '1', 'params': '/home/xen/domains/xen-etch/disk.img', 'mode': 'w', 'online': '1', 'frontend-id': '20', 'type': 'file'} to /local/domain/0/backend/vbd/20/769.
[2008-08-28 14:18:54 xend 3289] DEBUG (__init__:1072) exception looking up device number for hda2: [Errno 2] No such file or directory: '/dev/hda2'
[2008-08-28 14:18:54 xend 3289] DEBUG (__init__:1072) DevController: writing {'backend-id': '0', 'virtual-device': '770', 'device-type': 'disk', 'state': '1', 'backend': '/local/domain/0/backend/vbd/20/770'} to /local/domain/20/device/vbd/770.
[2008-08-28 14:18:54 xend 3289] DEBUG (__init__:1072) DevController: writing {'domain': 'xen-etch', 'frontend': '/local/domain/20/device/vbd/770', 'dev': 'hda2', 'state': '1', 'params': '/home/xen/domains/xen-etch/swap.img', 'mode': 'w', 'online': '1', 'frontend-id': '20', 'type': 'file'} to /local/domain/0/backend/vbd/20/770.
[2008-08-28 14:18:54 xend.XendDomainInfo 3289] DEBUG (__init__:1072) Storing VM details: {'shadow_memory': '0', 'uuid': '3bc50a87-72ab-d4ab-e3d5-4bfded386524', 'on_reboot': 'restart', 'start_time': '1219925934.3', 'on_poweroff': 'destroy', 'name': 'xen-etch', 'vcpus': '1', 'vcpu_avail': '1', 'memory': '128', 'on_crash': 'restart', 'image': "(linux (kernel /boot/vmlinuz-2.6.18-6-xen-686) (ip :1.2.3.4::::eth0:dhcp) (root '/dev/hda1 ro'))", 'maxmem': '128'}
[2008-08-28 14:18:54 xend.XendDomainInfo 3289] DEBUG (__init__:1072) Storing domain details: {'console/ring-ref': '830885', 'console/port': '2', 'name': 'xen-etch', 'console/limit': '1048576', 'vm': '/vm/3bc50a87-72ab-d4ab-e3d5-4bfded386524', 'domid': '20', 'cpu/0/availability': 'online', 'memory/target': '131072', 'store/ring-ref': '830886', 'store/port': '1'}
[2008-08-28 14:18:54 xend.XendDomainInfo 3289] DEBUG (__init__:1072) XendDomainInfo.handleShutdownWatch
[2008-08-28 14:18:56 xend.XendDomainInfo 3289] WARNING (__init__:1072) Domain has crashed: name=xen-etch id=20.
[2008-08-28 14:18:56 xend.XendDomainInfo 3289] ERROR (__init__:1072) VM xen-etch restarting too fast (2.815582 seconds since the last restart).  Refusing to restart to avoid loops.
[2008-08-28 14:18:56 xend.XendDomainInfo 3289] DEBUG (__init__:1072) XendDomainInfo.destroy: domid=20
[2008-08-28 14:18:56 xend.XendDomainInfo 3289] DEBUG (__init__:1072) XendDomainInfo.destroyDomain(20)

-- End

Can someone please help me get this sorted out? I just seem to be swatting flies at the moment.

Thanks,
Mike
_______________________________________________
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®.