Port-xen archive

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

Problem when installing NetBSD to a disk image from iso file



Hi,

I'm trying to run a virtual machine in XEN3, which I've installed in NetBSD5.1 
via pkg_add.
The packages were "grub", "xentools3", "xentools3-hvm", "xenkernel3" and my 
package-path is: 
"ftp://ftp.netbsd.org/pub/pkgsrc/packages/NetBSD/i386/5.1_2010Q3/All";

I've managed to boot the XEN3_DOM0 kernel, but when I try to create a virtual 
machine with "xm create -c /usr/pkg/etc/xen/vm/test.cfg" it just tells me the 
following message:
        ...
        mountroot: trying cd9660...
        root file system type: cd9660
        warning: no /dev/console
        init: copying out path '/sbin/init' 11
        exec /sbin/init: error 2
        init: copying out path '/sbin/oinit' 12
        exec /sbin/oinit: error 2
        init: copying out path '/sbin/init.bak' 15
        exec /sbin/init.bak: error 2
        init path (default /sbin/init):
        init: copying out path '/sbin/init' 11
        exec /sbin/init: error 2
        init path (default /sbin/oinit):
        init: copying out path '/sbin/oinit' 12
        exec /sbin/oinit: error 2
        init path (default /sbin/init.bak):
        init: copying out path '/sbin/init.bak' 15
        exec /sbin/init.bak: error 2
        init path:

I want to install NetBSD5.1 from an .iso file to an empty disk file, which I 
have created with "dd if=/dev/zero of=test.vm bs=1k count=1000000"
I've tried to resolve the problem myself, but I can't get any further.

/usr/pkg/etc/xen/vm/test.cfg:
        kernel = '/xen3_domu.gz'
        memory = 128
        name = "test"
        vcpus = 1
        nics = 1 
        disk = [ 'file:/usr/pkg/etc/xen/vm/test.vm,0x1,w', 
'file:/usr/pkg/etc/xen/isos/netbsd.iso,0x2,r' ]
        root = "xbd1"
        vif=[ 'bridge=bridge0' ]

/var/log/xen/xend.log:
        [2011-02-03 11:26:15 395] INFO (SrvDaemon:331) Xend Daemon started
        [2011-02-03 11:26:15 395] INFO (SrvDaemon:335) Xend changeset: 
unavailable.
        [2011-02-03 11:26:15 395] INFO (SrvDaemon:342) Xend version: Unknown.
        [2011-02-03 11:26:16 395] DEBUG (XendDomainInfo:132) 
XendDomainInfo.recreate({'max_vcpu_id': 1, 'cpu_time': 6327431311L, 'ssidref': 
0, 'hvm': 0, 'shutdown_reason': 0, 'dying': 0, 'online_vcpus': 1, 'domid': 0, 
'paused': 0, 'crashed': 0, 'running': 1, 'maxmem_kb': 4294967292L, 'shutdown': 
0, 'mem_kb': 1024000L, 'handle': [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 
0], 'blocked': 0, 'name': 'Domain-0'})
        [2011-02-03 11:26:16 395] INFO (XendDomainInfo:149) Recreating domain 
0, UUID 00000000-0000-0000-0000-000000000000. at /local/domain/0
        [2011-02-03 11:26:16 395] DEBUG (XendDomainInfo:2093) Storing VM 
details: {'on_xend_stop': 'ignore', 'shadow_memory': '0', 'uuid': 
'00000000-0000-0000-0000-000000000000', 'on_reboot': 'restart', 'image': 
'(linux (kernel ))', 'on_poweroff': 'destroy', 'on_xend_start': 'ignore', 
'on_crash': 'restart', 'xend/restart_count': '0', 'vcpus': '1', 'vcpu_avail': 
'1', 'name': 'Domain-0'}
        [2011-02-03 11:26:16 395] DEBUG (XendDomainInfo:914) Storing domain 
details: {'name': 'Domain-0', 'console/limit': '1048576', 'vm': 
'/vm/00000000-0000-0000-0000-000000000000', 'domid': '0', 'cpu/0/availability': 
'online', 'memory/target': '1024000', 
'control/platform-feature-multiprocessor-suspend': '1'}
        [2011-02-03 11:26:16 395] DEBUG (XendDomain:434) Adding Domain: 0
        [2011-02-03 11:26:16 395] DEBUG (XendDomain:379) number of vcpus to use 
is 0
        [2011-02-03 11:26:16 395] WARNING (XendAPI:672) API call: 
VBD.set_device not found
        [2011-02-03 11:26:16 395] WARNING (XendAPI:672) API call: VBD.set_type 
not found
        [2011-02-03 11:26:16 395] WARNING (XendAPI:672) API call: 
VM.get_auto_power_on not found
        [2011-02-03 11:26:16 395] WARNING (XendAPI:672) API call: 
VM.set_auto_power_on not found
        [2011-02-03 11:26:16 395] WARNING (XendAPI:672) API call: debug.get_all 
not found
        [2011-02-03 11:26:16 395] WARNING (XendAPI:672) API call: 
console.get_other_config not found
        [2011-02-03 11:26:16 395] WARNING (XendAPI:672) API call: 
console.set_other_config not found
        [2011-02-03 11:26:16 395] WARNING (XendAPI:672) API call: 
VIF.get_network not found
        [2011-02-03 11:26:16 395] WARNING (XendAPI:672) API call: 
VIF.set_device not found
        [2011-02-03 11:26:16 395] WARNING (XendAPI:672) API call: VIF.set_MAC 
not found
        [2011-02-03 11:26:16 395] WARNING (XendAPI:672) API call: VIF.set_MTU 
not found
        [2011-02-03 11:26:16 395] WARNING (XendAPI:672) API call: 
session.get_all_records not found
        [2011-02-03 11:26:16 395] WARNING (XendAPI:672) API call: 
event.get_record not found
        [2011-02-03 11:26:16 395] WARNING (XendAPI:672) API call: event.get_all 
not found
        [2011-02-03 11:26:16 395] INFO (XMLRPCServer:149) Opening Unix domain 
socket XML-RPC server on /var/run/xend/xmlrpc.sock.
        [2011-02-03 11:26:16 395] INFO (XMLRPCServer:149) Opening Unix domain 
socket XML-RPC server on /var/run/xend/xen-api.sock; authentication has been 
disabled for this server.
        [2011-02-03 11:26:16 395] DEBUG (XendDomainInfo:998) 
XendDomainInfo.handleShutdownWatch
        [2011-02-03 11:26:52 395] DEBUG (XendDomainInfo:84) 
XendDomainInfo.create(['vm', ['name', 'test'], ['memory', 128], ['vcpus', 1], 
['on_xend_start', 'ignore'], ['on_xend_stop', 'ignore'], ['image', ['linux', 
['kernel', '/xen3_domu.gz'], ['root', 'xbd1']]], ['device', ['vbd', ['uname', 
'file:/usr/pkg/etc/xen/vm/test.vm'], ['dev', '0x1'], ['mode', 'w']]], 
['device', ['vbd', ['uname', 'file:/usr/pkg/etc/xen/isos/netbsd.iso'], ['dev', 
'0x2'], ['mode', 'r']]], ['device', ['vif', ['bridge', 'bridge0']]]])
        [2011-02-03 11:26:52 395] DEBUG (XendDomainInfo:1520) 
XendDomainInfo.constructDomain
        [2011-02-03 11:26:52 395] DEBUG (balloon:115) Balloon: 2606728 KiB 
free; need 2048; done.
        [2011-02-03 11:26:52 395] DEBUG (XendDomain:434) Adding Domain: 1
        [2011-02-03 11:26:52 395] DEBUG (XendDomainInfo:1580) 
XendDomainInfo.initDomain: 1 256
        [2011-02-03 11:26:52 395] DEBUG (XendDomainInfo:1614) 
_initDomain:shadow_memory=0x0, memory_static_max=0x8000000, 
memory_static_min=0x0.
        [2011-02-03 11:26:52 395] DEBUG (balloon:115) Balloon: 2606728 KiB 
free; need 131072; done.
        [2011-02-03 11:26:52 395] INFO (image:128) buildDomain os=linux dom=1 
vcpus=1
        [2011-02-03 11:26:52 395] DEBUG (image:203) domid          = 1
        [2011-02-03 11:26:52 395] DEBUG (image:204) memsize        = 128
        [2011-02-03 11:26:52 395] DEBUG (image:205) image          = 
/xen3_domu.gz
        [2011-02-03 11:26:52 395] DEBUG (image:206) store_evtchn   = 1
        [2011-02-03 11:26:52 395] DEBUG (image:207) console_evtchn = 2
        [2011-02-03 11:26:52 395] DEBUG (image:208) cmdline        = root=xbd1 
        [2011-02-03 11:26:52 395] DEBUG (image:209) ramdisk        = 
        [2011-02-03 11:26:52 395] DEBUG (image:210) vcpus          = 1
        [2011-02-03 11:26:52 395] DEBUG (image:211) features       = 
        [2011-02-03 11:26:52 395] INFO (XendDomainInfo:1422) createDevice: vbd 
: {'uuid': 'bc90fb11-fbe1-2aa7-ab7a-920422a4c53a', 'bootable': 1, 'driver': 
'paravirtualised', 'dev': '0x1', 'uname': 'file:/usr/pkg/etc/xen/vm/test.vm', 
'mode': 'w'}
        [2011-02-03 11:26:53 395] DEBUG (DevController:118) DevController: 
writing {'virtual-device': '1', 'device-type': 'disk', 'protocol': 
'x86_32-abi', 'backend-id': '0', 'state': '1', 'backend': 
'/local/domain/0/backend/vbd/1/1'} to /local/domain/1/device/vbd/1.
        [2011-02-03 11:26:53 395] DEBUG (DevController:120) DevController: 
writing {'domain': 'test', 'frontend': '/local/domain/1/device/vbd/1', 'uuid': 
'bc90fb11-fbe1-2aa7-ab7a-920422a4c53a', 'dev': '0x1', 'state': '1', 'params': 
'/usr/pkg/etc/xen/vm/test.vm', 'mode': 'w', 'online': '1', 'frontend-id': '1', 
'type': 'file'} to /local/domain/0/backend/vbd/1/1.
        [2011-02-03 11:26:53 395] INFO (XendDomainInfo:1422) createDevice: vbd 
: {'uuid': 'e46e3809-efc5-cea6-acb7-e982153a963b', 'bootable': 0, 'driver': 
'paravirtualised', 'dev': '0x2', 'uname': 
'file:/usr/pkg/etc/xen/isos/netbsd.iso', 'mode': 'r'}
        [2011-02-03 11:26:53 395] DEBUG (DevController:118) DevController: 
writing {'virtual-device': '2', 'device-type': 'disk', 'protocol': 
'x86_32-abi', 'backend-id': '0', 'state': '1', 'backend': 
'/local/domain/0/backend/vbd/1/2'} to /local/domain/1/device/vbd/2.
        [2011-02-03 11:26:53 395] DEBUG (DevController:120) DevController: 
writing {'domain': 'test', 'frontend': '/local/domain/1/device/vbd/2', 'uuid': 
'e46e3809-efc5-cea6-acb7-e982153a963b', 'dev': '0x2', 'state': '1', 'params': 
'/usr/pkg/etc/xen/isos/netbsd.iso', 'mode': 'r', 'online': '1', 'frontend-id': 
'1', 'type': 'file'} to /local/domain/0/backend/vbd/1/2.
        [2011-02-03 11:26:53 395] INFO (XendDomainInfo:1422) createDevice: vif 
: {'bridge': 'bridge0', 'mac': '00:16:3e:5e:8e:9c', 'uuid': 
'cf8d8e92-b52b-2a82-bd2c-de6a4a77ed0e'}
        [2011-02-03 11:26:53 395] DEBUG (DevController:118) DevController: 
writing {'mac': '00:16:3e:5e:8e:9c', 'handle': '0', 'protocol': 'x86_32-abi', 
'backend-id': '0', 'state': '1', 'backend': '/local/domain/0/backend/vif/1/0'} 
to /local/domain/1/device/vif/0.
        [2011-02-03 11:26:53 395] DEBUG (DevController:120) DevController: 
writing {'bridge': 'bridge0', 'domain': 'test', 'handle': '0', 'uuid': 
'cf8d8e92-b52b-2a82-bd2c-de6a4a77ed0e', 'script': 
'/usr/pkg/etc/xen/scripts/vif-bridge', 'mac': '00:16:3e:5e:8e:9c', 
'frontend-id': '1', 'state': '1', 'online': '1', 'frontend': 
'/local/domain/1/device/vif/0'} to /local/domain/0/backend/vif/1/0.
        [2011-02-03 11:26:53 395] DEBUG (XendDomainInfo:2093) Storing VM 
details: {'on_xend_stop': 'ignore', 'shadow_memory': '0', 'uuid': 
'558c3507-904a-a7a0-88b7-e0517ec2f2a7', 'on_reboot': 'restart', 'start_time': 
'1296728813.08', 'on_poweroff': 'destroy', 'on_xend_start': 'ignore', 
'on_crash': 'restart', 'xend/restart_count': '0', 'vcpus': '1', 'vcpu_avail': 
'1', 'image': "(linux (kernel /xen3_domu.gz) (args 'root=xbd1 ') (notes))", 
'name': 'test'}
        [2011-02-03 11:26:53 395] DEBUG (XendDomainInfo:914) Storing domain 
details: {'console/ring-ref': '657711', 'console/port': '2', 'name': 'test', 
'console/limit': '1048576', 'vm': '/vm/558c3507-904a-a7a0-88b7-e0517ec2f2a7', 
'domid': '1', 'cpu/0/availability': 'online', 'memory/target': '131072', 
'control/platform-feature-multiprocessor-suspend': '1', 'store/ring-ref': 
'657712', 'store/port': '1'}
        [2011-02-03 11:26:53 395] DEBUG (DevController:118) DevController: 
writing {'protocol': 'x86_32-abi', 'state': '1', 'backend-id': '0', 'backend': 
'/local/domain/0/backend/console/1/0'} to /local/domain/1/device/console/0.
        [2011-02-03 11:26:53 395] DEBUG (DevController:120) DevController: 
writing {'domain': 'test', 'frontend': '/local/domain/1/device/console/0', 
'uuid': 'd79562f7-9d0c-9cc7-7656-d9da891b4faf', 'frontend-id': '1', 'state': 
'1', 'location': '2', 'online': '1', 'protocol': 'vt100'} to 
/local/domain/0/backend/console/1/0.
        [2011-02-03 11:26:53 395] DEBUG (XendDomainInfo:998) 
XendDomainInfo.handleShutdownWatch
        [2011-02-03 11:26:53 395] DEBUG (DevController:151) Waiting for devices 
vif.
        [2011-02-03 11:26:53 395] DEBUG (DevController:156) Waiting for 0.
        [2011-02-03 11:26:53 395] DEBUG (DevController:590) 
hotplugStatusCallback /local/domain/0/backend/vif/1/0/hotplug-status.
        [2011-02-03 11:26:53 395] DEBUG (DevController:604) 
hotplugStatusCallback 1.
        [2011-02-03 11:26:53 395] DEBUG (DevController:151) Waiting for devices 
vkbd.
        [2011-02-03 11:26:53 395] DEBUG (DevController:151) Waiting for devices 
ioports.
        [2011-02-03 11:26:53 395] DEBUG (DevController:151) Waiting for devices 
tap.
        [2011-02-03 11:26:53 395] DEBUG (DevController:151) Waiting for devices 
console.
        [2011-02-03 11:26:53 395] DEBUG (DevController:156) Waiting for 0.
        [2011-02-03 11:26:53 395] DEBUG (DevController:151) Waiting for devices 
usb.
        [2011-02-03 11:26:53 395] DEBUG (DevController:151) Waiting for devices 
vbd.
        [2011-02-03 11:26:53 395] DEBUG (DevController:156) Waiting for 1.
        [2011-02-03 11:26:53 395] DEBUG (DevController:590) 
hotplugStatusCallback /local/domain/0/backend/vbd/1/1/hotplug-status.
        [2011-02-03 11:26:53 395] DEBUG (DevController:604) 
hotplugStatusCallback 1.
        [2011-02-03 11:26:53 395] DEBUG (DevController:156) Waiting for 2.
        [2011-02-03 11:26:53 395] DEBUG (DevController:590) 
hotplugStatusCallback /local/domain/0/backend/vbd/1/2/hotplug-status.
        [2011-02-03 11:26:53 395] DEBUG (DevController:604) 
hotplugStatusCallback 1.
        [2011-02-03 11:26:53 395] DEBUG (DevController:151) Waiting for devices 
irq.
        [2011-02-03 11:26:53 395] DEBUG (DevController:151) Waiting for devices 
vfb.
        [2011-02-03 11:26:53 395] DEBUG (DevController:151) Waiting for devices 
pci.
        [2011-02-03 11:26:53 395] DEBUG (DevController:151) Waiting for devices 
vtpm.
        [2011-02-03 11:26:53 395] INFO (XendDomain:1121) Domain test (1) 
unpaused.

I hope you understand my problem, English isn't my first language. I'd 
appreciate any help, thanks.


Home | Main Index | Thread Index | Old Index